指标源码:
VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=SMA(VAR1,2,1);
VAR3:=SMA(VAR2,2,1);
VAR4:=SMA(VAR3,3,1);
波: VAR3;
段: VAR4;
VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;
买入:CROSS(VAR3,VAR4) AND VAR3<20,COLORFFBBFF;
STICKLINE(买入=1,20,30,2,0),COLORYELLOW;
DRAWTEXT(买入=1,40,'买'),COLORYELLOW;
VAR7:=CROSS(VAR4,VAR3) AND VAR3>80;
卖出:CROSS(VAR4,VAR3) AND VAR3>80,COLORRED;
STICKLINE(卖出=1,70,80,2,0),COLORRED;
DRAWTEXT(卖出=1,60,'卖'),COLORRED;
选股源码:
VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=SMA(VAR1,2,1);
VAR3:=SMA(VAR2,2,1);
VAR4:=SMA(VAR3,3,1);
VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;
买入:CROSS(VAR3,VAR4) AND VAR3<20;
|