DRAWTEXT_FIX(1,0.00,0.00,0,'【★★仓位控制的量化标准★★】'),COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.05,0,'【★★1、粉+红=满,2、粉+绿=6,3、蓝+红=4,4、蓝+绿=空★★】'),COLOR00FFFF;
AHC1:=CLOSE*VOL;
AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13),POINTDOT,COLORYELLOW;
AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,216)/EXPMA(VOL,216))/4,11),POINTDOT,COLORWHITE;
天线1:AHC2*1.01;
天线3:AHC2*0.97;
NOTEXT天线01:IF(天线1>REF(天线1,1),天线1,DRAWNULL),COLORRED;
NOTEXT天线11:IF(天线1
NOTEXT天线03:IF(天线3>REF(天线3,1),天线3,DRAWNULL),COLORRED; NOTEXT天线13:IF(天线3
STICKLINE(天线1>REF(天线1,1),天线1,天线3,0,0),COLORRED; STICKLINE(天线1
空:=REF(C,1)>REF(天线3,1) AND C<天线3; 多:=REF(C,1)天线1; 空1:=TFILTER(多,空,2); 多1:=TFILTER(多,空,1); DRAWTEXT(空1,天线1*1.04,'空'),COLORGREEN; DRAWTEXT(多1,天线3*0.96,'多'),COLORRED; DRAWICON(空1,天线1*1.02,2); DRAWICON(多1,天线3*0.98,1); 天线12:=AHC22; 天线32:=AHC22*0.97; NOTEXT天线012:IF(天线12>REF(天线12,1),天线12,DRAWNULL),COLORMAGENTA; NOTEXT天线112:IF(天线12
NOTEXT天线032:IF(天线32>REF(天线32,1),天线32,DRAWNULL),COLORMAGENTA; NOTEXT天线132:IF(天线32
STICKLINE(天线12>REF(天线12,1),天线12,天线32,0,0),COLORMAGENTA;