You can:
Iterate all objects on chart. Check their description and change it to your desired value:
I did not compile and execute this code:
int total=ObjectsTotal(ChartID(), 0, OBJ_EDIT); for(int i=total-1;i>=0;i--) { string name = ObjectName(ChartID(), i, 0, OBJ_EDIT); if(ObjectGetString(ChartID(), name, OBJPROP_TEXT,0)==prev_value) ObjectSetString(ChartID(), name, OBJPROP_TEXT,0, new_value); }
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
Hello,
Is there any code that Search for an Specific Object Description and replace the new "Description" on chart?
for example, if an expert; create an "edit" object, with randome names; and same "Description"; how can I add an indicator on chart that replace my description on that "edit" object?
thanks