《买卖加仓主图通达信指标公式源码(6页).doc》由会员分享,可在线阅读,更多相关《买卖加仓主图通达信指标公式源码(6页).doc(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、-买卖加仓主图通达信指标公式源码-第 7 页买卖加仓主图通达信指标公式源码 MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);AND REF(C,1)O AND C/O=1.05 AND CREF(O,1)AND REF(VOL,1)=1.15 AND REF(C,1)/REF(O,1)=2) AND O/REF(L,1)=1.08 AND REF(C,2)/REF(O,2)=2) AND L=1.3 AND REF(C,5)1.4 AND (MA(V,10)/HHV(V,10)0.5 AND V/HHV
2、(V,10)0.2 AND V/HHV(V,10)REF(V,2) AND REF(V,2)REF(V,1) AND REF(C,1)/REF(C,2)=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF(C3-C)*100/C3=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W20,REF(C,W2),REF(C,W2);W4:=CROSS(C,REF(W
3、3,1);突破盘整:=W4 AND COUNT(W4,5)=1;DRAWICON(突破盘整,L-0.10,1);红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;绿轨道:=MA(MA(CLOSE,3),3);上升:IF(红轨道=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;AA1:=3*SMA(C-LLV(L,9)/(HHV(H,9)-LLV(L,9)*100,3,1)-2*SMA(SMA(C-LLV(L,9)/(HHV(H,9)-LLV(L,9)*100,3,1),3,1);加仓:=IF(CROSS(AA1,REF(AA
4、1+0.01,1) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(3)*(SMA(CLOSE - LLV(LOW,27)/(HHV(HIGH,27) - LLV(LOW,27)*(100),5,1) -(2)*(SMA(SMA(CLOSE - LLV(LOW,27)/(HHV(HIGH,27) - LLV(LOW,27)*(100),5,1),3,1);DRAWICON(加仓,L*0.97,7);DRAWICON(CROSS(波段底,3),L*0.97,1);A:=(3*C+L+O+H)/6;X:=(20*A+19*RE
5、F(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20)/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X
6、,13);卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX50,2) AND CROSS(MA(DX,2),DX),1,0);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,卖),COLORWHITE;买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,减),COLORFFFF50;加仓A:=SMA(EMA(C-REF(C,1)/REF(C,1),5)*10
7、0,3,1)*10;DRAWTEXT(FILTER(CROSS(加仓A,0) OR CROSS(CLOSE,CB) AND 买!=1,3),LOW-0.03,加),COLOR0080FF;MA18:=MA(C,18);跟:=IF(MA18=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);DRAWTEXT(MA18=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,跟),COLOR7F52AF;买价:=(C-REF(MA5,1)/5+MA5)*1.004;买条件:=CROSS(C,买价) AND 买价REF(买价,1);醉白K买进
8、:IF(买条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2;加码价:=(C-REF(MA10,1)/20+MA10)*1.004;加码条件:=CROSS(C,加码价) AND 加码价REF(加码价,1);醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;