MikeT:
Hi Guys...
Was just wondering if there is a way to "run" a Function immediately....
ie. If I 'Click' on a Chart 'Button'.... can I tell Mql4 to 'Stop" processing what it is doing and run the Function that I want it to run....
...if that makes any sense....
...is there a Function that just "Stops" the processing....
You can use this :
//+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { if (id == CHARTEVENT_OBJECT_CLICK) { if (sparam == "Your Button Name" ) { //Your Function } } }

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...
Was just wondering if there is a way to "run" a Function immediately....
ie. If I 'Click' on a Chart 'Button'.... can I tell Mql4 to 'Stop" processing what it is doing and run the Function that I want it to run....
...if that makes any sense....
...is there a Function that just "Stops" the processing....