您现在的位置: 南方财富网 >> 股票知识 >> 股票公式 >> 正文
南财搜索

通达信股票公式之有行情副图指标(3)

2013/5/23 15:37:01   来源:本站原创   佚名
    

  D:=SMA(K,3,1);

  J:=3*K-2*D;

  金叉:=CROSS(J,D);

  死叉:=CROSS(D,J);

  买1:=(VAR14 OR VAR15) AND VAR11;

  买2:=(VAR14 OR VAR15) AND VAR04;

  买3:=(VAR14 OR VAR15) AND VAR02;

  买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);

  买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);

  TTJ0:=VAR16;

  TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;

  XG0:=TTJ AND TTJ0;

  XG1:=TTJ AND TTJ1;

  XG11:=XG0 OR XG1;

  PL5:=ZIG(3,5);

  EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);

  EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);

  PL10:=ZIG(3,10);

  EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);

  EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);

  PL20:=ZIG(3,20);

  EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);

  EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);

  PL40:=ZIG(3,40);

  走强1:=BARSLAST(PL5<REF(PL5,1));

  走弱1:=BARSLAST(PL5>REF(PL5,1));

  走强2:=BARSLAST(PL10<REF(PL10,1));

  走弱2:=BARSLAST(PL10>REF(PL10,1));

  走强3:=BARSLAST(PL20<REF(PL20,1));

  走弱3:=BARSLAST(PL20>REF(PL20,1));

  ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);

  ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);

  DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);

  DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);

  ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);

  ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);

  DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);

  DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);

  TJ11:=EN2 AND ZTJZ5=1;

  TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;

  TJ33:=EN2 AND DTJZ10=1;

  TJ44:=EN3 AND ZTJZ10=1;

  TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;

  XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;

  XGQ:=XG11 OR XG22;

  W18:=EXIST(XGQ,1);

  DRAWTEXT(XGQ,L-0.1,'●放心买'),COLORRED;

  SQX:=(C-MA(CLOSE,13))*100;

  DIFF:=EMA(MA(SQX,7),1),COLORWHITE;

  DEA:=EMA(DIFF,7),COLORYELLOW;

  MACD:=(DIFF-DEA)*2,COLORSTICK;

  股界神专用:IF((CROSS(DIFF,DEA) AND DIFF<-0.1) ,L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;

  低位金叉:=IF(CROSS(DIFF,DEA) AND DIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;

  IF(CROSS(DIFF,DEA) AND DIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;

  {再上N均线 N 10 1 100 1}

  MA1:=MA(C,5);

  MA2:=MA(C,10);

  MA3:=MA(C,21);

  破N:=REF(MA1,1)<REF(MA2,1)AND MA2>REF(MA2,1);

  试摸N:=C>MA(C,10) OR H>=MA2;

  再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N AND MA(C,21)<MA(C,10);

  有行情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势));

  DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN;

  VAR10B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);

  VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);

  VAR12B:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);

  VAR13B:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);

  VAR14B:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);

  VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);

  VAR16B:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);

  VAR17B:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);

  VAR18B:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);

  VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);

  买1B:=VAR10B;

  买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);

  BB:=IF(买1B>0 OR 买2B>0 ,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;

  红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;

  牛节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20));

  DRAWICON(牛节点,L-0.1,13);

  CSAR:=SAR(10,2,20);

  持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};

  持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};

  生命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;{股价在上持,在下空仓}

  止损:=EMA(C,5),COLORYELLOW,LINETHICK1;{红持股绿持币黄观望}

  菩提B:=XMA(H,20);{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};

  参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;{持股前提}

  DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0

  AND H>长期趋势,(LOW- 0.1),5);

  VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);

  短底:=EMA(VVAR1D,5);

  支撑:=HHV(短底,60);

  MAN:=(SMA(HIGH,21,2) * 1.05);

  下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);

  中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);

  X1D:=EMA(中D,10);

  RSVD:=SMA(下档线,3,1);

  K大:=SMA(RSVD,3,1);

  D大:=((3 * RSVD) - (2 * K大));

  J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);

  RSV24:=SMA(J12,3,1);

  K24:=SMA(RSV24,3,1);

  D24:=((3 * RSV24) - (2 * K24));

  压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D大)))),COLORFFFFFF;

  牛浮面:=CROSS(CLOSE,MA20) AND HIGH < 压力位 AND OPEN < MA20

  AND HIGH < 支撑 AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0 AND

  D大 < 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;

  DRAWTEXT(牛浮面,L,'●牛浮面'),COLORWHITE;

  CO:=(C-O);

  绿K:=(卖出>LOW AND 卖出<HIGH) OR (卖出>MIN(C,O) AND 卖出<MAX(C,O))

  OR 卖出<LOW;

  {全绿K}

  全绿K2:=C>卖出 OR (H>卖出 AND O>C);

  STICKLINE(全绿K2,C,O,3,0),COLOR00BB00;

  STICKLINE(全绿K2,C,O,2,0),COLOR00DD00;

  STICKLINE(全绿K2,C,O,1,0),COLOR00FF00;

 

上一页  [1] [2] [3] 

(南方财富网SOUTHMONEY.COM)
    南方财富网声明:股市资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
延伸阅读
商务进行时
每日必读
学院24小时排行
证券导读
热图推荐

关于南方财富网 -版权声明诚聘英才广告服务网站地图友情链接
特此声明:广告商的言论与行为均与南方财富网无关
www.southmoney.com
南方财富网 © 版权所有 闽ICP备09035581号