int limit=rates_total-prev_calculated; if(limit>BarsToUse)limit=BarsToUse+130+HAS_MAPeriod; // 130 extra bars to ensure clean data after smoothing limit-=HAS_MAPeriod; for(int i=0; i<limit; i++) {
After the initial run limit is rates_total equals prev_calculated, and limit equals negative HAS_MAperiod. So your loops do nothing.
Do your lookbacks correctly #9 — #14 & #19
.
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.