How can I determine the status of current candlestick?

 

Dear all,

I am working with candlestick bar and I am writing an EA for it. How can I determine the status of current candlestick whenever I want? In other way, How can I check whether current candlestick is closed (opened, lowest, highest) or not?

Thanks

Binh Nguyen

 

Open[0] for the candlestick currently being made with the incomming data

Open[1] for the candlestick that has just formed

use to fetch the other values on the current chart

High[]

Low[]

Close[]

iLow(Symbol,Period,Shift) for any off chart Symbol and timeframe, also exist iHigh,etc.

 

Binh Nguyen.

Thanks for your replying, Ickyrus . Maybe you didn't understand my question.

Could you tell me how can I receive the close-event of currently candlestick? Example, I want to make a quote (buy/sell) when the current candlestick closes. How can I do this?

Thanks.

 

You may be thinking of

static datetime LastBarTime ;
  if (LastBarTime != Time[0])
   {
    LastBarTime = Time[0] ;
    //process new open Bar
   }
Reason: