
等级: 新手上路
- 注册:
- 2022-11-18
- 曾用名:
|

楼主 |
发表于 2022-11-29 16:21
|
显示全部楼层
{倍量}
VOB:=V/REF(V,1);
beivol:=VOB>=1.9;
beivoldn := beivol && ISDOWN;
beivolup := beivol && isup;
dnbvc:=ref(c,beivoldn);
dnbvo:=ref(o,beivoldn);
upbvc:=ref(c,beivolup);
upbvo:=ref(o,beivolup);
//实体MAX
dnst:=if(isdown || c<ref(c,1) ,abs(c-o),-1);
dnlen:=sumbars(dnst>0,5);
maxdnst:=hhv(dnst,dnlen);
dnlenx:=hhvbars(dnst,dnlen);
dnshowc:=ref(c,dnlenx);
dnshowo:=ref(o,dnlenx);
dnmaxst:= maxdnst<>REF(maxdnst,1);
upst:=if(ISUP || c>ref(c,1),abs(c-o),-1);
uplen:=sumbars(upst>0,5);
maxupst:=hhv(upst,uplen);
uplenx:=hhvbars(upst,uplen);
upshowc:=ref(c,uplenx);
upshowo:=ref(o,uplenx);
upmaxst:= maxupst<>REF(maxupst,1);
dnseckx:= dnmaxst || beivoldn;
upseckx:= upmaxst || beivolup;
//增加条件,1,假如倍阴 beivoldn 成立 选择beivoldn对应的开收价,否则输出实体MAX的开收价 ;阳K反之;
|
|