资源描述:
《通达信箱体量能主图指标公式.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、【箱顶】:PEAK(CLOSE,10,1)*0.98,LINETHICK5;【箱底】:TROUGH(CLOSE,10,1)*1.02,LINETHICK5;【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;VAR1:=EMA(C,3);VAR2:=EMA(C,5);VAR3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6
2、,15)*100;VAR9:=EMA(VAR7,8);STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,0),COLORBLUE;{蓝-持币}STICKLINE(VAR7<1*REF(VAR7,1),O,C,3,1),COLORBLUE;STICKLINE(VAR7>1*REF(VAR7,1),H,L,0,0),COLORRED;{红-持股}STICKLINE(VAR7>1*REF(VAR7,1),O,C,3,1),COLORRED;STICKLINE(VAR7<1*REF(VAR7,1)ANDVAR9>1*REF(VAR9,1),H,L,0,0),COLORGRE
3、EN;{绿-洗盘}STICKLINE(VAR7<1*REF(VAR7,1)ANDVAR9>1*REF(VAR9,1),O,C,3,1),COLORGREEN;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价)AND买进价>REF(买进价,1);STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK2;{白-买进}STICKLINE(买进条件,O,C,3,0),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.
4、004;加码条件:=CROSS(C,加码价)AND加码价>REF(加码价,1);STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;{黄-加码}STICKLINE(加码条件,O,C,3,0),COLORYELLOW,LINETHICK2;V1:EMA(CLOSE,5);V2:EMA(EMA(CLOSE,29)*1.01,10);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃:IF(CROSS(84,RSI),HIGH,HIGH+1),POIN
5、TDOT,LINETHICK7,COLORYELLOW;HIGH+1,POINTDOT,LINETHICK7,COLOR;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)6、+1)>CANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3)ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>CANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS
7、(DEA,DIFF),1));D1:=REF(C,C1+1)DIFFANDCROSS(DEA,DIFF);C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)"KDJ.K"(9,3,3)ANDCROSS("KDJ.D"(9,3,3),"KDJ.K"(9,