datetime time = ObjectGetInteger(0,name,OBJPROP_TIME);
datetime time = (datetime)ObjectGetInteger(0,name,OBJPROP_TIME);
I think you are playing with me now.. :)
I will not use ObjectGet().. :)
I was reading over the documentation about 2 hour after I posted and I see from the coding samples that ObjectGet() and OBJ_TIME is not shown..
OBJPROP_TIME1, OBJPROP_TIME2, OBJPROP_TIME3 is used..
Example would be time1 or time2..
When "time" is referenced in the code OBJPROP_TIME as a datetime variable it is used but only with ObjectGetInteger().. NOT ObjectGet();
I looked at the help file but did not look close enough.. sorry for wasting your time..
- 2015.05.14
- www.mql5.com
A Vline object only has one time parameter but there can be cases where your object has multiple time and price parameters.
In that case you also have to specify which object point you are referring to.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Add Vline to chart for testing..