Please edit your post and place your code with the "</>" icon on the toolbar (or use Alt-S). Don't just paste your code as normal text. It is difficult to read and follow.
xyon126:
Good! I need help, I am trying to create two buttons, one that indicates the current Profit and the other the number of open trades; My problem is that it creates the buttons but it does not update the data, what am I doing wrong?
Thank you very much and sorry for my English.
Code:
***
use this function for change value
ButtonTextChange();
at first copy this one :
bool ButtonTextChange(const long chart_ID=0, // chart's ID const string name="Button", // button name const string text="Text") // text { //--- reset the error value ResetLastError(); //--- change object text if(!ObjectSetString(chart_ID,name,OBJPROP_TEXT,text)) { Print(__FUNCTION__, ": failed to change the text! Error code = ",GetLastError()); return(false); } //--- successful execution return(true); }
Mohsen Bjp:
Hello Mhosen Bjp!use this function for change value
at first copy this one :
I have already found a way to apply what you have taught me, thank you very much.
All the best
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
Good! I need help, I am trying to create two buttons, one that indicates the current Profit and the other the number of open trades; My problem is that it creates the buttons but it does not update the data, what am I doing wrong?
Thank you very much and sorry for my English.
Code:
***