资源描述:
《【股票指标公式下载】-【通达信】风险评测优化(顶底线、趋势、当前安全度)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】风险评测优化(顶底线、趋势、当前安全度)■指标公式源码RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;RSVA2:二100*(IIHV(HIGH,9)-CLOSE)/(IIIIV(HIGH,9)-LLV(LOW,9));VAR21:=SMA(RSVA2,9,1)+100;VAR11:=SMA(RSVA1,3,1);VAR51:=SMA(VAR11,3,1)+100;顶底线:二VAR51-VAR21+50;VAR2:=LLV(L0W,33);VAR3:=HHV(HIGH,2
2、1);VAR4:二EMA((CL0SE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);STICKLINE(C,100,90,4,0),C0L0RFFCC33;STTCKLTNE(C,90,80,4,0),C0L0RFF9933;STICKLINE(顶底线〉REF(顶底线,1),20,80,4,0),C0L0R9999FF;STTCKLTNE(顶底线〈REF(顶底线,1),20,80,4,0),C0L0R009966;STICKLINE(
3、(趋势〉REF(趋势,1)AND顶底线〈REF(顶底线,1)),20,80,4,0),C0L0R9999FF;STICKLINE((趋势〈REF(趋势,1)ANI)顶底线〉REF(顶底线,1)),20,80,4,0),COLOR009966;STICKLINE(C,20,10,4,0),C0L0RFF6633;STICKLINE(C,10,0,4,0),C0L0RFF3333;底线:10,COLORWHITE;顶线:90,COLORWHITE;趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETH
4、ICK2,COLORBLUE;当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED;DRAWTEXT(CURRBARSC0UNT=6,5,'高安全区'),COLORWHITE;DRAWTEXT(CURRBARSC0UNT=6,15,'安全区'),COLORWIIITE;DRAWTEXT(CURRBARSCOUNT二6,45,'绿区持币'),COLORFFCOOO;DRAWTEXT(CURRBARSCOUNT二6,50,'(投资区)'),COLOR
5、WHITE;DRAWTEXT(CURRBARSC0UNT=6,55,'粉区持股,),COLORFFCOOO;DRAWTEXT(CURRBARSCOUNT二6,85,'风险区'),COLORWIIITE;DRAWTEXT(CURRBARSCOUNT二6,95,'高风险区'),COLORWHITE;{强拉升}Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,D),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:二-(EMA仃F(L<=Y1,Y2/Y3,-3),1));STTCKLTNE(CROSS
6、(Q,0),15,0,4,0),,COLORYELLOW;强拉升:IF(CROSS(Q,0),1,0),COLORYELLOW;QI:二(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,,COLOROOFFOO,LTNETHTCK2;STICKLINE(CROSS(QI,-24),20,0,4,0),,COLORMAGENTA;加强拉升:IF(CROSS(QI,-24),1,0),COLORMAGENTA;VAR22:二EXPMA(EXPMA(EXPMA((2*CL0SE+IIIGII+L0W)/4,4),4),4)
7、;天:=(MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));地:=(MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));STICKLINE(地〉天AND地〈0,10,0,1,O),COLORRED;开始拉升:STICKLINE(地〉天AND地<0,10,0,1,0)=1,COLORRED;{«波段绝品>>}VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2B:=SMA(VAR1B,9,1)+
8、100;VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4B:二SMA(VAR3B,3,1);V