源码
{参数:N-1-50-(6.5);
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;
STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;
STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;
上线:=sma(c,n,1);
下线:=sma(c,m,1);
STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),colorred,linethick2;
stickline(下线>上线,上线,下线,2.5,0),coloryellow,linethick2;
DRAWTEXT( cross(上线,下线),low ,'☆买入' ),color00ff00;
drawtext(cross(下线,上线),h,'☆卖出'),colormagenta;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:BBI+3*STD(BBI,10);
DWN:BBI-3*STD(BBI,10);
安全:MA(CLOSE,60),linethick2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(DATE>700101 and
A7:=(2*C+H+L)/4;
Var1:=LLV(LOW,34);
Var2:=HHV(HIGH,34);
SK:=EMA((A7-Var1)/(Var2-Var1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
Var3:=LLV(LOW,120);
Var4:=HHV(HIGH,60);
Var5:=Var4-Var3;
最低: Var3;
最高: Var4,linethick2;
DRAWTEXT(IF(count(closeq/10 and vol>=1.5*ma(vol,5) and
count(sk>=sd,3) and ref(low,1)=LLV(Low,120),1,0),LOW,'买进'),COLOR0099ff;
DRAWTEXT(IF(count(close6/10 and
count(sk>sd,6) and ref(low,5)=LLV(Low,120) and ref(close>=open,4) and
ref(close>open,3) and REF(CLOSE>OPEN,2) AND
open>ref(close,1),1,0),LOW,'买进') COLOryellow;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(if(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE
A1:=(EMA(CLOSE,2.7)+MA(CLOSE,6)+MA(CLOSE,10.8))/3;
A2:=(EMA(CLOSE,3)+MA(CLOSE,7.5)+MA(CLOSE,13))/3;
A3:=(EMA(CLOSE,4)+MA(CLOSE,8.5)+MA(CLOSE,16.5))/3;
A4:=(EMA(CLOSE,4.8)+MA(CLOSE,10.2)+MA(CLOSE,18.6))/3;
A5:=(EMA(CLOSE,6.5)+MA(CLOSE,11.8)+MA(CLOSE,21))/3;
A6:=(EMA(CLOSE,7)+MA(CLOSE,13.5)+MA(CLOSE,23))/3;