with small stoploss and higher profit taking
here is snapshot
mashift1=iMA(NULL,0,55,1,MODE_SMA,PRICE_MEDIAN,0);
mashift2=iMA(NULL,0,5,1,MODE_SMA,PRICE_WEIGHTED,0);
premashift1=iMA(NULL,0,55,2,MODE_SMA,PRICE_MEDIAN,0);
premashift2=iMA(NULL,0,5,2,MODE_SMA,PRICE_WEIGHTED,0);
watch the period of MA and we use no current MA
previous 1 and previous 2 MA is very important
==============================
34 stop loss and 89 profit taking
==============================
if(mashift2
ticket1=OrderSend(Symbol(),OP_BUY,4*Lots,Ask,3,Ask - 34*Point,Ask + 89*Point,"macd sample",16385,0,Green);
if(ticket1>0)
{
if(OrderSelect(ticket1,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice());
}
else Print("Error opening BUY order : ",GetLastError());
return(0);
}
==============================
No comments:
Post a Comment