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:
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.