資源描述:
《通達信指標公式源碼長期研究短線指標公式》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在工程資料-天天文庫。
1、通達信長期研究短線指標公式A:=SUMBARS(V,CAPITAL*1);{累計換手=100%的周期}A2:=SUM(COST(20),A)/A;{在A周期里獲利20%的平均價}A10:=SUM(COST(10),A)/A;{在A周期里獲利10%的平均價}A3:=SUM(COST(30),A)/A;{在A周期里獲利30%的平均價}A4:=SUM(COST(40),A)/A;{在A周期里獲利40%的平均價}A5:=SUM(COST(50),A)/A;{在A周期里獲利50%的平均價}E:=LLV(Lz250)=L;{-年中最低價的位置
2、}E1:=BARSLAST(E);{求得一年中最低價的位置到現(xiàn)在的周期}莊家成本:(5*A10+4*A2+3*A3+2*A4+A5)/15,CIRCLEDOT,COLORRED;{求出啟動點的價位}持股成本線:=DMA(AMOUNT/V/100,V/CAPITAL),COLORREDZLINETHICK2;水平面:MA(CLOSE,89),COLORFFA2FF;{MA(CLOSE,321),CIRCLEDOT;}BBI:(MA(CLOSE,Ml)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4
3、;IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED丄INETHICK2;IF(BBIvREF(BBI,l),BBIQRAWNULL),COLORYELLOW丄INETHICK2;MA3:MA(C,3),COLORBLUE丄INETHICK1;MA24:MA(CLOSE,24),COLOROOE300,LINETHICK1;MA3角度:(ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416),NODRAW;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROM
4、OPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);STICKLINE(V2>=l,O,Cz1.2,0),COLORYELLOW;MA13:=MA(CLOSE,13);Xl:=(C+L+H)/3;BB13:=ATAN(EMA(X1Z13)-REF(EMA(X1Z13)Z1))*3.1416*1O;EMA8:=EMA(CZ8);A1:=MIN(O,C);B1:=ABS(O-C);T1:=FILTER(BB13>1ANDEMA(X1,13)>REF(EMA(X1,8),1),10);STICKLINE(T1,A1Z
5、A1+B1/4Z1.5Z0),COLOR007575;STICKLINE(T1,A1+B1/4,A1+B1/2Z1.5ZOXCOLORFFOOOO;STICKLINE(T1ZA1+B1/2,A1+B1*3/4,1.5,0),COLOR007575;STICKLINE(T1,A1+B1*3/4zA1+B1z1.5,0),COLORFFOOOO;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),03zl)/SMA(ABS((CLOSE-LC)),3,1))*100);FF:=EMA(CLOSE,3
6、);MA15:=EMA(CLOSE,21);{DRAWTEXT(CROSS(FF,MA15),(LOW*0?97),1),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH*1.04),2),COLOR1880FF;}STICKLINE(CROSS(FFZMA15),A1ZA1+B1/2,1.5,0)ZCOLOR7F017F;STICKLINE(CROSS(88,RSI)zAl+Bl,Al+Bl/2,1.5zO)zCOLORGREEN;T2:=COUNT(CROSS(BBI,3)Z3)=1ANDCRO
7、SS(CZBBI);DRAWTEXT(T2,H*l?05,3),COLORWHITE;STICKLINE(T2zO,Cz1.5zO)zCOLORRED;T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,TO);H1:=REF(H,TO);STICKLINE(REF(T12,1)ORREF(T12,2)ORREF(T12,3),Hl,Hlz6,-1),COLORWHITE;STICKLINE(REF(T12,1)ORREF(T12,2)ORREF(T12Z3)ZL1,L1Z6,-1),COLORWHITE
8、;{T11:=REF(T12Z3)ANDCOUNT(LH1,4)>1;DRAWTEXT(T11,H*1?O5,4),COLORWHITE;STICKLINE(Tll,OzC,2zO)zCOLORFFOOFF;}