Download MetaTrader 5

How to set the description of a trendline object programmatically?

To add comments, please log in or register
tao zemin.
402
tao zemin.  
Dear all, How to set the description of a trendline object programmatically? I want to monitor the account equity at each trendline and to debug the code. I cannot find related description in ObjectSet function. Many thanks for your time and consideration. Your sincerely, taozemin.
Ian Flanagan
549
Ian Flanagan  

Description... you mean the name?

Save the properties to variables, delete the trendline, and recreate a new one with a new name, the set the properties from the variables

Alain Verleyen
Moderator
31184
Alain Verleyen  
tzm:
Dear all, How to set the description of a trendline object programmatically? I want to monitor the account equity at each trendline and to debug the code. I cannot find related description in ObjectSet function. Many thanks for your time and consideration. Your sincerely, taozemin.
ObjectSetText()
tao zemin.
402
tao zemin.  
alladir:

Description... you mean the name?

Save the properties to variables, delete the trendline, and recreate a new one with a new name, the set the properties from the variables


i don mean name by description. But I do find today that MQL4 use arrow object name to transfer information, with this way, I dont have to change the description to show debug information. thank you for your reply.
To add comments, please log in or register