M:=32;
TRTR:= MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
A:=EMA(TRTR,20)*2;
B:=HHV(C-A,20);
红线卖要跌:IF((C>B OR C=B),C,B),COLOR0000FF,LINETHICK3;
黄线买要涨:IF(C< B,C,B),COLORYELLOW,LINETHICK3;
GG:C,COLOR550033,LINETHICK3;
VAR444:=C;
操作:=MA(VAR444,5);
收盘破此线短逃:HHV(操作,13),LINETHICK4,COLORFFB9CC;
STICKLINE(C>收盘破此线短逃,L,H,0.1,1),COLORRED;
STICKLINE(C>收盘破此线短逃,C,O,6,1),COLORRED;
STICKLINE(C>收盘破此线短逃,C,O,8,1),COLORRED;
STICKLINE(C< 收盘破此线短逃,C,O,8,1),COLORFFFF00;
STICKLINE(C< 收盘破此线短逃,C,O,6,1),COLOR00FF00;
STICKLINE(C< 收盘破此线短逃,L,H,0.1,1),COLOR00FF00;
VAR1:=DMA(AMOUNT/VOL/100, VOL/CAPITAL);
VAR2:=MA(WINNER(HIGH)-WINNER(VAR1), N);
VAR3:=MA(WINNER(LOW)-WINNER(VAR1), M);
VAR4:=VAR3-VAR2;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10>1,L*0.98,'入'),COLORYELLOW;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10>1,L*0.95,'点'),COLORYELLOW;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10< 1 AND VAR4*10>0.55,L*0.98,'入'),COLORGREEN;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10< 1 AND VAR4*10>0.55,L*0.95,'2'),COLORGREEN;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10<=0.55,L*0.98,'入'),COLORYELLOW;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10<=0.55,L*0.95,'1'),COLORYELLOW;