在地量天量指标上加个5倍量的线
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

指标来自理想,哪位老师做的不知道了,先谢过!源码如下:M1:=5;M2:=10;VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;MAVOL1:=MA(VOLUME,M1);MAVOL2:=MA(VOLUME,M2);VAR2:=1*AMOUNT;MA1:=1*MA(AMOUNT,5);MA2:=1*MA(AMOUNT,10);三十日天量:=HHV(VAR2,30)=VAR2;六十日天量:=HHV(VAR2,60)=VAR2;百日天量:=HHV(VAR2,100)=VAR2;一年天量:=HHV(VAR2,250)=VAR2; STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1,0),COLORYELLOW; STICKLINE(百日天量,VOLUME,VOLUME*0.7,1,0),COLORGREEN;STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORFF7100;换手:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;十日换手:SUM(换手,10),COLORGREEN;二十日换手:SUM(换手,20),COLORFFFFFF;三十日换手:SUM(换手,30),COLORYELLOW;三十日地量:LLV(VAR2,30)=VAR2,COLORMAGENTA;六十日地量:LLV(VAR2,60)=VAR2,COLORYELLOW;百日地量:LLV(VAR2,100)=VAR2,COLORGREEN;一年地量:LLV(VAR2,250)=VAR2,COLORFF7100;STICKLINE(三十日地量,-10000,0,1,0),COLORMAGENTA;STICKLINE(六十日地量,-10000,0,1,0),COLORYELLOW;STICKLINE(百日地量,-10000,0,1,0),COLORGREEN;STICKLINE(一年地量,-10000,0,1,0),COLORFF7100;DRAWTEXT(CURRBARSCOUNT=69,105000,'量柱上,粉三十日天量,黄六十日天量,绿百日天量,蓝一年天量'),COLOR8080FF;DRAWTEXT(CURRBARSCOUNT=69,75000,'量柱下,粉三十日地量,黄六十日地量,绿百天地量,蓝一年地量'),COLOR8080FF;问题有二:一是想请老师加个东西在里面,见图。 二是,为什么会连续有两个三十日地量出现?想法是这样的:当出现30日地量时,以三十日地量为参照在5倍于这个量高度的地方,画个线什么的,标尺或是标记都行,横着的色带也可以。放量突破这个5倍的线后,下一次30日地量出现,这个前面的倍量线就不管用了,或是不显示。谢谢老师

解答:

 【1】

M1:=5;
M2:=10;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,M1);
MAVOL2:=MA(VOLUME,M2);
VAR2:=1*AMOUNT;
MA1:=1*MA(AMOUNT,5);
MA2:=1*MA(AMOUNT,10);
三十日天量:=HHV(VAR2,30)=VAR2;
六十日天量:=HHV(VAR2,60)=VAR2;
百日天量:=HHV(VAR2,100)=VAR2;
一年天量:=HHV(VAR2,250)=VAR2; 
STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;
STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1,0),COLORYELLOW;  
STICKLINE(百日天量,VOLUME,VOLUME*0.7,1,0),COLORGREEN;
STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORFF7100;
换手:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;
十日换手:SUM(换手,10),COLORGREEN;
二十日换手:SUM(换手,20),COLORFFFFFF;
三十日换手:SUM(换手,30),COLORYELLOW;
三十日地量:LLV(VAR2,30)=VAR2,COLORMAGENTA;
六十日地量:LLV(VAR2,60)=VAR2,COLORYELLOW;
百日地量:LLV(VAR2,100)=VAR2,COLORGREEN;
一年地量:LLV(VAR2,250)=VAR2,COLORFF7100;
STICKLINE(三十日地量,-10000,0,1,0),COLORMAGENTA;
STICKLINE(六十日地量,-10000,0,1,0),COLORYELLOW;
STICKLINE(百日地量,-10000,0,1,0),COLORGREEN;
STICKLINE(一年地量,-10000,0,1,0),COLORFF7100;
DRAWTEXT(CURRBARSCOUNT=69,105000,'量柱上,粉三十日天量,黄六十日天量,绿百日天量,蓝一年天量'),COLOR8080FF;
DRAWTEXT(CURRBARSCOUNT=69,75000,'量柱下,粉三十日地量,黄六十日地量,绿百天地量,蓝一年地量'),COLOR8080FF;
XX:=BARSLAST(三十日地量);
II:=DRAWLINE(三十日地量,V*5,ISLASTBAR,REF(V*5,XX),1),DOTLINE;
WW:=CROSS(COUNT(CROSS(V>REF(V*5,XX),0.5),XX)=1,0.5);
DRAWLINE(WW,II,REF(WW,1),REF(II,1),1);
 
【2】
出现两个三十三日地量是因为30日地量条件再次成立。

选股票看什么指标最好 >股票指标网