Kase Peak振荡副图指标源码

[复制链接]
查看53 | 回复0 | 2022-7-24 06:27:14 | 显示全部楼层 |阅读模式

Kase Peak振荡副图指标源码

N:=8;
 TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
 ATR:=MA(TR,N);
 RWH:=(C-REF(L,N))/(ATR);
 RWL:=(REF(H,N)-C)/(ATR);
 PK:=MA((3*(RWH-C)+2*REF((RWH),1)+1*REF((RWH-3),2))/(3+2),3);
 KCD:=PK-MA(PK,N);
 SD:=SQRT(VAR(KCD,N));
 {MADE BY 风尘秀吉}
VAL2:=1;VAL1:=1;
 LN1:IF(REF(KCD,1)>=0 AND KCD>0,VAL1,IF(REF(KCD,1)<=0 AND
 KCD<0,VAL2,0));
 STICKLINE(1,IF(REF(KCD,1)>KCD,KCD,0),0,0.5,1),COLORGREEN;
 STICKLINE(1,IF(KCD>REF(KCD,1),KCD,0),0,0.5,1),COLORRED;

 

出现错误提示将下面两句中的“TR”改为“TR1”即可通过
TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
 ATR:=MA(TR,N);

856444355.jpg

856444355.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则