raven.chrono:
Hi there...
Im using the following code to get yesterdays high, low, open and close prices but i am not satisfied with the results...
Can anybody here help me with this so that i can get the real high, low, open, close..
tnx..
Shift = 0 is current bar, shift = 1 previous bar, so to obtain OHLC for yesterday (previous day actually) :
double high=iHigh(Symbol(),PERIOD_D1,1); double low=iLow(Symbol(),PERIOD_D1,1); double close=iClose(Symbol(),PERIOD_D1,1); double open=iOpen(Symbol(),PERIOD_D1,1);

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 there...
Im using the following code to get yesterdays high, low, open and close prices but i am not satisfied with the results...
Can anybody here help me with this so that i can get the real high, low, open, close..
tnx..