extern int period=14;
extern double level=-90;
extern double level2=-10;
int start()
{
double r30=iWPR(NULL,0,period,0);
if(r30<=level)
{
Alert("");OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-Point*10,Ask+Point*30,"....",555,0,Green);
}
if(r30>=level2)
{
Alert("");OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+Point*10,Bid-Point*30,".....i",555,0,Red);
}
return(0);
}
รบกวนแก้ไขให้นิดนะคะ ขอบคุณค่ะ