以下是同花顺黄金量柱公式
同花顺黄金量柱公式
完全标准的黄金倍量柱,已经修改完美了!关键是看量柱突破量均线以及回抽站稳。
源码
总手:=VOL;
HPLZ1:=V/REF(V,1)>=0.95 AND V/REF(V,1)<=1.05;
HLZ2:=REF(HHV(V,2),1);
HPLZ2:=V/HLZ2>=0.95 AND V/HLZ2<=1.05;
HLZ3:=REF(HHV(V,3),1);
HPLZ3:=V/HLZ3>=0.95 AND V/HLZ3<=1.05;
HLZ4:=REF(HHV(V,4),1);
HPLZ4:=V/HLZ4>=0.95 AND V/HLZ4<=1.05;
HLZ5:=REF(HHV(V,5),1);
HPLZ5:=V/HLZ5>=0.95 AND V/HLZ5<=1.05;
HLZ6:=REF(HHV(V,6),1);
HPLZ6:=V/HLZ6>=0.95 AND V/HLZ6<=1.05;
HLZ7:=REF(HHV(V,7),1);
HPLZ7:=V/HLZ7>=0.95 AND V/HLZ7<=1.05;
HLZ8:=REF(HHV(V,8),1);
HPLZ8:=V/HLZ8>=0.95 AND V/HLZ8<=1.05;
HLZ9:=REF(HHV(V,9),1);
HPLZ9:=V/HLZ9>=0.95 AND V/HLZ9<=1.05;
HLZ10:=REF(HHV(V,10),1);
HPLZ10:=V/HLZ10>=0.95 AND V/HLZ10<=1.05;
HLZ11:=REF(HHV(V,11),1);
HPLZ11:=V/HLZ11>=0.95 AND V/HLZ11<=1.05;
HLZ12:=REF(HHV(V,12),1);
HPLZ12:=V/HLZ12>=0.95 AND V/HLZ12<=1.05;
HLZ13:=REF(HHV(V,13),1);
HPLZ13:=V/HLZ13>=0.95 AND V/HLZ13<=1.05;
PLZ:=HPLZ13 OR HPLZ12 OR HPLZ11 OR HPLZ10 OR HPLZ9 OR HPLZ8 OR HPLZ7 OR HPLZ6 OR HPLZ5 OR HPLZ4 OR HPLZ3 OR HPLZ2 OR HPLZ1;
N:=100;
DDL:=100*(V-LLV(V,N))/(HHV(V,N)-LLV(V,N));
M:=13;
DL:=100*(V-LLV(V,M))/(HHV(V,M)-LLV(V,M));
倍量:V>=REF(V,1)*1.8,coloryellow;
低量:(V<=HHV(V,13)*0.33 OR DL<5 ) AND V<REF(V,1),colormagenta;
地量:V<=MA(LLV(V,100),100) OR (DDL<4 AND V<REF(V,1)),colorgreen;
平量:PLZ,colorwhite;
倍缩:V<=REF(V,1)*0.55,colorred;
缩量涨:(COUNT(C>REF(C,1),2)=2 AND COUNT(V<REF(V,1),2)=2),colorblue;
STICKLINE(C>O,0,V,8,1),colorred;
STICKLINE(C<=O,0,V,8,0),colorliblue;
STICKLINE(平量,0,V,3,0),colorwhite;
STICKLINE(倍量,0,V,4.8,0),coloryellow;
STICKLINE(倍缩,0,V,3,0),colorred;
STICKLINE(低量,0,V,3,0),colormagenta;
STICKLINE(地量,0,V,3,0),colorgreen;
STICKLINE(缩量涨,0,V,3,0),colorblue;
DRAWTEXT(倍量,V*1.09,\’倍\’),coloryellow;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黄金柱:FILTER(HJZ3,5),STICK,colorred,LINETHICK1;
STICKLINE(黄金柱,0,V,2.8,0),colorred;
DRAWTEXT(黄金柱,V*1.23,\’黄\’),colorred;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),colorred,POINTDOT,NODRAW;
主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(主卖<0,0,主卖,8,0),colorgreen;
DRAWTEXT(VOL=HHV(VOL,0),HHV(VOL,30)*0.918,\’天量\’),colorred;
MAV5:MA(V,5),,colorred;
MA35:MA(V,35),colorliblue,LINETHICK1;
MAV120:MA(V,120),coloryellow,LINETHICK2;
{大型股票公式,股票编程,股票技术教程投稿平台-你就是股神,网址:694.cn 备注:如果正文内容没有显示完全的,说明在附件中,请点击‘立即下载’下载该附件!}