一、通达信波动盈利周期指标公式
{引用指标:护城河
YL:(FINANCE(45)/C) ;}
A:=护城河.YL;
RSV:=(A-LLV(A,40))/(HHV(A,40)-LLV(A,40))*100;
K:SMA(RSV,18,1) LINETHICK1 COLORFF4600;
K1:K LINETHICK2 COLORFF0000;
D:SMA(K,3,1) LINETHICK1 COLOR0FFF2B;
D1:D LINETHICK2 COLOR007F00;
J:3*K-2*D LINETHICK2 COLORFFF69A;
J1:J LINETHICK1 COLORFFF60A;
趋势维持线:EMA(J,2) COLORRED LINETHICK2 ;
轨道线:(J+REF(J,1)+REF(J,2)+REF(J,3))/4*(K/D) COLORYELLOW;
Q线:(趋势维持线+2*轨道线)/3,COLORBLUE LINETHICK2 ;
STICKLINE(轨道线>=Q线 AND Q线>=REF(Q线,1),Q线*0.995,Q线,1,0)COLORRED;
DRAWICON( REF(CROSS(趋势维持线,J),1) AND CROSS(J,趋势维持线) AND L/MA(C,20)<1.02 AND J>D AND J<40,J,25);
二、通达信聪明买卖主图指标公式
N:=150;
VAR1:=EMA(EMA(EMA(C,5),8),13);
VAR2:=((VAR1-REF(VAR1,1))/REF(VAR1,1))*618;
VAR3:=MA(VAR2,8);
VAR4:=VAR2-VAR3;
VAR5:=SMA(VAR4,3,1);
短:WMA(EXPMA(((3*C)+(2*O)+H+L)/7,3),3),COLORFFFFFF;
道:IF(1,SMA(短,8,1),DRAWNULL),COLORCC99AA,LINETHICK2;
IF(VAR2>=VAR3,道,DRAWNULL),COLOR6600CC,LINETHICK2;
VARC:=BARSLAST(VAR4>=REF(VAR4,1));
VARD:=BARSLAST(VAR4<=REF(VAR4,1));
神10:MA(C,10);
神30:=MA(C,30);
神60:MA(C,60);
神120:MA(C,120);
神250:MA(C,250);
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 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 STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARC=0 AND C STICKLINE(VARD=0 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(VARD=0 AND C 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 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 STICKLINE(情3,C,O,-1,0),COLOR001235; STICKLINE(情3 AND C 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; 神线1:=MA(C,20)-MA(C,250); 神线2:=MA(C,60)-MA(C,250); 神功1:=MA(神线1,1)*4; 神功2:=EMA(神线2,1)*4,COLORFFFF80; YS1:=(HIGH+LOW+CLOSE*2)/4; RK3:=EMA(YS1,10); RK4:=STD(YS1,10); RK5:=(YS1-RK3)*100/RK4; RK6:=EMA(RK5,5); RK7:=EMA(RK6,10); 涨:=EMA(RK6,10)+100/2-5,COLORRED; 股灾2:=NOT(REF(C 股灾3:=NOT(C
股灾4:=NOT(COUNT(C 股灾5:=NOT( 道 股灾6:=NOT(道
股灾7:=SUM(SUM(C/REF(C,1)>1.099,7)>=5 AND C>MA(C,250),60)<1; 股灾8:=SUM(HHVBARS(HIGH,90)>LLVBARS(HIGH,90) AND (HHV( HIGH,90)-LLV( LOW,90))/LLV( LOW,90)*100>50 AND C>MA(C,250) ,90) <1; 股灾9:=NOT(MA(C,5) 股灾12:=SUM((C/REF(C,1)<0.91 AND L=C),30)<1; 股灾13:=SUM((C/REF(C,1))<0.93,10)<1; 股灾15:=NOT( MA(C,10) 股灾总:=股灾2 AND 股灾3 AND 股灾4 AND 股灾5 AND 股灾6 AND 股灾7 AND 股灾8 AND 股灾9 AND 股灾12 AND 股灾13 AND 股灾15; P1:=涨>REF(涨,1) AND REF(涨,1)MA(C,250) AND MA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) AND MA(C,250)>REF(MA(C,250),1) AND LLV(C,15) P2:=涨>REF(涨,1) AND REF(涨,1)MA(C,250) AND MA(C,20)>MA(C,250) AND MA(C,250)>REF(MA(C,250),1) AND MA(C,120)>REF(MA(C,120),1) AND LLV(C,15) P3:=涨>REF(涨,1) AND REF(涨,1)MA(C,60) AND MA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) AND MA(C,250)>REF(MA(C,250),1) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,90)>REF(MA(C,90),1) AND C>MA(C,20) AND C>O AND C/REF(C,1)<1.099 AND LLV(C,5)