通达信倍量黄金柱公式大全

合集下载

黄金柱 通达信公式

黄金柱 通达信公式

DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORBLUE;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); {DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;}AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);{前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE; }{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);{TIM:=IF(DATE<1940214,1,0);}缩倍柱:=(VOL*1.9<=REF(VOL,1)){*TIM};百日低量:=(VOL=LLV(VOL,100)){*TIM};倍量柱:=C>REF(C,1)*1.02 AND (VOL>=1.9*REF(VOL,1)){*TIM};四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4)){*TIM};四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩){*TIM};前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FI LTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FI LTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FI LTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT205 3);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NOD RAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NO DRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1), REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL, REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL, REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL, REF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NO DRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW; STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW;日5:MA(C,5);日30:MA(C,30);。

通达信黄金柱主图公式源码

通达信黄金柱主图公式源码

通达信黄金柱主图公式源码M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;M6:=120;M7:=240;MA5攻击线:EMA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10操盘线:EMA(CLOSE,10),LINETHICK2,COLOR00FFFF;MA20月线:EMA(CLOSE,20),LINETHICK2,COLORFF00FF;MA30生命线:EMA(CLOSE,M4),LINETHICK2,COLORFF6600;MA60决策线:EMA(CLOSE,M5),LINETHICK1,COLOR009933;MA120趋势线:EMA(CLOSE,M6),COLOR006699,LINETHICK1;MA240年线:EMA(CLOSE,M7),COLOR002299,LINETHICK1;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);AA11:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB11:=REF(COUNT(C<MA60,AA11)=AA11,1);CC11:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB11 AND CC11;DRAWTEXT(芙蓉出水,H,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.1,0),COLORFF00FF;STICKLINE(芙蓉出水,O,C,1.1,1),LINETHICK1,COLORFF00FF;ZJ:=AMOUNT/10000;TM:=V-MA(V,10);一穿三:=MA5>O AND MA10>O AND MA30>O AND MA5<C AND MA10<C AND MA30<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L,'◆一穿三'),COLORFFFFFF;STICKLINE(一穿三,OPEN,CLOSE,5,0),COLORCC0066;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND(REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破))AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3);BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;{重绘K线}DRAWKLINE(H,O,L,C);{重绘K线显示大阳\大阴\涨停\跌停\假阴,适用于通达信}RC1:=REF(C,1);涨停率10:=10-1/RC1;{178448-WEN98编写}涨停率5:=5-1/RC1;比前涨率:=(C-RC1)*100/RC1;比前跌率:=(RC1-C)*100/RC1;ST:=NAMELIKE('ST') OR NAMELIKE('*ST');涨停:= IF(ST, (比前涨率>=涨停率5), (比前涨率>=涨停率10));本日涨率:=(C-O)*100/O;本日跌率:=(O-C)*100/O;STICKLINE((H-RC1)*100/RC1>=涨停率10,H,MAX(C,O),1,0),COLORYELLOW;{涨停后回落}STICKLINE((RC1-L)*100/RC1>=涨停率10,L,MIN(C,O),1,0),COLORBLUE;{跌停后回升}跌停:= IF(NAMELIKE('ST'), (比前跌率>=涨停率5), (比前跌率>=涨停率10));STICKLINE(跌停,O,C,1,0),COLORLIBLUE;大阳线:=C>O AND (比前涨率>=涨停率5 OR 本日涨率>=涨停率5)AND 比前涨率<涨停率10 AND 涨停=0;STICKLINE(大阳线,O,C,0.5,0),COLORFF99FF;大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5)AND 比前跌率<涨停率10 AND 跌停=0;STICKLINE(大阴线,O,C,1,0),COLOR009933;{假阴柱}假阴:=C<O AND C>REF(C,1);STICKLINE(假阴,O,C,1,0),COLORRED;{假阳柱}假阳:=C>O AND C<REF(C,1);STICKLINE(假阳,O,C,1,0),COLORGREEN;{涨停}AAAA:=CLOSE/REF(C,1)>=1.09;STICKLINE(AAAA,O,C,1,0),COLORYELLOW;STICKLINE(AAAA,L,H,1,0),COLORYELLOW;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,1,0),COLORBLUE;DRAWTEXT(立桩量成立,HIGH,'←立柱'),COLORGREEN;DRAWTEXT(FILTER101,LOW,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER104,LOW,'↖将军柱'),COLORRED;STICKLINE(FILTER104,OPEN,CLOSE,0.1,1),COLORYELLOW;{设立参数:百分比(2,20,5), 右数峰序(2,20,2)}{ZIG(3,5);}百分比:=5;右数峰序:=2;波谷值: CONST(TROUGH(2,百分比,1)),NODRAW;波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;波峰值:= CONST(PEAK(1,百分比,右数峰序));允许误差:=0.024;XG:= ABS(波峰值-波谷值)<=允许误差{AND BARSCOUNT(V)>60};波峰距离:= 1+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW;距离:=CURRBARSCOUNT;DRAWLINE(距离=波峰距离AND XG,波谷值,距离=1,波谷值,-1),COLORFF0099;DRAWTEXT(距离=波谷距离AND XG,L,' ↖精准峰谷线'),COLORFF0099;DRAWICON(距离=波峰距离,H,2);{波峰位置}DRAWICON(距离=波谷距离,L,1);{波谷位置}精准点:=(ABS(H-波谷值)<=允许误差OR ABS(L-波谷值)<=0.024) {AND 距离<=120};STICKLINE(精准点,波谷值,波谷值,40,-1),COLORFF6600;{画精准谷底线}波谷值2:= CONST(TROUGH(2,百分比,2));波谷值3:= CONST(TROUGH(2,百分比,3));波谷值4:= CONST(TROUGH(2,百分比,4));波谷距离2:= 1+CONST(TROUGHBARS(2,百分比,2));波谷距离3:= 1+CONST(TROUGHBARS(2,百分比,3));波谷距离4:= 1+CONST(TROUGHBARS(2,百分比,4));XG2:= ABS(波谷值-波谷值2)<=允许误差;XG3:= ABS(波谷值-波谷值3)<=允许误差;XG4:= ABS(波谷值-波谷值4)<=允许误差;XGL:=(距离=波谷距离2 AND XG2) OR (距离=波谷距离3 AND XG3)OR (距离=波谷距离4 AND XG4);DRAWLINE(XGL,波谷值,距离=1,波谷值,-1),COLORFFFF33;DRAWTEXT(XGL,L,' -------↖精准谷底线'),COLORFFFF33;{精准线WEN98的}N110:=3;L0:=0.00;{点位差参数}{底精准线}L1:=ABS(L-REF(L,1))<=L0;L2:=ABS(L-REF(L,2))<=L0;L3:=ABS(L-REF(L,3))<=L0;L4:=ABS(L-REF(L,4))<=L0;L5:=ABS(L-REF(L,5))<=L0;精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;精准左:=FILTER(精准线首次,N110) ;天数:=BARSLAST(精准左);LTS:=REF(L,天数);精准右:=ABS(L-LTS)<=L0;STICKLINE(精准左,L,L,30,-1),COLORMAGENTA;{顶精准线}G1:=ABS(H-REF(H,1))<=L0;G2:=ABS(H-REF(H,2))<=L0;G3:=ABS(H-REF(H,3))<=L0;G4:=ABS(H-REF(H,4))<=L0;G5:=ABS(H-REF(H,5))<=L0;精准线首次1:=G1 OR G2 OR G3 OR G4 OR G5;精准左1:=FILTER(精准线首次1,N110) ;天数1:=BARSLAST(精准左1);HTS:=REF(H,天数1);精准右1:=ABS(H-HTS)<=L0;STICKLINE(精准左1,H,H,30,-1),COLOR00FF00;{必杀线}N:=10;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));必杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK5,COLOR0000FF;杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLOR00FFFF;DRAWTEXT(ISLASTBAR, T3HIGH, ' 必杀线')LINETHICK1,COLOR002299;。

通达信公式指标源码量柱量线主图.doc

通达信公式指标源码量柱量线主图.doc

