通达信风起神龙副图指标 源码 贴图
- VAR1:=HHV(HIGH,70);
- VAR2:=HHV(HIGH,20);
- VAR3:=VOL*100/CAPITAL;
- VAR4:=MA(VAR3,4);
- VAR5:=MA(VAR3,9);
- VAR6:=MA(VAR3,17);
- VAR7:=MA(VAR3,34);
- 白龙:MA(CLOSE,125),COLORWHITE,NODRAW;
- 黄龙:白龙+2*STD(CLOSE,170),COLORYELLOW,NODRAW;
- 紫龙:白龙-2*STD(CLOSE,145),COLORMAGENTA,NODRAW;
- 青龙:SAR(125,1,7),COLORCYAN,NODRAW;
- 红龙:VAR1*0.83,COLORRED,NODRAW;
- 蓝龙:VAR2*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);
- 主力能量:(VAR4-((VAR4+VAR5+VAR6+VAR7)/4)),NODRAW;
- STICKLINE(主力能量,0,ABS(主力能量),2,0),COLORRED;
- 大户能量:(VAR5-((VAR4+VAR5+VAR6+VAR7)/4)),NODRAW;
- STICKLINE(大户能量,ABS(主力能量),ABS(主力能量)+ABS(大户能量),2,0),COLORYELLOW;
- 中户能量:(VAR6-((VAR4+VAR5+VAR6+VAR7)/4)),NODRAW;
- STICKLINE(中户能量,ABS(主力能量)+ABS(大户能量),ABS(主力能量)+ABS(大户能量)+ABS(中户能量),2,0),COLORMAGENTA;{散户持仓量}
- 散户能量:(VAR7-((VAR4+VAR5+VAR6+VAR7)/4)),NODRAW;
- STICKLINE(散户能量,ABS(主力能量)+ABS(大户能量)+ABS(中户能量),ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量),2,0),COLORGREEN;{主导力量}
- VAR8:=MAX(主力能量,大户能量);
- VAR9:=MAX(中户能量,散户能量);
- VAR10:=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));
- VAR11:=IF(C/REF(C,1)>=1.098 AND C=O,HHV(V,10),HHV(V,3));
- VAR12:=EMA(((CLOSE*VAR11-REF(COST(10),1)*VAR10)/20+250)*1.2/5,3);
- 主导力量:MAX(VAR8,VAR9);
- 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;
- DRAWICON((CROSS(蓝龙,青龙) AND 蓝龙>REF(蓝龙,1)) OR COUNT(VAR12=HHV(VAR12,60),10)=1 AND VAR12=HHV(VAR12,60),红龙*0.89,26);
复制代码
|