Where to install the stop command

 

Hello Who can help me?

I`m new in writing codes for EA`s. I wrote my own EA, which open by crossing over MA. But after closing it's open again but that I don`t like. I want that he opens only one, means after closing he has to sleep until I open manuelly.

Thank you.

 
Create a GlobalVariableSet or Write/Read a file variable. Something like if( OrderSend() > -1 ) GlobalVariableSet( "Stop_Command", true );
Reason: