指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:背离大全公式 飞狐背离指标 源码
diff:ema(close,12)-ema(close,26);
dea:ema(diff,9),colorff;
macd:2*(diff-dea),colorstick;
d1:=ema(close,3)-ema(close,8);
d2:=ema(open,3)-ema(open,8);
d3:=ema(high,3)-ema(high,8);
d4:=ema(low,3)-ema(low,8);
drawicon(cross(d1,diff) and diff<-0.05,d4-0.1,1);
drawicon(cross(diff,d1) and diff>0.1,d3+0.1,2);
stickline(d1>=d2,d1,d2,7,0),colorff00ff;
stickline(d1<=d2,d1,d2,7,0),colorff00;
a1:=barslast(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(close,a1+1)>close and ref("macd.diff"(12,26,9),a1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));
macd底背离:=filter(b1>0,5);
stickline(macd底背离,0,0.75,3,0),colorff00;
drawtext(macd底背离,0.57,'macd底背离'),colorff00;
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(close,a2+1)>close and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
kdj底背离:=filter(b2>0,5);
stickline(kdj底背离,0,1,3,0),colorffff;
drawtext(kdj底背离,0.8,'kdj底背离'),colorffff;
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(close,a3+1)>close and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
rsi底背离:=filter(b3>0,5);
stickline(rsi底背离,0,0.5,3,0),colorffcc66;
drawtext(rsi底背离,0.25,'rsi底背离'),colorffcc66;
2,colorff;
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
d1:=ref(close,c1+1)<close and ref("macd.diff"(12,26,9),c1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));
macd顶背离:=filter(d1>0,5);
stickline(macd顶背离,2,1.25,3,0),color66ff;
drawtext(macd顶背离,1.47,'macd顶背离'),color66ff;
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(close,c2+1)<close and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
kdj顶背离:=filter(d2>0,5);
stickline(kdj顶背离,2,1,3,0),colorff;
drawtext(kdj顶背离,1.2,'kdj顶背离'),colorff;
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(close,c3+1)<close and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
rsi顶背离:=filter(d3>0,5);
stickline(rsi顶背离,2,1.5,3,0),colorff00ff;
drawtext(rsi顶背离,1.75,'rsi顶背离'),colorff00ff;
底背离:macd底背离 or kdj底背离 or rsi底背离;
顶背离:macd顶背离 or kdj顶背离 or rsi顶背离;
>>>使用本站搜索工具可以找到更多“背离大全公式 飞狐背离指标 源码”