N:=5;
VAR2:=LLV(LOW,N);
VAR3:=HHV(HIGH,N);
rsv:=(CLOSE-VAR2)/(VAR3-VAR2)*100;
K:SMA(rsv,3,1);
D:SMA(K,3,1),colorblue;
PARTLINE(D,D>REF(D,1),colorred,D<=REF(D,1),colorliblue),LINETHICK1;
J:3*K-2*D,colorlired;
{"K值柱状线";}
STICKLINE(K>REF(K,1),K ,REF(K,1),6,0),colorred;
STICKLINE(K<=REF(K,1),K ,REF(K,1),6,0),colorgreen;
{"强弱分区";}
顶:100,coloryellow;
强势区:80,colorgray;
强弱分界:50,coloryellow;
弱势区:20,colorgray;
底:0,colorred;
{"买入信号";}
企稳:IF((K>REF(K,1)) AND (REF(K,1)<=REF(K,2)) AND (REF(K,2)<=REF(K,3)),5,0),colorgray;
低位启动:IF((D>REF(D,1)) AND (REF(D,1)<=REF(D,2)) AND K<20,5,0),coloryellow;
//DRAWICON(crOSS(K,D) AND K>REF(K,1) AND k>=20,REF(K,1)*0.96,1);
{"卖出信号";}
高位下跌:IF((D<REF(D,1)) AND (REF(D,1)>=REF(D,2)) AND K>80,95,100),colorgreen;
//高位死叉:DRAWICON(CROSS(D,K) AND K<REF(K,1) AND K>80,REF(K,1)*1.1,6);
//DRAWICON(CROSS(D,K) AND K<REF(K,1) AND K<=80,REF(K,1)*1.02,2);

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