what is the Difference between these two functions ?
4 replies
Tarwada
9 years ago #112951
hello guys , i need some help 😀
what is the Difference between (IsBarOpen) and this one :
and also how to confirm the cross of MA’s by 2 bars instead of 1 ? ( with pictures pelase ^_^ )
thanks. :wub:
Tarwada
9 years ago #127824
hello ?
Tarwada
9 years ago #127829
up x___x
Tarwada
9 years ago #127847
guys this is important please ! 🙁
Mark Fric
9 years ago #127899
it is the same, the checkbox next to IF rule was added only to make it simpler to use.
and also how to confirm the cross of MA’s by 2 bars instead of 1 ? ( with pictures pelase ^_^ )
I assume you mean you want to check that MA crossed and itwas confirmed by one more candle. Here are the rules:
IF
MA(x)[2] crosses above MA(y)[2]
and
MA(x)[1] > MA(y)[1]
THEN
…
The important thing here is the Shift parameters., You should use 2 for the cross condition – it will check if there was cross 2 bars ago.
Then use Shift=1 in second condition that checks if the MA(x) is still above MA(y) 1 bar ago.
Mark
StrategyQuant architect
Viewing 4 replies - 1 through 4 (of 4 total)