通达信非常好的操盘利器双重趋势显灵副图,源码
说明;自用【双重趋势显灵】(副图)无未来判断波段,短线操作的好公式,看趋势和智能提示‘低买高卖’操作,每波定会有小收获。稳赢不输不是神话!
珍缘惜缘,是非都是浮云,如何定夺那是你的事。
操盘【双重趋势显灵】(副图)源码:
VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,15);
动力线:= EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4);
趋势:MA(动力线,2);
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),3.5,0),COLOR000033;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2.8,0),COLOR000055;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2.0,0),COLOR000077;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),1.2,0),COLOR000099;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),0.4,0),COLOR0000DD;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),3.5,0),COLOR003300;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2.8,0),COLOR005500;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2.0,0),COLOR007700;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),1.2,0),COLOR009900;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),0.4,0),COLOR00DD00;
下跌趋势:IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK4;
上涨趋势:IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK4;
B:=趋势,COLORWHITE;
G:MA(B,2),COLORYELLOW,POINTDOT;
D:=CROSS(B,G)*1000,COLORRED;
W:=CROSS(G,B)*1000,POINTDOT,COLORBLUE;
DRAWTEXT(W=1000,B*1.05,'高卖' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,' 低买'),COLORFFFFFF;
低买:D,NODRAW,COLORFFFFFF;
高卖:W,NODRAW,COLOR00FF00;
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
短牛买:BT,NODRAW,COLOR0000FF;
STICKLINE(UP,0,0.2,3,0),COLOR0000FF;
STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;
STICKLINE(BT,0,3,2,0),COLOR000088;
STICKLINE(BT,0,3,1,0),COLOR0000CC;
STICKLINE(BT,0,3,0.22,0),COLOR0000FF;
DRAWTEXT(BT,3,' 短牛买'),COLOR0000FF;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
中牛买:TJ1,NODRAW,COLORFF00FF;
STICKLINE(TJ1,0,2,3,0),COLOR880088;
STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;
STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;
STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;
DRAWTEXT(TJ1,2,' 中牛买'),COLORFF00FF;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
大牛买:TJ2,NODRAW,COLOR00FFFF;
STICKLINE(TJ2,0,1,3,0),COLOR008888;
STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;
STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;
STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;
DRAWTEXT(TJ2,1,' 大牛买'),COLOR00FFFF;