the bool may have to be reset to false, so please add these lines at the end of the ea code:
Inserted Code
Print(" OPENED BUY ORDER "); } } // if signal_sto_sell is set to true and the cci never cross his level, // then no order is taken and signal_sto_sell remain to true, // then when cci croos his level, an order is taken, // to avoid that, add these line : if( signal_sto_sell == true && sto_0 < 35 ) signal_sto_sell = false; if( signal_cci_sell == true && cci_0 > 100 ) signal_cci_sell = false; if( signal_sto_buy == true && sto_0 > 65 ) signal_sto_buy = false; if( signal_cci_buy == true && cci_0 < -100 ) signal_cci_buy = false; } //+------------------------------------------------------------------+