《股票-通达信风险量化组合趋势投资指标公式.docx》由会员分享,可在线阅读,更多相关《股票-通达信风险量化组合趋势投资指标公式.docx(6页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、通达信风险量化组合趋势投资指标公式_正点财经年:=1+(BARSLAST(YEAR!=REF(YEAR,1)ORDATETODAY(DATE)=1);天数:=IF(PERIOD=5,年,DRAWNULL);高1:=HHV(H,天数);低1:=LLV(L,天数);风险量化:(C-低1)/(高1-低1)*100,NODRAW,COLORYELLOW;振幅:=(高1-低1)/低1*100,NODRAW,COLORWHITE;顶部:=CONST(高1),NODRAW,COLORYELLOW;筑底:=CONST(低1),NODRAW,COLOR00FF00;步入风险区:=CONST(高1-(高1-低1)
2、*1/3),NODRAW,COLORRED;邰氏盈利:=CONST(高1-(高1-低1)*1/2),NODRAW,COLORWHITE;弱势区:=CONST(高1-(高1-低1)*2/3),NODRAW,COLOR0099FF;STICKLINE(C0,CONST(高1-(高1-低1)*1/4),CONST(高1-(高1-低1)*1/4),2,0),COLORFF00FF;STICKLINE(C0,CONST(高1-(高1-低1)*3/4),CONST(高1-(高1-低1)*3/4),2,0),COLORFF00FF;STICKLINE(C0,顶部,顶部,10,0),COLORYELLOW,L
3、INETHICK2;STICKLINE(C0,筑底,筑底,10,0),COLOR00FF00,LINETHICK2;STICKLINE(C0,步入风险区,步入风险区,10,0),COLORRED,LINETHICK2;STICKLINE(C0,邰氏盈利,邰氏盈利,10,0),COLORWHITE;STICKLINE(C0,弱势区,弱势区,10,0),COLOR0099FF;N:=12;DP:=(H+L+2*C)/4;DK:=(EMA(DP,12)-EMA(DP,50);RC:=筑底;STICKLINE(DK0ANDDKREF(DK,1),RC,RC+DK,1,0),COLOR00CC00;ST
4、ICKLINE(DK0ANDDK=REF(DK,1),RC,RC+DK,1,1),COLORLIBLUE;STICKLINE(DK0ANDDKREF(DK,1),RC,RC+DK,1,0),COLOR00CC00;STICKLINE(DK0ANDDK=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;切忌进场:=DM
5、A(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)*100100,100,(AMOUNT/C)/(HHV
6、(AMOUNT,21)/HHV(C,21)*100);STICKLINE(量H=100,L,H,0.4,0),COLORMAGENTA;STICKLINE(量H=100ANDC=O,C,O,4,1),COLORGREEN;STICKLINE(量H=100ANDCO,C,O,4,0),COLORBLUE;ZDF:=(C-REF(C,1)/REF(C,1)*100;STICKLINE(ZDF9.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
7、(高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.1AND邰财神:IF(杰,LLV(L,21),DRAWNULL),COLORBROWN,LINETHICK6;DRAWTEXT(FILTER(CROSS(趋势为空,切忌进场),144),RC*0.95,多空为主持股与否做确认结合先知A进场快进快出)COLORCYAN;通达信风险量化组合趋势投资指标公式实例图解:通达信风险量化组合趋势投资指标公式