if(sparam=="Reset Button" && ObjectGetInteger(0,"Reset Button",OBJPROP_STATE)==true) { if(ReSet()) ObjectSetInteger(0,"Reset Button",OBJPROP_STATE,false); }
Here's an example of what I do in OnChartEvent (Object Clicked) with a button object.
The function ReSet() returns a bool when complete and so the button is un-clicked automatically.
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
Francis