- This topic has 2 replies, 2 voices, and was last updated 1 week ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Optuma Forums › Optuma Scripting › Low at prev high
How would I write a script to use in a watchlist that would
alert me for when the condition happens of a low pivot
finding support at the most recent high pivot, like in the
attached screenshot? I am using the Percent Swing Chart
Overlay to get the pivots.
Hi,
Swings can use offsets to find previous swing top / bottom values. You could use something like this to find the setup:
1 2 3 4 |
P1 = PERCENTSWING(); (P1 IsUp) and (SWINGSTART(P1) >= SWINGSTART(P1, OFFSET=3) * 0.98) |
You can adjust the range being considered (2% band up and down used here).
DXS:ASX is an example of a code that passed today, which looks similar to your 5min setup.
Thanks, Matthew.
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. |