MA5: MA(CLOSE,5), ,COLORBBFFFF;
MA10:MA(CLOSE,10), ,COLORGREEN,LINETHICK2;
S:MA10+2*STD(CLOSE,10), ,COLORWHITE,LINETHICK2;
X:MA10-2*STD(CLOSE,10), ,COLORYELLOW,LINETHICK2;
MA30:MA(CLOSE,30), ,COLORRED;
{MA120: MA(CLOSE,120), ,COLORCC99CC;}
MA250: MA(CLOSE,250), ,COLOR3366FF;
{MA60:MA(CLOSE,60), ,COLORCYAN;}
卖出线:=98;
阶段卖:=96;
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=10;
买入警戒:STICKLINE(趋势<=10,HIGH,LOW,0.5,0),COLORFF9933;
STICKLINE(趋势<=10,OPEN,CLOSE,2,1),COLORFF9933;
买入信号RAWICON(CROSS(趋势,底部),LOW,1);
卖出警戒:STICKLINE(趋势>=阶段卖,HIGH,LOW,0.5,0),COLOR00FF00;
STICKLINE(趋势>=阶段卖,OPEN,CLOSE,3,1),LINETHICK2,COLOR00FF00;
卖出RAWICON(CROSS(卖出线,趋势),HIGH,2);
VB1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VB2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VB3:=VB1 AND VB2;
DRAWTEXT(VB3,LOW,'买入点'), ,COLORWHITE;
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.02,'落袋为安'), ,COLORWHITE;
V2:=REF(CLOSE,1);
V3:=SMA(MAX(CLOSE-V2,0),6,1)/SMA(ABS(CLOSE-V2),6,1)*100;
DRAWTEXT(CROSS(84,V3),HIGH*1.03,'见顶 '), ,COLORYELLOW;
V4:=SMA(MAX(CLOSE-V2,0),12,1)/SMA(ABS(CLOSE-V2),12,1)*100;
DRAWTEXT(CROSS(V4,20),LOW*0.98,'见底 '),COLORRED;
|