I can´t get it how to amend the conditons for a variable. My variable for stops at entry works fine with closed reversal bars (eg for short trades)
cthigh=MAX(High, 2)[0] + (3*TickSize);
but for entries before the current reversal bar is closed there can occur - of course - a stopout when the MAX of the closed bars ([0] and [1] is lower than the entry price in the revesal bar.
How can I add to my condition with MAX to have the "MAX (of the last 2 bars and above eg 8 ticks above current price of the bar that is not closed yet)"?
(There are reasons why I do not with simple setstoploss and distance in ticks)
Thank you
Tony
Comment