通達信風險量化組合趨勢投資指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 主圖
- 日期:2019-08-10 來源:互聯(lián)網(wǎng)
通達信風險量化組合趨勢投資指標公式:
年:=1+(BARSLAST(YEAR!=REF(YEAR,1) OR DATETODAY(DATE)=1));
天數(shù):=IF(PERIOD=5,年,DRAWNULL);
高1:=HHV(H,天數(shù));
低1:=LLV(L,天數(shù));
風險量化:(C-低1)/(高1-低1)*100,,NODRAW,COLORYELLOW;
振幅:=(高1-低1)/低1*100,NODRAW,COLORWHITE;
頂部:=CONST(高1),NODRAW,COLORYELLOW;
筑底:=CONST(低1),NODRAW,COLOR00FF00;
{步入風險區(qū):=CONST(高1-(高1-低1)*1/3),NODRAW,COLORRED;
☆邰氏盈利☆:=CONST(高1-(高1-低1)*1/2),NODRAW,COLORWHITE;
弱勢區(qū):=CONST(高1-(高1-低1)*2/3),NODRAW,COLOR0099FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*1/4),CONST(高1-(高1-低1)*1 /4),2,0),COLORFF00FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*3/4),CONST(高1-(高1-低1)*3 /4),2,0),COLORFF00FF;
STICKLINE(C>0,頂部,頂部,10,0),COLORYELLOW,LINETHICK2;
STICKLINE(C>0,筑底,筑底,10,0),COLOR00FF00,LINETHICK2;
STICKLINE(C>0,步入風險區(qū),步入風險區(qū),10,0),COLORRED,LINETHICK2;
STICKLINE(C>0,☆邰氏盈利☆,☆邰氏盈利☆,10,0),COLORWHITE;
STICKLINE(C>0,弱勢區(qū),弱勢區(qū),10,0),COLOR0099FF;}
N:=12;
DP:=(H+L+2*C)/4;
DK:=(EMA(DP,12)-EMA(DP,50));
RC:=筑底;
STICKLINE(DK>0 AND DK>REF(DK,1),RC,RC+DK,1,0),COLOR00CC00;
STICKLINE(DK>0 AND DK<=REF(DK,1),RC,RC+DK,1,1),COLORLIBLUE;
STICKLINE(DK<0 AND DK>REF(DK,1),RC,RC+DK,1,0),COLOR00CC00;
STICKLINE(DK<0 AND DK<=REF(DK,1),RC,RC+DK,1,0),COLORLIBLUE;
DN:=ABS(CLOSE-REF(CLOSE,N));
VY:=SUM(ABS(CLOSE-REF(CLOSE,1)),N);
ER:=DN/VY;
FSC:=2/(2+1);
SSC:=2/(N+1);
SC:=ER*(FSC-SSC)+SSC;
SCSQ:=SC*SC;
切忌進場:=DMA(DP,SCSQ),COLORBLUE,LINETHICK2;
持股待漲:IF(切忌進場>EMA(切忌進場,3)=1,切忌進場,DRAWNULL),COLOR00FF00,LINETHICK3;
趨勢為空:EMA(DP,50),COLORCYAN,LINETHICK2;
趨勢為多:IF(趨勢為空>MA(DP,48),趨勢為空,DRAWNULL),COLORRED,LINETHICK3;
BUY2:=切忌進場 > EMA(切忌進場,3);
DRAWKLINE(H,O,L,C);
量H:=IF((AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100>100,100,(AMOUNT/C) /(HHV(AMOUNT,21)/HHV(C,21))*100);
STICKLINE(量H=100,L,H,0.4,0),COLORMAGENTA;
STICKLINE(量H=100 AND C>=O,C,O,4,1),COLORGREEN;
STICKLINE(量H=100 AND C<O,C,O,4,0),COLORBLUE;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,1,0),COLORGREEN;
STICKLINE(ZDF<-9.8,O,C,1,0),COLORBLUE;
{Q43:=CONST(高1-(高1-低1)*1/4),NODRAW;
Q41:=CONST(高1-(高1-低1)*3/4),NODRAW;
DK1:=DK+RC;
M20:=MA(DK1,20);
S:=STD(DK1,20);
高:=M20+2*S;
低:=M20-2*S;
上:= 高,COLORFFFF00;
下:= 低,COLORFFFF00;
DRAWTEXT(CROSS(高,DK1),高,'★'),COLOR00FF00;
DRAWICON(CROSS(DK1,高),H+0.3,2);
{DRAWTEXT(CROSS(DK1,低),低,'▲'),COLOR00FF00;
DRAWICON(CROSS(低,DK1),L-0.3,1);};
邰:=EMA(CLOSE,12)-EMA(CLOSE,26);
小:=EMA(邰,9);
杰:=(邰<-0.1 AND 邰>小);
財神:IF(杰,LLV(L,21),DRAWNULL),COLORBROWN,LINETHICK6;
DRAWTEXT(FILTER(CROSS(趨勢為空,切忌進場),144),RC*0.95,'多空為主☆持股與否做確認結(jié)合先知A進場 快進快出')COLORCYAN;
通達信風險量化組合趨勢投資指標公式實例圖解:
通達信風險量化組合趨勢投資指標公式