{kdj买卖分明}
Var1:=HHV(HIGH,3);
 Var2:=(IF(WINNER(1.1*CLOSE)<0,0,WINNER(1.1*CLOSE))-IF(WINNER(0.9*
 CLOSE)<0,0,WINNER(0.9*CLOSE)))*100;
 Var3:=IF(Var1<0,0,Var1);
 Var4:=IF(Var2<0,0,Var2);
 v1:=llv(low,10);
 v2:=hhv(h,25);
价位线:=ema((c-v1)/(v2-v1)*4,4);
买入:STICKLINE(cross(价位线,0.3),50,0,5,0), COLOR00CCff,LINETHICK1;
卖出:STICKLINE(cross(3.5,价位线),50,100,5,0), colorred,LINETHICK2;
 k9:"kdj.k"(9,3,3),color00ffff;
 d9:"kdj.d"(9,3,3),color0000ff;
 j9:"kdj.j"(9,3,3),colorff99ff;
 {KDJ看波段xg}
 ma8:=EMA(C,8);
 ma20:=EMA(c,20);
 rsv9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K9a:= SMA(rsv9,3,1);
 D9a:= SMA(K9a,3,1);
 J9a:=3*K9a-2*D9a;
 aa:=count(cross(ma8,ma20),3)>=1 and d9a<50 and k9a>ref(k9a,1) and
 d9a>ref(d9a,1) and
 count(cross(j9a,k9a),3)>=1 and c>o and v>ref(v,1)*1.3;
 KDJ看波段xg:if(aa,50,0),colorred,stick,linethick5;
 v0:0,color00ff00;
 v20:20,color00ff00,pointdot;
 v50:50,color00ff00;
 v80:80,color00ff00,pointdot;
 v100:100,color00ff00;
 DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,20,1); {未来函数}
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,90,2);{未来函数}


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。