int pos=Bars-counted_bars; //---- main calculation loop
while(pos>=0)
the indicator is only plotting the bars that the system tells it have "not already been counted"
for a test, change to:
int pos=1000;
while(pos>=0)
and it should always plot 1000 bars.
while(pos>=0)
the indicator is only plotting the bars that the system tells it have "not already been counted"
for a test, change to:
int pos=1000;
while(pos>=0)
and it should always plot 1000 bars.

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
Take a look at the following code:
If I plot iClose(Symbol(),NULL,pos)-iClose(Symbol(),NULL,pos+length)) the ExtMapBuffer1 shows the right graph, and if I plot summation[pos] it also show the right values for all bars in past... but when i divide the two, I only get plots for the two last bars.
Anyone who can explain this phenomemon for me?
Thank you in advance,
Johan