N:=5;
VAR1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,N);
多: STICKLINE(VAR1>REF(VAR1,1),VAR1,MA(VAR1,3),6,0), COLORRED;
空: STICKLINE(VAR1< REF(VAR1,1),VAR1,EMA(VAR1,3),6,1),COLORGREEN;
VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(VAR2+2*VAR3+3*VAR4)/7;
VAR6:=MA(VAR5,3);
VAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,3,1);
VARA:=3*VAR8-2*VAR9;
关注: STICKLINE(CROSS(VARA,VAR9) AND COUNT(VAR6<-9,2)>=1,0.01,1.8,7,0),COLORCYAN;
VARB:=REF(LOW,1)*0.9;
VARC:=LOW*0.9;
VARD:=(VARC*VOL+VARB*(CAPITAL-VOL))/CAPITAL;
VARE:=EMA(VARD,30);
VARF:=CLOSE-REF(CLOSE,1);
VAR10:=MAX(VARF,0);
VAR11:=ABS(VARF);
VAR12:=SMA(VAR10,7,1)/SMA(VAR11,7,1)*100;
VAR13:=SMA(VAR10,13,1)/SMA(VAR11,13,1)*100;
VAR14:=SMA(MAX(VARF,0),6,1)/SMA(ABS(VARF),6,1)*100;
VAR15:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR16:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR17:=SMA((SMA(VAR16,4,1)-50)*2,3,1);
VAR18:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR19:=SMA(VAR18,4,1);
VAR1A:=SMA(VAR19,3,1);
VAR1B:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR1C:=VAR14<=25 AND VAR15<-95 AND VAR1B>20 AND VAR17<-30 AND VAR1A<30 AND VARE-CLOSE>=-0.25 AND VAR12<22 AND VAR13<28;
※低买: STICKLINE(VAR1C,0,1,6,0),COLORRED;
黄空框持股: STICKLINE(VAR1>3,3,3.5,8,1),COLORYELLOW;
※休息: STICKLINE(CROSS(3,VAR1),1.5,3.5,4,0),COLORMAGENTA;
VAR1D:=CROSS(MA(INDEXV,31),MA(INDEXV,2));
VAR1E:=LLV(INDEXL,80);
VAR1F:=IF(INDEXC>VAR1E*1.15,VAR1D,0);
红色空框大盘见顶: STICKLINE(VAR1F>0.2,3.1,3.4,40,1),COLORRED;
VAR20:=CROSS(MA(INDEXV,14),MA(INDEXV,51));
VAR21:=HHV(INDEXH,125);
VAR22:=IF(INDEXC< VAR21,VAR20,0);
VAR23:=(INDEXC-REF(INDEXC,26))/REF(INDEXC,26)*100;
绿色空框大盘见底: STICKLINE(VAR23<-9.5 AND VAR22>0.2,3.11,3.4,40,1),COLORGREEN;
0;
DRAWTEXT(DATE=1021216,1,'短线进出');
注意: 3,COLORWHITE;
卖出: 3.5,COLORMAGENTA;
STICKLINE(VAR1>3,3,3.5,8,1),COLORYELLOW;