hi,
I have a problem. I wish to fix this parameter High[1]-Low[1] for obtain a steady trailing step, but obviously this code, as soon as there is new candle is updated.
I'd like to create a simple function for returns steady distance between (start high candle) - (star low candle) to insert under the last return.
How can I do?
thanks Raptor for your kindness.
I don't know how keep track of start candle. Can you show me an extended code example, please?
thanks Raptor for your kindness.
I don't know how keep track of start candle. Can you show me an extended code example, please?
OK,
datetime StartCandleTime; StartCandleTime = Time[1];
Set StartCandleTime when you want to keep it's value, reset it hen you want a new value. Then use it in iBarshift()
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi,
I have a problem. I wish to fix this parameter High[1]-Low[1] for obtain a steady trailing step, but obviously this code, as soon as there is new candle is updated.
I'd like to create a simple function for returns steady distance between (start high candle) - (star low candle) to insert under the last return.
How can I do?
Thanks
DOC