量柱量线主图(主图公式源码贴图)DING:=MAX(O,C);{实顶}DI:=MIN(O,C);{实底}YANG:=(DI>=REF(DING Z1)) OR (C>0 AND NOT(DING<=REF(DI,1))) OR(C>REF(C,1) AND C=0) OR (C=REF(C,1) AND C=O AND REF(DING Z1)=C);{K 线}YIN:=N OT(YANG);{YIN:=(C<0 AND NOT(DI>=REF(DING,1))) OR (C>0 AND DING< = REF(DI,1)) OR (CvREF(C,l) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DI,1)=C);{|^ 线}}YANGSHENG:YANG AND C> = REF(DING,BARSLAST(YIN)) AND(V>REF(V Z BARSLAST(YIN)) OR(BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V z BARSLAST(YIN))*1.05))),N ODRAW;■1LIANGJIABI:V/C,NODRAW;MALIANGJIABI:MA(LIANGJIABI,3)Z NODRAW;LIANGJIABIXISHU:=1.5;BLZ:=V>REF(V,1)*1.5;PLZ:=BETWEEN(V,REF(V z l)*0.95z REF(V,l)*1.05) ORBETWEEN(V,REFX(V,l)*0.95,REFX(V z l)*1.05) OR(BETWEEN(V z REF(V,2)*0.95,REF(V,2)*1.05) AND V>REF(V,1)*1.2) OR (BETWEEN(V z REF(V z3)*0.95z REF(V z3)*1.05) AND V>REF(MA(V,2),1)*1.2 AND V>REF(HHV(V Z2),1)) OR(BETWEEN(V z REF(V,4)*0.95,REF(V,4)*1.05) AND V>REF(MA(V,3),1)*1.2 AND V>REF(HHV(V Z3)Z1)) OR(BETWEEN(V z REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(MA(V Z4)Z1)*1.2 AND V>REF(HHV(V,4),1)) OR(BETWEEN(V,REF(V/6)*0.95,REF(V,6)*1.05) AND V>REF(MA(V,5),1)*1.2 AND V>REF(HHV(V Z5),1)) OR(BETWEEN(V z REF(V,7)*0.95z REF(V,7)*1.05) AND V>REF(MA(V Z6),1)*1.2 AND V>REF(HHV(V,6)Z1)) OR(BETWEEN(V z REF(V z8)*0.95z REF(V,8)*1.05) AND V>REF(MA(V,7),1)*1.2 AND V>REF(HHV(V,7),1)) OR(BETWEEN(V z REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(MA(V,8),1)*1.2 AND V>REF(HHV(V,8)Z1)) OR(BETWEEN(V z REF(V,10)*0.95z REF(V,10)*1.05) AND V>REF(MA(V Z9)Z1)*1.2 AND V>REF(HHV(V,9),1)) OR(BETWEEN(V,REF(V,ll)*0.95,REF(V/ll)*1.05) AND V>REF(MA(V/10),l)*1.2 AND V>REF(HHV(V,10),1)) OR(BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V>REF(MA(V Z11)Z1)*1.2 AND V>REF(HHV(V Z11)Z1));GLZ:=V=HHV(V z3) AND V=REFX(HHV(V,3)Z2);TLZ:=(V*1.1<REFX(V,1) AND REFX(V,1)*1.1<REFX(V,2)) OR(V>REF(V Z1)*1.1 AND V*1.1<REFX(V,1)) OR (V>REF(V,1)*1.1 ANDREF(V,1)>REF(V,2)*1.1);JSLS:=C<=REFX(C Z1) AND REFX(C,l)v二REFX(C,2) ANDLIANGJIABI>REFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1)>REFX(LIANGJIABI,2); JZ:=BLZ OR GLZ OR PLZ OR TL乙NODRAW;JJZ:=CURRBARSCOUNT>=4 AND YANG AND (YANGSHENG) AND JZ ANDREFX(LLV(DI,3),3)>=DI AND(REFX(MA(LIANGJIABI,3),3)<=LIANGJIABIXISHU*LIANGJIABI OR REFX(JSLSJ)) AND REFX(C,3)>=DING,NODRAW;HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING ANDREFX(MA(LIANGJIABI Z3),3)<=LIANGJIABI AND REFX(YANGQ);HJZ2:=YANG AND YANGSHENG AND JZ AND REFX(DI,1)>=DI AND REFX(JJ乙2) AND REFX(C,2)>DING AND REFX(LIANGJIABI Z1)<LIANGJIABI;HJZ3:=YANG AND YANGSHENG AND JZ AND REFX(LLV(DI,2),2)>=DI AND REFX(JJ乙3) AND REFX(C,3)>DING ANDREFX(MA(LIANGJIABI Z2),2)<LIANGJIABI;HJZ4:=JJZ AND REFX(LLV(DI,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)< = LIANGJIABI AND REFX(YANG,3) AND (REFX(YANG’l) OR REFX(YANG,2));WP:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW;CONDJJZ:=JJZ AND REF(NOT(WP)Z1);CONDHJZ1:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP)Z1);STICKLINE(CONDJJZ,C,0,1,0),COLORYELLOW;STICKLINE(CONDHJZl,C,O,l,0)z COLORMAGENTA;DRAWTEXT(HJZ4 AND REF(NOT(HJZ4)z l),L*0.98;H,),COLORRED; DRAWLINE(CONDJJZ,DING z REF(CONDJJ 乙1)'REF(DING,1),1)/COLORBROWN; DRAWLINE(CONDJJ 乙DI,REF(CONDJJ 乙1),REF(DI,1),1),COLORBROWN; DRAWLINE(CONDHJZl,DING z REF(CONDHJZl,l)z REF(DING,l)z l),COLORBRO WN; DRAWLINE(CONDHJZl,DI z REF(CONDHJZl,l),REF(DI,l)z l),COLORBROWN;VOL5:=MA(VOL,5)Z COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,40),COLORFFOOFF ;MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10)Z COLORYELLOW;MA20:=MA(CLOSE,20),COLORMAGENTA;MA60: = MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托z L-0.012;量托 *),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60<AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,l))/REF(C z l)*100>3;芙蓉出水: = BB AND CC1,COLOROOFFOO;DRAWTEXT(芙蓉岀水,H+0・12,芙蓉出水'),COLORFFOOFF;STICKLINE(芙蓉出水Z H Z L,0.5,1)Z COLORFFOOFF;STICKLINE(芙蓉出水Q ,C,3,1),LINETHICK2,COLORFFOOFF;MA1: = MA(CLOSE,14);MA2: = MA(CLOSE,25);MA3: = MA(CLOSE,99);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:二MA1>O AND MA2>0 AND MA3>0 AND MA1<C AND MA2<C ANDMA3<C AND CLOSE>OPEN ;DRAWTEXT( 一穿三丄-0.012;穿J,COLORFFOOFF;TY:=C;Al:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,1O); C1:=BACKSET(B1,104-1); HD:=FILTER(C1,1O);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+l); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOROOFFOO,POINTDOT;STICKLINE(C,前期高位,前期高位,8z O)/COLORRED;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLOR BLUE;三日不破:=MIN(MIN(L,REF(L/1))Z REF(L,2))>=REF(L Z3);三日量缩:=(MAX(MAX(V Z REF(V,1)),REF(V,2))<REF(V Z3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C Z1);三日价涨C:=MIN(MIN(C Z REF(C Z1)),REF(C Z2))>=REF(L,3);TIM: =IF(DATE < 1140214z 1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C z l)*l-04 AND (VOL> = 1.9*REF(VOL, 1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)> = REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱⑴AND (REF(三日不破,1) ORREF(三日价涨C z l)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,l)),3)=0;倍量黄金柱:二四日前倍量柱AND三日量缩AND三日不破AND三日价涨A AND前三引用不成立;高量黄金柱:=四日前高量柱AND三口量缩AND三口不破AND三日价涨AAND前三引用不成立;黄金柱:=倍量黄金柱OR高量黄金柱;次倍量黄金柱: = NOT(黄金柱)AND四日前倍量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;次高量黄金柱: = NOT(黄金柱)AND四口前高量柱AND三口量缩AND三口不破AND三日价涨BAND前三引用不成立;次黄金柱:二次倍量黄金柱OR次高量黄金柱;准倍量黄金柱: = NOT(黄金柱OR次黄金柱)AND四日前倍量柱AND((三日量缩AND三日价涨C) OR (COUNT(倍量tt,3)> = l AND三日不破))AND前三引用不成立;准高量黄金柱: = NOT(黄金柱OR次黄金柱)AND四H前高量柱AND (三H量缩AND三日价涨C) AND前三引用不成立;准黄金柱:二准倍量黄金柱OR准高量黄金柱;倍量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前倍量柱AND 三口不破AND三口价涨A AND前三引用不成立;高量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱)AND四H前高量柱AND三日不破AND三日价涨A AND前三引用不成立;将军柱:二倍量将军柱OR高量将军柱;次倍量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四口前倍量柱AND三口不破AND三口价涨BAND前三引用不成立;次高量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前高量柱AND三日不破AND三日价涨BAND前三引用不成立;次将军柱:二次倍量将军柱OR次高量将军柱;准倍量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四口前倍量柱AND三口价涨CAND前三引用不成立;准高量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前高量柱AND三日价涨C AND前三引用不成立;准将军柱:二准倍量将军柱OR准高量将军柱;BACKSET100:=BACKSET(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR 次将军柱OR准将军柱,4);FILTER100:=FILTER(BACKSET100,3)Z NODRAW;BACKSET101:=BACKSET(黄金柱,4); FILTER101:=FILTER(BACKSET101,3); BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102z3);BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER (BACKSET103z3);BACKSET104:=BACKSET(将军柱,4); FILTER104:=FILTER(BACKSET104,3); BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,3);黄金线下影线: = REF(FILTER100z3)=l ANDMIN(MIN(L,REF(L,1))/REF(L,2))<=REF(L Z3);黄金线实体下端: = REF(FILTER100z3)=l ANDMIN(MIN(L Z REF(L,1))Z REF(L,2))<=MIN(REF(C,3)Z REF(O,3)) ANDMIN(MIN(L,REF(L,l)),REF(L,2))>REF(L,3)z LINETHICK0;黄金线上影线: = REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1))Z REF(L Z2))>=REF(H,3);黄金线实体上端: = REF(FILTER100z3)=l ANDMIN(MIN(L,REF(L,1)),REF(L Z2))>=MAX(REF(C Z3)Z REF(O Z3)) ANDREF(FILTER100,3)=l AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体屮间: = REF(FILTER100,3)=l ANDMIN(MIN(L,REF(L Z1))Z REF(L Z2))<MAX(REF(C,3),REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1)),REF(L Z2))>MIN(REF(C Z3),REF(O,3));黄金线实体中间l:=REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1)),REF(L,2))<MAX(REF(C Z3)Z REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1))Z REF(L,2))>MIN(REF(C,3)Z REF(O,3)) ANDREF(L Z2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1)),REF(L,2))<MAX(REF(C Z3)Z REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1))Z REF(L,2))>MIN(REF(C,3)Z REF(O,3)) ANDREF(L Z1)=MIN(MIN(L,REF(L,1))Z REF(L Z2));黄金线实体中间3:=REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1)),REF(L,2))<MAX(REF(C Z3)Z REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1))Z REF(L,2))>MIN(REF(C,3)Z REF(O,3)) ANDL=MIN(MIN(L Z REF(L Z1))Z REF(L,2));BACKSET201:=BACKSET(黄金线卜影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202z3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052z3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;盯201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER201));盯202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER202));盯203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE)/BARSLA ST(FILTER203));盯204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER204));盯205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER205));盯2051:=IF(BARSU\ST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE)Z BARSU\ST(FILTER2052));盯2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2053));最近黄金线: = MIN(MIN(MIN(MIN(MIN(MIN(BT201, BT202)z BT203),BT204),BT2051), BT 2052),BT2053);DAY1:=SUMBARS(FILTER1OO,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1Z IF(DAY1=1Z LOW,REF(LOW,DAY1 -1)),0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202Z1)=DAY1/IF(DAY1=1Z MIN(C/0),MIN(REF(CDAYl-l),REF(OPEN,DAYl-l)))z O),NODRAW;zHJX1_3:=IF(SUMBARS(FILTER2O3Z1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY 1-1)),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204Z1)=DAY1,IF(DAY1=1,MAX(C,0),MAX(REF( C,DA Y1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,D RAWNULL,REF(LOW,DAYl-2)))z O),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052Z1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,D RAWNULL,REF(LOWQAY1・3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053Z1)=DAY1,IF(DAY1=4Z LOW Z IF(DAY1<4,D RAWNULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:HJX1 1+HJX1 2+HJX1 3+HJX1 4+HJX1 51+HJX1 52+HJX1 53,COLORY ELLOW,NODRAW;立桥量:=VOL=HHV(VOL Z40) AND VOL>1.9*REF(VOL Z1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1)Z1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2)Z1Z IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),l z O)));立桩量三日不破: = BARSLAST(立桩量)=3 ANDREF(LOW Z3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三H 不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立: = FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH*1・O1//立桩量jCOLORRED; DRAWTEXT (FILTER101,LOW *0・986,\ 黄金柱jCOLORYELLOW; DRAWTEXT (FILTER102,LOW *0・986,\ 次黄金柱)COLORYELLOW; DRAWTEXT (FILTER104 丄OW*0・986,\ 将军柱)COLORYELLOW;。

黄金柱K线公式

黄金柱K线公式

{量柱定义}倍量柱:V>=REF(V,1)*1.9,COLORMAGENTA,NODRAW;高量柱:FILTER(V>=HHV(V,20),10),COLORGREEN,NODRAW;低量柱:V<=LLV(V,10) OR V*1.9<=REF(V,1)COLORBLUE,NODRAW;梯量柱:BARSLASTCOUNT(V>REF(V,1)*1.05)>=3,COLORLIBLUE,NODRAW;缩量柱:BARSLASTCOUNT(V*1.05<REF(V,1))>=3,COLORLIRED,NODRAW;平量柱: MAX(V,REF(V,1))/MIN(V,REF(V,1))<=1.03&&MAX(V,REF(V,1))/MIN(V,REF(V,1))>=1,COLORWHITE,NODRAW;X1:=COUNT(C>REF(C,1)&&倍量柱=1,3)=1&&BARSLASTCOUNT(L>=REF(L,1))>=3; X2:=COUNT(高量柱,3)=1&&BARSLASTCOUNT(L>=REF(L,1))>=3;X3:=COUNT(低量柱,3)=1&&BARSLASTCOUNT(L>=REF(L,1))>=3;X4:=COUNT(平量柱,3)=1&&BARSLASTCOUNT(L>=REF(L,1))>=3;X5:=COUNT(梯量柱,3)=1&&BARSLASTCOUNT(L>=REF(L,1))>=3;X6:=COUNT(缩量柱,3)=1&&BARSLASTCOUNT(L>=REF(L,1))>=3;X7:=MAX(C>O&&C/REF(C,1)>=1.02,C>O&&C/O>=1.03);黄金柱:=(X1 OR X2 OR X4 ORX5)&&X7&&NOT(ISLASTBAR),NODRAW,COLORYELLOW;{K线图定义}{STICKLINE(C>REF(C,1)&&倍量柱=1,O,C,1.5,0)COLORMAGENTA;STICKLINE(C>REF(C,1)&&倍量柱=1,L,H,0,0)COLORMAGENTA;STICKLINE(高量柱=1,O,C,1.5,0)COLORGREEN;STICKLINE(高量柱=1,L,H,0,0)COLORGREEN;STICKLINE(低量柱=1,O,C,1,0)COLORBLUE;STICKLINE(低量柱=1,L,H,0,0)COLORBLUE;STICKLINE(平量柱=1,O,C,1,0)COLORWHITE;STICKLINE(平量柱=1,L,H,0,0)COLORWHITE;STICKLINE(梯量柱=1,O,C,1.5,0)COLORLIBLUE;STICKLINE(梯量柱=1,L,H,0,0)COLORLIBLUE;STICKLINE(缩量柱=1,O,C,1,0)COLORLIRED;STICKLINE(缩量柱=1,L,H,0,0)COLORLIRED;STICKLINE(黄金柱,O,C,2,0)COLORYELLOW;STICKLINE(黄金柱,L,H,0,0)COLORYELLOW;DRAWTEXT(C>=1.05*REF(C,1)OR 黄金柱&&NOT(ISLASTBAR),C,'_________________________')COLORYELLOW; DRAWTEXT(黄金柱&&NOT(ISLASTBAR),LOW,'---------------------------------------------------------')COLORYELLOW;DRAWTEXT(倍量柱&&MAX(C>O&&C/REF(C,1)>=1.03,C>O&&C/O>=1.03)&&NOT(ISLASTBAR),C,'_____________')COLORLIMAGENTA;DRAWTEXT(倍量柱&&MAX(C>O&&C/REF(C,1)>=1.03,C>O&&C/O>=1.03)&&NOT(ISLASTBAR),LOW,'--------------------')COLORLIMAGENTA;}H1:CONST(PEAK(H,3,1))COLORLICYAN;H2:CONST(PEAK(H,3,2))COLORLICYAN;H3:CONST(PEAK(H,3,3))COLORLICYAN;H4:CONST(PEAK(H,3,4))COLORLICYAN;H5:CONST(PEAK(H,3,5))COLORLICYAN;H6:CONST(PEAK(H,3,6))COLORLICYAN;L1:CONST(TROUGH(L,3,1))COLORLIGRAY;L2:CONST(TROUGH(L,3,2))COLORLIGRAY;L3:CONST(TROUGH(L,3,3))COLORLIGRAY;L4:CONST(TROUGH(L,3,4))COLORLIGRAY;L5:CONST(TROUGH(L,3,5))COLORLIGRAY;L6:CONST(TROUGH(L,3,6))COLORLIGRAY;GET1:DRAWLINE(LOW<=LLV(LOW,N),L,HIGH>=HHV(HIGH,N),H,0),COLORCC3399,LIN ETHICK2;GET2:DRAWLINE(HIGH>=HHV(HIGH,N),H,LOW<=LLV(LOW,N),L,0),COLORCC3399,LIN ETHICK2;DRAWLINE(LOW<=LLV(LOW,3),L,HIGH>=HHV(HIGH,3),H,0),COLORGRAY; DRAWLINE(HIGH>=HHV(HIGH,3),H,LOW<=LLV(LOW,3),L,0),COLORGRAY;H0:=PEAK(H,1,1);LZ:=倍量柱OR 高量柱OR 低量柱OR 梯量柱OR 平量柱;STICKLINE(LZ&&CROSS(C,h0),O,C,2,0)COLORYELLOW;STICKLINE(LZ&&CROSS(C,h0),L,H,0,0)COLORYELLOW;STICKLINE(CROSS(C,h0),O,C,2,0)COLORYELLOW;STICKLINE(CROSS(C,h0),L,H,0,0)COLORYELLOW;。

通达信当出现黄柱的买点时可以关注公式

通达信当出现黄柱的买点时可以关注公式

通达信当出现黄柱的买点时可以关注公式当出现黄柱的买点时可以关注公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3) +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:=VAR1,COLORMAGENTA,LINETHICK2;中线:=VAR6,COLORCYAN,LINETHICK2;长线:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),LINETHICK2,NODRAW,COLORGREEN;{持股持币彩色K线}EMA2:=EMA(CLOSE,2);BBUY:=CROSS(EMA2,长线);SEL:=CROSS(长线,EMA2);STICKLINE((EMA2 >= 长线),LOW,HIGH,0.4,0),COLOR0000FF;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,3,1),COLOR000077;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,2.6,1),COLOR000099;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,2,1),COLOR0000BB;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,1.3,1),COLOR0000DD;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,0.4,1),COLOR0000FF;STICKLINE((EMA2 < 长线),LOW,HIGH,0.4,0),COLORFFFF00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,3,1),COLOR777700;STICKLINE((EMA2 < 长线),CLOSE,OPEN,2.6,1),COLOR999900;STICKLINE((EMA2 < 长线),CLOSE,OPEN,2,1),COLORBBBB00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,1.3,1),COLORDDDD00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,0.4,1),COLORFFFF00;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,5,0),COLOR0055FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,4.2,0),COLOR0077FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,3,0),COLOR0099FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,2.2,0),COLOR00BBFF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,1.5,0),COLOR00DDFF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,0.4,0),COLOR00FFFF;VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'大资金进场'),COLORFF00FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),78,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW),'★大胆搏'),COLOR00FFFF;DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,40)*20)+CLOSE),20) ,EMA(CLOSE,3)),(HIGH* 1.05),'卖'),LINETHICK3,COLORFFFFFF;。

