nah nih basic dia... kalo tak paham... tanya...
kalo tak tanya camne nak belajar??? kua kua kua...
int order=0;
for( int cnt=0;cnt<OrdersTotal();cnt++)
if (OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) )
if (OrderSymbol()==Symbol()&& OrderMagicNumber()==Magic)
{
order++;
if(OrderType()==OP_BUY)
{
OrderSend(Symbol(),OP_SELLSTOP,NormalizeDouble(OrderLots()*2,2),NormalizeDouble(OrderStopLoss(),Digits),0,NormalizeDouble(OrderStopLoss()+SL*Point,Digits),NormalizeDouble(OrderStopLoss()-TP*Point,Digits),"SylarEmpire power coding hehe", Magic, 0, Lime);
}
if(OrderType()==OP_SELL)
{
OrderSend(Symbol(),OP_BUYSTOP,NormalizeDouble(OrderLots()*2,2),NormalizeDouble(OrderStopLoss(),Digits),0,NormalizeDouble(OrderStopLoss()-SL*Point,Digits),NormalizeDouble(OrderStopLoss()+TP*Point,Digits),"SylarEmpire power coding hehe", Magic, 0, Aqua);
}
if(order==0)
OrderSend(Symbol(),0,lot,Ask,2,Ask-SL*Point,Ask+TP*Point, "SylarEmpire pon bleh coding beb. Malaysia boleh!!!", Magic, 0, Aqua);