- This topic has 3 replies, 3 voices, and was last updated 1 week ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Optuma Forums › Optuma Scripting › Swingstat AvePercent
Tagged: swingstat
Not sure what I’m doing wrong here:
Hi,
I think the value returned by the script is already a %, by adjusting the Chart Elements properties to % it is multiplying the result by 100 again. In the script, try dividing it by 100 there, this should bring the result back to the expected range.
1 2 3 4 |
V1 = VOLATILITYSWINGS().SwingList; SWINGSTAT(V1, DEFAULT=AvgPercent, TYPE=All) / 100 |
That doesn’t seem to work: 1.105 can’t be the average percent change of the QQQ for the Volatility Swing indicator on the daily
Hi Krishen,
The AvgPercent option is calculating the average retracement of the swings, not the percent change. If you change the Swing Count from 10 to 1 you will see it matches the P/R label in the Gann Swing Overlay chart. You could use AvgSwing instead but note this is in dollars not percent so I’ll log a request to make the average change percent to be added to the SwingStat output for version 2.2.
Cookie | Duration | Description |
---|---|---|
cname | 14 days | This cookie is set by Optuma. The cookies is used to store the users campaign selection for selecting the correct version of Optuma to trial and is "Necessary". |
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". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |