公式原码...
N:=10
M1:=3
M2:=3
M3:=4
RSVX:= (CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100;
FASTKX:=SMA(RSVX,3,1);
X:=SMA(FASTKX,3,1);
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,3,1);
K:=(SMA(FASTK,3,1)*X/90-50)*2,COLORWHITE,LINETHICK2;
D:=SMA(K,3,1),COLORYELLOW,LINETHICK2;
潮汐1:(SMA(FASTK,3,1)*X/90-50)*2,COLORWHITE,LINETHICK2;
潮汐2:SMA(K,3,1),COLORYELLOW,LINETHICK2;
浪潮:(3*K-2*D),COLORRED,LINETHICK2;
RSV3:= (CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
FASTK3:=SMA(RSV3,2,1);
K3:=SMA(FASTK3,2,1);
D3:=SMA(K3,3,1);
浪花:(SMA(FASTK3,2,1)-50)*3,COLORGREEN,LINETHICK2;
LC := REF(CLOSE,1);
RSI1:=((SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100)*X/90-50)*2,COLORBLUE,LINETHICK2;
100;
0;
-100;
VAR1:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR2:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:=100-VAR2;
VAR4:=100-VAR1;
VAR5:=REF(CLOSE,1);
VAR6:=100*VOL/CAPITAL*10;
STICKLINE(VAR4<REF(VAR3,1),(-1)*VAR4,(-1)*VAR3,VAR6,1),COLORRED;
VAR7:=MA(VAR3,3);
STICKLINE((-1)*VAR4>VAR7,(-1)*VAR4,(-1)*VAR3,VAR6,1),COLORYELLOW;
STICKLINE(VAR4>=REF(VAR3,1),(-1)*VAR4,(-1)*VAR3,VAR6,1)COLORGREEN;
VARC:=MA(WINNER(CLOSE),18)*100,COLORYELLOW;
STICKLINE(CROSS(VARC,2.5) ,-95 ,0 ,3,0 ),COLORYELLOW ;
VARD:=REF(LOW,1)*0.9;
VARE:=LOW*0.9;
VARF:=(VARE*VOL+VARD*(CAPITAL-VOL))/CAPITAL;
VAR10:=EMA(VARF,30);
VAR11:=CLOSE-REF(CLOSE,1);
VAR12:=MAX(VAR11,0);
VAR13:=ABS(VAR11);
VAR14:=SMA(VAR12,7,1)/SMA(VAR13,7,1)*100;
VAR15:=SMA(VAR12,13,1)/SMA(VAR13,13,1)*100;
VAR16:=BARSCOUNT(CLOSE);
VAR17:=SMA(MAX(VAR11,0),6,1)/SMA(ABS(VAR11),6,1)*100;
VAR18:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1A:=SMA((SMA(VAR19,4,1)-50)*2,3,1);
VAR1B:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1C:=SMA(VAR1B,4,1);
VAR1D:=SMA(VAR1C,3,1);
VAR1E:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR1F:=VAR17<=25 AND VAR18<-95 AND VAR1E>20 AND VAR1A<-30 AND VAR1D<30 AND VAR10-CLOSE>=-0.25 AND VAR14<22 AND VAR15<28 AND VAR16>50;
STICKLINE(VAR1F,0,45,5,0);
DRAWTEXT(CROSS(VAR1F,0.5) AND COUNT(VAR1F=1,10)=1 AND VAR3>88,20,'百万导弹'); |