how to squareoff all position in Ea?

 
hii...while using ea how to squareoff all open position when markets is against your order ?
 
Vira P: hii...while using ea how to squareoff all open position when markets is against your order ?

By changing the code of the EA so as to do that, either by closing the trades on a particular signal or condition or using a Stop-Loss.

EDIT: You can also manually close trades via the terminal if this is just a temporary situation.

Reason: