MQL4: OBJ_VLINE and Current Debuging time

 

Hi

I'm new in MQL4 programming...

I want to view "current time" in debug mode of MQL4 programming EA ...... is this possible?

Maybe with object OBJ_VLINE? I'm try with:

datetime LineTime=iTime(Symbol(), Period(),0);
ObjectCreate(current_chart_id,obj_name,OBJ_VLINE,0,LineTime,0)

but not see nothing....

Can anybudy help me?

THANKS!

J.

 
Your code, if it worked, would put a line on the right most, forming, candle. Just move the mouse over that candle and see the time in the status bar (bottom of the terminal.)
 

Just Print you variables to the Journal

https://docs.mql4.com/common/print

Just be sure to convert to string beforehand

https://docs.mql4.com/convert

Print - Common Functions - MQL4 Reference
Print - Common Functions - MQL4 Reference
  • docs.mql4.com
Data of double type are shown with the accuracy of up to  16 digits after a decimal point, and can be output either in traditional or in scientific format, depending on what entry will be more compact. Data of float type are output with 5 digits after a decimal point. To output real numbers with another accuracy or in a predefined format, use...
 

Thanks for helping me ... but I think I have problem on starting Debug on History data (Ctrl-F5) .... I have enabled only "start debug on real data" (F5)

"Debug od history data" is grayed (disabled)......

Why?


p.s.

On MT4 terminal I'm logged to Demo account

 
siljo: Why?
Because it isn't implemented in MT4.
Reason: