幅图源码:
波段:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 波段A:=SMA(波段,6.3,1);
峰谷:SMA(波段A,3,1),COLORFF00FF;
波段B:=3*波段A-2.1*峰谷; 空方:=3*峰谷-1* 波段A;
做空:IF(空方>波段B,波段B,空方),LINETHICK2,COLOR00FF00;
多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3;
空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3;
短线CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;
中线CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;
荭点:SMA(短线,3,1),LINETHICK0,COLOR0000FF;
绿点:SMA(中线,3,1),COLORSTICK,COLORFFFF00;
STICKLINE(荭点<REF(荭点,1)AND 荭点>0,0,荭点,2,0),COLOR888800;
STICKLINE(荭点<REF(荭点,1)AND 荭点>0,0,荭点,1.5,0),COLORAAAA00;
STICKLINE(荭点<REF(荭点,1)AND 荭点>0,0,荭点,0.8,0),COLORDDDD00;
STICKLINE(荭点<REF(荭点,1)AND 荭点>0,0,荭点,0.3,0),COLORFFFF00;
STICKLINE(荭点>REF(荭点,1)AND 荭点>0,0,荭点,2,0),COLOR000088;
STICKLINE(荭点>REF(荭点,1)AND 荭点>0,0,荭点,1.5,0),COLOR0000AA;
STICKLINE(荭点>REF(荭点,1)AND 荭点>0,0,荭点,0.8,0),COLOR0000DD;
STICKLINE(荭点>REF(荭点,1)AND 荭点>0,0,荭点,0.3,0),COLOR0000FF;
STICKLINE(绿点<REF(绿点,1) AND 绿点>0,0,绿点,2,0),COLOR008800;
STICKLINE(绿点<REF(绿点,1) AND 绿点>0,0,绿点,1,0),COLOR00AA00;
STICKLINE(绿点<REF(绿点,1) AND 绿点>0,0,绿点,0.8,0),COLOR00DD00;
STICKLINE(绿点<REF(绿点,1) AND 绿点>0,0,绿点,0.3,0),COLOR00FF00;
STICKLINE(荭点>REF(荭点,1)AND 荭点<0,0,荭点,2,0),COLOR880088;
STICKLINE(荭点>REF(荭点,1)AND 荭点<0,0,荭点,1.5,0),COLORAA00AA;
STICKLINE(荭点>REF(荭点,1)AND 荭点<0,0,荭点,0.8,0),COLORDD00DD;
STICKLINE(荭点>REF(荭点,1)AND 荭点<0,0,荭点,0.3,0),COLORFF00FF;
STICKLINE(荭点<REF(荭点,1)AND 荭点<0,0,荭点,2,0),COLOR888800;
STICKLINE(荭点<REF(荭点,1)AND 荭点<0,0,荭点,1.5,0),COLORAAAA00;
STICKLINE(荭点<REF(荭点,1)AND 荭点<0,0,荭点,0.8,0),COLORDDDD00;
STICKLINE(荭点<REF(荭点,1)AND 荭点<0,0,荭点,0.3,0),COLORFFFF00;
STICKLINE(绿点>REF(绿点,1)AND 绿点<0,0,绿点,2,0),COLOR009999;
STICKLINE(绿点>REF(绿点,1)AND 绿点<0,0,绿点,1.5,0),COLOR00BBBB;
STICKLINE(绿点>REF(绿点,1)AND 绿点<0,0,绿点,0.8,0),COLOR00DDDD;
STICKLINE(绿点>REF(绿点,1)AND 绿点<0,0,绿点,0.3,0),COLOR00FFFF;
R200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
R300:=SMA(SMA(R200,3,1),3,1)/28.57;
R400:=EMA(R300,5);
操盘:=3*R300-2*R400;
启动:=CROSS(操盘,R300) AND R300<2.1 AND C>O;
STICKLINE(启动,5,0,4,0),COLOR770077;
STICKLINE(启动,5,0,3,0),COLOR990099;
STICKLINE(启动,5,0,2,0),COLORBB00BB;
STICKLINE(启动,5,0,1,0),COLORDD00DD;
STICKLINE(启动,5,0,0.3,0),COLORFF00FF;
DRAWTEXT(启动,5.2,'全仓'),COLORRED;
选股源码:
波段:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 波段A:=SMA(波段,6.3,1); 峰谷:=SMA(波段A,3,1),COLORFF00FF; 波段B:=3*波段A-2.1*峰谷; 空方:=3*峰谷-1* 波段A; 做空:=IF(空方>波段B,波段B,空方),LINETHICK2,COLOR00FF00; 多头:=IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; 空头:=IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; 短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE; 中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW; R200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; R300:=SMA(SMA(R200,3,1),3,1)/28.57; R400:=EMA(R300,5); 操盘:=3*R300-2*R400; 启动:CROSS(操盘,R300) AND R300<2.1 AND C>O;
|