通達信倉位主圖指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 停損
- 畫線方法: 主圖
- 日期:2023-11-28 來源:互聯網
通達信倉位主圖指標公式:
AA:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
BB:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
DD:=IF(BB,1,(AA<(DYNAINFO(5)+0.01) && AA>(DYNAINFO(6)-0.01)));
CB:=IF(DD,AMOUNT/VOL/100,(HIGH+LOW+OPEN+2*CLOSE)/5);T1:IF(DD,0.01*EXPMA(AMOUNT,3)/EXPMA(VOL,3),EMA((H+L+O+2*C)/5,3));
T2:IF(DD,0.01*EXPMA(AMOUNT,9)/EXPMA(VOL,9),EMA((H+L+O+2*C)/5,9));
T3:IF(DD,0.01*EXPMA(AMOUNT,17)/EXPMA(VOL,17),EMA((H+L+O+2*C)/5,17));
R:=IF(C>350,34,21);
A9:=ABS(CB-MA(CB,R))/MA(CB,R),NODRAW;
JJ:=IF(C>350,DMA(CB,A9)*0.97,DMA(CB,A9));
AAA:=SAR(13,2,20);
操盤線:IF(C>350,MA(T1,3),EMA((T1+T2)/2,2)),LINETHICK2,COLORWHITE;
GW:=IF((C>操盤線 AND C<JJ) OR (C>JJ AND C<操盤線),1,0);
持股1:=IF(GW=0 AND C>操盤線,C,DRAWNULL);
觀望1:=IF(GW=1,C,DRAWNULL);
持幣1:=IF(GW=0 AND C<操盤線,C,DRAWNULL);
倉位%:IF(持股1=C AND C>REF(C,1)*1.035,100,IF(持股1=C AND C>=REF(C,1) AND
C<REF(C,1)*1.035,85,IF(持股1=C AND C<=REF(C,1),75,IF(觀望1=C AND C>=REF(C,1)*1.025,50,
IF(觀望1=C AND C<REF(C,1)*1.025,35,IF(持幣1=C AND C>REF(C,1)*1.02,20,
IF(持幣1=C AND C<REF(C,1)*1.02 AND C>REF(C,1),10,0))))))),COLOR0099FF,NODRAW;
系數:=VOL/MA(VOL,21);
TB1:=IF(系數>1.5,1,0);
TB2:=IF(系數>1.2 AND 系數<1.5,1,0);
TB3:=IF(系數>=1.0 AND 系數<1.2,1,0);
TS1:=IF(系數<0.995,1 AND 系數>0.8,0);
TS2:=IF(系數<0.8 AND 系數>0.5,1,0);
TS3:=IF(系數<0.5,1,0);
放量1:STICKLINE(TB1=1,O,C,0.8,0),COLORRED;
放量2:STICKLINE(TB2=1,O,C,0.8,0),COLORFF00FF;
放量3:STICKLINE(TB3=1 ,O,C,0.8,0),COLOR0099FF;
縮量1:STICKLINE(TS1=1,O,C,0.8,1),COLORYELLOW;
縮量2:STICKLINE(TS2=1,O,C,0.8,1),COLORBLUE;
縮量3:STICKLINE(TS3=1,O,C,0.8,1),COLORGREEN;
上軌:JJ*1.12,COLORLIBLUE,LINETHICK2;
中軌:JJ,COLORLIGRAY,LINETHICK2;
下軌:JJ*0.88,COLORLICYAN,LINETHICK2;
持股線:IF(C>=AAA,操盤線,DRAWNULL),LINETHICK2,COLORLIRED;
持幣線:IF(C<AAA,操盤線,DRAWNULL),LINETHICK2,COLORGREEN;
曙光初現:=BACKSET(REF(C,1)/REF(O,1)<0.97 AND C/O>1.03 AND O<REF(C,1) AND C>REF(C,1),2);
STICKLINE(曙光初現,L,H,0.5,0),COLORWHITE;
R1:=EMA(EMA(CLOSE,9),6);
控盤:=(R1-REF(R1,1))/REF(R1,1)*500;
R2:=100*WINNER(CLOSE*0.95);
拉升錢袋:DRAWICON(((C>O OR C>REF(C,1)*1.05) AND R2>45
AND COST(80)<CLOSE AND 控盤>0 AND 控盤>REF(控盤,1) AND C>REF(C,1)),L*0.96,9);
粘合上穿:=MAX(MAX(T1,T2),T3)/MIN(MIN(T1,T2),T3)<1.025 AND CROSS(T1,MAX(T2,T3));
DRAWTEXT(粘合上穿 AND (T1+T2+T3)>REF(T1+T2+T3,1),L*0.97,'注意'),COLOR0099FF;
通達信倉位主圖指標公式實例圖解:
通達信倉位主圖指標公式