ExpertAdvisor disable

 

Hi all together,

how is the code for ExpertAdvisor disable???

 
Click the Expert Advisors button so it shows a white cross in a red circle. Or remove the EA from your chart.
 
RaptorUK:
Click the Expert Advisors button so it shows a white cross in a red circle. Or remove the EA from your chart.

it must be a code for my EA.
 
 
from Known Commands and this
Try this
#include <WinUser32.mqh>
#import "user32.dll"
  int GetAncestor(int, int);
#import
void KillMe(){
        int hWnd = WindowHandle(Symbol(), Period());
        #define MT4_WMCMD_REMOVE_EXPERT   33050 /* Remove expert advisor from chart */ 
        PostMessageA(hWnd, WM_COMMAND, MT4_WMCMD_REMOVE_EXPERT, 0);
}
Reason: