Accurate Yesterday's High, Low, Open, Close Prices
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);
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..