Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 19:01:00 +0000



Post From: New Offering - Order Flow Trading Bots aka SceetoBots

[2018-04-04 22:59:13]
TapeReader - Posts: 88
Using 'Color Bar Based on Alert Condition' to Create Bot Signals

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 can be updated so that the button label on the SceetoBot panel reflected it's function (see pic).

This snippet will work on any time frame and any set of 3 moving average look-back periods.

Attached is a study collection (3 MAs Momentum Long Bot) that will deploy a bot that uses this snippet of alerting code to enter a long trade the first time that the close of a bar trades above the 3 different moving averages.

Save the study collection to your C:\SierraChart\Data folder.

To apply it to a chart, click Analysis > 3 MAs Momentum Long Bot.
attachment3 MAs Momentum Long Bot.StdyCollct - Attached On 2018-04-04 22:55:00 UTC - Size: 29.27 KB - 560 views
image3 MAs Momentum Long Bot - sceeto order flow.jpg / V - Attached On 2018-04-04 22:55:57 UTC - Size: 342.24 KB - 1434 views