当前位置:首页 > 同花顺公式 > 正文

同花顺多空K线趋势副图源码

2017-09-12网络 编 辑:翔博软件

强势线:80,DOTLINE,colorlicyan;
分水岭:50,DOTLINE,colorlicyan;
弱势线:20,DOTLINE,colorlicyan;
 RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 a=SMA(RSV,3,1);
 b=SMA(a,3,1);
 e=3*a-2*b;
 IF(a<0) a=0;
 IF(a>100) a=100;
 IF(b<0) b=0;
 IF(b>100) b=100;
 K:a,nodraw;
 D:b,nodraw;
 STICKLINE(K>=D,k,D,8,0), colormagenta;
 STICKLINE(K<D,k,d,8,0), colorgreen;
 DRAWICON(CROSS(K,D),d,1);
 DRAWICON(CROSS(d,k),d,2);
 VAR1:=REF(LOW,1);
 VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
 VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
 VAR4:=LLV(LOW,38);
 VAR5:=HHV(VAR3,38);
 VAR6:=IF(LLV(LOW,90),1,0);
 VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
 VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
 VAR9:=SMA(VAR8,13,8);
主力吸货:VAR7,colorred,nodraw;
 STICKLINE(主力吸货,50,80,3,0), colorred;
 Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
 Var2:=LLV(LOW,34);
 Var3:=HHV(HIGH,34);
 SK: EMA((Var1-Var2)/(Var3-Var2)*100,13),coloryellow;
 SD: EMA(SK,3),colorliblue;
 DRAWTEXT(CROSS(Sd,Sk) AND sk>80,90,"大顶"),coloryellow;
 jl:=MA(C,13)-MA(C,60);
 FILLRGN(20,25, MA(C,13)>MA(C,120) AND MA(C,60)>=MA(C,120) AND C>MA(C,13) AND jl>=REF(jl,1),colorred);
 FILLRGN(20,25, MA(C,13)>MA(C,120) AND MA(C,60)<=MA(C,120) AND C>MA(C,13) AND jl>=REF(jl,1),colorlired);
 FILLRGN(20,22, MA(C,13)>MA(C,60) AND MA(C,60)>MA(C,120) AND MA(C,120)>=MA(C,250) AND C>MA(C,13) AND jl>=REF(jl,1),coloryellow);
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),colormagenta;
大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标