search for the line:
Code: Select all
price = NormalizePrice(Symbol(),iHigh(Symbol(),PendingOrderHighLowTF,0) + (BufferPips / factor)); Code: Select all
price = NormalizePrice(Symbol(),iLow(Symbol(),PendingOrderHighLowTF,0) - (BufferPips / factor));Further this will need some more additional errorchecking (was the previous candle higher/lower than the current candle, and if so, use the current candle?, etc. pp.)....