LC := REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORBLUE,LINETHICK1;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:(0-WR)-100,COLORBLUE;
VAR1:=REF(CLOSE,1);
标尺: SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100,COLORBLUE;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
浪: 3*VAR4-2*VAR5, COLORCYAN;
波: VAR4, COLORGREEN;
段: VAR5, COLORRED;
VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;
STICKLINE(VAR6,0,VAR4+5,1,1), COLORGREEN;
VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;
VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;
STICKLINE(VAR7,0,VAR4+5,1,1),COLORGREEN;
DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+15,'BUY');
STICKLINE(VAR8,0,VAR4+5,1,1),COLORGREEN;
DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4+5,'放量');
VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5;
STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,1,1),COLORYELLOW;
VARA:=CROSS(VAR5,VAR4) AND VAR4>80;
STICKLINE(VARA,VAR4-5,100,1,1), COLORRED;
DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-15,'S'), COLORRED;
Y: -2;
B: 99;
T: 79;
X: 19;
选股公式
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;
XG:VAR7 AND COUNT(VAR7,10)=1;
我看了你的公式画线不清楚,我重新改了一下。源码在下面:
LC := REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORLIBLUE,LINETHICK1;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:(0-WR)-100,COLORWHITE;
VAR1:=REF(CLOSE,1);
标尺: SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100,COLOR1A37E5;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
浪: 3*VAR4-2*VAR5, COLORCYAN,LINETHICK2;
波: VAR4, COLORGREEN,LINETHICK2;
段: VAR5, COLORRED,LINETHICK2;
VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;
STICKLINE(VAR6,0,VAR4+5,1,0), COLORGREEN;
VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;
VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;
STICKLINE(VAR7,0,VAR4+5,2.5,0),COLORYELLOW;
DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+15,'BUY'),COLORYELLOW;
STICKLINE(VAR8,0,VAR4+5,1,1),COLORGREEN;
DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4+5,'放量');
VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5;
STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,1,1),COLORYELLOW;
VARA:=CROSS(VAR5,VAR4) AND VAR4>80;
STICKLINE(VARA,VAR4-5,100,1,0), COLORRED;
DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-15,'S'), COLORRED;
Y: -2;
B: 99;
T: 79;
X: 19;
|