Here is sample code that leverages Sierra Chart's 'Color Bar Based on Alert Condition' study to create a trading rule for a SceetoBot.
The snippet is:
=AND(AND(L>ID1.SG1,L>ID1.SG2,L>ID1.SG3),OR(L<ID1.SG1[1],L<ID1.SG2[1],L<ID1.SG3[1]))
The snippet resides in the Alert tab of the 'Color Bar Based on Alert Condition' study.
The name of the Study was updated so that the button label on the SceetoBot panel reflected it's function.
This snippet will work on any time frame and any set of moving average look-back periods.
Download 3 MAs Momentum Long Bot.zip file and extract the contents to to your C:\SierraChart\Data folder.
To apply it to a chart, click Analysis > 3 MAs Momentum Long Bot.
Comments
0 comments
Please sign in to leave a comment.