|
need quick help
i have these codes below.....
can somebody please check to see if they follow this rule...
If no trades on the chart then with signal it opens 1 lot.
if 1 trade already on the chart all the rest of the orders are double lot..
please verify,
total = OrdersTotal();
if(total>=2)
{
if(MA11>MA21 && MA12<MA22)
{
ticket=OrderSend(Symbol(),OP_BUY,2*Lots,Ask,5,Ask-stoploss*Point,0,0,Magic_number,0,Green);
return (0);
}
if(MA11<MA21 && MA12>MA22)
{
ticket=OrderSend(Symbol(),OP_SELL,2*Lots,Bid,5,Bid +stoploss*Point,0,0,Magic_number,0,Red);
return (0);
}
}
if(MA11>MA21 && MA12<MA22)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,5,Ask-stoploss*Point,0,0,Magic_number,0,Green);
}
if(MA11<MA21 && MA12>MA22)
{
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,5,Bid+s toploss*Point,0,0,Magic_number,0,Red);
}
}
|