
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I've got a problem with indicator I just wrote and I would be really gratefull for any advice on what the problem is or how to solved it
Description of indicator:
Function of the Indicator is to display Fractals on different timeframes, not just their own, so for examle: display Fractals M5 on M1 timeframe.
Indicator first collects data from iFractal for their own timeframes and then calculates shift on timeframe we want to diplay it, in this case M1 timeframe, this is done by checking interval of candles High's or Low's and comparing it to saved price from iFractal, example fractal on M5 covers 5 candles on M1 so it checks which of this 5 candles is the fractal if want to display it on M1 chart, basically it pinpoints location of the fractal on a lower timeframe
Problem is that data get's scrambled, some data get's lost and in the end I get arrays (buffers) of data that are a not complete or correct
Since I just recently switched from mql4 to mql5, I'm not sure where the problem is, but I believe that call of OnCalculate somehow interupts execution from previos call