长沙专业物联网软件开发

你的位置:长沙专业物联网软件开发 > 物联网软件开发公司 >

物联网软件开发公司

通达信【小龙】(副图选股)macd背离买点

提醒:本指标适用于“通达信软件“,文中测试指标截图为电脑版软件截图,能否支持手机请复制源码新建指标测试。本文种指标公式源码仅供学习交流,请勿用于股票交易。所有内容仅供学习,不保证任何效果,不作任何投资建议股市有风险,入市谨慎

【小龙】:副图选股指标

小龙副图,物联网软件开发公司macd背离点提示买卖点,指标不作为买卖依据。(指标仅供学习参考)

图片

  

图片

  

图片

  

图片

副图公式源码

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

DEA:EMA(DIFF,9);

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

GSKZ1:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);

STICKLINE(GSKZ1,0,MACD,0.3,0),COLORMAGENTA;

DRAWICON(GSKZ1,0,9);

GSKZ2:=MACD>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3) AND REF(MACD,3)>REF(MACD,4);

GSKZ3:=DEA-DIFF;

GSKZ4:=IF(MACD<0,SUM(MACD,BARSLAST(GSKZ3<0)),0);

GSKZ5:=LLV(LOW,BARSLAST(GSKZ3<0));

GSKZ6:=HHV(HIGH,BARSLAST(GSKZ3>0));

GSKZ7:=IF(MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);

GSKZ8:=REF(GSKZ4,GSKZ7+1);

GSKZ9:=REF(GSKZ5,GSKZ7+1);

GSKZ10:=IF(GSKZ4<0 AND ABS(GSKZ4)<ABS(GSKZ8),1,0);

GSKZ11:=MACD<0 AND REF(MACD,1)<0 AND CLOSE<GSKZ9 AND ABS(GSKZ4)<ABS(GSKZ8) AND ABS(MACD)<ABS(REF(MACD,1));

GSKZ12:=IF(CROSS(DIFF,DEA),REF(GSKZ10,1),0);

GSKZ13:=IF(DIFF>REF(DIFF,1),REF(GSKZ10,1),0) AND DIFF<0 AND DEA<0;

GSKZ14:=BARSLAST(REF(CROSS(DIFF,DEA),1))*1;

GSKZ15:=REF(CLOSE,GSKZ14+1)>CLOSE AND DIFF>REF(DIFF,GSKZ14+1) AND CROSS(DIFF,DEA)*1;

GSKZ16:=FILTER(GSKZ13,10);

GSKZ17:=FILTER(GSKZ13,10);

GSKZ18:=GSKZ16 AND GSKZ17;

STICKLINE(GSKZ18,(-0.08),DIFF,2,0),COLORLIMAGENTA;

STICKLINE(GSKZ16,0,MACD,0.1,0),COLORYELLOW;

DRAWICON(CROSS(DIFF,DEA),DIFF*1.002,1);

DRAWTEXT_FIX(1,0.0,0.8,0,'公'),COLORRED,LINETHICK1; 

DRAWTEXT_FIX(1,0.0,0.8,0,'    众'),COLORRED,LINETHICK1;  

DRAWTEXT_FIX(1,0.0,0.8,0,'        号:通达指标'),COLORRED,LINETHICK1;  

选股公式源码

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

DEA:=EMA(DIFF,9);

MACD:=(DIFF-DEA)*2;

GSKZ1:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);

GSKZ2:=MACD>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3) AND REF(MACD,3)>REF(MACD,4);

GSKZ3:=DEA-DIFF;

GSKZ4:=IF(MACD<0,SUM(MACD,BARSLAST(GSKZ3<0)),0);

GSKZ5:=LLV(LOW,BARSLAST(GSKZ3<0));

GSKZ6:=HHV(HIGH,BARSLAST(GSKZ3>0));

GSKZ7:=IF(MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);

GSKZ8:=REF(GSKZ4,GSKZ7+1);

GSKZ9:=REF(GSKZ5,GSKZ7+1);

GSKZ10:=IF(GSKZ4<0 AND ABS(GSKZ4)<ABS(GSKZ8),1,0);

GSKZ13:=IF(DIFF>REF(DIFF,1),REF(GSKZ10,1),0) AND DIFF<0 AND DEA<0;

GSKZ16:=FILTER(GSKZ13,10);

小龙:GSKZ16;

本文中分享的指标公式源码都是测试截图,文章种指标源码复制--到通达信软件新建指标使用。复制源码注意复制完整,主图副图选股分开复制新建---欢迎关注--持续更新 本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报。