通达信底部擒牛副图指标公式
安装后如下图
友情提示(指标只是辅助,不作建议)
所有程序均为免费分享
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:(DIFF-DEA)*2,COLORSTICK;
GSPT1:=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(GSPT1,0,MACD,0.3,0),COLORYELLOW;
GSPT2:=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);
GSPT3:=DEA-DIFF;{程序化指标公式网:WW.HONGHAIE.COM}
GSPT4:=IF(MACD<0,SUM(MACD,BARSLAST(GSPT3<0)),0);
GSPT5:=LLV(LOW,BARSLAST(GSPT3<0));
GSPT6:=HHV(HIGH,BARSLAST(GSPT3>0));
GSPT7:=IF(MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);
GSPT8:=REF(GSPT4,GSPT7+1);
GSPT9:=REF(GSPT5,GSPT7+1);
GSPT10:=IF(GSPT4<0 AND ABS(GSPT4)<ABS(GSPT8),1,0);
GSPT11:=MACD<0 AND REF(MACD,1)<0 AND CLOSE<GSPT9 AND ABS(GSPT4)<ABS(GSPT8) AND ABS(MACD)<ABS(REF(MACD,1));
GSPT12:=IF(CROSS(DIFF,DEA),REF(GSPT10,1),0);
GSPT13:=IF(DIFF>REF(DIFF,1),REF(GSPT10,1),0) AND DIFF<0 AND DEA<0;
GSPT14:=BARSLAST(REF(CROSS(DIFF,DEA),1))*1;
GSPT15:=REF(CLOSE,GSPT14+1)>CLOSE AND DIFF>REF(DIFF,GSPT14+1) AND CROSS(DIFF,DEA)*1;
DRAWLINE(GSPT14=0,DEA-0.02,GSPT15,DEA-0.02,0)*1,DOTLINE,COLORRED;
牛启动:=FILTER(GSPT13,10);
GSPT17:=FILTER(GSPT13,10);
GSPT18:=牛启动 AND GSPT17;
STICKLINE(GSPT18,(-0.08),DIFF,2,0),COLORMAGENTA;
STICKLINE(牛启动,0,MACD,1,0),COLORLIMAGENTA;
DRAWTEXT(牛启动,0+0.01,'牛启动'),COLORYELLOW;
DRAWICON(牛启动,0,9);
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。