jollydragon:
What will happen if I use iClose(NULL, 0, i-k) for back testing while k>i in fact?
It will probably return 0
Why don't you write a simple piece of code to test it yourself?
jollydragon:
What will happen if I use iClose(NULL, 0, i-k) for back testing while k>i in fact?
With #property strict, a fatal error "array out of range".
Without #property strict, 0 as mentioned by GumRai.
Thank you both!
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
What will happen if I use iClose(NULL, 0, i-k) for back testing while k>i in fact?