通信达主图飞鹰猎庄副图源码
C/C++ www.gszb.com 股票公式指标网提供 Code复制以下内容到公式管理器
- MA5:MA(CLOSE,5);
- MA10:MA(CLOSE,10);
- MA20:MA(CLOSE,20);
- MA60:MA(CLOSE,60);
- BB:=REF(INDEXC,1)<REF(INDEXC,2) AND REF(C,2)*0.95>=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05
- AND REF(C,1)<REF(O,1) AND C>O AND C/O>=1.05 AND C>REF(O,1)
- AND REF(VOL,1)<REF(VOL,2);
- STICKLINE(BB,O,C,4,0),COLORRED;
- STICKLINE(BB,O,H,0,0),COLORRED;
- STICKLINE(BB,L,C,0,0),COLORRED;
- DRAWTEXT(BB,L*0.98,'追!'),COLORYELLOW;
- VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
- VAR2:=8;
- CC:=CROSS(VAR1,VAR2);
- DRAWTEXT(CC,L*0.98,'买!'),COLOR0099FF;
- TYP:=(H+L+C)/3;
- TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))<=20 AND REF(MA(C,21),1)<MA(C,21);
- TJ1:=O<MAX(REF(C,1),REF(O,1));
- TJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 AND MA(C,144)>MA(C,250) AND V<MA(V,10) AND MIN(REF(V,2),REF(V,1))>V;
- TJ3:=REF(MA(C,250),90)<REF(MA(C,144),90) AND MA(C,144)>MA(C,250) AND O>MA(C,250);
- TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));
- TOUJI:=TYP1 AND TJ1 AND TJ2 AND REF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 AND HHV(H,5)/LLV(L,30)>=1.65 AND REF(H,5)/REF(L,1)>=1.15 AND REF(C,1)/REF(O,1)<=0.995 AND (L<REF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)>=2) AND O/REF(L,1)<=1.04
- OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 AND REF(L,1)/REF(O,4)<=0.85 AND REF(C,1)/REF(O,1)<=1.03 AND O<REF(C,1) AND HHV(H,5)/LLV(L,35)>1.35 AND V<MA(V,10);
- TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 AND HHV(H,4)/LLV(L,16)>=1.35 AND REF(O,4)/REF(C,2)>=1.08 AND REF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)<REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))>=2) AND L<MIN(REF(C,1),REF(O,1))
- OR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)<REF(H,5) AND REF(C,4)<REF(C,5) AND REF(C,3)<REF(C,4) AND REF(C,2)<REF(C,3) AND REF(C,1)<REF(C,2) AND L<REF(L,1) AND MA5/O<1.1;
- DATOUJI:=TYP1 AND TJ3 AND O<REF(C,5) AND O<=REF(C,1) AND REF(H,10)/O>=1.17 AND HHV(H,10)/LLV(L,30)>1.4 AND (MA(V,10)/HHV(V,10)>0.5 AND V/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02;
- DATOUJI1:=TYP1 AND TJ3 AND O<REF(L,6) AND O<MIN(REF(C,5)AND REF(O,5),5) ;
- DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;
- DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L<MA(C,20) AND C>=MA(C,20),L*0.98,'量托'),COLORWHITE;
- 卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);
- DRAWTEXT(卖出,H*1.05,'短卖'),COLORGREEN;
- C3:=REF(C,1);
- 涨停:=IF((C-C3)*100/C3>=(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(W2>0,REF(C,W2),REF(C,W2));
- W4:=CROSS(C,REF(W3,1));
- 突破盘整:=W4 AND COUNT(W4,5)=1;
- DRAWICON(突破盘整,L-0.10,1);
C/C++ www.gszb.com 股票公式指标网提供 Code复制以下内容到公式管理器
- 附图:暴涨大牛
- N1:=5;N2:=10;
- LC:=REF(CLOSE,1);
- A0:=(2*C+H+L)/4;
- 均线:=MA(A0,3)>REF(MA(A0,3),1);
- 安全线:2,COLORRED,POINTDOT,LINETHICK4;
- A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
- K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;
- D:MA(K,3),COLORFF0000,LINETHICK1;
- J:3*K-2*D,LINETHICK1,COLORF00FF0;
- DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50));
- VAR1:=C-REF(C,1);
- VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
- MA5:=EMA(C,5);
- MA13:=EMA(C,13);
- UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
- (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
- (MA5,MA13))+1),0),COLOR0000FF;
- DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
- (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
- (MA13,MA5))+1),0),COLOR00FF00;
- BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
- REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
- 底线:0,COLORFF00FF;
- 顶线:10,COLORFF0000;
- STICKLINE(UP,0,0.2,3,0),COLOR0000FF;
- STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;
- STICKLINE(BT,0,3,2,0),COLOR000088;
- STICKLINE(BT,0,3,1,0),COLOR0000CC;
- STICKLINE(BT,0,3,0.22,0),COLOR0000FF;
- DRAWTEXT(BT,3,'短牛'),COLOR0000FF;
- TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
- STICKLINE(TJ1,0,2,3,0),COLOR880088;
- STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;
- STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;
- STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;
- DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;
- HR:=HHV(HIGH,55);
- HRY:=LLV(LOW,55);
- HRY11:=HR*HRY;
- HRY33:=SQRT(HRY11);
- TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
- STICKLINE(TJ2,0,1,5,0),COLOR008888;
- STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;
- STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;
- STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;
- DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;
- ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);
- STICKLINE(ST,10,9,5,0),COLOR008800;
- STICKLINE(ST,10,9,2,0),COLOR00AA00;
- STICKLINE(ST,10,9,1,0),COLOR00CC00;
- STICKLINE(ST,10,9,0.2,0),COLOR00FF00;
- DRAWTEXT(ST,9,'卖'),COLOR00FF00;
- DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);
- DEA:EMA(DIFF,9),COLORFFFF00;
- A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));
- 底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);
- DRAWTEXT(底背离,-0.6,'底背离'),COLORWHITE;
- A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));
- 顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);
- DRAWTEXT(顶背离,11,'顶背离'),COLORWHITE;
{牛牛公式指标网提供:www.tdx001.com}
EB71424980.jpg
C671425486.jpg
|