通达信筹码平均成本指标公式源码

CB1:=COST(100-10/3);

CB2:=COST(100-14/3);

CB3:=COST(100-18/3);

CB4:=COST(100-22/3);

CB5:=COST(100-26/3);

CB6:=COST(100-30/3);

CB7:=COST(100-34/3);

CB8:=COST(100-38/3);

CB9:=COST(100-42/3);

SCBD:=MAX(CB1,MAX(CB2,MAX(CB3,MAX(CB4,MAX(CB5,MAX(CB6,MAX(CB7,MAX(CB8,C

B9))))))));

SCBX:=MIN(CB1,MIN(CB2,MIN(CB3,MIN(CB4,MIN(CB5,MIN(CB6,MIN(CB7,MIN(CB8,CB9)

)))))));

SCBJ:=(CB1+CB2+CB3+CB4+CB5+CB6+CB7+CB8+CB9)/9;

SCB:(((CB1+CB2+CB3)/3+2*(CB1+CB2+CB3+CB4+CB5+CB6)/6)/3+3*SCBJ)/4;

CB11:=COST(100-(100-10/3));

CB12:=COST(100-(100-14/3));

CB13:=COST(100-(100-18/3));

CB14:=COST(100-(100-22/3));

CB15:=COST(100-(100-26/3));

CB16:=COST(100-(100-30/3));

CB17:=COST(100-(100-34/3));

CB18:=COST(100-(100-38/3));

CB19:=COST(100-(100-42/3));

XCBD:=MAX(CB11,MAX(CB12,MAX(CB13,MAX(CB14,MAX(CB15,MAX(CB16,MAX(CB17,MA

X(CB18,CB19))))))));

XCBX:=MIN(CB11,MIN(CB12,MIN(CB13,MIN(CB14,MIN(CB15,MIN(CB16,MIN(CB17,MIN(

CB18,CB19))))))));

XCBJ:=(CB11+CB12+CB13+CB14+CB15+CB16+CB17+CB18+CB19)/9;

XCB:(((CB11+CB12+CB13)/3+2*(CB11+CB12+CB13+CB14+CB15+CB16)/6)/3+3*XCBJ)

/4;

image.png

通达信筹码成本均线公式源码

    PC:=(3*H+L+O+2*C)/7;

    JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3

    ));

    DDD:=(DYNAINFO(5)<0.01||DYNAINFO(6)<0.01);

    JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01)&&JJJ>(DYNAINFO(6)-0.01)));

    CYC1:IF(JJJT,0.01*EXPMA(AMOUNT,12)/EXPMA(AMOUNT/(100*PC),12),EMA(

    (H+L+C)/3,12)),COLORWHITE;

    CYC2:IF(JJJT,0.01*EXPMA(AMOUNT,30)/EXPMA(AMOUNT/(100*PC),30),EMA(

    (H+L+C)/3,30));

    CYC3:IF(JJJT,0.01*EXPMA(AMOUNT,70)/EXPMA(AMOUNT/(100*PC),70),EMA(

    (H+L+C)/3,70));

    CYC∞:IF(JJJT,DMA(PC,100*VOL/FINANCE(7)),EMA((H+L+C)/3,120)),COLOR

    GREEN,LINETHICK1;

    DRAWNUMBER(AMO>REF(AMO,1)ANDBARSCOUNT(C)>=80AND

    TOPRANGE(AMO)>200,L*0.98,TOPRANGE(AMO)),COLORRED;

    大盘:=CALCSTOCKINDEX('999999','停牌调用',1);

    个股:=BARSCOUNT(C)+1;

    停牌:=(大盘-REF(大盘,1))-(个股-REF(个股,1));

    DRAWTEXT(停牌>=1,L*0.99,VARCAT(VARCAT('↖停牌',VAR2STR(停牌,0)),'天

    ')),COLORGREEN;

    市值:AMO/HSCOL/1000000,COLORYELLOW,NODRAW;

    AA:=市值>REF(市值,1)*1.1ANDC>0.8*REF(C,2)ANDC>0.89*REF(1,2)AND

    FINANCE(7)>REF(FINANCE(7),1);

    DRAWTEXT(AAANDBARSCOUNT(C)>=11,H*1.01,'禁'),COLORGREEN;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。