上出下買+三背離(原創(chuàng):浩申)分析家版
{上出下買+三背離 原創(chuàng):浩申 } 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)<b,b,ma(close,17)),colorff00ff,linethick2; pma:=分水嶺; dd:=分水嶺<ref(分水嶺,1); Partline(分水嶺,dd,rgb(0,255,0)),linethick2;
操作線:2*分水嶺-ema(c,3),color00ffff,linethick2; 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<ref(pm,1)),colorff9900,linethick2;
drawicon(cross(分水嶺,操作線),分水嶺-0.1,1); 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;
c1:=barslast(ref(cross("macd.dea","macd.diff"),1)); d1:=ref(c,c1+1)<c and ref("macd.diff",c1+1)>"macd.diff" and cross("macd.dea","macd.diff"); drawtext(d1>0,h+0.16,‘★m‘),color00ff00; c2:=barslast(ref(cross("kdj.d","kdj.k"),1)); d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k"); drawtext(d2>0,h+0.08,‘◎k‘),colorffffcc; c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1)); d3:=ref(c,c3+1)<c and ref("rsi.rsi1",c3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1"); drawtext(d3>0,h+0.04,‘◆r‘),colorff9900; ;
圖片附件: 0.png (2006-10-4 22:43, 7.49 K)
|
|
|