Hey, the reason why it might only draw one vertical line and keep moving it, it's because the software works on names of objects. If it sees the same name, it will constantly move it.
I changed TimeCurrent() with time[rates_total-2]. But there is an error of "time undeclared identifier"
Hey, the reason why it might only draw one vertical line and keep moving it, it's because the software works on names of objects. If it sees the same name, it will constantly move it.
bro are u there?
- Chessqn: Below code is draw Vline at current candle. I can not find solution from google
Perhaps, instead of Google, you should read the manual. iTime - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. - Chessqn #: I changed TimeCurrent() with time[rates_total-2]. But there is an error of "time undeclared identifier"time[] only exists in an indicator's OnCalculate function; you should already know that. You didn't even post in the MT5 Indicators section nor in the MT5 EA section. Next time, post in the correct place.
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017) - Chessqn #: bro are u there?
This is an international English forum; post in English on this part of the forums. “u” is not a word. “bro” is not a word.
Please don't write ur - it's "you are" or "your" - MQL4 programming forum (2014)
-
Perhaps, instead of Google, you should read the manual. iTime - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. - time[] only exists in an indicator's OnCalculate function; you should already know that. You didn't even post in the MT5 Indicators section nor in the MT5 EA section. Next time, post in the correct place.
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017) -
This is an international English forum; post in English on this part of the forums. “u” is not a word. “bro” is not a word.
Please don't write ur - it's "you are" or "your" - MQL4 programming forum (2014)
thank you for your advise.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi developers I hope you can advise at this.
I want to draw vertical line at one previous candle of current candle.
Below code is draw Vline at current candle. I can not find solution from google
Than you.
ObjectCreate(ChartID(),monitored_name,OBJ_VLINE,0,TimeCurrent(),0);