以下是杨百万的百万踏浪通达信副图指标公式源码和使用说明
杨百万的百万踏浪通达信副图指标公式源码:
N1:=9;N:=3;
VAR1:=REF(CLOSE,1);
标尺:SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;
VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
浪:VAR3,COLORBLUE;
波:VAR4,COLORRED;
段:VAR5,COLORYELLOW;
VAR6:=CROSS(VAR3,VAR4)ANDVAR4
STICKLINE(VAR6,0,VAR4+15,5,0),COLORRED;
VAR7:=CROSS(VAR4,VAR5)ANDVAR4
VAR8:=VAR7ANDVOL REF(VOL,1)*2ANDVOL REF(MA(VOL,5),1)*2;
STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;
DRAWTEXT(VAR7ANDCOUNT(VAR7,10)=1,VAR4+25,''),COLORYELLOW;
STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;
DRAWTEXT(VAR8ANDCOUNT(VAR8,10)=1,VAR4-1,'放量'),COLORRED;
VAR9:=CROSS(VAR3,VAR4)ANDVAR4 80ANDVAR4 VAR5;
STICKLINE(VAR9ANDCOUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORYELLOW;
VARA:=CROSS(VAR5,VAR4)ANDREF(VAR4,1)
STICKLINE(VARA,VAR4-15,100,15,0),COLORYELLOW;
DRAWTEXT(VARAANDCOUNT(VARA,10)=1,VAR4-25,''),COLORYELLOW;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;
MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF;
MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00;
DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LOW
*
0.99),'Ψ'),LINETHICK3,COLORF00FF0;
DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HIGH
*1.01),'◎'),LINETHICK3,COLORFFFFFF;
STICKLINE((EMA(CLOSE,2) =
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF;
STICKLINE((EMA(CLOSE,2)
=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA;
STICKLINE((EMA(CLOSE,2)
=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE((EMA(CLOSE,2)
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00;
STICKLINE((EMA(CLOSE,2)
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00;
STICKLINE((EMA(CLOSE,2)
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0.1,0),COLOR00FFFF;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,3,0),COLOR00AAAA;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,2,0),COLOR00CCCC;
VAR20:=VAR18 =25ANDVAR19 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30ANDVAR11-CLOSE =-0.25ANDVAR15 22ANDVAR16 28ANDVAR17
STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE;
DRAWTEXT(CROSS(VAR20,0.5)ANDCOUNT(VAR20=1,10)=1,60,'百万导弹'),LINETHICK7,COLORWHITE;
VAR1:=REF(CLOSE,1);
标尺:SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100,COLOR00FF00,LINETHICK2;
VAR2:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
浪:VAR3,colormagenta,LINETHICK2;
波:VAR4,colorred,LINETHICK2;
段:VAR5,coloryellow,LINETHICK2;
VAR6:=CROSS(VAR3,VAR4)ANDVAR4
VAR61:=CROSS(VAR4,VAR5)ANDVAR4
STICKLINE(VAR6,0,VAR4+6,1,0),COLORFF00FF,LINETHICK4;
STICKLINE(VAR61,0,VAR4+6,1,0),COLORFFFFFF,LINETHICK4;
DRAWTEXT(FILTER(VAR61,7),VAR5-5,'-买入'),COLORFFFFFF;
VAR7:=CROSS(VAR4,VAR5)ANDVAR4
VAR8:=VAR7ANDVOL =REF(VOL,1)*2ANDVOL =REF(MA(VOL,5),1)*2;
STICKLINE(VAR8,0,VAR4+10,1,0),colorred,LINETHICK4;
DRAWTEXT(VAR8ANDCOUNT(VAR8,10)=1,VAR4-1,'放量'),colorred;
VAR9:=CROSS(VAR3,VAR4)ANDVAR4 80ANDVAR4 VAR5;
STICKLINE(VAR9ANDCOUNT(VAR9,5)=1,VAR4-5,100,1,0),COLOR00FF00,LINETHICK2;
VARA:=CROSS(VAR5,VAR4)ANDVAR5
STICKLINE(VARA,VAR4-6,100,1,0),coloryellow,LINETHICK4;
{STICKLINE(FILTER(CROSS(VAR3,VAR4),10)AND
VAR5 80,VAR4-5,100,1,0),COLOR00FF00,LINETHICK2;}
DRAWTEXT(VARAANDCOUNT(VARA,10)=1,VAR4+20,'牛市震荡'),coloryellow;
DRAWTEXT(VARAANDCOUNT(VARA,10)=1,VAR4+10,'熊市抛股'),coloryellow;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR20:=VAR18 =25ANDVAR19 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30
ANDVAR11-CLOSE =-0.25ANDVAR15 22ANDVAR16 28ANDVAR17
STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLOR888800;
DRAWTEXT(FILTER(VAR20,5),60,''),COLOR00FF00;
Y:-2,COLORFF0000,LINETHICK2;
B:99,POINTDOT,COLOR00FFFF,LINETHICK1;
T:81,POINTDOT,COLOR0000FF,LINETHICK1;
X:15,POINTDOT,COLOR00FF00,LINETHICK1;
YY:0,LINETHICK2,COLOR0000FF;
HH:90,POINTDOT,COLOR0000FF,LINETHICK1;
杨百万的百万踏浪通达信副图指标公式截图