以下是大智慧王指标公式源码和使用说明
大智慧波段王指标公式源码:
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(CLOSE+HIGH+LOW)/3;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VARA:=IF(VA9 100,VA9-100,0);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
VARF:=MA(VARE,3);
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9 100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);
牛市:EMA(B1,5),COLORCYAN;
熊市:EMA(VARD,1),COLORYELLOW;
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5) MA(C,10);
V3:=MA(V,5) MA(V,40)*1.01;
V4:=COUNT(MA(C,1) REF(C,1),2)=2;
VV:=V1ANDV2ANDV3ANDV4;
A1:=EMA(CLOSE,8);
A2:=EMA(A1,20);
A3:=CROSS(A1,A2);
A4:=A1 EMA(CLOSE,120);
A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT,COLORFF9900;
安全:=20;
关注:=IF(CROSS(A5,安全),50,0),STICK,COLORMAGENTA,LINETHICK2;
收钱:=IF(CROSS(VARC,牛市)ANDVARC VARDANDVARC 55ANDC O,50,0),COLORLIRED,POINTDOT;
A6:=LLV(C,500)=LLV(C,5)ANDC/REF(C,1) (1+9.8/100);
SEU:IF(A6,牛市,0),COLORGREEN,LINETHICK2;
STICKLINE((收钱 0AND收钱 400)OR(SEU 0ANDSEU 400)
OR(关注 0AND关注 400)OR(关注 0),30,收钱,1,0),COLORRED;
VAR1:=(CLOSE+HIGH+LOW+OPEN)/(4);
VAR2:=SUMBARS(,CAPITAL);
VAR3:=HHV(VAR1,VAR2);
VAR4:=LLV(VAR1,VAR2);
VAR5:=((2)*(VAR1)-VAR4-REF(VAR4,1))/(VAR3-VAR4);
VAR6:=(VAR1-VAR4)/(VAR3-VAR4);
VAR7:=IF((VAR1 =VAR4),(VAR5)*(60),(VAR6)*(60));
VAR8:=((600)*(EMA(CLOSE,3)-EMA(LOW,30)))/(EMA(LOW,30));
VAR9:=EMA(VAR8,7);
VARA:=(WINNER(((120)*(CLOSE))/(100))-WINNER(((100)*(CLOSE))/(100)))*(100);
VARB:=((-100))*(WINNER(((120)*(CLOSE))/(100))-WINNER(((100)*(CLOSE))/(100)))+5;
波段买入:=IF((VARA+VARB 7)ANDcrOSS(VAR8,VAR9)AND(VAR9 (-18))ANDVAR9,1,0);
DRAWICON((波段买入=60),70,1),CoLor00FFFF;
VARC:=HHV(HIGH,9)-LLV(LOW,9);
VARD:=HHV(HIGH,9)-CLOSE;
VARE:=CLOSE-LLV(LOW,9);
VARF:=((VARD)/(VARC))*(100)-70;
VAR10:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR11:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR12:=SMA(((VARE)/(VARC))*(100),3,1);
VAR13:=LLV(LOW,34);
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
VAR15:=IF((VAR14 100),VAR14-100,0);
VAR16:=HHV(HIGH,34);
VAR17:=EMA(((VAR11-VAR13)/(VAR16-VAR13))*(100),8);
VAR18:=EMA(VAR17,5);
VAR22:=REF(LOW,1);
VAR23:=((SMA(Abs(LOW-VAR22),3,1))/(SMA(MAX(LOW-VAR22,0),3,1)))*(100);
VAR24:=EMA(IF((CLOSE)*(1.3),(VAR23)*(10),(VAR23)/(10)),3);
VAR25:=LLV(LOW,30);
VAR26:=HHV(VAR24,30);
VAR27:=IF(MA(CLOSE,58),1,0);
VAR28:=((EMA(IF((LOW =VAR25),(VAR24+(VAR26)*(2))/(2),0),3))/(618))*(VAR27);
VAR29:=IF((VAR28 100),100,VAR28);
STICKLINE((VAR29 (-150)),0,VAR29,1,0),CoLorFF00FF;
VARK1:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VARK2:=REVERSE(VARK1);
VARK3:=SMA(VARK1,3,1);
波段王:=SMA(VARK3,3,1);
波段鬼:=SMA(波段王,2.5,1);
线:(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)),Linethick1,CoLorFFCCCC;
卖:IF(((CROSS(波段鬼,波段王)orCROSS(波段鬼,趋势线))orCROSS(波段王,趋势线))AND(波段鬼 65),90,0),Stick,Linethick1,CoLor00FF00;
RSV9:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
K1:=SMA(RSV9,3,1);
DK1:=K1-REF(K1,1);
出手就赢:IF((DK1 7)AND(REF(DK1,1) 0)AND(DK1-REF(DK1,1) 9),50,0),Stick,Linethick1,CoLor00FFFF;
DRAWICON((出手就赢 0),50,1),CoLor0000FF;
买点准备:IF((趋势线 =10),0,10),Linethick1,CoLorFF9933;
STICKLINE(CROSS(趋势线,10),0,73,6,0),CoLor3366FF;
DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,''),CoLorFFFFFF;
DRAWTEXT(IF(CROSS(10,趋势线),1,0),10,'$备钱'),CoLor33FFCC;
VAR1:=REF(CLOSE,1);
VAR2:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
VAR3:=(CLOSE-VAR1)*VAR2;
VAR4:=SUM(VAR3,0);
VAR5:=SMA(VAR4,5,1);
VAR6:=SMA(VAR4,9,1);
短波:VAR5-VAR6,coloryellow;
长波:MA(短波,3),colorgreen;
STICKLINE(短波 0,0,短波,1,2),colormagenta;
STICKLINE(VAR5-VAR6 0,0,VAR5-VAR6,1,2),colorcyan;
STICKLINE(短波 长波,短波,长波,8,0),colorred;
STICKLINE(短波 长波,短波,长波,8,0),colorcyan;
强势:IF(CROSS(短波,长波),5,0),colorred;
弱势:CROSS(短波,长波),COLOROOFF00;
波界:0,COLOR331111;
趋势:(短波-长波)-(REF(短波,1)-REF(长波,1));
大智慧波段王指标公式截图