Login Page - Create Account

Support Board


Date/Time: Mon, 10 Mar 2025 03:24:01 +0000



[Programming Help] - Troubles with creating an automated trading system

View Count: 561

[2022-03-14 19:04:43]
User454125 - Posts: 3
Hi,

I apologize in advance for the question I'm gonna ask. English is not my mother tongue, thus why the density and completeness of the informations present on SierraChart is overwhelming for me.
I've done a lot of research before daring to ask.

I'm having troubles with automating a trading system based on alerts, being themselves based on a certain number of bars in a row having the same color.
What should I start reading ? Where could I find the appropriate formulas to do that kind of very simple thing ?

Thanks in advance for your help.

Regards,

Visara
[2022-03-14 21:48:57]
Sawtooth - Posts: 4181
This is the basic way to identify an up and down bar:
Up bar:
=C > O
Down bar:
=C < O

Previous bar:
=C[-1] > O[-1]
=C[-1] < O[-1]

3 consecutive up bars:
=AND(C > O , C[-1] > O[-1] , C[-2] > O[-2] )
[2022-03-15 17:33:35]
User454125 - Posts: 3
Well, that will certainly help a lot to start/ Thank you very much for your time and help. I appreciate that a lot. Have good one
[2022-03-15 18:42:29]
User454125 - Posts: 3
And in the same vein, what should I read to create an exit alert in the kind of :

- Exit as soon as bar color is black ? (wich implies to have had a entry signal trigerred already)
[2022-03-15 19:03:28]
Sawtooth - Posts: 4181
You need up to 4 instances of the Trading System Based On Alert Condition study:
Buy Entry
Buy Exit
Sell Entry
Sell Exit

If your entry is at the close of 3 consecutive up bars, and your exit is at the first down bar:
Buy Entry:
=AND(C > O , C[-1] > O[-1] , C[-2] > O[-2] )
Buy Exit:
=C < O

Trading System Based on Alert Condition
Date Time Of Last Edit: 2022-03-15 19:05:46

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account