广告管理-1170PX*80PX
广告管理-770PX*90PX
当前位置:牛股网 > 牛股公式 >

把副图指标机构持仓改为选股公式

  • 牛股公式
  • 2020-09-10 14:10
  • 牛股网
广告管理-720PX*80PX

编写标准:

编写方式 :网民寻求帮助:

把副图机构持仓指标出現持续三天发红改为选股公式,如下图:

源代码如:

N:=22;JJ:=(HIGH LOW CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

SVZL:SUM(((QJ1 QJ2)-(QJ3 QJ4))/SUM(VOL,60),0);

CZ:=SVZL-REF(SVZL,1);

STICKLINE(CZ<0,SVZL CZ,SVZL,1,0),COLORFFFF00;

STICKLINE(CZ>0,SVZL,SVZL CZ,1,0),COLORRED;

把副图指标机构持仓改为选股公式

解释以下:

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

SVZL:=SUM(((QJ1 QJ2)-(QJ3 QJ4))/SUM(VOL,60),0);

CZ:=SVZL-REF(SVZL,1);

EVERY(CZ>0,3);

广告管理-720PX*80PX

  • 关注微信

相关文章

微信公众号