Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 04:36:20 +0000



Formula for check between H and L of last three bars

View Count: 473

[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: 4120
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