-
Don't double
post! You already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum - Jackery: I am using the following code to draw an arrow, how can I tell which candle the arrow object is drawn on?That code does not "draw an arrow." It sees if a red arrow (of some arrow code) exists.
- Once you find the object, read its time and use iBarShift to find the candle index. Perhaps you should read the manual.
ObjectGetInteger → ENUM_OBJECT_PROPERTY_INTEGER → OBJPROP_TIME (coordinate zero.)
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
I am using the following code to draw an arrow, how can I tell which candle the arrow object is drawn on?