Download MetaTrader 5
To add comments, please log in or register
They are already making profit from their signals. Publish your signal and join them!
Sherif Hasan
7224
Sherif Hasan 2014.05.16 15:14 

Hi,

Hope, subject itself asks question:

How to get second candle open/high/low/close of opened chart?

eg:

i opened 4 hour chart. i need the2nd candle of the day. please give me support!

Bambang Sugianto
9831
Bambang Sugianto 2014.05.17 11:36  
  datetime openday= iTime(Symbol(),PERIOD_D1,0); 
    Alert( TimeToStr(openday,TIME_DATE|TIME_MINUTES));
  int b=iBarShift(Symbol(),0,openday,0); 
    Alert(b);
  double open=Open[b-1];
    Alert(open);
Sherif Hasan
7224
Sherif Hasan 2014.05.18 17:31  
WDholic:


Thanks. works for me.
/
To add comments, please log in or register