I used this code in Volume Trader:
Code:
if ( Volume[1] < Volume[2] )
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,cm,EAMagic,0,White);
}
if ( Volume[1] > Volume[2] )
{
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,cm,EAMagic,0,Red);
}
http://www.forex-tsd.com/232-post6.html
Your problems seems to be related to stoploss and take profit.
Try with 0 and if it works, try modifying TakeProfit and StopLoss ... and ... try to show them with an Alert (perhaps value is wrong).