通达信量柱指标公式源码

通达信量柱指标公式源码

DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1170214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 01));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 02));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 03));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 04));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 05));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NOD RAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NO DRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,R EF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,R EF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,R EF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,N ODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW;。

通达信黄金线主图指标公式

通达信黄金线主图指标公式

通达信黄金线主图指标公式RC1:=REF(C,1);大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};大阴二一: REF((L+H)/2,大阴T),NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块};AA:=(C-REF(C,1))/REF(C,1)*100;ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945;DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945;涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW;跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW;比系数:=1.3;金线:=1;临界点:=0;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);均线:=MA5>REF(MA5,1) AND MA10<REF(MA10,1) AND MA20<REF(MA20,1);RV1:=REF(V,1);RV2:=REF(V,2);RV3:=REF(V,3);RC2:=REF(C,2);RC3:=REF(C,3);RC4:=REF(C,4);RO1:=REF(O,1);RO2:=REF(O,2);RO3:=REF(O,3);RO4:=REF(O,4);不破价顶:=C>=RC3 AND RC1>=RC3 AND RC2>=RC3;不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;均价:=AMOUNT/VOL/100;RJ1:=REF(均价,1);RJ2:=REF(均价,2);阳柱:=C>=O OR (C<O AND 均价>RC1);三日二阳:=COUNT(阳柱,3)>=2;基价柱阳:=RC3>RO3;价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);均价升:=(C+RC1+RC2)/3>RC3;量渐升:=V>RV1 AND RV1>RV2 ;量渐减:=V<=RV1 AND RV1<=RV2 ;均量减:=(V+RV1+RV2)/3<=RV3 AND NOT(量渐升);日价量比:=C/V;日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);均价升幅:=(C+RC1+RC2)/3/RC3;均量升幅:=(V+RV1+RV2)/3/RV3;价量比:=比系数*均价升幅/均量升幅>1;基前跳空:=RO3>RC4 AND RC4>RO4;黄金柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空;BACKSET101T:=BACKSET(黄金柱1T,5);FILTER101T:=FILTER(BACKSET101T,4);黄金柱1:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底 ;BACKSET101:=BACKSET(黄金柱1,4);FILTER101:=FILTER(BACKSET101,3);黄金柱11:=黄金柱1 AND REF(黄金柱1,1);BACKSET1011:=BACKSET(黄金柱11,4);FILTER1011:=FILTER(BACKSET1011,3);黄金柱12:=黄金柱1 AND REF(黄金柱1,2);BACKSET1012:=BACKSET(黄金柱12,4);FILTER1012:=FILTER(BACKSET1012,3);黄金柱13:=黄金柱1 AND REF(黄金柱1,3);BACKSET1013:=BACKSET(黄金柱13,4);FILTER1013:=FILTER(BACKSET1013,3);黄金柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201T:=BACKSET(黄金柱2T,5);FILTER201T:=FILTER(BACKSET201T,4);黄金柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201:=BACKSET(黄金柱2,4);FILTER201:=FILTER(BACKSET201,3);黄金柱21:=黄金柱2 AND REF(黄金柱2,1);BACKSET2011:=BACKSET(黄金柱21,4);FILTER2011:=FILTER(BACKSET2011,3);黄金柱22:=黄金柱2 AND REF(黄金柱2,2);BACKSET2012:=BACKSET(黄金柱22,4);FILTER2012:=FILTER(BACKSET2012,3);黄金柱23:=黄金柱2 AND REF(黄金柱2,3);BACKSET2013:=BACKSET(黄金柱23,4);FILTER2013:=FILTER(BACKSET2013,3);黄金柱3T:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301T:=BACKSET(黄金柱3T,5);FILTER301T:=FILTER(BACKSET301T,4);黄金柱3:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301:=BACKSET(黄金柱3,4);FILTER301:=FILTER(BACKSET301,3);黄金柱31:=黄金柱3 AND REF(黄金柱3,1);BACKSET3011:=BACKSET(黄金柱31,4);FILTER3011:=FILTER(BACKSET3011,3);黄金柱32:=黄金柱3 AND REF(黄金柱3,2);BACKSET3012:=BACKSET(黄金柱32,4);FILTER3012:=FILTER(BACKSET3012,3);黄金柱33:=黄金柱3 AND REF(黄金柱3,3);BACKSET3013:=BACKSET(黄金柱33,4);FILTER3013:=FILTER(BACKSET3013,3);黄金柱4T:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);FILTER401T:=FILTER(BACKSET401T,4);黄金柱4:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);BACKSET401:=BACKSET(黄金柱4,4);FILTER401:=FILTER(BACKSET401,3);黄金柱41:=黄金柱4 AND REF(黄金柱4,1);BACKSET4011:=BACKSET(黄金柱41,4);FILTER4011:=FILTER(BACKSET4011,3);黄金柱42:=黄金柱4 AND REF(黄金柱4,2);BACKSET4012:=BACKSET(黄金柱42,4);FILTER4012:=FILTER(BACKSET4012,3);黄金柱43:=黄金柱4 AND REF(黄金柱4,3);BACKSET4013:=BACKSET(黄金柱43,4);FILTER4013:=FILTER(BACKSET4013,3);黄金柱5T:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501T:=BACKSET(黄金柱5T,5);FILTER501T:=FILTER(BACKSET501T,4);黄金柱5:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501:=BACKSET(黄金柱5,4);FILTER501:=FILTER(BACKSET501,3);黄金柱51:=黄金柱5 AND REF(黄金柱5,1);FILTER5011:=FILTER(BACKSET5011,3);黄金柱52:=黄金柱5 AND REF(黄金柱5,2);BACKSET5012:=BACKSET(黄金柱52,4);FILTER5012:=FILTER(BACKSET5012,3);黄金柱53:=黄金柱5 AND REF(黄金柱5,3);BACKSET5013:=BACKSET(黄金柱53,4);FILTER5013:=FILTER(BACKSET5013,3);黄金柱6T:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601T:=BACKSET(黄金柱6T,5);FILTER601T:=FILTER(BACKSET601T,4);黄金柱6:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601:=BACKSET(黄金柱6,4);FILTER601:=FILTER(BACKSET601,3);黄金柱61:=黄金柱6 AND REF(黄金柱6,1);BACKSET6011:=BACKSET(黄金柱61,4);FILTER6011:=FILTER(BACKSET6011,3);黄金柱62:=黄金柱6 AND REF(黄金柱6,2);BACKSET6012:=BACKSET(黄金柱62,4);FILTER6012:=FILTER(BACKSET6012,3);黄金柱63:=黄金柱6 AND REF(黄金柱6,3);BACKSET6013:=BACKSET(黄金柱63,4);FILTER6013:=FILTER(BACKSET6013,3);FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6;STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'↖黄金柱'),COLOR0099FF;K1:=SUMBARS(FIL,1);STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF;DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'↖元帅柱'),COLOR0000FF;K2:=SUMBARS(FILT,1);STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线 AND 临界点;BACKSET10LJ:=BACKSET(黄金柱LJ ,4);FILTER10LJ:=FILTER(BACKSET10LJ,3);STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJ AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线 AND 临界点 ;BACKSET10LJT:=BACKSET(黄金柱LJT ,5);FILTER10LJT:=FILTER(BACKSET10LJT,5);STICKLINE(FILTER10LJT ANDNOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJT AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF;STICKLINE(涨停,H,L,0,0),COLORFF00FF;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;。

通达信经典量柱主图指标公式

通达信经典量柱主图指标公式

通达信经典量柱主图指标公式黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;{预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 AND REF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);{4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF;DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;}AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK3;{STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;};。

倍量柱指标公式

倍量柱指标公式

倍量柱指标公式
1 倍量柱指标
倍量柱指标(Kassenreaktor)是一种比较常用的金融技术分析指标。

它是由广泛使用的反转指标和趋势跟踪指标的结合而形成的。

它可以帮助投资者可以更好的预测异常价格活动,以此来改善他们的投资组合的收益。

2 倍量柱指标的使用
倍量柱指标的使用主要用于看价格的趋势,用柱状图表示出来。

它可以帮助投资者识别出价格反转,以及更加准确的识别出市场趋势变化。

它也可以作为一个手段来判断价格运行的流向,因此当时间金融市场所受的影响较大时,也就可以方便投资者进行操作。

3 倍量柱指标公式
倍量柱指标公式如下:
K=(T - CK)/(T + CK)
T表示当前价格;CK表示前一个交易日的收盘价;K的取值通常范围在-1到+1之间。

如果K的值较大,说明当前价格较上一交易日的价格上涨较大;如果K的值较小,说明当前价格较上一交易日的价格下跌较大。

4 倍量柱指标的优势
首先,倍量柱指标具有较高的准确率。

毕竟,它不仅能够指示价格走势趋势,而且能够有效的识别出价格的反转。

其次,这一指标的使用很简单,对于对技术分析不熟悉的投资者来说也很容易学会,他们不用花费大量的时间来学习。

最后,它的uses的当前价格和前一个交易日的价格,就可以得出倍量柱指标公式,这样也就避免了计算复杂方程时出现的错误。

倍量柱指标使用起来简单,精准度也高,因此已经深受投资者们的喜爱,成为市场策略分析的重要工具之一。

黄金柱主图公式下载通达信金柱

黄金柱主图公式下载通达信金柱

黄金柱主图公式下载通达信金柱HJ_1:=VOL>=REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1);STICKLINE(HJ_1,OPEN,CLOSE,2.5,0),COLORYELLOW;HJ_2:=REF(VOL,4)*1.9<REF(VOL,3) AND REF(CLOSE,3)>REF(CLOSE,4) AND REF(OPEN,3)>LLV(LOW,3);HJ_3:=BACKSET(HJ_2,4);HJ_4:=FILTER(HJ_3,3);STICKLINE(HJ_4,OPEN,CLOSE,2.5,0),COLOR9F5F9F;短趋势线:MA(CLOSE,13),COLORRED,LINETHICK3;HJ_5:=MA(CLOSE,33);中趋势线:MA(CLOSE,55),COLORGRAY;年线:MA(CLOSE,250),POINTDOT,COLORLIGRAY;涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;HJ_6:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL);跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;HJ_7:=((CLOSE-REF(MA(CLOSE,20),1))/20+短趋势线)*1.2;DRAWTEXT(CROSS(CLOSE,HJ_7),HIGH*1.02,148),COLORGRE EN;DRAWTEXT(CROSS(CLOSE,MA(CLOSE,13)) AND 短趋势线<REF(短趋势线,1) AND 短趋势线<中趋势线,HIGH*1.02,148),COLORGREEN;DRAWTEXT(CROSS(短趋势线,CLOSE) AND INDEXC>MA(INDEXC,13) AND 短趋势线>REF(短趋势线,1) AND VOL<REF(VOL,1) AND 短趋势线>中趋势线,LOW*0.97,149),COLORRED;STICKLINE(CROSS(短趋势线,CLOSE) AND 短趋势线>REF(短趋势线,1) AND VOL<REF(VOL,1) AND 短趋势线>中趋势线,LOW,LOW*0.99,2,0),COLORYELLOW;HJ_8:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;DRAWTEXT(HJ_8>9 AND VOL<REF(VOL,1) AND FILTER(HJ_8<REF(HJ_8,1),5),HIGH*1.02,150),COLORYELLOW;DRAWTEXT(HJ_8>9 AND VOL>REF(VOL,1) AND FILTER(HJ_8<REF(HJ_8,1),5),HIGH*1.02,148),COLORGREEN;DRAWTEXT(HJ_8>20 AND FILTER(HJ_8<REF(HJ_8,1),5),HIGH*1.06,151),COLORYELLOW;HJ_9:=HHV(HJ_8>20,10);DRAWTEXT(FILTER(HJ_8<(-9) AND HJ_8>REF(HJ_8,1),18) AND VOL>REF(VOL,1),LOW*0.98,152),COLORRED;DRAWTEXT(HJ_8<(-20) AND FILTER(HJ_8>REF(HJ_8,1),5),LOW*0.95,71),COLORYELLOW;DRAWTEXT(HJ_9 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLO SE,20)),HIGH*1.1,153),COLORYELLOW;HJ_10:=HIGH-LOW;HJ_11:=ABS(OPEN-CLOSE);HJ_12:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);HJ_13:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;HJ_14:=HJ_11/HJ_10*VOL;HJ_15:=HJ_12/HJ_10*VOL;HJ_16:=HJ_13/HJ_10*VOL;HJ_17:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,60);HJ_18:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;DRAWTEXT(HJ_14>MA(VOL,5)*2 AND 短趋势线>REF(短趋势线,1) AND HJ_14>=HJ_15 AND HJ_14>=HJ_16 AND CLOSE>OPEN OR (VOL>MA(VOL,5)*3 AND HJ_17),LOW*0.98,154),COLORMAGENTA;HJ_19:=COST(0.37);HJ_20:=COST(6);HJ_21:=COST(15);HJ_22:=COST(55);HJ_23:=COST(95);HJ_24:=COST(90);HJ_25:=COST(12);HJ_26:=WINNER(CLOSE)*100;HJ_27:=100-WINNER(CLOSE)*100;HJ_28:=HJ_19;HJ_29:=HJ_20;HJ_30:=HJ_21;HJ_31:=HJ_23;HJ_32:=HJ_22;DRAWTEXT_FIX(1,0,0,0,155),COLORRED;DRAWNUMBER_FIX(1,0.09,0,0,CONST(HJ_26)),COLORRED;DRAWTEXT_FIX(1,0.14,0,0,92),COLORRED;DRAWTEXT_FIX(1,0,0.05,0,156),COLORGREEN;DRAWNUMBER_FIX(1,0.09,0.05,0,CONST(HJ_27)),COLORGRE EN;DRAWTEXT_FIX(1,0.14,0.05,0,92),COLORGREEN;DRAWTEXT_FIX(1,0,0.1,0,157),COLORWHITE;DRAWNUMBER_FIX(1,0.09,0.1,0,CONST(HJ_28)),COLORWHI TE;DRAWTEXT_FIX(1,0.14,0.1,0,158),COLORWHITE;DRAWTEXT_FIX(1,0,0.15,0,159),COLORLIBLUE;DRAWNUMBER_FIX(1,0.09,0.15,0,CONST(HJ_29)),COLORLIBLUE;DRAWTEXT_FIX(1,0.14,0.15,0,158),COLORLIBLUE;DRAWTEXT_FIX(1,0,0.2,0,160),COLORLIMAGENTA;DRAWNUMBER_FIX(1,0.09,0.2,0,CONST(HJ_30)),COLORLIMA GENTA;DRAWTEXT_FIX(1,0.14,0.2,0,158),COLORLIMAGENTA;DRAWTEXT_FIX(1,0,0.25,0,161),COLORRED;DRAWNUMBER_FIX(1,0.09,0.25,0,CONST(HJ_32)),COLORRED;DRAWTEXT_FIX(1,0.14,0.25,0,158),COLORRED;DRAWTEXT_FIX(1,0,0.3,0,162),COLORYELLOW;DRAWNUMBER_FIX(1,0.09,0.3,0,CONST(HJ_31)),COLORYELL OW;DRAWTEXT_FIX(1,0.14,0.3,0,158),COLORYELLOW;DRAWTEXT_FIX(1,0,0.35,0,163),COLORGREEN;DRAWNUMBER_FIX(1,0.09,0.35,0,CONST(HJ_24)),COLORGRE EN;DRAWTEXT_FIX(1,0.14,0.35,0,158),COLORGREEN;DRAWTEXT_FIX(1,0,0.4,0,164),COLORCYAN;DRAWNUMBER_FIX(1,0.09,0.4,0,CONST(HJ_25)),COLORCYA N;DRAWTEXT_FIX(1,0.14,0.4,0,158),COLORCYAN;HJ_33:=HHV(HIGH,22);HJ_34:=HIGH;HJ_35:=HJ_34/1.0809;HJ_36:=HJ_34/1.1618;HJ_37:=HJ_34/1.0809/1.1618;HJ_38:=HJ_34/1.1618/1.1618;DRAWTEXT_FIX(1,0.3,0,0,165),COLORGREEN;DRAWNUMBER_FIX(1,0.38,0,0,CONST(HJ_35)),COLORGREEN;DRAWTEXT_FIX(1,0.42,0,0,166),COLORGREEN;DRAWTEXT_FIX(1,0.49,0,0,158),COLORGREEN;DRAWTEXT_FIX(1,0.3,0.05,0,167),COLORGREEN;DRAWNUMBER_FIX(1,0.38,0.05,0,CONST(HJ_37)),COLORGRE EN;DRAWTEXT_FIX(1,0.42,0.05,0,166),COLORGREEN;DRAWNUMBER_FIX(1,0.45,0.05,0,CONST(HJ_38)),COLORGRE EN;DRAWTEXT_FIX(1,0.49,0.05,0,158),COLORGREEN;HJ_39:=LLV(LOW,22);HJ_40:=LOW;HJ_41:=HJ_40*1.0809;HJ_42:=HJ_40*1.1618;HJ_43:=HJ_40*1.0809*1.1618;HJ_44:=HJ_40*1.1618*1.1618;DRAWTEXT_FIX(1,0.3,0.1,0,168),COLORYELLOW;DRAWNUMBER_FIX(1,0.38,0.1,0,CONST(HJ_41)),COLORYELL OW;DRAWTEXT_FIX(1,0.42,0.1,0,166),COLORYELLOW;DRAWNUMBER_FIX(1,0.45,0.1,0,CONST(HJ_42)),COLORYELL OW;DRAWTEXT_FIX(1,0.49,0.1,0,158),COLORYELLOW;DRAWTEXT_FIX(1,0.3,0.15,0,169),COLORYELLOW;DRAWNUMBER_FIX(1,0.38,0.15,0,CONST(HJ_43)),COLORYEL LOW;DRAWTEXT_FIX(1,0.42,0.15,0,166),COLORYELLOW;DRAWNUMBER_FIX(1,0.45,0.15,0,CONST(HJ_44)),COLORYEL LOW;DRAWTEXT_FIX(1,0.49,0.15,0,158),COLORYELLOW;DRAWTEXT_FIX(1,0.3,0.2,0,170),COLORRED;DRAWTEXT_FIX(1,0.42,0.2,0,158),COLORRED;DRAWTEXT_FIX(1,0.3,0.25,0,171),COLORGREEN;DRAWNUMBER_FIX(1,0.38,0.25,0,CONST(HJ_33)),COLORGRE EN;DRAWTEXT_FIX(1,0.42,0.25,0,158),COLORGREEN;HJ_45:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999;HJ_46:=ATAN((MA(CLOSE,13)/REF(MA(CLOSE,13),1)-1)*100)*57.299999;HJ_47:=ATAN((MA(CLOSE,23)/REF(MA(CLOSE,23),1)-1)*100)*57.299999;HJ_48:=ATAN((MA(CLOSE,34)/REF(MA(CLOSE,34),1)-1)*100)*57.299999;HJ_49:=ATAN((MA(CLOSE,68)/REF(MA(CLOSE,68),1)-1)*100)*57.299999;HJ_50:=ATAN((MA(CLOSE,250)/REF(MA(CLOSE,250),1)-1)*100)*57.299999;DRAWTEXT_FIX(1,0.16,0,0,172),COLORCYAN;DRAWNUMBER_FIX(1,0.24,0,0,CONST(HJ_45)),COLORCYAN;DRAWTEXT_FIX(1,0.28,0,0,173),COLORCYAN;DRAWTEXT_FIX(1,0.16,0.05,0,174),COLORCYAN;DRAWNUMBER_FIX(1,0.24,0.05,0,CONST(HJ_46)),COLORCYA N;DRAWTEXT_FIX(1,0.28,0.05,0,173),COLORCYAN;DRAWTEXT_FIX(1,0.16,0.1,0,175),COLORRED;DRAWNUMBER_FIX(1,0.24,0.1,0,CONST(HJ_47)),COLORRED;DRAWTEXT_FIX(1,0.28,0.1,0,173),COLORRED;DRAWTEXT_FIX(1,0.16,0.15,0,176),COLORRED;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST(HJ_48)),COLORRED;DRAWTEXT_FIX(1,0.28,0.15,0,173),COLORRED;DRAWTEXT_FIX(1,0.16,0.2,0,177),COLORMAGENTA;DRAWNUMBER_FIX(1,0.25,0.2,0,CONST(HJ_49)),COLORMAG ENTA;DRAWTEXT_FIX(1,0.28,0.2,0,173),COLORMAGENTA;DRAWTEXT_FIX(1,0.16,0.25,0,178),COLORMAGENTA;DRAWNUMBER_FIX(1,0.24,0.25,0,CONST(HJ_50)),COLORMA GENTA;DRAWTEXT_FIX(1,0.28,0.25,0,173),COLORMAGENTA;。

