安全点KDJ(通达信公式 副图 源码 测试图)
通达信免费指标
12-20
阅读:708
评论:0
P1:=10; {这个参数调整为7不错}
P2:=4;
80, POINTDOT, COLORGREEN, LINETHICK4;
20, POINTDOT, COLORRED, LINETHICK4;
0, POINTDOT, COLORYELLOW, LINETHICK4;
VAR1:=LLV(LOW,P1);
VAR2:=HHV(HIGH,P1);
RSV:=(CLOSE-VAR1)/(VAR2-VAR1)*100;
K: EMA(RSV,P2),COLORWHITE;
D: EMA(0.667*REF(K,1)+0.333*K,2), COLORYELLOW;
J: 3*K-2*D, COLORFF00FF;
EMA3:=EMA(C,2.6);
EMA5:=EMA(C,5.1);
DRAWBAND (K, RGB(255,0,0), D, RGB(0,222,0)); {//填充浅红色}
{DRAWBAND (K
条件1:= CROSS(K,D) AND K<60;
DRAWTEXT(REF(J,1)=0 AND K<25, 60, '安全点现'),COLORRED;
{VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);
VARD:=EMA(IF(C< EMA(C,250),VARC*1000,VARC*10),3);
火焰山:=EMA(IF(L<=LLV(L,30),VARD/2+HHV(VARD,30),0),3)/618, COLOR99FFFF, LINETHICK2;
}
开心:=EMA(EMA(C,12)-EMA(C,25),2),COLORCC00CC,LINETHICK2;
短线交易:=EMA(开心,6),COLORD4FF7F,LINETHICK2;
系统:=(短线交易<(MA(C,3)*0.618/C))*短线交易 ,LINETHICK0;
WWW:=EMA(EMA(C,12)-EMA(C,25),2),COLORYELLOW,LINETHICK0;
XDKXGS:=EMA(开心,6),COLORYELLOW,LINETHICK0;
CN:=(短线交易<(MA(C,3)*0.618/C))*短线交易,COLORYELLOW ,LINETHICK0;
启动条件:=(系统 OR 短线交易<(MA(C,3)*0.618/C)) AND CROSS(开心 ,短线交易 ) AND V>REF( MA(V,5),1)*1.1 AND C>MA(C,125) AND C>REF(C,1)*1.02;
DRAWTEXT(启动条件 ,35,'↑通吃启动'),COLORRED;
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC1:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD1:=LLV(LOW,30);
VARE:=HHV(VARC1,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW<=VARD1,(VARC1+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG>28,28,VARG);
{黄柱吸筹区:STICKLINE(VARH>-120,0,VARH,6,0),COLOR0FFFFF;}
RSV1:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K1:=SMA(RSV1,3,1);
D11:=SMA(K1,3,1);
J11:=3*K1-2*D11;
X:=LLV(J11,2)=LLV(J11,8);
DRAWTEXT(BARSLAST(CROSS(J11,3))<6 AND 条件1,51,'跟庄'),COLORBLUE;
缺口:=DRAWLINE(REF(L,1)>H AND CH AND C
突破:CROSS(C,缺口) AND (C-REF(C,1))/REF(C,1)*100>5 AND DYNAINFO(4)>0, COLORBLUE;
{一定时跌,涨的不算,上涨的最高点到当前的周期数据 肯定大于 最小值到当前的周期数 }
N:=100;
下跌 := HHVBARS(HIGH, N) > LLVBARS(LOW, 6);
去停牌 := DYNAINFO(8)>0;
跌幅 := (HHV(HIGH, N) - LLV(LOW, 6)) / HHV(HIGH, N) ;
跌幅100 : 跌幅 * (下跌) * (去停牌) * 100;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!