量价:=(VOL/CLOSE)/3;
统计主动买量:=SUM((IF(((量价 0.20) AND (CLOSE (REF(CLOSE,1)))),量价,0)),0);
统计主动卖量:=SUM((IF(((量价 0.20) AND (CLOSE (REF(CLOSE,1)))),量价,0)),0);
涨停能量:=((统计主动买量)/统计主动卖量)*10;
{DRAWGBK(涨停能量 30, RGB(150,0,0),RGB(00,0,0),0,0,1);
STICKLINE(涨停能量 30,O,涨停能量,8,0),COLORRED;}
X_1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_2:=SMA(X_1,9,1);
X_3:=SMA(X_2,9,1);
X_4:=3*X_2-2*X_3;
X_5:=CROSS(X_4,95);
趋势线:X_4,DOTLINE,COLORWHITE;
仓位控制:ROUND(10-X_4/10),NODRAW;
DRAWICON(X_5,100,15);
X_6:=EMA(CLOSE,12)-EMA(CLOSE,150);
X_7:=EMA(X_6,9);
探底:(X_6-X_7)*2,NODRAW;
X_8:=探底 0 AND 探底 REF(探底,1) AND REF(探底,1) REF(探底,2) AND REF(探底,2) REF(探底,3) AND REF(探底,3) REF(探底,4) AND X_4
底部启动:0,COLORYELLOW;
DRAWICON(X_8,2,34);
风险区:90,DOTLINE,COLORBLUE;
VAR1T:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR2T:=2*ABS(VAR1T);
VAR5T:=(HIGH+LOW+CLOSE)/3;
VAR6T:=(VAR5T-MA(VAR5T,14))/(0.015*AVEDEV(VAR5T,14));
VAR7T:=(VAR5T-MA(VAR5T,70))/(0.015*AVEDEV(VAR5T,70));
VAR8T:=IF(VAR6T =150 AND VAR6T 200 AND VAR7T =150 AND VAR7T 200,10,0);
VAR9T:=IF(VAR6T =-150 AND VAR6T -200 AND VAR7T =-150 AND VAR7T -200,-10,VAR8T);
VARAT:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VARBT:=100-ABS(VARAT);
预警系统:=IF(VAR7T =200 AND VAR6T =150,100,IF(VAR7T =-200 AND VAR6T =-150,-5,VAR9T))+0;
DRAWBAND(预警系统,RGB(10,100,10),0,RGB(100,10,0));