通达信指标源码-黄金柱(主图)

通达信指标源码-黄金柱(主图)

通达信指标源码-黄金柱(主图)DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RG B(0,91,0));DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),R GB(83,123,68));DRAWKLINE(H,O,L,C);MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORRED;高点:(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) ANDREF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOU NT(CLOSE),BARSLAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOU NT(CLOSE),BARSLAST(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOU NT(CLOSE),BARSLAST(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),B T2051),BT2052),BT2053);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,R EF(LOW,DAY1-1)),0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH, REF(HIGH,DAY1-1)),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX( C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LO W,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LO W,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LO W,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_ 53,COLORYELLOW,NODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLORRED;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;。

通达信《量柱擒涨停》之精华珍藏版配合指标使用

通达信《量柱擒涨停》之精华珍藏版配合指标使用

通达信《量柱擒涨停》之精华珍藏版配合指标使用大盘或个股上,我们都可以通过黄金柱,黄金线,黄金梯,黄金仓,黄金劫,和黄金道六大层面复合,相互配对,求证,以便找到最佳买卖点。

那如何找到黄金柱,再找到黄金线,黄金梯,黄金劫,黄金仓,黄金道呢?一:首先要找到黄金柱1、倍量柱+倍量柱=黄金柱----(单独倍量柱的出现不是最明显的,但却是最重要的,后期走势体现了主庄的主动行为,有预谋的,攻击性多余试探性。

此组合后的黄金柱在阶段性底部较好,往往是主庄控盘比较好,急于拉升的一种体现,可做防守线。

如连续三根倍量柱时最好是持币观望,不宜仓促进入)2、倍量柱+缩量柱=黄金柱----(此组合后的黄金柱关键在于缩量柱的优劣,缩量柱最好是三根左右价涨量却要缩的越大越好,其三日收盘价必须保持在倍量柱所对应的K线的最低价上方,且量柱是步步为阳的,K线与量柱形成一个喇叭形为真黄金柱,可做防守线。

)3、低量柱+梯量柱=黄金柱---(如在低量柱杀入后,出现了高量柱,形成明显的梯量柱拉升,这是因为上升的力度太大,速度太急,主力很可能制造打劫,所以在高量柱出现腰即使退出应是最明智的)4、低量柱+倍量柱=黄金柱---(凡是有低量柱的位置,肯定是回升的始点,是培育黄金柱的土壤。

具有休克机制,收集机制,测幅机制,又称停战柱,反攻柱,庄家的成本底线。

此组合是主庄采用|休克疗法探底之后,心中有数的主动拉升行为,是底部与底气相结合的标志,其后市必然大涨。

其单低量柱后期走势多数向上,少数向下。

可做攻防线)5、高量柱+缩量柱=黄金柱---(同上2,另:单独高量柱是最明显的,可能不是最重要的,后期走势多数向下,少数向上。

如有连续两根超级倍量柱递增的高量柱时,此为“发烧柱|”,是主力极力出货的标志。

而我们需要的是连续两根温和梯量柱递增的高量柱是上品启动柱。

可做攻防线。

)6、梯量柱+缩量柱=黄金柱---(单单梯量柱多数情况下后期走向衰竭,少数走向兴旺。

他是卖盘逐步加大所形成的价格逐步抬高,被动增仓的结果,,如与价涨量缩的缩量柱组合,就形成了买盘旺盛而卖盘短缺的走势,后期就又大幅上涨了,应该在高点逢阴即出。

黄金柱成交量指标公式

黄金柱成交量指标公式

黄金柱成交量指标公式(总2页)--本页仅作为文档封面,使用时请直接删除即可----内页可以根据需求调整合适字体及大小--黄金柱成交量指标公式VVOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK;倍量:VOL>=REF(V,1)* AND C>REF(C,1),NODRAW,COLORYELLOW;低量:VOL<REF(LLV(VOL,13),1),NODRAW,COLORGREEN;地量:VOL<REF(LLV(VOL,100),1),NODRAW,COLORMAGENTA;平量:ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<= OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=,NODRAW,COLORWHITE;倍缩:VOL<=REF(V,1)*,NODRAW,COLORRED;梯量:COUNT(V>REF(V,1),3)=3 AND COUNT(C>O,3)=3,NODRAW,COLOR824173;缩量涨:COUNT(C>REF(C,1),2)=2 ANDCOUNT(V<REF(V,1),2)=2,NODRAW,COLORBLUE;STICKLINE(倍量,0,V,1,0),COLORYELLOW;STICKLINE(低量,0,V,1,0),COLORGREEN;STICKLINE(地量,0,V,1,0),COLORMAGENTA;STICKLINE(平量,0,V,1,0),COLORWHITE;STICKLINE(倍缩,0,V,1,0),COLORRED;STICKLINE(梯量,0,V,1,0),COLOR824173;STICKLINE(缩量涨,0,V,1,0),COLORBLUE;黄金柱: DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>2*REF(V,4),0,1);流通〖亿〗:CAPITAL/1000000,LINETHICK0;内外比:DYNAINFO(51),COLORYELLOW,NODRAW;单日量比:V/REF(V,1),COLORWHITE,NODRAW;五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;换手:VOL*10000/FINANCE(7);十日换手:SUM(换手,10);二十日换手:SUM(换手,20);。

黄金柱主图源码通达信指标公式源码

黄金柱主图源码通达信指标公式源码

{黄金柱主图}B1:=MA(CLOSE,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,5);DRAWBAND(B2,RGB(180,0,180),SMA2,RGB(256,100,100));X:=21;TTY:=H;AAT:=REF(TTY,X)=HHV(TTY,2*X+1);BBT:=FILTER(AAT,X);CCT:=BACKSET(BBT,X+1);HD10T:=FILTER(CCT,X);AA1T:=REF(TTY,X)=LLV(TTY,2*X+1);BB1T:=FILTER(AA1T,X);CC1T:=BACKSET(BB1T,X+1);LD10T:=FILTER(CC1T,X);三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0; 倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;{好股票网 整理}准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3);BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);{重绘K线}DRAWKLINE(H,O,L,C);{重绘K线显示大阳\大阴\涨停\跌停\假阴,适用于通达信}RC1:=REF(C,1);涨停率10:=10-1/RC1;{178448-WEN98编写}涨停率5:=5-1/RC1;比前涨率:=(C-RC1)*100/RC1;比前跌率:=(RC1-C)*100/RC1;ST:=NAMELIKE('ST') OR NAMELIKE('*ST');涨停:=IF(ST, (比前涨率>=涨停率5), (比前涨率>=涨停率10));本日涨率:=(C-O)*100/O;本日跌率:=(O-C)*100/O;STICKLINE((H-RC1)*100/RC1>=涨停率10,H,MAX(C,O),1,0),COLORYELLOW;{涨停后回落}STICKLINE((RC1-L)*100/RC1>=涨停率10,L,MIN(C,O),1,0),COLORBLUE;{跌停后回升}跌停:=IF(NAMELIKE('ST'),(比前跌率>=涨停率5),(比前跌率>=涨停率10)); STICKLINE(跌停,O,C,2,0),COLORLIBLUE;大阳线:=C>O AND (比前涨率>=涨停率5 OR 本日涨率>=涨停率5) AND 比前涨率<涨停率10 AND 涨停=0;STICKLINE(大阳线,O,C,1,0),COLORFF99FF;大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5) AND 比前跌率<涨停率10 AND 跌停=0;STICKLINE(大阴线,O,C,1,0),COLOR006633;{假阴柱}假阴:=C<O AND C>REF(C,1);STICKLINE(假阴,O,C,1,0),COLORRED;{假阳柱}假阳:=C>O AND C<REF(C,1);STICKLINE(假阳,O,C,1,0),COLORGREEN;{涨停}AAAA:=CLOSE/REF(C,1)>=1.09;STICKLINE(AAAA,O,C,1,0),COLORYELLOW;STICKLINE(AAAA,L,H,1,0),COLORYELLOW;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 ANDCLOSE=LOW,CLOSE,OPEN,1,0),COLORBLUE;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄'){,COLORFF00FF},COLORYELLOW; STICKLINE(FILTER102,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER103,LOW*0.986,'↖准黄'),COLORFF00FF{,COLORYELLOW}; STICKLINE(FILTER103,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORRED;STICKLINE(FILTER104,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER105,LOW*0.986,'↖次将'),COLORFF00FF{,COLORYELLOW}; STICKLINE(FILTER105,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER106,LOW*0.986,'↖准将'),COLORFF00FF{,COLORYELLOW}; STICKLINE(FILTER106,OPEN,CLOSE,0.5,0),COLORYELLOW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH,'←立柱'),COLORGREEN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120);MA240:=MA(CLOSE,240);AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1;DRAWTEXT(芙蓉出水,H,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.1,0),COLORFF00FF;STICKLINE(芙蓉出水,O,C,1.1,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;TM:=V-MA(V,10);一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1.1,0),COLORFF00FF;{不会画线可以让显示}{K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),3,-1),COLORYELLOW;STICKLINE(K1,REF(L,K1-1),REF(L,K1-1),3,-1),COLORGREEN;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),3,-1),COLORYELLOW;};。

