云梦1:=HHV(H,70),NODRAW;
云梦2:=HHV(H,20),NODRAW;
白龙:MA(C,125),COLORWHITE,NODRAW;
黄龙:白龙+2*STD(C,170),COLORYELLOW,NODRAW;
紫龙:白龙-2*STD(C,145),COLORMAGENTA,NODRAW;
青龙:SAR(125,1,7),COLORCYAN,NODRAW;
红龙:云梦1*0.83,COLORRED,NODRAW;
蓝龙:云梦2*0.91,COLORBLUE,NODRAW;
DRAWBAND(蓝龙,RGB(0,0,250),0,DRAWNULL);
STICKLINE(青龙>REF(青龙,1),青龙,0,18,0),COLOR000099;
STICKLINE(红龙>白龙 AND 蓝龙>白龙,青龙,白龙,0.5,0),COLORYELLOW;
NOTEXTX1:红龙,COLORRED,LINETHICK3;
NOTEXTX2:白龙,COLORWHITE,CIRCLEDOT,LINETHICK2;
NOTEXTX3:黄龙,COLORYELLOW,LINETHICK1;
NOTEXTX4:紫龙,COLORMAGENTA;
NOTEXTX5:青龙,COLORCYAN,DOTLINE;
DRAWICON(crOSS(蓝龙,青龙) AND 蓝龙>REF(蓝龙,1),红龙,25);
神龙:CROSS(蓝龙,青龙) AND 蓝龙>REF(蓝龙,1);
云梦3:=V*100/CAPITAL;
云梦4:=MA(云梦3,4);
云梦5:=MA(云梦3,9);
云梦6:=MA(云梦3,17);
云梦7:=MA(云梦3,34);
均量:=(云梦4+云梦5+云梦6+云梦7)/4;
主力能量:(云梦4-均量),NODRAW;
主力能量柱:STICKLINE(主力能量,0,Abs(主力能量),2,0),COLORRED;大户能量:(云梦5-均量),NODRAW;
大户能量柱:STICKLINE(大户能量,ABS(主力能量),ABS(主力能量)+ABS(大户能量),2,0),COLORYELLOW;{中户持仓量}
中户能量:(云梦6-均量),NODRAW;
中户能量柱:STICKLINE(中户能量,ABS(主力能量)+ABS(大户能量),ABS(主力能量)+ABS(大户能量)+ABS(中户能量),2,0),COLORMAGENTA;{散户持仓量}
散户能量:(云梦7-均量),NODRAW;
散户能量柱:STICKLINE(散户能量,ABS(主力能量)+ABS(大户能量)+ABS(中户能量),ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量),2,0),COLORGREEN;{主导力量}
云梦8:=MAX(主力能量,大户能量);
云梦9:=MAX(中户能量,散户能量);
主导力量:MAX(云梦8,云梦9);
DRAWTEXT(ISLASTBAR=1 AND 主力能量>=0,主力能量/2,'[主力增仓]'),COLORRED;
DRAWTEXT(ISLASTBAR=1 AND 主力能量<0,ABS(主力能量)/2,'[主力减仓]'),COLOR00FF00;
DRAWTEXT(ISLASTBAR=1 AND 大户能量>=0,ABS(主力能量)/2+0.8,'[大户增仓]'),COLORFF00FF;
DRAWTEXT(ISLASTBAR=1 AND 大户能量<0,ABS(主力能量)/2+0.8,'[大户减仓]'),COLOR38FF38;
DRAWTEXT(ISLASTBAR=1 AND 中户能量>=0,ABS(主力能量)/2+1.6,'[中户增仓]'),COLORFF60FF;
DRAWTEXT(ISLASTBAR=1 AND 中户能量<0,ABS(主力能量)/2+1.6,'[中户减仓]'),COLOR66FF66;
DRAWTEXT(ISLASTBAR=1 AND 散户能量>=0,ABS(主力能量)/2+2.3,'[散户增仓]'),COLORFF88FF;
DRAWTEXT(ISLASTBAR=1 AND 散户能量<0,ABS(主力能量)/2+2.3,'[散户减仓]'),COLOR88FF88;
姑苏:=IF(C/REF(C,1)>=1.098 AND C=O,EMA(EMA(EMA(HHV(V,10),3),13),360),EMA(EMA(EMA(V,3),13),360));
云深:=IF(C/REF(C,1)>=1.098 AND C=O,HHV(V,10),HHV(V,3));
云梦云深不知处:=EMA(((CLOSE*云深-REF(COST(10),1)*姑苏)/20+250)*1.2/5,3),COLORRED,LINETHICK2;
DRAWICON((CROSS(蓝龙,青龙) AND 蓝龙>REF(蓝龙,1)) OR COUNT(云梦云深不知处=HHV(云梦云深不知处,60),10)=1 AND 云梦云深不知处=HHV(云梦云深不知处,60),红龙*0.89,26);