ArraySetAsSeries(ExtrapolationBuffer,true);
or delete this
PlotIndexSetInteger(0, PLOT_DRAW_BEGIN, 100)
Alex1703:
Thanks for your quick reply!
Setting the array to series reverses the order of the array.
Your close[] array is reversed :
CopyClose(_Symbol,_Period,0,N,close);// You have to add error processing ArraySetAsSeries(close,true); ArraySetAsSeries(ExtrapolationBuffer,true);
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
Hello everyone :)
after having coded several EA's in mql5, I have started writing my first indicator a few days ago. I was hoping I could get some help.
It is supposed to use the fourier transform in order to extrapolate the prices into the future. At this stage I have not gotten to the extrapolation part just yet, but I am trying to plot the past price in the form of a line.
While the calculations appear to be working out well, the indicator does not plot anything. The indicator buffer therefore contains the right values (tested with printf), but no line appears. I have read several guides on indicators, but I can't find the mistake :/
I would greatly appreciate if You could point me to the mistake :)
Thanks in advance!