通達信五里短線買賣指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 策略
- 畫線方法: 主圖
- 日期:2022-11-30 來源:互聯網
通達信五里短線買賣指標公式:
VAR1:=(H+L+O+3*C)/6;
WLT:=EMA(VAR1,3);
WLTA:=EMA(WLT,1),COLORFFFFFF;
空:HHV(MA(H,3),2),LINETHICK2,COLOR00DD00;
多:LLV(MA(H,3),1),LINETHICK2,COLOR0000DD;
JCBT:=LAST(多<空,9,1) AND 多=空;
STICKLINE(JCBT,O,(O+C)/2,4,0),COLOR0000FF;
DRAWTEXT(JCBT,L*0.98,'短B'),COLOR0000FF;
{超跌反彈買點}
VARA:=(C-REF(O,21))/REF(O,21)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
WLBT1:=V>=1.3*MA(V,5) AND REF(L,1)=LLV(L,55) AND VARA>=VARB AND VARA<-6.18;
WLBT2:=V>=1.3*MA(V,5) AND CROSS(VARA,VARB) AND VARA<-10.18;
WLBT:=WLBT1 OR WLBT2;
DRAWTEXT(WLBT,L*0.98,'反彈'),COLOR00FFFF;
STICKLINE(WLBT,C,O,3,0),COLOR00FFFF;
{賣點設置}
S1:=EMA(EMA(EMA(C,8),13),55);
S2:=(REF(H,1)+REF(L,1))/2;
S3:=MA(C,21)+2*STD(C,21);
ST11:=CROSS(S2,S3);
S4:=REF(C,1);
S5:=SMA(MAX(C-S4,0),7,1)/SMA(ABS(C-S4),7,1)*100;
S6:=CROSS(80,S5);
ST2:=FILTER(S6,5);
V1:=EMA(EMA(EMA(C,8),13),55);
V2:=(REF(H,1)+REF(L,1))/2;
V3:=MA(C,21)+2*STD(C,21);
V4:=REF(C,1);
V5:=SMA(MAX(C-V4,0),7,1)/SMA(ABS(C-V4),7,1)*100;
V6:=CROSS(80,V5);
ST:=FILTER(V6,5);
DRAWICON(ST11,H*1.030,19);
DRAWICON(ST2,HIGH*1.033,12);
DRAWTEXT(ST OR CROSS(V2,V3),HIGH*1.02,'賣'),COLORGREEN;
{乖離共振買點}
BIAS6:=(C-MA(C,6))/MA(C,6)*100;
BIAS12:=(C-MA(C,12))/MA(C,12)*100;
BIAS24:=(C-MA(C,24))/MA(C,24)*100;
TJ1:=BIAS6<=-8;
TJ2:=BIAS12<=-12;
TJ3:=BIAS24<=-18;
BBT:=(TJ1 AND TJ2 AND TJ3) OR (TJ1 AND TJ2 ) OR (TJ1 AND TJ3);
BTJ5:=CROSS(BIAS6,-10);
BTJ6:=CROSS(BIAS6,-6.2);
BIASXG:=FILTER(BBT OR BTJ5 OR BTJ6,3);
STICKLINE(BIASXG,C,O,0.11,0),COLOR0078FF;
DRAWTEXT(BIASXG,L*0.98,'BIAS'),COLOR0078FF;
{以上3組信號綜合或共振買點}
WLTBT:=COUNT(WLBT OR JCBT OR BIASXG,2);
XG1:=WLTBT>=2;
XG:=FILTER(XG1,3);
DRAWTEXT(XG,L*0.99,'金牛'),COLOR00FFFF;
{選股及成功率統計}
年選股:SUM(XG,250),NODRAW;
設定利潤:=REF(XG,20) AND HHV(H,20)>=REF(C,20)*1.15;{20個交易日內漲15%}
成功數:SUM(設定利潤,250),NODRAW;
成功率%:成功數/年選股*100,NODRAW;
{基本面技術面數據解盤}
套牢盤%:=100*(1-WINNER(C));
獲利盤%:=100*WINNER(C);
集中度90%:=(COST(95)-COST(5))/(COST(100))*100;
集中度70%:=(COST(85)-COST(15))/(COST(100))*100;
平均成本:=COST(50);
主力成本:=COST(5);
最高:=HHV(H,21);
最低:=LLV(L,21);
PT:=REF(HIGH,1)-REF(LOW,1);
中價:=(H+L+C)/3;
近高:=2*中價-LOW;
近低:=2*中價-HIGH;
短期壓力:=中價+PT;
短期支撐:=中價-PT;
DRAWTEXT_FIX(1,0.02,0.00,0,'【獲利盤%】'),COLORRED;
DRAWTEXT_FIX(1,0.02,0.06,0,'【套牢盤%】'),COLOR00FF00;
DRAWTEXT_FIX(1,0.02,0.12,0,'【90%成本】'),COLORYELLOW;
DRAWTEXT_FIX(1,0.02,0.18,0,'【70%成本】'),COLOR008FFF;
DRAWTEXT_FIX(1,0.02,0.24,0,'【平均成本】'),COLORFF99FF;
DRAWTEXT_FIX(1,0.02,0.30,0,'【主力成本】'),COLORFF00FF;
DRAWTEXT_FIX(1,0.02,0.36,0,'【短期壓力】'),COLORFFFFBF;
DRAWTEXT_FIX(1,0.02,0.42,0,'【短期支撐】'),COLORF0F000;
DRAWTEXT_FIX(1,0.3,0.00,0,'【中價】'),COLORWHITE;
DRAWTEXT_FIX(1,0.3,0.06,0,'【近高】'),COLORFFFFBF;
DRAWTEXT_FIX(1,0.3,0.12,0,'【近低】'),COLORF0F000;
DRAWTEXT_FIX(1,0.3,0.18,0,'【最高】'),COLORFF99FF;
DRAWTEXT_FIX(1,0.3,0.24,0,'【最低】'),COLORFF00FF;
DRAWNUMBER_FIX(1,0.16,0.00,0,CONST(獲利盤%)),COLORRED;
DRAWNUMBER_FIX(1,0.16,0.06,0,CONST(套牢盤%)),COLOR00FF00;
DRAWNUMBER_FIX(1,0.16,0.12,0,CONST(集中度90%)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.16,0.18,0,CONST(集中度70%)),COLOR008FFF;
DRAWNUMBER_FIX(1,0.16,0.24,0,CONST(平均成本)),COLORFF99FF;
DRAWNUMBER_FIX(1,0.16,0.30,0,CONST(主力成本)),COLORFF00FF;
DRAWNUMBER_FIX(1,0.16,0.36,0,CONST(短期壓力)),COLORFFFFBF;
DRAWNUMBER_FIX(1,0.16,0.42,0,CONST(短期支撐)),COLORF0F000;
DRAWNUMBER_FIX(1,0.38,0.00,0,CONST(中價)),COLORWHITE;
DRAWNUMBER_FIX(1,0.38,0.06,0,CONST(近高)),COLORFFFFBF;
DRAWNUMBER_FIX(1,0.38,0.12,0,CONST(近低)),COLORF0F000;
DRAWNUMBER_FIX(1,0.38,0.18,0,CONST(最高)),COLORFF99FF;
DRAWNUMBER_FIX(1,0.38,0.24,0,CONST(最低)),COLORFF00FF;
DRAWTEXT_FIX(1,0.5,0.0,0,'【每股收益 (元)】:'),COLOR0000FF;
DRAWNUMBER_FIX(1,0.63,0.00,0,FINANCE(33)),COLOR0000FF;
DRAWTEXT_FIX(1,0.5,0.06,0,'【每股凈資產(元)】:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.63,0.06,0,FINANCE(34)),COLOR00FFFF;
BHD:=(AMOUNT/C)/HHV((AMOUNT/C),26)*100;
DRAWTEXT_FIX(1,0.5,0.12,0,'【量能飽和度