编写要求:
www.gszx.com.cn网解答:
网友求助:
M:=17;
MID:EMA(CLOSE,M);
UPPER:MID+2*STD(CLOSE,M),COLORFF0000;
LOWER:MID-2*STD(CLOSE,M),COLORFF0000;
UPPER0:MID+3*STD(CLOSE,M),COLORFF0000;
LOWER0:MID-3*STD(CLOSE,M),COLORFF0000;
DRAWTEXT(HIGH>UPPER0 OR HIGH=UPPER0,HIGH*1.03,'卖出');
DRAWTEXT(LOW<LOWER0 OR LOW=LOWER0,LOW*0.99,'买进');
选股:=LOW<LOWER0 OR LOW=LOWER0;
解答如下:
M:=17;
MID:=EMA(CLOSE,M);
UPPER0:=MID+3*STD(CLOSE,M),COLORFF0000;
卖出:HIGH>UPPER0 OR HIGH=UPPER0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
M:=17;
MID:=EMA(CLOSE,M);
LOWER0:=MID-3*STD(CLOSE,M),COLORFF0000;
买进:LOW<LOWER0 OR LOW=LOWER0;