Yellowbeard:
It's been a while since I've been back to coding, but the following code doesn't seem to return the values I'm looking for, just zeros.
It's been a while since I've been back to coding, but the following code doesn't seem to return the values I'm looking for, just zeros.
double vDO=iOpen("NZDUSD",1440,0); // Daily Open double vDC=iClose("NZDUSD",1440,0); // Daily Close Alert("vDO = ",vDO," vDC = ",vDC); No matter where I place the code within an EA or indicator, I just get zeros. Can I not assign a value of iOpen or iClose to a variable anymore?
Thanks!
I am getting correct values
Do you have "NZDUSD" in the symbols list and is it enabled in the market watch?

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
It's been a while since I've been back to coding, but the following code doesn't seem to return the values I'm looking for, just zeros.
double vDO=iOpen("NZDUSD",1440,0); // Daily Open double vDC=iClose("NZDUSD",1440,0); // Daily Close Alert("vDO = ",vDO," vDC = ",vDC); No matter where I place the code within an EA or indicator, I just get zeros. Can I not assign a value of iOpen or iClose to a variable anymore?
Thanks!