源码
a:=ma(close,17)+abs(ma(close,17)-ref(ma(close,17),1));
b:=ma(close,17)+ma(close,17)-ref(ma(close,17),1);
分水岭:if(ma(close,17)
pma:=分水岭;
dd:=分水岭
Partline(分水岭,dd,rgb(0,255,0)),linethick2;
操作线:2*分水岭-ema(c,3),color00ffff,linethick2; drawicon(cross(分水岭,操作线),分水岭-0.1,1); c1:=barslast(ref(cross("macd.dea","macd.diff"),1));
s:=(pma>操作线);
PartLine(分水岭,s,rgb(0,255,0)),pointdot,linethick4;
pm:ma(c,5),colorffffcc,linethick2;
PartLine(pm,pm>=ref(pm,1)),colorred,linethick2;
PartLine(pm,pm
a1:=barslast(ref(cross("macd.diff","macd.dea"),1));
b1:=ref(c,a1+1)>c and ref("macd.diff",a1+1)<"macd.diff" and cross("macd.diff","macd.dea");
drawtext(b1>0,l-0.02,'★m'),color00ffff;
a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
b2:=ref(c,a2+1)>c and ref("kdj.k",a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
drawtext(b2,l-0.10,'◎k'),colorff00ff;
a3:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1",a3+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
drawtext(b3>0,l-0.18,'◆r'),color0000ff;
d1:=ref(c,c1+1)
drawtext(d1>0,h+0.16,'★m'),color00ff00;
c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
d2:=ref(c,c2+1)
drawtext(d2>0,h+0.08,'◎k'),colorffffcc;
c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
d3:=ref(c,c3+1)