when I add a condtion with "OR" (= "||") I get many entries in the script strategies. Everything works fine but when I add like herein this example some condtions with OR (in red color) then I have not 2 entries (limited with tradecounter) but 2011 entries. I do not understand what is wrong.
if (tradecounterLP8 < maxtradesLP8
&& Position.MarketPosition == MarketPosition.Flat
&&Rising(MACD(BarsArray[2],5, 20, 30).Avg) == true
&& Rising(Stochastics(BarsArray[5],7,14,3).D) == true|| Rising(Stochastics(BarsArray[4],7,14,3).D) == true|| Rising(Stochastics(BarsArray[3],7,14,3).D) == true
&& Close[1] < Open[1]
&& Close[0] > Open[0])
Thank you
Tony
Comment