最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信黄金神柱指标公式源码

    正文概述    2024-05-04 04:13:33  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:

    image.png

    公式解读:

     

    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)),COLORGREEN,POINTDOT; 

    STICKLINE(C,前期高位,前期高位,8,0),COLORGREEN,POINTDOT;}{高位的绿线} 

    {高点:=(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)ANDC bbiANDC  

    三日价涨B:=C REF(C,1); 

    三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2)) =REF(L,3); 

    TIM:=IF(DATE 1140214,1,0); 

    缩倍柱:=(*1.95 =REF(VOL,1))*TIM; 

    百日低量:=(VOL=LLV(VOL,100))*TIM; 

    倍量柱:=C REF(C,1)*1.04AND(VOL =1.9*REF(VOL,1))*TIM; 

    四日前倍量柱:=(REF(VOL,3) 1.9*REF(VOL,4))*TIM; 

    四日前高量柱:=(REF(VOL,3) =REF(VOL,4)ANDREF(VOL,3) 1.9*REF(VOL,4)AND三日量缩)*TIM; 

    前三引用不成立:=COUNT(REF(四日前倍量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0ANDCOUNT(REF(四日前高量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0; 

    倍量黄金柱:=四日前倍量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立; 

    高量黄金柱:=四日前高量柱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(倍量柱,3) =1AND三日不破))AND前三引用不成立; 

    准高量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前高量柱AND(三日量缩AND三日价涨C)AND前三引用不成立; 

    准黄金柱:=准倍量黄金柱OR准高量黄金柱; 

    倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前倍量柱AND三日不破AND三日价涨AAND前三引用不成立; 

    高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前高量柱AND三日不破AND三日价涨AAND前三引用不成立; 

    将军柱:=倍量将军柱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三日价涨CAND前三引用不成立; 

    准将军柱:=准倍量将军柱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)=1ANN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3); 

    黄金线实体下端:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =min(ref(c,3),ref(o,3))andmin(min(l,ref(l,1)),ref(l,2)) REF(L,3),LINETHICK0; 

    黄金线上影线:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =REF(H,3); 

    黄金线实体上端:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =MAX(REF(C,3),REF(O,3))ANDREF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) REF(H,3); 

    黄金线实体中间:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)); 

    黄金线实体中间1:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3))ANDREF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2)); 

    黄金线实体中间2:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3))ANDREF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2)); 

    黄金线实体中间3:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3))ANDL=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,BARSCOUNT(CLOSE),BARSLAST(FILTER2051)); 

    BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052)); 

    BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053)); 

    最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053); 

    DAY1:=SUMBARS(FILTER100,1),NODRAW; 

    HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(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,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,NODRAW; 

    立桩量:=VOL=HHV(VOL,30)ANDVOL 1.9*REF(VOL,1); 

    立桩量三日:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(HIGH,3),1,0))); 

    立桩量三日不破:=BARSLAST(立桩量)=3ANDREF(LOW,3) =MIN(MIN(C,REF(C,1)),REF(C,2)); 

    BACKSET300:=BACKSET(立桩量三日不破,4); 

    BACKSET301:=BACKSET(立桩量三日突破,4); 

    立桩量成立:=FILTER(BACKSET300,3)ANDBACKSET301AND立桩量; 

    FILTER101ANDFILTER(BACKSET300,3)ANDBACKSET301AND立桩量; 

    倍量:=((VOL/REF(VOL,1) 2ANDCOUNT(CLOSE OPEN,1))OR(LOW REF(HIGH,1)ANDCOUNT(OPEN CLOSE,1)ANDVOL/REF(VOL,1)  

    高倍量:=(V=HHV(V,55)ANDV/REF(VOL,1) =3ANDC REF(C,1)); 

    缩量涨:= 

    COUNT(C REF(C,1),2)==2ANDCOUNT(VOL REF(VOL,1),2)==2; 

    倍缩量:=VOL/REF(VOL,1)  

    梯量柱3T:=(COUNT(VOL REF(VOL,1),3)=3ANDCOUNT(CLOSE OPEN,3)=3); 

    平量柱:=(V/REF(V,1) 0.97ANDV/REF(V,1) 1.05ANDCOUNT(CLOSE OPEN,2)=2); 

    黑太阳:= 

    (LOW REF(HIGH,1)ANDCOUNT(OPEN CLOSE,1)); 

    红太阳:= 

    (LOW REF(HIGH,1)ANDCOUNT(OPEN CLOSE,1)); 

    N:=11; 

    HSL:=VOL/CAPITAL*100; 

    :=SUM(HSL,N); 

    涨幅1:=100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N); 

    MA1:=MA(CLOSE,5); 

    MA2:=MA(CLOSE,10); 

    MA3:=MA(CLOSE,20); 

    MA4:=MA(CLOSE,30); 

    一阳穿三线:=MA1 OANDMA2 OANDMA3 OANDMA1 CANDMA2 CANDMA3 CANDCLOSE OPEN; 

    AA1:=MA1 OANDMA2 OANDMA3 OANDMA4 OANDMA1 CANDMA2 CANDMA3 CANDMA4 CANDCLOSE OPEN; 

    AA2:=CROSS(MA(V,5),MA(V,10)); 

    一阳穿四线:=AA1ANDAA2; 

    P:=40; 

    P2:=P/10; 

    BAA:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 =P2,NODRAW; 

    BAB:=SUMBARS(BAA,1)-1; 

    BBB:=SUMBARS(BAA,1)NODRAW; 

    CAA:=REF(HIGH,BAB); 

    CAB:=REF(OPEN,BAB); 

    BAC:=IF(CLOSE =OPEN,CLOSE,OPEN); 

    OUTA:=IF(BBB=1,0,IF(BBB=2ANDEVERY(BAC =CAA,1)ANDEVERY(LOW =CAB,1),1,IF(BBB=3ANDEVERY(BAC =CAA,2)ANDEVERY(LOW =CAB,2),2,IF(BBB=4ANDEVERY(BAC =CAA,3)ANDEVERY(LOW =CAB,3),3,IF(BBB=5ANDEVERY(BAC =CAA,4)ANDEVERY(LOW =CAB,4),4,IF(BBB=6ANDEVERY(BAC =CAA,5)ANDEVERY(LOW =CAB,5),5,IF(BBB=7ANDEVERY(BAC =CAA,6)ANDEVERY(LOW =CAB,6),6,IF(BBB=8ANDEVERY(BAC =CAA,7)ANDEVERY(LOW =CAB,7),7,IF(BBB=9ANDEVERY(BAC =CAA,8)ANDEVERY(LOW =CAB,8),8,IF(BBB=10ANDEVERY(BAC =CAA,9)ANDEVERY(LOW =CAB,9),9,IF(BBB=11ANDEVERY(BAC =CAA,10)ANDEVERY(LOW =CAB,10),10,IF(BBB=12ANDEVERY(BAC =CAA,11)ANDEVERY(LOW =CAB,11),11,IF(BBB=13ANDEVERY(BAC =CAA,12)ANDEVERY(LOW =CAB,12),12,IF(BBB=14ANDEVERY(BAC =CAA,13)ANDEVERY(LOW =CAB,13),13,IF(BBB=15ANDEVERY(BAC =CAA,14)ANDEVERY(LOW =CAB,14),14,IF(BBB=16ANDEVERY(BAC =CAA,15)ANDEVERY(LOW =CAB,15),15,IF(BBB=17ANDEVERY(BAC =CAA,16)ANDEVERY(LOW =CAB,16),16,IF(BBB=18ANDEVERY(BAC =CAA,17)ANDEVERY(LOW =CAB,17),17,IF(BBB=19ANDEVERY(BAC =CAA,18)ANDEVERY(LOW =CAB,18),18,IF(BBB=20ANDEVERY(BAC =CAA,19)ANDEVERY(LOW =CAB,19),19,0)))))))))))))))))))); 

    开盘:=NOT(DYNAINFO(4)=0); 

    单阳不破天数:IF(C =MA(C,120)AND开盘,OUTA,0),NODRAW; 

    VAR2:=1*AMOUNT; 

    月地量:IF(VAR2=LLV(VAR2,20)ANDBARSCOUNT(C) 20,0.1,0)COLORWHITE; 

    季地量:IF(VAR2=LLV(VAR2,60)ANDBARSCOUNT(C) 60,0.2,0)COLORWHITE; 

    半年地量:IF(VAR2=LLV(VAR2,120)ANDBARSCOUNT(C) 120,0.3,0)COLORWHITE; 

    年地量:IF(VAR2=LLV(VAR2,240)ANDBARSCOUNT(C) 240,0.4,0)COLORWHITE; 

    月天量:IF(VAR2=HHV(VAR2,20)ANDBARSCOUNT(C) 20,0.9,1)COLORWHITE; 

    季天量:IF(VAR2=HHV(VAR2,60)ANDBARSCOUNT(C) 60,0.8,1)COLORWHITE; 

    半年天量:IF(VAR2=HHV(VAR2,120)ANDBARSCOUNT(C) 120,0.7,1)COLORWHITE; 

    年天量:IF(VAR2=HHV(VAR2,240)ANDBARSCOUNT(C) 240,0.6,1)COLORWHITE; 

    STICKLINE(高倍量,0.5,0.85,1,0),COLORRED; 

    STICKLINE(倍量,0.5,0.75,1,0),COLORRED; 

    STICKLINE(平量柱,0.48,0.52,4,0),COLORYELLOW; 

    STICKLINE(梯量柱3T,0.5,0.65,1,0),COLORRED; 

    STICKLINE(倍缩量,0.5,0.25,1,0),COLORYELLOW; 

    STICKLINE(缩量涨,0.4,0.5,1,0),COLORFF00FF; 

    STICKLINE(黑太阳,0,0.5,2,0),COLORWHITE; 

    STICKLINE(红太阳,0,0.5,2,0),COLORRED; 

    DRAWTEXT(高倍量,0.8, 高 ),COLORYELLOW; 

    DRAWTEXT(倍量,0.7, 倍 ),COLORYELLOW; 

    DRAWTEXT(梯量柱3T,0.6, 梯 ),COLORYELLOW; 

    DRAWTEXT(平量柱,0.4, 平 ),COLORYELLOW; 

    DRAWTEXT(倍缩量,0.2, 倍 ),COLORFF00FF; 

    DRAWTEXT(缩量涨,0.3, 缩涨 ),COLORFF00FF; 

    DRAWTEXT(黑太阳,0.1, 黑 ),COLORWHITE; 

    DRAWTEXT(红太阳,0.1, 红 ),COLORRED; 

    DRAWTEXT(高倍量ANDCURRBARSCOUNT=1,0.8, 高倍量 ),COLORYELLOW; 

    DRAWTEXT(倍量ANDCURRBARSCOUNT=1,0.7, 倍量 ),COLORYELLOW; 

    DRAWTEXT(梯量柱3TANDCURRBARSCOUNT=1,0.6, 梯量柱 ),COLORYELLOW; 

    DRAWTEXT(平量柱ANDCURRBARSCOUNT=1,0.4, 平量柱 ),COLORYELLOW; 

    DRAWTEXT(倍缩量ANDCURRBARSCOUNT=1,0.2, 倍缩量 ),COLORFF00FF; 

    DRAWTEXT(缩量涨ANDCURRBARSCOUNT=1,0.3, 缩量涨 ),COLORYELLOW; 

    DRAWTEXT(黑太阳ANDCURRBARSCOUNT=1,0.4, 黑太阳 ),COLORWHITE; 

    DRAWTEXT(红太阳ANDCURRBARSCOUNT=1,0.4, 红太阳 ),COLORRED; 

    DRAWTEXT(月天量 =0.9ANDCURRBARSCOUNT=1,0.9, 天量 ),COLORYELLOW; 

    DRAWTEXT(月地量 =0.1ANDCURRBARSCOUNT=1,0.9, 地量 ),COLORYELLOW; 

    DRAWTEXT(HSL 1ANDHSL 2ANDISLASTBAR,0.1, 少人关注  

    DRAWTEXT(HSL 2ANDHSL 3ANDISLASTBAR,0.1, 成交温和  

    DRAWTEXT(HSL 3ANDHSL 5ANDISLASTBAR,0.1, 交投活跃  

    DRAWTEXT(HSL 5ANDHSL 8ANDISLASTBAR,0.1, 带量  

    DRAWTEXT(HSL 8ANDHSL 15ANDISLASTBAR,0.1, 放量  

    DRAWTEXT(HSL 15ANDHSL 25ANDISLASTBAR,0.1, 巨量  

    DRAWTEXT(HSL =25ANDISLASTBAR,0.1, 成交怪异  

    DRAWTEXT(((量能 3*NAND涨幅1 N)OR(量能 0.5*NAND涨幅1 3*N)OR(量能 3*NAND涨幅1 -NAND涨幅1 0)OR(量能 0.5*NAND涨幅1 -3*N))ANDISLASTBAR,0.5, 注意  

    零轴:0.5,COLORWHITE; 

    STICKLINE(一阳穿三线,0.5,1,1,0),COLORFF00FF; 

    DRAWTEXT(一阳穿三线,0.9, 穿三 ),COLORFF00FF; 

    STICKLINE(一阳穿四线,0,0.5,1,0),COLORFF00FF; 

    DRAWTEXT(一阳穿四线,0.9, 穿四 ),COLORYELLOW; 

    DRAWTEXT(单阳不破天数 =1,0.4, ☉ ),COLORYELLOW; 

    均价:=(3*C+H+L+O)/6; 

    VAR11:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36; 

    TJ1:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE VAR11; 

    立桩量:=FILTER(TJ1,5); 

    TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(HIGH,3),1,0))); 

    突破:=TJ2=1; 

    TJ3:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(LOW,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(LOW,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(LOW,3),1,0))); 

    三天法则:=TJ3=1; 

    成立:=三天法则AND突破; 

    条件成立:=FILTER(成立,3); 

    DRAWTEXT(条件成立,0.85, 成立 ),COLORYELLOW; 

    换手:=V*100/CAPITAL; 

    :=MA(换手,4); 

    大户:=MA(换手,9); 

    中户:=MA(换手,17); 

    :=MA(换手,34); 

    均量:=(主力+大户+中户+散户)/4; 

    主力能量:(主力-均量)COLORRED,NODRAW; 

    大户量:(大户-均量)COLORMAGENTA,NODRAW; 

    中户量:(中户-均量)COLORYELLOW,NODRAW; 

    散户量:(散户-均量),NODRAW; 

    操盘:STICKLINE(主力能量 =0AND主力能量 =REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED; 

    减仓:STICKLINE(主力能量 =0AND主力能量 REF(主力能量,1),4.5,4.5+主力能量,1,0),COLOR00CC20; 

    反弹:STICKLINE(主力能量 0AND主力能量 =REF(主力能量,1),4.5,4.5+主力能量,1,0),COLOR00CCCC; 

    寻底:STICKLINE(主力能量 0AND主力能量 REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORFF9900; 

    DRAWTEXT(ISLASTBAR=1,IF(主力能量 =0,4.2,4.8), ),COLORRED; 

    操盘1:STICKLINE(大户量 =0AND大户量 =REF(大户量,1),3,3+大户量,1,0),COLORRED; 

    减仓1:STICKLINE(大户量 =0AND大户量 REF(大户量,1),3,3+大户量,1,0),COLOR00CC20; 

    反弹1:STICKLINE(大户量 0AND大户量 =REF(大户量,1),3,3+大户量,1,0),COLOR00CCCC; 

    寻底1:STICKLINE(大户量 0AND大户量 REF(大户量,1),3,3+大户量,1,0),COLORFF9900; 

    DRAWTEXT(ISLASTBAR=1,IF(大户量 =0,2.7,3.3), 大户 ),COLORMAGENTA; 

    操盘2:STICKLINE(中户量 =0AND中户量 =REF(中户量,1),1.5,1.5+中户量,1,0),COLORRED; 

    减仓2:STICKLINE(中户量 =0AND中户量 REF(中户量,1),1.5,1.5+中户量,1,0),COLOR00CC20; 

    反弹2:STICKLINE(中户量 0AND中户量 =REF(中户量,1),1.5,1.5+中户量,1,0),COLOR00CCCC; 

    寻底2:STICKLINE(中户量 0AND中户量 REF(中户量,1),1.5,1.5+中户量,1,0),COLORFF9900; 

    DRAWTEXT(ISLASTBAR=1,IF(中户量 =0,1.2,1.8), 中户 ),COLORYELLOW; 

    操盘3:STICKLINE(散户量 =0AND散户量 =REF(散户量,1),0,散户量,1,0),COLORRED; 

    减仓3:STICKLINE(散户量 =0AND散户量 REF(散户量,1),0,散户量,1,0),COLOR00CC20; 

    反弹3:STICKLINE(散户量 0AND散户量 =REF(散户量,1),0,散户量,1,0),COLOR00CCCC; 

    寻底3:STICKLINE(散户量 0AND散户量 REF(散户量,1),0,散户量,1,0),COLORFF9900; 

    DRAWTEXT(ISLASTBAR=1,IF(散户量 =0,-0.3,0.3), 散户 ),COLORGREEN; 

    E3:EMA(C,3),COLOR61DC16; 

    E5:EMA(C,5),COLOR61DC16; 

    E8:EMA(C,8),COLOR61DC16; 

    E10:EMA(C,10),COLOR61DC16; 

    E12:EMA(C,12),COLOR61DC16; 

    E15:EMA(C,15),COLOR61DC16; 

    E30:EMA(C,30),COLORD1875A; 

    E35:EMA(C,35),COLORD1875A; 

    E40:EMA(C,40),COLORD1875A; 

    E45:EMA(C,45),COLORD1875A; 

    E50:EMA(C,50),COLORD1875A; 

    E60:EMA(C,60),COLORD1875A; 

    IF(E3 REF(E3,1),E3,DRAWNULL),COLORYELLOW; 

    IF(E5 REF(E5,1),E5,DRAWNULL),COLORYELLOW; 

    IF(E8 REF(E8,1),E8,DRAWNULL),COLORYELLOW; 

    IF(E10 REF(E10,1),E10,DRAWNULL),COLORYELLOW; 

    IF(E12 REF(E12,1),E12,DRAWNULL),COLORYELLOW; 

    IF(E15 REF(E15,1),E15,DRAWNULL),COLORYELLOW; 

    IF(E30 REF(E30,1),E30,DRAWNULL),COLORFF00FF; 

    IF(E35 REF(E35,1),E35,DRAWNULL),COLORFF00FF; 

    IF(E40 REF(E40,1),E40,DRAWNULL),COLORFF00FF; 

    IF(E45 REF(E45,1),E45,DRAWNULL),COLORFF00FF; 

    IF(E50 REF(E50,1),E50,DRAWNULL),COLORFF00FF; 

    IF(E60 REF(E60,1),E60,DRAWNULL),COLORFF00FF; 

    STICKLINE(C O,C,O,1,0),COLORRED; 

    STICKLINE(C O,H,L,0,0),COLORRED; 

    STICKLINE(C =O,C,O,1,0),COLORFFFF52; 

    STICKLINE(C =O,H,L,0,0),COLORFFFF52; 

    DRAWICON(EMA(C,8) EMA(C,15)ANDEMA(C,40) REF(EMA(C,40),1)ANDCROSS(EMA(C,3),EMA(C,35)),L-0.20,24); 

    DRAWICON(EMA(C,15) EMA(C,40)ANDEMA(C,35) REF(EMA(C,35),1)ANDCROSS(EMA(C,3),EMA(C,5)),L-0.20,25); 

    DRAWICON(ABS(EMA(C,15)-EMA(C,60))/C 0.01ANDEMA(C,15) EMA(C,30)ANDO EMA(C,3)ANDC EMA(C,3)ANDO EMA(C,15)ANDC EMA(C,15)ANDO EMA(C,30)ANDC EMA(C,30)ANDO EMA(C,60)ANDC EMA(C,60),L-0.20,27); 

    DRAWICON(ABS(EMA(C,45)-EMA(C,30))/C 0.011ANDEMA(C,3) EMA(C,15)ANDEMA(C,15) EMA(C,40)ANDCROSS(EMA(C,5),EMA(C,60)),L-0.20,13); 

    A1:=OPEN EMA(C,20)OROPEN EMA(C,40)OROPEN EMA(C,60); 

    A2:=C MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))); 

    A3:=V/MA(V,10)  

    A4:=C/REF(C,1) 1.049; 

    出水芙蓉:=A1ANDA2ANDA3ANDA4ANDO EMA(C,60)ANDC EMA(C,60); 

    DRAWICON(出水芙蓉,L-0.20,9); 

    红买盘:MA(C,3),COLORRED,NODRAW; 

    绿卖盘:MA(C,3),COLORGREEN,NODRAW; 

    黄反弹:MA(C,3),COLORYELLOW,NODRAW; 

    蓝寻底:MA(C,3),COLORFF9900,NODRAW; 

    :VOL,COLORWHITE,NODRAW; 

    均量5:MA(成交量,5)/50000,COLORMAGENTA,LINETHICK1; 

    均量20:MA(成交量,20)/50000,COLOR00FFFF,LINETHICK1; 

    均量120:MA(成交量,120)/50000,COLOR00CC20,LINETHICK1; 

    B:=ZIG(3,50/5)*1; 

    G:=MA(B,2); 

    D:=CROSS(B,G)*10; 

    W:=CROSS(G,B)*10; 

    DRAWTEXT(W=10,4, 卖 ),COLORWHITE; 

    DRAWTEXT(D=10,4, 买 ),COLORCYAN; 

    DRAWKLINE(H,O,L,C); 

    黄金柱:=V/REF(V,1) =1.9; 

    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; 

    STICKLINE(C/REF(C,1) 1.095,C,O,2,0),COLORYELLOW; 

    A1:=REF(H,17)=HHV(H,2*17+1);B1:=FILTER(A1,17); 

    C1:=BacKSET(B1,17+1);HD:=FILTER(C1,17); 

    波峰:REF(H,BArslAST(HD)),POINTDOT,COLOR990099; 

    {极点L} 

    AL1:=REF(L,17)=LLV(L,2*17+1);BL1:=FILTER(AL1,17); 

    CL1:=BACKSET(BL1,17+1);LD:=FILTER(CL1,17); 

    波谷:REF(L,BARSLAST(LD)),POINTDOT,COLOR009900; 

    T1:=BARSLAST(HD) BARSLAST(LD)ANDNOT(HD); 

    T2:=BARSLAST(HD) BARSLAST(LD)ANDNOT(LD); 

    STICKLINE(T1,波峰,波峰,5,0),COLOR990099; 

    STICKLINE(T2,波谷,波谷,5,0),COLOR009900; 

    V2V:=V/REF(V,1) =1.9ANDC REF(C,1); 

    STICKLINE(V2V,O,C,-1,0),COLORYELLOW; 

    高:=REF(HHV(H,80),3); 

    低:=REF(LLV(L,80),3); 

    H19:=高-(高-低); 

    H38:=高-(高-低); 

    H中:=高-(高-低); 

    H61:=高-(高-低); 

    H80:=高-(高-低); 

    顶点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE; 

    低点:REFDATE(低,DATE),POINTDOT,LINETHICK2,COLORWHITE; 

    BUY:=zig(3,10); 

    SELL:=ma(BUY,2); 

    DRAWICON(crOSS(BUY,SELL),L-0.1,7); 

    DRAWICON(CROSS(SELL,BUY),H+0.1,8); 

    DRAWKLINE(H,O,L,C); 

    STICKLINE(C/REF(C,1) 1.095,C,O,2,0),COLORYELLOW; 

    立桩量:=vol=HHV(VOL,40)ANDVOL 1.9*REF(VOL,1); 

    立桩量三日突破:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(HIGH,3),1,0))); 

    立桩量三日不破:=BARSLAST(立桩量)=3ANDREF(LOW,3) =MIN(MIN(C,REF(C,1)),REF(C,2)); 

    BACKSET300:=BACKSET(立桩量三日不破,4); 

    BACKSET301:=BACKSET(立桩量三日突破,4); 

    立桩量成立:=FILTER(BACKSET300,3)ANDBACKSET301AND立桩量; 

    DRAWTEXT(立桩量成立,HIGH, 立柱 ),COLORGREEN; 


    image.png

    公式解读:


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信黄金神柱指标公式源码 加入收藏