通达信短线有情主图指标公式
通达信天知短线选股指标公式
通达信短线有情主图指标公式:
BK1:=stRCAT(DYBLOCK,' ');
BK2:=STRCAT(BK1,STRCAT(HYBLOCK,' '));
BK3:=STRCAT(BK2,STRCAT(FGBLOCK,' '));
BK4:=STRCAT(BK3,STRCAT(GNBLOCK,' '));
DRAWTEXT_FIX(ISLASTBAR,0.001,0.00,0,STRCAT(BK4,0)),COLORYELLOW;
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
VAR1:=EMA(EMA(C,5),13);
VAR2:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*6.18;
VAR3:=MA(VAR2,8);
VAR4:=VAR2-VAR3;
VAR5:=SMA(VAR4,3,1);
VARC:=BArslAST(VAR4>=REF(VAR4,1));
VARD:=BARSLAST(VAR4<=REF(VAR4,1));
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160) AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160) AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,4 ,0 ),COLOR0000AA;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,3.3 ,0 ),COLOR0011BB;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,2.2,0 ),COLOR0022CC;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,1.65 ,0 ),COLOR0033DD;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,1.1 ,0 ),COLOR0044EE;
STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,0.55 ,0 ),COLOR0055FF;
STICKLINE(VARC=0 AND C<MA(C,250) AND C>O ,H,L,0,0),COLOR0000FF;
STICKLINE(VARC=0 AND C<MA(C,250) AND C<O ,H,L,0,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,250),C,O,0,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,3,0),COLORFF5500;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,2.8,0),COLORFF6600;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,2.5,0),COLORFF7700;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,2.2,0),COLORFF8800;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,1.7,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,1.2,0),COLORFFAA00;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,0.7,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,250),CLOSE,OPEN,0.2,0),COLORFFFF00;
STICKLINE(VARC=0 AND C<MA(C,20) AND C>O ,H,L,0,0),COLOR0000FF;
STICKLINE(VARC=0 AND C<MA(C,20) AND C<O ,H,L,0,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,20),C,O,0,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,3,0),COLORFF5500;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,2.8,0),COLORFF6600;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,2.5,0),COLORFF7700;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,2.2,0),COLORFF8800;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,1.7,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,1.2,0),COLORFFAA00;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,0.7,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,20),CLOSE,OPEN,0.2,0),COLORFFFF00;
STICKLINE(VARC=0 AND C<MA(C,60) AND C>O ,H,L,0,0),COLOR0000FF;
STICKLINE(VARC=0 AND C<MA(C,60) AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,60),C,O,0,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,3,0),COLORFF5500;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,2.8,0),COLORFF6600;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,2.5,0),COLORFF7700;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,2.2,0),COLORFF8800;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,1.7,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,1.2,0),COLORFFAA00;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,0.7,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,60),CLOSE,OPEN,0.2,0),COLORFFFF00;
STICKLINE(VARC=0 AND C<MA(C,160) AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(VARC=0 AND C<MA(C,160) AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,160) ,C,O,0,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,3,0),COLORFF5500;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,2.8,0),COLORFF6600;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,2.5,0),COLORFF7700;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,2.2,0),COLORFF8800;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,1.7,0),COLORFF9900;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,1.2,0),COLORFFAA00;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,0.7,0),COLORFFCC00;
STICKLINE(VARC=0 AND C<MA(C,160) ,CLOSE,OPEN,0.2,0),COLORFFFF00;
STICKLINE(VARD=0 AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(VARD=0 AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(VARD=0,C,O,0,0),COLORFF9900;
STICKLINE(VARD=0,CLOSE,OPEN,3,0),COLORFF5500;
STICKLINE(VARD=0,CLOSE,OPEN,2.8,0),COLORFF6600;
STICKLINE(VARD=0,CLOSE,OPEN,2.5,0),COLORFF7700;
STICKLINE(VARD=0,CLOSE,OPEN,2.2,0),COLORFF8800;
STICKLINE(VARD=0,CLOSE,OPEN,1.7,0),COLORFF9900;
STICKLINE(VARD=0,CLOSE,OPEN,1.2,0),COLORFFAA00;
STICKLINE(VARD=0,CLOSE,OPEN,0.7,0),COLORFFCC00;
STICKLINE(VARD=0,CLOSE,OPEN,0.2,0),COLORFFFF00;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20) AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20) AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,0,0),COLOR0088EE;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,4 ,0 ),COLOR0000AA;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,3.3 ,0 ),COLOR0011BB;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,2.2,0 ),COLOR0022CC;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,1.65 ,0 ),COLOR0033DD;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,1.1 ,0 ),COLOR0044EE;
STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20),C,O,0.55 ,0 ),COLOR0055FF;
情3:=VARC=0 AND C>MA(C,20) AND (BARSCOUNT(C)+1)<365 ;
STICKLINE(情3 AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(情3 AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(情3,C,O,-1,0),COLOR001235;
STICKLINE(情3 AND C<O,H,L,0,0),COLORFFCC00;
STICKLINE(情3 AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(情3,C,O,4 ,0 ),COLOR0000AA;
STICKLINE(情3,C,O,3.3 ,0 ),COLOR0011BB;
STICKLINE(情3,C,O,2.2,0 ),COLOR0022CC;
STICKLINE(情3,C,O,1.65 ,0 ),COLOR0033DD;
STICKLINE(情3,C,O,1.1 ,0 ),COLOR0044EE;
STICKLINE(情3,C,O,0.55 ,0 ),COLOR0055FF;
HJ_1:=BETWEEN(MA(CLOSE,5),CLOSE,OPEN) AND BETWEEN(MA(CLOSE,10),CLOSE,OPEN) AND BETWEEN(MA(CLOSE,30),CLOSE,OPEN) AND CAPITAL<800000000 AND CLOSE>OPEN AND (CLOSE/MA(CLOSE,24)-1)*100>=2.1 AND MA(CLOSE,5)>EMA(CLOSE,89);
HJ_2:=MA(CLOSE,5)>EMA(CLOSE,120) AND MA(CLOSE,10)>EMA(CLOSE,89) AND MA(CLOSE,10)>EMA(CLOSE,120) AND MA(CLOSE,30)>EMA(CLOSE,89) AND MA(CLOSE,30)>EMA(CLOSE,120);
HJ_3:=vol/MA(VOL,5)>0.3 AND MA(CLOSE,5)>MA(CLOSE,55) AND MA(CLOSE,10)>MA(CLOSE,55) AND EMA(CLOSE,8)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,24) AND MA(CLOSE,5)>MA(CLOSE,30) AND MA(CLOSE,10)>MA(CLOSE,30);
HJ_4:=MA(CLOSE,8)>MA(CLOSE,24) AND MA(VOL,5)>MA(VOL,20) AND MA(VOL,5)>MA(VOL,60) AND (LOW-MA(CLOSE,30))/MA(CLOSE,24)*100>(-2.5) AND (LOW-MA(CLOSE,30))/MA(CLOSE,30)*100<0 AND BETWEEN(MA(CLOSE,30),LOW,HIGH);
EE:=HJ_1 AND HJ_2 AND HJ_3 AND HJ_4,COLORFF00FF;
选:=EE;
DRAWICON(选,L,3);
DRAWTEXT(选,L-0.15,'↖超短3'),COLORFFFFFF;
HJ_11:=BETWEEN(MA(CLOSE,5),CLOSE,OPEN) AND BETWEEN(MA(CLOSE,10),CLOSE,OPEN) AND BETWEEN(MA(CLOSE,24),CLOSE,OPEN) AND CAPITAL<800000000 AND CLOSE>OPEN AND (CLOSE/MA(CLOSE,24)-1)*100>=2.1 AND MA(CLOSE,24)>EMA(CLOSE,89);
HJ_22:=MA(CLOSE,24)>EMA(CLOSE,120) AND MA(CLOSE,5)>EMA(CLOSE,89) AND MA(CLOSE,5)>EMA(CLOSE,120) AND MA(CLOSE,10)>EMA(CLOSE,89) AND MA(CLOSE,10)>EMA(CLOSE,120);
HJ_33:=VOL/MA(VOL,5)>0.3 AND MA(CLOSE,5)>MA(CLOSE,55) AND MA(CLOSE,10)>MA(CLOSE,55) AND EMA(CLOSE,8)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,24) AND MA(CLOSE,5)>MA(CLOSE,30) AND MA(CLOSE,10)>MA(CLOSE,30);
HJ_44:=MA(CLOSE,8)>MA(CLOSE,24) AND MA(VOL,5)>MA(VOL,20) AND MA(VOL,5)>MA(VOL,60) AND (LOW-MA(CLOSE,24))/MA(CLOSE,24)*100>(-2.5) AND (LOW-MA(CLOSE,24))/MA(CLOSE,24)*100<0 AND BETWEEN(MA(CLOSE,24),LOW,HIGH);
EEE:=HJ_11 AND HJ_22 AND HJ_33 AND HJ_44;
选1:=EEE;
DRAWICON(选1,O,7);
DRAWTEXT(选1,O-0.05,'↖超短1'),COLOR00FFFF;
HJ_111:=BETWEEN(EMA(CLOSE,8),CLOSE,OPEN) AND BETWEEN(EMA(CLOSE,13),CLOSE,OPEN) AND BETWEEN(EMA(CLOSE,24),CLOSE,OPEN) AND CAPITAL<800000000 AND CLOSE>OPEN AND (CLOSE/MA(CLOSE,24)-1)*100>=2.1 AND MA(CLOSE,24)>EMA(CLOSE,89);
HJ_222:=MA(CLOSE,24)>EMA(CLOSE,120) AND MA(CLOSE,5)>EMA(CLOSE,89) AND MA(CLOSE,5)>EMA(CLOSE,120) AND MA(CLOSE,10)>EMA(CLOSE,89) AND MA(CLOSE,10)>EMA(CLOSE,120);
HJ_333:=VOL/MA(VOL,5)>0.3 AND MA(CLOSE,5)>MA(CLOSE,55) AND MA(CLOSE,10)>MA(CLOSE,55) AND MA(CLOSE,5)>MA(CLOSE,30) AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,30)>MA(CLOSE,55) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(VOL,5)>MA(VOL,20) AND MA(CLOSE,8)>MA(CLOSE,24) AND MA(VOL,5)>MA(VOL,40) AND MA(VOL,5)>MA(VOL,60) AND (LOW-EMA(CLOSE,24))/EMA(CLOSE,30)*100>(-2.5) AND (LOW-EMA(CLOSE,24))/EMA(CLOSE,24)*100<0 AND BETWEEN(EMA(CLOSE,24),LOW,HIGH);
EEEE:=HJ_111 AND HJ_2 AND HJ_333;
选2:=EEEE;
DRAWICON(选2,L-0.03,26);
DRAWTEXT(选2,L-0.1,'↖超短2'),COLOR40FF00;
通达信天知倍缩选股指标公式