
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
Since bar 0 is most recent bar starting from 0 to maximum bar is like playing tape recorder backwards and it will cause serious problems in predicting future market direction in your EA.
Therefore, the proper sequence should be as follows:
int counted_bars=IndicatorCounted();
int limit=Bars-counted_bars;
for(i=limit; i>-1; i--)
{
something here...
}
-Stan