faustf:
ObjectSetText
ObjectSetText
You may use ObjectSetString instead.
If you are too lazy to recode... copy and paste in your code.
void ObjectSetText(long chart_id, string obj_name, string text, int font_size, string font, color clr) { ObjectSetString(chart_id,obj_name,OBJPROP_TEXT,text); ObjectSetString(chart_id,obj_name,OBJPROP_FONT,font); ObjectSetInteger(chart_id,obj_name,OBJPROP_FONTSIZE,font_size); ObjectSetInteger(chart_id,obj_name,OBJPROP_COLOR,clr); }
@Fabio Cavalloni thanks so much not exist a library with this equivalent function?
and example if i want change this
void OnTick() { if(OnOffChiusuraAuto==1) { for (int ij = 0; ij < OrdersTotal(); ij++) { if( OrderSelect( ij, SELECT_BY_POS, MODE_TRADES ) == false ) { Print("ERROR - Unable to select the order - ",GetLastError()); break; }
i notice orderselct in mql5 have only ticket , is possible use in this context ? thanks

I strongely suggest you to use CTrade class approach, read this article as a reference.

Trade Operations in MQL5 - It's Easy
- www.mql5.com
Almost all traders come to market to make money but some traders also enjoy the process itself. However, it is not only manual trading that can provide you with an exciting experience. Automated trading systems development can also be quite absorbing. Creating a trading robot can be as interesting as reading a good mystery novel.

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
Hi guys how can convert in mql5 this part of code ?
ObjectSetText not exist what i must use in alternative ? thanks