筹码穿越 源码分享

 2022-07-11 09:41:34    通达信指标网  

风险线:=MA(CLOSE,13);
止损线:=MA(CLOSE,27);
界:=MA(CLOSE,21);
界升:IF(界>REF(界,1),界,DRAWNULL),POINTDOT,COLORRED,LINETHICK2;
界降:IF(界<REF(界,1),界,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK2;
DK:=MA(((SLOPE(C,5))+C),5);
TRT:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TRT,5);
KX:HHV(H-2*ATR,10)COLORFF00FF;
DX:LLV(L+2*ATR,10)COLORGREEN;
主升浪:CROSS(C,止损线) AND 止损线>风险线;
DRAWTEXT(CROSS(MA(C,5),界),L*0.99,'◇底背离'),COLORWHITE;
DRAWTEXT(CROSS(C,止损线) AND 止损线>风险线,L*0.97,'主升浪'),COLORYELLOW;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA5:=MA(CLOSE,5);
DIFF:=(EMA(J,8) - EMA(J,16));
DEA:=EMA(DIFF,5);
MACDG:=2*(DIFF-DEA);
VA1:=HHVBARS(H,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
高A:DRAWLINE(VA2,H,ISLASTBAR,REF(H,BARSLAST(VA2)),1),COLOR00FF00,POINTDOT,LINETHICK4;
DRAWNUMBER(ISLASTBAR,高A,高A),COLORWHITE;
VA3:=LLVBARS(L,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);
低A:DRAWLINE(VA4,L,ISLASTBAR,REF(L,BARSLAST(VA4)),1),COLORWHITE,POINTDOT,LINETHICK4;
DRAWNUMBER(ISLASTBAR,低A*1.05,低A),COLORWHITE;
DRAWTEXT(VA4,低A*1.01,'★'),COLOR0000FF;

均价:=(OPEN+HIGH+LOW+CLOSE)/4,COLORBLUE;
{量能平台7:=REF(均价,BARSLAST(V=HHV(V,7))),COLORWHITE;
量能平台9:=REF(均价,BARSLAST(V=HHV(VOL,9))),COLORYELLOW;
量能平台49:=REF(均价,BARSLAST(V=HHV(VOL,49))),COLOR871F78;}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);


量能平台81:REF(均价,BARSLAST(V=HHV(VOL,81))),COLORRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

重心:=((H+L)/2*0.191+(C+(0.618*O+0.382*REF(C,1)))/2*0.809); 
相对高:=(0.382*重心+0.618*H); 相对低:=(0.382*重心+0.618*L); 
相对中:=(相对高+相对低)/2;
折价:=(0.618*相对中+0.382*C); 
FX:=MA(相对中,3)+MA((折价-相对中),3); 
CBS:=EMA(((COST(99)+COST(79))/2+COST(89))/2,13);
CB:=EMA((((COST(80.9)+COST(19.1))/2+(COST(61.8)+COST(38.2))/2)/2+COST(50))/2,13);
CBX:=EMA(((COST(6)+COST(16))/2+COST(11))/2,13); 
CBGJ:=((CB/CBX-1)+(CB/CBS-1))*100; 
CBQJ:=(FX-CB)/(CBS-CBX)*(100);
筹码穿越:=CROSS(CBQJ,CBGJ);
STICKLINE(筹码穿越,L,L*0.995,2,0),COLORYELLOW;

筹码重心:IF(CURRBARSCOUNT<INTPART(PPART(4)*100/2),CONST(COSTEX(REF(C,3),REF(C,4)))*1.03,DRAWNULL),COLORCYAN,DOTLINE;


  •  标签:  

原文链接:https://www.tdxzb.com/?id=421

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服