最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信cci变色副图指标—通达信公式

    正文概述    2024-05-04 04:21:41  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:

    公式源码如下:


     

    VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; 

    VAR2:=2*ABS(VAR1); 

    VAR3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); 

    VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); 

    VAR5:=(HIGH+LOW+CLOSE)/3; 

    VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14)); 

    VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70)); 

    VAR8:=IF(VAR6 =150ANDVAR6 200ANDVAR7 =150ANDVAR7 200,10,0); 

    VAR9:=IF(VAR6 =-150ANDVAR6 -200ANDVAR7 =-150ANDVAR7 -200,-10,VAR8); 

    VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; 

    VARB:=100-ABS(VARA); 

    VARC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1); 

    VARD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1); 

    VARE:=REF(LOW,1)*0.9; 

    VARF:=LOW*0.9; 

    VAR10:=(VARF*+VARE*(CAPITAL-VOL))/CAPITAL; 

    VAR11:=EMA(VAR10,30); 

    VAR12:=VAR11-CLOSE; 

    VAR13:=REF(CLOSE,1); 

    VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100; 

    VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100; 

    VAR16:=BARSCOUNT(CLOSE); 

    VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100; 

    VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2; 

    VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; 

    VAR1A:=(SMA(VAR19,4,1)-50)*2; 

    VAR1B:=SMA(VAR1A,3,1); 

    VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; 

    VAR1D:=SMA(VAR1C,4,1); 

    VAR1E:=SMA(VAR1D,3,1); 

    VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; 

    VAR20:=IF(VAR17 =25ANDVAR18 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30ANDVAR12 =-0.25ANDVAR14 22ANDVAR15 28ANDVAR16 50,80,0); 

    情报:VAR3; 

    天线:IF(VARB 90,VARB,100); 

    红军:IF(VAR1 0,VAR1,0),COLORRED,LINESTICK; 

    绿军:IF(VAR1 0,VAR2,0),COLORGREEN,LINESTICK; 

    导弹:VAR20; 

    预警系统:IF(VAR7 =200ANDVAR6 =150,15,IF(VAR7 =-200ANDVAR6 =-150,-15,VAR9))+60; 

    STICKLINE(VAR3 =REF(VAR4,1),VAR3,VAR4,8,0); 

    STICKLINE(VAR3 REF(VAR4,1),VAR3,VAR4,8,0); 

    VAR21:=CLOSE MA(CLOSE,20)ANDMA(CLOSE,20) =REF(MA(CLOSE,20),1); 

    VAR22:=CLOSE MA(CLOSE,20)ANDMA(CLOSE,20) REF(MA(CLOSE,20),1); 

    VAR23:=红军 50AND预警系统 60AND天线=100; 

    VAR24:=红军 48AND预警系统 60AND天线 100; 

    VAR25:=绿军 38AND预警系统 55; 

    VAR26:=导弹 50AND天线 90; 

    VAR27:=VAR3 REF(VAR4,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); 

    VAR28:=VAR3 =REF(VAR4,1)ANDCLOSE REF(CLOSE,1)AND预警系统=60AND导弹=0AND绿军 =REF(绿军,1)ANDVARC REF(VARD,1); 

    DRAWTEXT(VAR21ANDCOUNT(VAR21,30)=1,100, 上升通道,持股待长或高抛低吸!  

    DRAWTEXT(VAR22ANDCOUNT(VAR22,30)=1,90, 下降通道,小心无量阴跌!  

    DRAWTEXT(VAR23ANDCOUNT(VAR23,30)=1,70, 上涨过急,需要调整,先抛出!  

    DRAWTEXT(VAR24ANDCOUNT(VAR24,30)=1,80, 出货,大跌在即,抛出!  

    DRAWTEXT(VAR25ANDCOUNT(VAR25,30)=1,50, 不必杀跌,应有小反弹,跌停除外!  

    DRAWTEXT(VAR26ANDCOUNT(VAR26,30)=1,30, 坚决抢反弹,但巨量封跌停除外  

    DRAWTEXT(VAR27ANDCOUNT(VAR27,30)=1,40, 有大进场迹象,关注!  

    DRAWTEXT(VAR28ANDCOUNT(VAR28,30)=1,20, 见顶回落  

    买入:IF(VAR27ANDCOUNT(VAR27,30)=1,100,0),LINETHICK3,COLORBLUE; 

    {} 

    LC:=REF(CLOSE,1); 

    RSI6:=SMA(maX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100,LINETHICK2; 

    MA6:=MA(RSI6,6),COLORGREEN; 

    短波:=IF(MA6 REF(MA6,1)ORRSI6 MA6,MA6,DRAWNULL),COLORRED,LINETHICK2; 

    {游侠副图} 

    TYPD:=IF((H CANDC O)OR(H OANDO =C),C,H)+IF((L CANDC O)OR(L OANDO =C),CLOSE,LOW)/3; 

    游侠CCI:=EMA((TYPD-MA(TYPD,36.0270012))/(0.015*AVEDEV(TYPD,36.0270012)),2.0332),COLORWHITE,LINETHICK2; 

    日:游侠CCI,COLORWHITE,LINETHICK2; 

    粉低吸:EVERY(游侠CCI -150AND游侠CCI REF(游侠CCI,1),3),NODRAW,COLORFF00FF; 

    STICKLINE(游侠CCI -150,游侠CCI,-150,2,0),COLORFF80FF; 

    STICKLINE(C 0,-150,-151,2,0),COLORBLUE; 

    DRAWICON(CROSS(游侠CCI,100)AND周C =月CAND周C =200AND月C =110,游侠CCI,34); 

    DRAWICON(CROSS(游侠CCI,110)AND周C =月CAND周C =200AND月C =0AND短波,游侠CCI,1); 

    {CCI日周月}{改编BYSHUHONG} 

    {BSQJ指标}{买卖区间} 

    买线:=EMA(C,2); 

    卖线:=EMA(SLOPE(C,21)*20+C,42); 

    STICKLINE(买线 =卖线,0,10,2,1),COLOR2040FF; 

    STICKLINE(买线 卖线,0,-10,2,1),COLOR6CE424; 

    DRAWTEXT(ISLASTBAR,月C, ←月C ),COLORRED; 

    DRAWTEXT(ISLASTBAR,周C, ←周C ),COLORYELLOW; 

    DRAWTEXT(ISLASTBAR,日, ←日 ),COLORWHITE; 

    AA:=DMA((H+L+C*2)/4,0.9); 

    BB:=REF(EMA(AA,3),1); 

    T0:=(C-BB)*100; 

    M1:EMA(EMA(EMA(T0,2),2),2),LINETHICK2,COLORGREEN; 

    TT:EMA((C*5+REF(C,1)*4+REF(C,2)*3+REF(C,3)*2+REF(C,4))/15,2); 

    IF(M1 =REF(M1,1),M1,DRAWNULL),LINETHICK2,COLORRED; 

    MA60:MA(C,60),COLOR00FF00,LINETHICK3; 

    MA133:MA(C,133),COLORFF6633,LINETHICK2; 

    MA250:MA(C,250),COLOR66DD66,LINETHICK2; 

    IF(MA(C,60) =REF(MA(C,60),1),MA(C,60),DRAWNULL),COLORRED,LINETHICK3; 

    IF(MA(C,133) =REF(MA(C,133),1),MA(C,133),DRAWNULL),COLORYELLOW,LINETHICK2; 

    IF(MA(C,250) =REF(MA(C,250),1),MA(C,250),DRAWNULL),COLORBC10FF,LINETHICK2; 

    DIFF:EMA(CLOSE,12)-EMA(CLOSE,26); 

    TYP=(IF(ISNULL(HIGH),CLOSE,HIGH)+IF(ISNULL(LOW),CLOSE,LOW)+CLOSE)/3; 

    cci:(TYP-ma(TYP,28))/(0.015*AVEDEV(TYP,28)),coloryellow; 

    强势线:100,colorred; 

    建仓线:-150,colorgreen; 

    天线:200,colorgray; 

    地线:-200,colorgray; 

    DEA:EMA(DIFF,9); 

    MACD=2*(DIFF-DEA); 

    Zero:0; 

    gj:=MAX(C,O); 

    N:=14; 

    M:84; 

    :=IF(REF(C,1)*1.1-C 0.01,1,0); 

    LC:=REF(CLOSE,1); 

    操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 

    震仓线:=45; 

    线:=20; 

    PP:=操作线 震仓线ANDREF(操作线,1) 震仓线; 

    PP3:=操作线 抄底线ANDREF(操作线,1) 抄底线; 

    HH:=COUNT(涨停,13) =1; 

    STICKLINE((REF(PP,1)ANDHH),0,10,3,0),COLORRED; 

    STICKLINE((REF(PP3,1)ANDHH),0,40,1,0),COLORGREEN; 

    STICKLINE(涨停,0,10,8,0),COLORYELLOW; 

    TYP:=(HIGH+LOW+CLOSE)/3; 

    cci1:(TYP-ma(TYP,N))/(0.015*AVEDEV(TYP,N)),colormagenta,LINETHICK2; 

    CCI2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),colorwhite,LINETHICK1; 

    秒杀CCI:EMA((TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),2.0332),coloryellow; 

    stICKLINE(秒杀CCI0,-150,-151,2,0),coloryellow,LINETHICK1; 

    STICKLINE(秒杀CCI 150,秒杀CCI,150,2,0),coloryellow,LINETHICK6,STICK; 

    线:;3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1),3,1),Color7900F2,linethick2; 

    买点准备:IF(趋势线 =10,12,0),coloryellow,LINETHICK1; 

    高位区:200,colorlired; 

    底位区:-150,colorgreen; 

    STICKLINE(MACD 0ANDMACD =REF(MACD,1),0,MACD,2,0),color0000ff; 

    STICKLINE(MACD 0ANDMACD REF(MACD,1),0,MACD,2,0),colorffff00; 

    STICKLINE(MACD 0ANDMACD =REF(MACD,1),0,MACD,2,0),colorff00ff; 

    STICKLINE(MACD 0ANDMACD REF(MACD,1),0,MACD,2,0),color00ff00; 

    DRAWRECTREL(0,0,990,990,RGB(20,18,12)); 

    DRAWTEXT_FIX(1,0.14,0.01,1, 股东股份: ),COLORRED; 

    品种类型:=FINANCE(3); 

    所属:=HYBLOCK; 

    上市天数:=FINANCE(42); 

    股总市值:=ROUND(FINANCE(41)/100000000); 

    流通市值:=ROUND(FINANCE(40)/100000000); 

    股东人数:=FINANCE(8); 

    人均持股:=ROUND(FINANCE(7)/FINANCE(8)); 

    DRAWTEXT_FIX(1,0.14,0.15,1, 品种类型: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.14,0.25,1, 所属板块: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.14,0.35,1, 上市天数: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.14,0.45,1, 股总市值: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.14,0.55,1, 流通市值: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.14,0.65,1, 股东人数: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.14,0.75,1, 人均持股: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN; 

    DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.19,0.45,1,股总市值),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORWHITE; 

    DRAWTEXT_FIX(品种类型=1,0.23,0.15,1, 沪深A股 ),COLORMAGENTA; 

    DRAWTEXT_FIX(品种类型=2,0.23,0.15,1, 中小板 ),COLORMAGENTA; 

    DRAWTEXT_FIX(品种类型=3,0.23,0.15,1, 创业板 ),COLORMAGENTA; 

    DRAWTEXT_FIX(1,0.23,0.35,1, 天 ),COLORCYAN; 

    DRAWTEXT_FIX(1,0.23,0.45,1, 亿元 ),COLORCYAN; 

    DRAWTEXT_FIX(1,0.23,0.55,1, 亿元 ),COLORCYAN; 

    DRAWTEXT_FIX(1,0.23,0.65,1, 人 ),COLORCYAN; 

    DRAWTEXT_FIX(1,0.23,0.75,1, 股 ),COLORCYAN; 

    DRAWTEXT_FIX(1,0.326,0.01,1, 业绩指标: ),COLORRED; 

    净资收益率:=(FINANCE(33)/FINANCE(34)*100); 

    销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100); 

    净利润比率:=(FINANCE(30)/FINANCE(20)*100); 

    主营利润率:=(FINANCE(23)/FINANCE(20)*100); 

    优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准}; 

    现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准}; 

    净利同增率:=FINANCE(43); 

    DRAWTEXT_FIX(1,0.34,0.15,1, 净资收益率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.34,0.25,1, 销售毛利率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.34,0.35,1, 净利润率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.34,0.45,1, 主营利润率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.34,0.55,1, 优质资产率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.34,0.65,1, 现金负债比: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.34,0.75,1, 净利同增率: ),COLORYELLOW; 

    DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORWHITE; 

    DRAWTEXT_FIX(1,0.498,0.01,1, 财务指标: ),COLORRED; 

    市净率:=CONST(DYNAINFO(7)/FINANCE(34)); 

    市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20)); 

    每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37))); 

    每股收益年:=CONST(FINANCE(33)); 

    每股现金流:=CONST((FINANCE(25)/FINANCE(1))); 

    每股未分配:=CONST(FINANCE(32)); 

    每股公积金:=CONST(FINANCE(18)); 

    DRAWTEXT_FIX(1,0.51,0.15,1, 市净率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.51,0.25,1, 市销率: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.51,0.35,1, 每股收益季: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.51,0.45,1, 每股收益年: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.51,0.55,1, 每股现金流: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.51,0.65,1, 每股未分配: ),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.51,0.75,1, 每股公积金: ),COLORYELLOW; 

    DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益年),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORWHITE; 

    DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORWHITE; 

    {风险系数} 

    X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2; 

    X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替} 

    X3:=FINANCE(23)/FINANCE(10)*3.3; 

    X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额} 

    X5:=FINANCE(20)/FINANCE(15)*0.999; 

    Z值:=X1+X2+X3+X4+X5; 

    DRAWTEXT_FIX(1,0.85,0.01,1, 财务预警: ),COLORRED; 

    DRAWTEXT_FIX(Z值 1.2,0.838,0.11,1, ●重警● ),COLORLIRED; 

    DRAWTEXT_FIX(BETWEEN(Z值,1.2,2.6),0.838,0.11,1, ○轻警○ ),COLOR0099FF; 

    DRAWTEXT_FIX(Z值 2.6,0.838,0.11,1, ◎无警◎ ),COLORLIGREEN; 

    LC:=REF(CLOSE,1); 

    WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100; 

    获利:=CONST(WINNER(C)*100); 

    SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)); 

    饱和:=(IF(SAT 1,1,SAT)*100); 

    WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100; 

    活跃:=(WRSI-WR10); 

    活跃度比:=IF(活跃 =0,(活跃+100)/2,100-ABS((活跃-100)/2)); 

    DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT( 量能饱和: ,CON2STR(量能饱和,2)), % )),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT( 活跃度比: ,CON2STR(活跃度比,2)), % )),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT( 获利筹码: ,CON2STR(获利筹码,2)), % )),COLORYELLOW; 

    DRAWRECTREL(970,340,580,270,RGB(150,10,250)); 

    DRAWRECTREL(970,470,580,540,RGB(150,10,250)); 

    DRAWRECTREL(970,670,580,740,RGB(150,10,250)); 

    DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); 

    DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); 

    DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); 

    DRAWTEXT_FIX(1,0.96,0.01,1, 趋势: ),COLORRED; 

    DRAWTEXT_FIX(CONST(INDEXC) SAR(4,2,20),0.95,0.16,1, ∧∧∧∧ ),COLORRED; 

    DRAWTEXT_FIX(CONST(INDEXC) SAR(4,2,20),0.95,0.11,1, ∧∧∧∧ ),COLORRED; 

    DRAWTEXT_FIX(CONST(INDEXC) SAR(4,2,20),0.95,0.16,1, ∨∨∨∨ ),COLORGREEN; 

    DRAWTEXT_FIX(CONST(INDEXC) SAR(4,2,20),0.95,0.11,1, ∨∨∨∨ ),COLORGREEN; 

    L4:=LLV(gj,4); 

    jl:=(HHV(diff,55)-LLV(diff,55))/5; 

    gt:=dea REF(dea,1)ANDREF(dea,1) REF(dea,2); 

    A1:=BARSLAST(REF(gt,1)); 

    底:=REF(L4,A1+1) CLOSEANDdiff REF(diff,A1+1)ANDgt; 

    DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2; 

    DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2; 

    DRAWTEXT(底背离,REF(DEA,A1)*1.18, 底背离 ),COLORFF00FF; 

    H4:=HHV(gj,4); 

    gt2:=dea REF(dea,1)ANDREF(dea,1) REF(dea,2); 

    A2:=BARSLAST(REF(gt2,1)); 

    顶背离:=REF(H4,A2+1) H4ANDdiff REF(diff,A2+1)ANDgt2; 

    DRAWLINE(A2=0,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2; 

    DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2; 

    DRAWTEXT(顶背离,REF(DEA,A2)*1.18, 顶背离 ),colorgreen; 

    A0:=DIFF 0ANDDEA 0; 

    A11:=A0 REF(A0,1); 

    A3:=BARSLAST(A11); 

    A4:=COUNT(DEA 0ANDDIFF 0,A3)=0; 

    A5:=CROSS(DIFF,DEA); 

    A6:=BARSLAST(A5); 

    A7:=REF(A6,A6+1)+A6; 

    A8:=(DIFF+DEA)/2; 

    A9:=(HIGH+LOW)/2; 

    A10:=A5ANDA7 A3ANDA4ANDA8 REF(A8,A7)ANDA9 REF(A9,A7)ANDMACD 0; 

    DRAWTEXT(A10,DIFF*0.95, ★买入 ),coloryellow;


    image.png

    公式解读:

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信cci变色副图指标—通达信公式 加入收藏