having a problem with a strategy syntax in one of the condiitions;
In the attached indicator file lines 104 and 121 are not working as expected
Condition for range broken on the high side (line 104):
&& (GetCurrentAsk(0)> (MAX(High, Convert.ToInt32(RangePeriods))[1])+(TicksORange)/TickSize)
When current ask price is higher than (the maximum value over the last {RangePeriods} periods seen from the last candle + {TicksORange} ticks)
Condition for range broken on the low side (line 121) x
&& (GetCurrentAsk(0)< (MIN(Low, Convert.ToInt32(RangePeriods))[1])-(TicksORange)/TickSize)
When current ask price is lower than (the minimum value over the last {RangePeriods} periods seen from the last candle - {TicksORange} ticks)
I also tried difining a variable on lines 74 and 76, to use them on lines 105 and 122 but that did not work either (so the lines are currently voided)
Can you please help me rewrite the conditions to make this indicator work?
Thanks
Horacio
Comment