Login Page - Create Account

Support Board


Date/Time: Mon, 10 Mar 2025 02:46:43 +0000



Post From: [STRATEGY][AUTOMATE] How to automate my strategy into Sierrachart ?

[2022-03-05 15:11:13]
Sawtooth - Posts: 4181
L and N columns are full of 0 and there is no 1
This is because you are referencing J8, which is current only and has no relationship to previous bars.
Before the Close price touches your J9 offsets, columns L,N are all zeros, and the moment after the Close price touches your J9 offsets, columns L,N are also all zeros. Columns L,N will be filled with 1's for only a flash when the Close price touches your J9 offsets.

If you want historical exit arrows on bars where the exits would have occurred, and you are using intrabar exits, you'll need to reference the High and Low instead of the Close, and you'll need to create a persistent variable of every entry price so that you can use it instead of J9. This is more advanced, and beyond what can reasonably be shared in a forum post.

I notice the N3 formula in your pic has a mistake:
=OR(AND($J$8 < 0, N4ID0.SG4@$3 >= $J$9-4), AND($J$8 < 0, ID0.SG4@$3 <= $J$9+1))