The section will be executed when i >1 AND i < rates_total.
Dominik Egert:
The section will be executed when i >1 AND i < rates_total.
Thanks Dominik, I guess you are referring the lower part of the code (not if..loop).
Just read the documentation, and updated my comment, which seems agreeing with your statement.
Just curious when MACD_Main, Signal, OscMAUp and OscMAUp are not calculated for i[0] and i[1], how come the indicator still shows value for them !!!
This could be due to memory not being initialized.
Initialize it with zero and see if it works as expected.
Dominik Egert:
Initialize it with zero and see if it works as expected.
This could be due to memory not being initialized.
Initialize it with zero and see if it works as expected.
Hi Dominik
the above is partial code from Volume Weighted MACD Indicator by 'copyright mladen www.forex-tsd.com' and feel no problem with it.
just trying to understand how this code return values for [0] and [1] bar, while the code suggest they are not calculated.
I have attached the Indicator Code mq5 file, in case you want to dive deep into it and suggest.
Files:
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
NOTE: The continue operator passes control to the beginning of the nearest outward loop (while, do-while or for) operator, the next iteration being called.
please CORRECT Me, if I am wrong ...