Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 01:46:05 +0000



Formula for check between H and L of last three bars

View Count: 351

[2022-12-14 12:14:55]
Dean Roberts - Posts: 79
Hi Tom and John

Could you help with the last part of this formula please? I am trying to say only enter if only enter the long if the High of the 3rd prior bar is LESS than 30 points above the Low of the bar that has just closed:

=AND(CROSSFROMABOVE(C,ID15.SG3), L[-1]<=ID15.SG3[-1]+(4*TICKSIZE), H[-3],L[-1]<(120*TICKSIZE))

Not sure how to contruct the difference between the different candle Highs and Lows.

Much appreciated
Cad
[2022-12-14 12:52:04]
Sawtooth - Posts: 4000
Try this:
=AND(CROSSFROMABOVE(C,ID15.SG3), L[-1]<=ID15.SG3[-1]+(4*TICKSIZE), H[-3]-L[-1]<(120*TICKSIZE))
[2022-12-14 15:44:03]
Dean Roberts - Posts: 79
thank you Tom.

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

Login

Login Page - Create Account