Is there way to disable or enable auto trade or live trade via custom indicator? MQL4
int main = GetAncestor(WindowHandle(Symbol(), Period()), 2); PostMessageA(main, WM_COMMAND, MT4_WMCMD_EXPERTS, 0 ) ; // // Toggle Expert Advisor button
You don't need to create another indicator, you can still use it on the EA and it will work
You don't need to create another indicator, you can still use it on the EA and it will work
I don't have Source code of ea. so I can't edit it. because of it I decide make this kind of indicator
I don't have Source code of ea. so I can't edit it. because of it I decide make this kind of indicator
As an Indicator also is fine.
#include <WinUser32.mqh> #import "user32.dll" int GetAncestor(int, int); #define MT4_WMCMD_EXPERTS 33020
You are welcome
O one question:
how to just click on auto trade button when it is disabled?
I don't want to click it when it is enabled
Hi guys. I have EA (ex4 file) I want to add some filter on it so I have decided to make indicator that will calculate some algo and after it enable or disable auto trader or live trade. witch one will be possible.
Please help me. Thank you.