Instruction used to stop a trading system. All opened, stop and limit orders are close when the instruction is used.

Stopped strategy with the QUIT instruction cannot be re-launched automatically by code. Only a manual intervention can do it.

Syntax:

 

Example1 :

Stop the automated trading program at 22:00 if we are short on market.

 

Example2 :

Stop the strategy if the actual profit is losing 200 of the money account.

 

Share this