for(open_trades)
{
if(condition){
exitLong();
exitShort();
}
}