MQL4 - automated forex trading   /  

Forum

ExpertAdvisor disable

Back to topics list To post a new topic, please log in or register

avatar
335
hansH 2011.07.23 20:25 

Hi all together,

how is the code for ExpertAdvisor disable???

Testing Visualization: Functionality Enhancement

Testing Visualization: Functionality Enhancement

The article describes software that can make strategy testing highly similar to the real trading.


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

avatar
335
hansH 2011.07.23 20:36 
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.

avatar
4224
RaptorUK 2011.07.23 20:42 
Take a look here http://forum.mql4.com/17473

avatar
4328
WHRoeder 2011.07.23 22:39 
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);
}

Back to topics list  

To add comments, please log in or register