Hello everyone,
I have an EA that has 1 button on it (for convenience instead of changing EA settings). That button shows whether EA is ready to send a trade at some conditions, or will ignore those conditions, and I can press it so changing this status. so ea operated partially manually. Everything is fine, but I noticed a strange situation: if I restart EA (ie recompile or shut down a terminal and restart again) - then button becomes inactive, and the whole function OnChartEvent doesnt work.
So after restart I click on objects and on chart or whatsoever do and do not receive a message "92OnChartEvent ..." in the logs. For some reason OnChartEvent fn is completely ignored. Could you plese help? Thanks in advance
ok, problem sovled. I had constant button name, changed to
string buttone_name;
OnInit(){button_name = "Button"; ... } and now seems it works
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone,
I have an EA that has 1 button on it (for convenience instead of changing EA settings). That button shows whether EA is ready to send a trade at some conditions, or will ignore those conditions, and I can press it so changing this status. so ea operated partially manually. Everything is fine, but I noticed a strange situation: if I restart EA (ie recompile or shut down a terminal and restart again) - then button becomes inactive, and the whole function OnChartEvent doesnt work.
So after restart I click on objects and on chart or whatsoever do and do not receive a message "92OnChartEvent ..." in the logs. For some reason OnChartEvent fn is completely ignored. Could you plese help? Thanks in advance