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 }
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
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