黄金柱通达信指标公式源码

黄金柱通达信指标公式源码

{阴线战法“大阴实顶”的主图显示}RC1:=REF(C,1);大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O}; 大阴二一: REF((L+H)/2,大阴T),NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块} DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块} DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块}; AA:=(C-REF(C,1))/REF(C,1)*100;ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945; DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945; 涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW;跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW;{元帅主图}比系数:=1.3;金线:=1;临界点:=0;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);均线:=MA5>REF(MA5,1) AND MA10<REF(MA10,1) AND MA20<REF(MA20,1);RV1:=REF(V,1);RV2:=REF(V,2);RV3:=REF(V,3);RC2:=REF(C,2);RC3:=REF(C,3);RC4:=REF(C,4);RO1:=REF(O,1);RO2:=REF(O,2);RO3:=REF(O,3);RO4:=REF(O,4);不破价顶:=C>=RC3 AND RC1>=RC3 AND RC2>=RC3;不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;均价:=AMOUNT/VOL/100;RJ1:=REF(均价,1);RJ2:=REF(均价,2);阳柱:=C>=O OR (C<O AND 均价>RC1);三日二阳:=COUNT(阳柱,3)>=2;基价柱阳:=RC3>RO3;价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);均价升:=(C+RC1+RC2)/3>RC3;量渐升:=V>RV1 AND RV1>RV2 ;量渐减:=V<=RV1 AND RV1<=RV2 ;均量减:=(V+RV1+RV2)/3<=RV3 AND NOT(量渐升);日价量比:=C/V;日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);均价升幅:=(C+RC1+RC2)/3/RC3;均量升幅:=(V+RV1+RV2)/3/RV3;价量比:=比系数*均价升幅/均量升幅>1;基前跳空:=RO3>RC4 AND RC4>RO4;黄金柱1T:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底AND 基前跳空;BACKSET101T:=BACKSET(黄金柱1T,5);FILTER101T:=FILTER(BACKSET101T,4);黄金柱1:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底; BACKSET101:=BACKSET(黄金柱1,4);FILTER101:=FILTER(BACKSET101,3);黄金柱11:=黄金柱1 AND REF(黄金柱1,1);BACKSET1011:=BACKSET(黄金柱11,4);FILTER1011:=FILTER(BACKSET1011,3);黄金柱12:=黄金柱1 AND REF(黄金柱1,2);BACKSET1012:=BACKSET(黄金柱12,4);FILTER1012:=FILTER(BACKSET1012,3);黄金柱13:=黄金柱1 AND REF(黄金柱1,3);BACKSET1013:=BACKSET(黄金柱13,4);FILTER1013:=FILTER(BACKSET1013,3);黄金柱2T:=基价柱阳AND 价渐升AND 均量减AND NOT(量渐升) AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201T:=BACKSET(黄金柱2T,5);FILTER201T:=FILTER(BACKSET201T,4);黄金柱2:=基价柱阳AND 价渐升AND 均量减AND NOT(量渐升) AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201:=BACKSET(黄金柱2,4);FILTER201:=FILTER(BACKSET201,3);黄金柱21:=黄金柱2 AND REF(黄金柱2,1);BACKSET2011:=BACKSET(黄金柱21,4);FILTER2011:=FILTER(BACKSET2011,3);黄金柱22:=黄金柱2 AND REF(黄金柱2,2);BACKSET2012:=BACKSET(黄金柱22,4);FILTER2012:=FILTER(BACKSET2012,3);黄金柱23:=黄金柱2 AND REF(黄金柱2,3);BACKSET2013:=BACKSET(黄金柱23,4);FILTER2013:=FILTER(BACKSET2013,3);黄金柱3T:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301T:=BACKSET(黄金柱3T,5);FILTER301T:=FILTER(BACKSET301T,4);黄金柱3:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T); BACKSET301:=BACKSET(黄金柱3,4);FILTER301:=FILTER(BACKSET301,3);黄金柱31:=黄金柱3 AND REF(黄金柱3,1);BACKSET3011:=BACKSET(黄金柱31,4);FILTER3011:=FILTER(BACKSET3011,3);黄金柱32:=黄金柱3 AND REF(黄金柱3,2);BACKSET3012:=BACKSET(黄金柱32,4);FILTER3012:=FILTER(BACKSET3012,3);黄金柱33:=黄金柱3 AND REF(黄金柱3,3);BACKSET3013:=BACKSET(黄金柱33,4);FILTER3013:=FILTER(BACKSET3013,3);黄金柱4T:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);BACKSET401T:=BACKSET(黄金柱4T,5);FILTER401T:=FILTER(BACKSET401T,4);黄金柱4:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);BACKSET401:=BACKSET(黄金柱4,4);FILTER401:=FILTER(BACKSET401,3);黄金柱41:=黄金柱4 AND REF(黄金柱4,1);BACKSET4011:=BACKSET(黄金柱41,4);FILTER4011:=FILTER(BACKSET4011,3);黄金柱42:=黄金柱4 AND REF(黄金柱4,2);BACKSET4012:=BACKSET(黄金柱42,4);FILTER4012:=FILTER(BACKSET4012,3);黄金柱43:=黄金柱4 AND REF(黄金柱4,3);BACKSET4013:=BACKSET(黄金柱43,4);FILTER4013:=FILTER(BACKSET4013,3);黄金柱5T:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T); BACKSET501T:=BACKSET(黄金柱5T,5);FILTER501T:=FILTER(BACKSET501T,4);黄金柱5:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501:=BACKSET(黄金柱5,4);FILTER501:=FILTER(BACKSET501,3);黄金柱51:=黄金柱5 AND REF(黄金柱5,1);BACKSET5011:=BACKSET(黄金柱51,4);FILTER5011:=FILTER(BACKSET5011,3);黄金柱52:=黄金柱5 AND REF(黄金柱5,2);BACKSET5012:=BACKSET(黄金柱52,4);FILTER5012:=FILTER(BACKSET5012,3);黄金柱53:=黄金柱5 AND REF(黄金柱5,3);BACKSET5013:=BACKSET(黄金柱53,4);FILTER5013:=FILTER(BACKSET5013,3);黄金柱6T:=基价柱阳AND 均价升AND 日价量比升AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601T:=BACKSET(黄金柱6T,5);FILTER601T:=FILTER(BACKSET601T,4);黄金柱6:=基价柱阳AND 均价升AND 日价量比升AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601:=BACKSET(黄金柱6,4);FILTER601:=FILTER(BACKSET601,3);黄金柱61:=黄金柱6 AND REF(黄金柱6,1);BACKSET6011:=BACKSET(黄金柱61,4);FILTER6011:=FILTER(BACKSET6011,3);黄金柱62:=黄金柱6 AND REF(黄金柱6,2);BACKSET6012:=BACKSET(黄金柱62,4);FILTER6012:=FILTER(BACKSET6012,3);黄金柱63:=黄金柱6 AND REF(黄金柱6,3);BACKSET6013:=BACKSET(黄金柱63,4);FILTER6013:=FILTER(BACKSET6013,3);FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 ANDNOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6;STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'↖黄金柱'),COLOR0099FF;K1:=SUMBARS(FIL,1);STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF; DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'↖元帅柱'),COLOR0000FF;K2:=SUMBARS(FILT,1);STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线AND 临界点;BACKSET10LJ:=BACKSET(黄金柱LJ ,4);FILTER10LJ:=FILTER(BACKSET10LJ,3);STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF; DRAWTEXT(FILTER10LJ AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线AND 临界点;BACKSET10LJT:=BACKSET(黄金柱LJT ,5);FILTER10LJT:=FILTER(BACKSET10LJT,5);STICKLINE(FILTER10LJT AND NOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJT AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;{}{};C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF; STICKLINE(涨停,H,L,0,0),COLORFF00FF;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;。

黄金柱主图指标通达信指标公式源码

黄金柱主图指标通达信指标公式源码

所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT('[行业]-',HYBLOCK),STRCAT(' [地域]-',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK))); 总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿'); {主图显示} DRAWTEXT_FIX(ISLASTBAR,0.555,0.03,0,所属板块),COLORYELLOW; PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3), IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3), IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3)))); {画量柱标识:} {1.画倍量黄金柱标识} 倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,17); {2.画梯量黄金柱标识} 梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17); {3.画平量黄金柱标识} 平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19); 倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26); STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW; 倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5; DRAWICON(倍量黄金柱,PHD*1.008,12); DRAWTEXT(倍量黄金柱,PHD*1.008,'倍量黄金线'),COLORMAGENTA; 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,LINETHICK4,NODRAW; STICKLINE(黄金柱,O,C,3.3,0),COLORRED; STICKLINE(黄金柱,H,L,0.1,0),COLORRED; DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW; XG:=SUMBARS(FILTER(黄金柱,2),1);STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;XG1:=SUMBARS(FILTER(黄金柱,2),1); STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF; 平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; DRAWTEXT(平量黄金柱,PHD*1.015,'←平量黄金线'),COLORFFCC00 ; 梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; DRAWTEXT(梯量黄金柱,PHD*1.015,'←梯量黄金线'),COLORCYAN ;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
DRAWICON(CC AND CO,LOW-0.4,5);
DRAWTEXT(Y&gt;10,HIGH+0.3,&#39;GS&#39;),COLORGREEN;
功能-专家系统-公式管理器-成交量型-新建-公式名称:VOL_2V-公式描述:倍量黄金柱-将下面内容复制到中间编辑区-确定-在K线图选择指标:成交量型-VOL_2V倍量黄金柱OK! 你看看是什么效果?
JG1:=ABS(MA(C,13)-MA(C,34))&lt;C*0.02 AND ABS(MA(C,13)-MA(C,55))&lt;C*0.02;
JG2:=O&gt;MA(C,13) OR O=MA(C,13);
JG3:=C/OPEN&gt;1.03 ; {阳线3%}
JG:=JG1 AND JG2 AND JG3;
DRAWTEXT(PC AND PO,HIGH+0.3,&#39;S&#39;),COLORGREEN;
DRAWICON(PC AND PO,HIGH+0.4,6);
CC:=C&gt;MA(C,13);
CO:=O&lt;MA(C,13);
DRAWTEXT(CC AND CO,LOW-0.3,&#39;B&#39;),COLORRED;
DRAWTEXT(YZ,HIGH+0.3,&#39;一枝独秀&#39;),COLORBLUE;
DRAWICON(YZ,HIGH+0.4,4);
DS1:=OPEN/C&gt;1.04 AND O/REF(C,1)&gt;1.03;{高开收阴}
DS2:=V*100/FINANCE(7)&gt;0.08 AND Y&gt;8;{换手高涨幅大}
STICKLINE(TJ3,0,V,1,0),COLORRED;
MV2:MA(V,2);
MV6:MA(V,6);
MV20:MA(V,20);
以下是一个135指标公式
MA13:MA(CLOSE,13),COLORRED;
MA34:MA(CLOSE,34),COLORWHITE;
MA55:MA(CLOSE,55),COLORBLUE;
提示说明:黄色柱是倍量柱,绿色柱是13日内的低量柱,洋红色为55日内的低量柱,
红色实心柱左边的黄色柱就是: 倍量柱+三天价涨量缩=真黄金柱
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
DRAWTEXT(RY1 AND RY2 AND RY3 ,LOW-0.3,&#39;日月合璧&#39;),COLORRED;
DRAWICON(RY1 AND RY2 AND RY3,LOW-0.4,5);
HK1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线}
HK2:=C&lt;O;{当日收阴}
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
{135均线战法Biblioteka YY1:=C&gt;MA(C,13) AND OPEN&lt;MA(C,13);{一阳三线}
YY3:=C&gt;MA(C,34) AND OPEN&lt;MA(C,34);
YY5:=C&gt;MA(C,55) AND OPEN&lt;MA(C,55);
JW2:=OPEN&lt;REF(C,1) AND C&gt;REF(L,1);
JW3:=O&lt;MA(C,13) AND O&lt;MA(C,34) AND O&lt;MA(C,55);
JW:=JW1 AND JW2 AND JW3;
DRAWTEXT(JW,LOW-1.2,&#39;金屋藏娇&#39;),COLORRED;
HY3:=ABS(OPEN-MA(C,13))&lt;C*0.05;{开盘在13线附近}
HY:=HY1 AND HY2 AND HY3;
DRAWTEXT(HY,LOW-0.3,&#39;红衣侠女&#39;),COLORRED;
DRAWICON(HY,LOW-0.4,5);
JW1:=C&lt;OPEN AND REF(C,1)&lt;REF(OPEN,1);
VOLUME:VOL,VOLSTICK;
AA:=VOL&gt;REF(V,1)*1.9;
AA1:=VOL&lt;REF(LLV(VOL,13),1);
AA2:=VOL&lt;REF(LLV(VOL,55),1);
STICKLINE(AA,0,V,1,0),COLORYELLOW;
STICKLINE(AA1,0,V,1,0),COLORGREEN;
DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.3,&#39;一阳三线&#39;),COLORRED;
DRAWICON(YY1 AND YY5 AND YY3,LOW-0.4,5);
SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))&lt;C*0.01;{13线34线55线接近}
DRAWICON(SJ1 AND SJ2 AND SJ3,LOW-0.4,5);
RY1:=C/OPEN&gt;1.04;{阳线4%}
RY2:=REF(OPEN,1)/REF(CLOSE,1)&gt;1.04;{阴线4%}
RY3:=ABS(OPEN-REF(C,1))&lt;C*0.02 AND ABS(C-REF(OPEN,1))&lt;C*0.02;{两线相等}
HK3:=ABS(L-MA(C,13))&lt;C*0.03 OR ABS(C-MA(C,13))&lt;C*0.04;{收盘价或最低价在13线}
HK:=HK1 AND HK2 AND HK3;
DRAWTEXT(HK,HIGH+0.3,&#39;黑客点击&#39;),COLORBLUE;
DRAWICON(HK,HIGH+0.4,4);
DRAWICON(JW,LOW-1.2,5);
TS1:=CROSS(MA(C,13),MA(C,34));{13线上穿
33线}
TS2:=MA(C,13)&lt;MA(C,55);
TS:=TS1 AND TS2;
DS:=DS1 AND DS2;
DRAWTEXT(DS,HIGH+0.3,&#39;独上高楼&#39;),COLORGREEN;
DRAWICON(DS,HIGH+0.4,6);
YJ1:=H/O&gt;1.04;
YJ2:=ABS(C-O)&lt;C*0.03;
YJ3:=C/MA(C,11)&gt;1.1;
DRAWICON(MK,HIGH+0.4,4);
YZ1:=C/O&gt;1.02 AND H/C&gt;1.02 AND O/L&lt;1.02;{收阳有上影}
YZ2:=REF(C,1)&gt;REF(O,1) AND O&gt;MA(C,13);{昨收阳 今大于均线}
YZ:=YZ1 AND YZ2 AND Y&gt;10;
SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))&lt;C*0.01;
SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));{13线上穿55线}
DRAWTEXT(SJ1 AND SJ2 AND SJ3,LOW-0.3,&#39;三军集合&#39;),COLORRED;
DRAWTEXT(TS,LOW-0.3,&#39;投石问路&#39;),COLORRED;
DRAWICON(TS,LOW-0.4,5);
MK1:=MA(C,13)&gt;MA(C,55) AND MA(C,34)&gt;MA(C,55);
MK:=TS1 AND MK1;
DRAWTEXT(MK,H+0.3,&#39;梅开二度&#39;),COLORBLUE;
DRAWTEXT(JG,LOW-0.3,&#39;揭竿而起&#39;),COLORRED;
DRAWICON(JG,LOW-0.4,5);
HY1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线}
HY2:=OPEN&lt;C AND C/OPEN&gt;1.02; {阳线3%}
STICKLINE(AA2,0,V,1,0),COLORMAGENTA;
TJ1:=COUNT(V&gt;REF(V,1)*1.9,4)=1;
TJ2:=COUNT(V&lt;REF(V,1) AND L&gt;MIN(L,4) AND L&gt;REF(L,1),3)=3 ;
TJ3:=TJ1 AND TJ2;
YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;
DRAWTEXT(YJ,HIGH+0.3,&#39;一剑封喉&#39;),COLORGREEN;
相关文档
最新文档