1. 首页 > 投资理念

趋势通道线指标公式源码(通达信趋势通道主图)

趋势通道线指标公式源码(通达信趋势通道主图)

内容导航:
  • 通达信自动画趋势线指标公式
  • 谁有东方财富金融终端的趋势DK线公式源码?
  • 请帮忙编一个薛斯通道向上趋势的选股公式源码
  • 求趋势线上穿操盘线的选股公式:
  • 通达信黄金通道指标源码怎么写?就是有上轨下轨的蓝色的线,谢谢,真心感谢!
  • 通达信,如何添加主图K线指标?
  • 通达信做趋势中长线主图指标怎么看
  • Q1:通达信自动画趋势线指标公式

    内容来自用户:聚文汇

    通达信自动画趋势线指标公式
    参数:n 5A1:=REF(H,N)=HHV(H,2*N+1); B1:=FILTER(A1,N); C1:=BACKSET(B1,N+1); D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1); B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1); D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); S1:=R1>REF(R1,1); {前一高}T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T1>REF(T1,1); {前一低}R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1); {前二高}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1); {前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2); U3:=T3>REF(T3,1); {前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2); U4:=

    Q2:谁有东方财富金融终端的趋势DK线公式源码?

    QKX
    乾坤线:=3*(2*EMA(LLV((OPEN+HIGH+LOW+2*CLOSE)/5,8),13)-(OPEN+HIGH+LOW+2*CLOSE)/5)-2*(SMA(2*EMA(LLV((OPEN+HIGH+LOW+2*CLOSE)/5,8),13)-(OPEN+HIGH+LOW+2*CLOSE)/5,9,1));
    DK:=乾坤线;
    A5:MA(CLOSE,5);
    A10:MA(CLOSE,10);
    A20:MA(CLOSE,20);
    A30:MA(CLOSE,30);
    SMX:(MA(CLOSE,30)+MA(CLOSE,72))/2,LINETHICK2,colorFF;
    A60:MA(CLOSE,60),LINEDOT;
    A120:MA(CLOSE,120),LINEDOT;
    A250:MA(CLOSE,250),LINEDOT,colorFF;
    STICKLINE(CLOSE>DK,OPEN,CLOSE,8,1),colorFF;
    STICKLINE(CLOSE>DK AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFF;
    STICKLINE(CLOSE=DK,OPEN,CLOSE,8,1),colorFF;
    STICKLINE(CLOSE>DK,LOW,OPEN,0.8,1),colorFF;
    STICKLINE(CLOSE=DK,LOW,OPEN,0.8,1),colorFF;
    STICKLINE(CLOSE>DK,CLOSE,HIGH,0.8,1),colorFF;
    STICKLINE(CLOSE=DK,CLOSE,HIGH,0.8,1),colorFF;
    STICKLINE(CLOSE<DK AND CLOSE>OPEN,CLOSE,OPEN,8,1),colorFF00;
    STICKLINE(CLOSE<DK AND CLOSE<=OPEN,CLOSE,OPEN,8,0),colorFF00;
    STICKLINE(CLOSE<DK,OPEN,LOW,0.8,0),colorFF00;
    STICKLINE(CLOSE<DK,CLOSE,HIGH,0.8,0),colorFF00;
    VAR13:=(CLOSE-OPEN)/OPEN*100;
    VAR14:=REF(CLOSE,1);
    VAR15:=(SMA(MAX(CLOSE-VAR14,0),6,1))/(SMA(ABS(CLOSE-VAR14),6,1))*100;
    VAR16:=COUNT(VAR15<59,20)>=1;
    VAR17:=(CLOSE-MA(CLOSE,32))/STD(CLOSE,32)*100;
    VAR18:=EMA(VAR17,3);
    VAR19:=MA(CLOSE,5);
    VAR20:=SUM(VOL,20)/CAPITAL;
    VAR21:=MA(VAR20,1);
    VAR22:=MA(VAR20,20);
    VAR23:=BARSLAST(CROSS(VAR21,VAR22));
    VAR24:=(CLOSE-OPEN)/OPEN;
    VAR25:=(MA(CLOSE,60)-MA(CLOSE,5))/MA(CLOSE,5);
    VAR30:=BACKSET(REF(CLOSE,2)/REF(OPEN,2)<=0.9 AND REF(OPEN,1)<REF(CLOSE,2) AND (ABS(REF(OPEN,1)-REF(CLOSE,1)))/REF(CLOSE,1)<=0.05 AND CLOSE/OPEN>=1.08 AND CLOSE>REF(CLOSE,2),1);
    VAR32:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
    VAR33:=(CLOSE-REF(CLOSE,30))/REF(CLOSE,30)*100;
    VAR34:=OPEN/REF(CLOSE,1)>=1-2/100 AND CLOSE/OPEN>=1+3/100;
    VAR35:=VOL/MA(VOL,5)>1;
    VAR36:=REF(CLOSE,1);
    VAR37:=(SMA(MAX(CLOSE-VAR36,0),6,1))/(SMA(ABS(CLOSE-VAR36),6,1))*100;
    VAR38:=(CLOSE-VAR36)/VAR36*100;
    VAR39:=COUNT(VAR37<23,23);
    VAR40:=(CLOSE-OPEN)/OPEN*100;
    VAR41:=REF(CLOSE,1);
    VAR42:=(SMA(MAX(CLOSE-VAR41,0),2,1))/(SMA(ABS(CLOSE-VAR41),2,1))*100;
    VAR43:=COUNT(VAR42<20,20)>=1;
    VAR47:=LLV(LOW,18);
    VAR48:=HHV(HIGH,18);
    VAR49:=EMA((CLOSE-VAR47)/(VAR48-VAR47)*100,13);
    VAR50:=VAR13>7 AND VAR16 OR VAR38>6 AND VAR39>=1 AND VAR34 AND VAR35 AND VAR33<6;
    VAR101:=DRAWTEXT((VAR17>-100 AND VAR17>REF(VAR17,1) AND REF(VAR17,1)>REF(VAR17,2) AND REF((HHV(HIGH,3)-LLV(LOW,3))/LLV(LOW,3),1)<=3/50 AND CLOSE>=REF(HHV(HIGH,3),1) AND BARSCOUNT(CLOSE)>80 AND VAR19>REF(VAR19,1) AND CLOSE>REF(CLOSE,1) AND VOL/240>MA(VOL,100)/240 AND CLOSE>OPEN*(1+3/100) AND CLOSE<MA(CLOSE,30)*1.3 OR VAR40>9 AND VAR43 OR VOL/240>MA(VOL,100)/240 AND CLOSE>OPEN*(1+7/100) AND CLOSE<MA(CLOSE,5)*1.5 OR VAR50) AND EMA(0.618*REF(VAR49,1)+0.382*VAR49,3)<40,LOW*0.98,'←出击');
    VAR102:=LLV(LOW,2)=LLV(LOW,16) AND CLOSE>=OPEN*1.04;
    VAR103:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
    VAR104:=VAR102 AND VAR103;
    VAR105:=DRAWTEXT(VAR104,LOW*0.98,'B');
    VAR106:=DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.02,'S');
    LL:=REF(CLOSE,2);
    MM:=(SMA(MAX(CLOSE-LL,0),6,1))/(SMA(ABS(CLOSE-LL),6,1))*100;
    DB:=IF(MM<REF(MM,1) AND MM>79,MM,0);
    DRAWTEXT(DB AND CLOSE<MA(CLOSE,3),HIGH*1.02,'S'),colorFF00;
    DRAWTEXTEX(CLOSE,1,1,50,'总股本:'+NUMTOSTR(FINANCE(1)/10000,2)+'亿'+' 流通A股:'+NUMTOSTR(FINANCE(7)/10000,2)+'亿'+' 每股收益:'+NUMTOSTR(FINANCE(33),2)+' 净资产收益率:'+NUMTOSTR(FINANCE(37),2)+' 净资产:'+NUMTOSTR(FINANCE(34),2)+' 公积金:'+NUMTOSTR(FINANCE(18),2)+' 市盈率:'+NUMTOSTR(DYNAINFO(39),2)),color808080;
    DRAWTEXTEX(CLOSE,1,1,100,'主营业务增长率:'+NUMTOSTR(FINANCE(53),2)+'%'+' 税后利润增长率:'+NUMTOSTR(FINANCE(54),2)+'%'+' 净资产增长率:'+NUMTOSTR(FINANCE(55),2)+'%'),color808080;
    DRAWTEXTEX(CLOSE,1,1,200,'上涨家数:'+NUMTOSTR(INDEXADV,0)+' 下跌家数:'+NUMTOSTR(INDEXDEC,0)),color808080;
    DRAWTEXTEX(CLOSE,1,1,150,'股东权益比率:'+NUMTOSTR(FINANCE(36),2)+'%'),color808080;
    DRAWTEXTEX(CLOSE,1,1,250,'获利比率:'+NUMTOSTR(WINNER(CLOSE)*100,2)+'%'),color808080;
    DRAWTEXTEX(CLOSE,1,1,0,'所属板块:'+BLKNAME),color808080;
    DRAWTEXTEX(CLOSE,1,1,300,'五日换手:'+NUMTOSTR(SUM(VOL/CAPITAL*100,5),2)+'%'),color808080;
    DRAWTEXTEX(CLOSE,1,1,350,'五日涨跌:'+NUMTOSTR((CLOSE-REF(CLOSE,4))/REF(CLOSE,5)*100,2)+'%'),color808080;
    DRAWTEXTEX(CLOSE,1,1,400,'今日阻力价位:'+NUMTOSTR((REF(HIGH,1)+REF(LOW,1)+REF(OPEN,1)+2*REF(CLOSE,1))/5*2-REF(LOW,1),2)),colorFFFFFF;
    DRAWTEXTEX(CLOSE,1,1,450,'今日支撑价位:'+NUMTOSTR((REF(HIGH,1)+REF(LOW,1)+REF(OPEN,1)+2*REF(CLOSE,1))/5*2-REF(HIGH,1),2)),colorFFFFFF;
    DRAWTEXTEX(CLOSE,1,1,500,'今日上升突破价位:'+NUMTOSTR((REF(HIGH,1)+REF(LOW,1)+REF(OPEN,1)+2*REF(CLOSE,1))/5+REF(HIGH,1)-REF(LOW,1),2)),colorFFFFFF;
    DRAWTEXTEX(CLOSE,1,1,550,'今日下跌破位价位:'+NUMTOSTR((REF(HIGH,1)+REF(LOW,1)+REF(OPEN,1)+2*REF(CLOSE,1))/5-(REF(HIGH,1)-REF(LOW,1)),2)),colorFFFFFF;
    DRAWTEXTEX(CLOSE,1,1,600,'次日阻力价位:'+NUMTOSTR((HIGH+LOW+OPEN+2*CLOSE)/5*2-LOW,2)),color808080;
    DRAWTEXTEX(CLOSE,1,1,650,'次日支撑价位:'+NUMTOSTR((HIGH+LOW+OPEN+2*CLOSE)/5*2-HIGH,2)),color808080;
    DRAWTEXTEX(CLOSE,1,1,700,'次日上升突破价位:'+NUMTOSTR((HIGH+LOW+OPEN+2*CLOSE)/5+HIGH-LOW,2)),color808080;
    DRAWTEXTEX(CLOSE,1,1,750,'次日下跌破位价位:'+NUMTOSTR((HIGH+LOW+OPEN+2*CLOSE)/5-(HIGH-LOW),2)),color808080;

    Q3:请帮忙编一个薛斯通道向上趋势的选股公式源码

    XG:XS.LUP>REF(XS.LUP,1);

    Q4:求趋势线上穿操盘线的选股公式:

    VAR1:=(EMA(C,12)-EMA(C,26))*100+50;
    VAR2:=EMA(VAR1,9);
    VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
    VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
    VAR5:=SMA(VAR4,13,8);
    VAR6:=SMA(VAR3,21,8);
    VAR7:=MA(C,80)-MA(C,10)/7;
    VAR8:=EMA(C,5);
    VAR9:=MA((LLV(C,9))*1.1,14);
    VAR10:=2*VAR9-VAR8-C*0.1;
    VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));
    VAR12:=IF((VAR11>0),VAR11-0,12);
    VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
    趋势线:=SMA(VAR5,13,8);
    操盘线: =MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
    SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1);
    XG:CROSS(趋势线,VAR12)AND 趋势线>REF(C,1) OR CROSS(趋势线,操盘线) AND 趋势线<20 OR 趋势线>REF(趋势线,1) AND 趋势线<35 AND C>REF(C,1);

    Q5:通达信黄金通道指标源码怎么写?就是有上轨下轨的蓝色的线,谢谢,真心感谢!

    A1:=1;
    A2:=1;
    MID:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,LINETHICK2;
    UPPER:MID + (2 * (STD(CLOSE,20))),COLORYELLOW;
    LOWER:MID - (2 * (STD(CLOSE,20))),COLORMAGENTA;
    MID1:=MA(CLOSE,20),COLORWHITE;
    UPPER1:MID1 + (2 * (STD(CLOSE,20))) ;
    LOWER1:MID1 - (2 * (STD(CLOSE,20))),COLORRED;
    A3:=((CLOSE - (LLV(LOW,9))) / ((HHV(HIGH,9)) - (LLV(LOW,9)))) * 100;
    A4:=SMA(A3,3,1);
    A5:=((SMA(A4,3,1)) * A1) * A2;
    A6:=(3 * A4) - (2 * A5);

    Q6:通达信,如何添加主图K线指标?

    在k线主图上点击右键/选择主图指标---点击
    出现下拉菜单/选择你要添加的主图指标-----点击。ok!

    Q7:通达信做趋势中长线主图指标怎么看

    月线为主,周线和日线为辅。
    macd做参考
    一般在研究大趋势时,投资者一定要以月线为主,周线与日线为辅。比如:月线出现五连阴、塔形底组合的时候则宝石短期或者中长期底部到了

    本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-6-182697-0.html