通达信牛劲十足抓牛股源码副图用法

 2023-11-18 21:35:34    通达信指标网  

源码如下:

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;

ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;

MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;

SG:=MMB>0 AND REF(MMB,1)<MMB;

上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;

JSC:=上攻周期<1;

DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);

DRAWICON(DBQD,2,1);

DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));

DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));

STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED;

XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;

用法:周线图上,连续出现红柱而股价未曾大涨的,极易成为黑马,如持续上攻的,则往往是大牛。日线上红柱后一般都会经历回调,回调见底之际是入场佳期。

选股公式源码:

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));

MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10;

SG:=MMB>0 AND REF(MMB,1)<MMB;

上攻周期:=COUNT(SG,5);

JSC:=上攻周期<1;

选股:COUNT(COUNT(上攻周期>3,5)>=3 AND sg,20)>m;

周线选股时,m设为4或5,日线选股时,m设为7或8.祝投资顺利!

  •  标签:  

原文链接:https://www.tdxzb.com/?id=1861

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服