- This topic has 1 reply, 2 voices, and was last updated 1 year ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Optuma Forums › Optuma Scripting › Using Signal After
Hii Sir,
I am trying to use signal after for following condition.
close crosses above SMA 89
after which 10 day high breakout.
I have tried below 2 codes both doesn’t seem to be working.
If you see attached pic its also showing signal below MA 89.
Regards,
Deepak
1 2 3 4 5 6 7 8 9 10 |
v0 = CLOSE() CrossesAbove MA(BARS=89, CALC=Close); v1 = CLOSE() CrossesAbove HIGHESTHIGH(BARS=10); SIGNALAFTER(v0,v1) v0 = CLOSE() > MA(BARS=89, CALC=Close); v2= v0 ChangeTo 1; v1 = CLOSE() CrossesAbove HIGHESTHIGH(BARS=10); |
1 2 3 |
SIGNALAFTER(v2,v1) |
1 2 3 |
Hi,
The Signal After will show the first instance of the second criteria after the first has been met. It will not take into account whether then Close has crossed below the MA since the trigger.
If you want to make sure the Close is still above the 89SMA after the first criteria has triggered you can update the script to use the following:
1 2 3 4 5 6 |
v0 = CLOSE() CrossesAbove MA(BARS=89, CALC=Close); v1 = CLOSE() CrossesAbove HIGHESTHIGH(BARS=10); V2 = CLOSE() > MA(BARS=89, CALC=Close); SIGNALAFTER(v0,v1) and V2 |
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. |