double calculateAv(void) { double total = 0; for(int i=1; i<=10; i++) { total += MathAbs(iClose(NULL,PERIOD_M15,i) - iOpen(NULL,PERIOD_M15,i)); } Print ("Total =" + DoubleToString(total, _Digits)); // this is WRONG!!! return MathRound(total/10); }
Konstantin Nikitin:
Thanks man!
static class Stupid { public static string ME="Iulian"; } string getName() { return Stupd.ME; } getName();
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,
I have the following code:
I don't understand what's wrong with it.The problem occurs when the total amount of last 10 candles is calculated.
Please help!
Thanks,