Ea code help quick!

I use and ECN/STP broker, and my EA is great with 77% ROI weekly within backtesting.Max drawdown was around 20%.It could be the best EA that i made,but the problem is that it doesn’t work on the market only on backtesting.I really need help with the coding please! Here is my OrderSend code:

[B] if(total()<MAX_SIMULTANEOUS_TRADES)
{
if(signal()==buy)
{

      ticket=OrderSend(Symbol(),OP_BUY,start_lot,Ask,4,        0,        0,"",666,0,Blue);
 }
 
 if(signal()==sell)
 {

ticket=OrderSend(Symbol(),OP_SELL,start_lot,Bid,4,        0,        0,"",666,0,Red);

}

} [/B]

It’s in the start() function, total() function is this and this one is not in the start():

[B]int total()
{
int total=0;
for(int i=0; i<OrdersTotal(); i++)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
total++;
}
return(total);
}[/B]

Now i heard that ECN brokers require differend order sendings.Also there are [B]no errors given[/B],it’s just that doesn’t take the orders.Can some1 explain it to me?