- This topic has 2 replies, 2 voices, and was last updated 1 week ago by .
- You must be logged in to reply to this topic.
Is it possible to write a script that would point out this GannSwingEquality on the attached chart?
Current Upswing length is equal to Previous Upswing length.
You must be logged in to access attached files.
You can create formulas for any swing value. When added to a watchlist column the following will give the % value of the current swing relative to the previous swing in the same direction (ie up swing or down swing).
//Define swing criteria;
GS1 = GANNSWING(SWINGCOUNT=3, METHOD=Use Next Bar);
//Get current swing range;
R1 = SWINGEND(GS1) - SWINGSTART(GS1);
//Get previous (same direction) swing range;
R2 = SWINGEND(GS1) - SWINGSTART(GS1);
So GS is currently 99.07% of the previous swing up (confirmed with the Price Extension P/X label on the overlay tool).
Make the formula into a true/false Boolean and you can then use it in a scan, eg swing ranges within a ±2% tolerance:
R3 = R1/R2;
R3 > 0.98 and R3 < 1.02
This scan of the S&P500 shows these 6 as of Monday’s close:
That’s great! Thanks so much, Darren.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
|cookielawinfo-checbox-analytics||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".|
|cookielawinfo-checbox-functional||11 months||The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".|
|cookielawinfo-checbox-others||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.|
|cookielawinfo-checkbox-necessary||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".|
|cookielawinfo-checkbox-performance||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".|
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.