double smaDOW(int dow, int count, int iStart=0){ double sum = 0; for(int n=0; n < count; ++iStart) if(TimeDayOfWeek(iStart) == dow){ ++n; sum+= … } return sum / count; }Was that so hard?
Migrating from MQL4 to MQL5 - MQL5 Articles № 18 17 May 2010
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 would like to get a average from last 10 Mondays (daily candlestick). Do you have any idea?