VAR1:=1.1*CLOSE;
VAR2:=0.9*CLOSE;
VAR3:=100*(WINNER(VAR1)-WINNER(VAR2));
VAR4:=SMA((C-LLV(L,26))/(HHV(H,26)-LLV(L,26))*20,8,1)*5;
VAR5:3*VAR4-2*(SMA(VAR4,3,1)),COLORRED;
VAR6:EMA(VAR5,8),COLOR00FF00;
VAR9:=AMOUNT/VOL/100;
VAR10:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR12:=SUM(AMOUNT,13)/VAR9/100;
VAR13:=SUM(AMOUNT,34)/VAR9/100;
VAR14:=DMA(VAR10,VOL/VAR12);
VAR15:=DMA(VAR10,VOL/VAR13);
VAR16:=100*(CLOSE-VAR14)/VAR14;
VAR17:=100*(CLOSE-VAR15)/VAR15;
VAR18:=VAR3<48 AND VAR16<-8 AND VAR17<-10 AND VAR5<20;
伏击区:IF(VAR18,30,0);
警戒区:IF(VAR3<50 AND VAR16>5 AND VAR5>78,80,90),COLORBLUE,LINETHICK2;
DRAWTEXT( VAR6<20,30,'买');
DRAWTEXT(FILTER(CROSS(VAR6,VAR5)AND VAR5>80,10),80,'卖');