UID80112
积分139
学分
推广 个
预报后涨停 支
阅读权限20
在线时间 小时
注册时间2010-9-4
最后登录1970-1-1
|
{凹口平量柱副图指标公式}
{特别鸣谢:黑马王子。此公式设计理念源自黑马王子。
此公式可同时选出7日-12日间的所以凹口平量柱。
使用副图指标,可以显示出各平量柱的时间段的长度}
xgx7:=abs((vol-ref(vol,7))/ref(vol,7))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,7) and
ref(vol,2)<ref(vol,7) and
ref(vol,3)<ref(vol,7) and
ref(vol,(7-3))<ref(vol,7) and
ref(vol,(7-2))<ref(vol,7) and
ref(vol,(7-1))<ref(vol,7);
xgx8:=abs((vol-ref(vol,8))/ref(vol,8))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,8) and
ref(vol,2)<ref(vol,8) and
ref(vol,3)<ref(vol,8) and
ref(vol,(8-3))<ref(vol,8) and
ref(vol,(8-2))<ref(vol,8) and
ref(vol,(8-1))<ref(vol,8);
xgx9:=abs((vol-ref(vol,9))/ref(vol,9))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,9) and
ref(vol,2)<ref(vol,9) and
ref(vol,3)<ref(vol,9) and
ref(vol,(9-3))<ref(vol,9) and
ref(vol,(9-2))<ref(vol,9) and
ref(vol,(9-1))<ref(vol,9);
xgx10:=abs((vol-ref(vol,10))/ref(vol,10))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,10) and
ref(vol,2)<ref(vol,10) and
ref(vol,3)<ref(vol,10) and
ref(vol,(10-3))<ref(vol,10) and
ref(vol,(10-2))<ref(vol,10) and
ref(vol,(10-1))<ref(vol,10);
xgx11:=abs((vol-ref(vol,11))/ref(vol,11))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,11) and
ref(vol,2)<ref(vol,11) and
ref(vol,3)<ref(vol,11) and
ref(vol,(11-3))<ref(vol,11) and
ref(vol,(11-2))<ref(vol,11) and
ref(vol,(11-1))<ref(vol,11);
xgx12:=abs((vol-ref(vol,12))/ref(vol,12))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,12) and
ref(vol,2)<ref(vol,12) and
ref(vol,3)<ref(vol,12) and
ref(vol,(12-3))<ref(vol,12) and
ref(vol,(12-2))<ref(vol,12) and
ref(vol,(12-1))<ref(vol,12);
drawtext(xgx7,1,'7日平量柱');
drawtext(xgx8,1,'8日平量柱',10);
drawtext(xgx9,1,'9日平量柱',20);
drawtext(xgx10,1,'10日平量柱',30);
drawtext(xgx11,1,'11日平量柱',40);
drawtext(xgx12,1,'12日平量柱',50);
=====================================
{凹口平量柱选股指标公式}
{特别鸣谢:黑马王子。此公式设计理念源自黑马王子。
此公式可同时选出7日-12日间的所以凹口平量柱。
使用副图指标,可以显示出各平量柱的时间段的长度}
xgx7:=abs((vol-ref(vol,7))/ref(vol,7))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,7) and
ref(vol,2)<ref(vol,7) and
ref(vol,3)<ref(vol,7) and
ref(vol,(7-3))<ref(vol,7) and
ref(vol,(7-2))<ref(vol,7) and
ref(vol,(7-1))<ref(vol,7);
xgx8:=abs((vol-ref(vol,8))/ref(vol,8))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,8) and
ref(vol,2)<ref(vol,8) and
ref(vol,3)<ref(vol,8) and
ref(vol,(8-3))<ref(vol,8) and
ref(vol,(8-2))<ref(vol,8) and
ref(vol,(8-1))<ref(vol,8);
xgx9:=abs((vol-ref(vol,9))/ref(vol,9))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,9) and
ref(vol,2)<ref(vol,9) and
ref(vol,3)<ref(vol,9) and
ref(vol,(9-3))<ref(vol,9) and
ref(vol,(9-2))<ref(vol,9) and
ref(vol,(9-1))<ref(vol,9);
xgx10:=abs((vol-ref(vol,10))/ref(vol,10))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,10) and
ref(vol,2)<ref(vol,10) and
ref(vol,3)<ref(vol,10) and
ref(vol,(10-3))<ref(vol,10) and
ref(vol,(10-2))<ref(vol,10) and
ref(vol,(10-1))<ref(vol,10);
xgx11:=abs((vol-ref(vol,11))/ref(vol,11))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,11) and
ref(vol,2)<ref(vol,11) and
ref(vol,3)<ref(vol,11) and
ref(vol,(11-3))<ref(vol,11) and
ref(vol,(11-2))<ref(vol,11) and
ref(vol,(11-1))<ref(vol,11);
xgx12:=abs((vol-ref(vol,12))/ref(vol,12))<0.04 and
vol>1.8*ref(vol,2) and
ref(vol,1)<ref(vol,12) and
ref(vol,2)<ref(vol,12) and
ref(vol,3)<ref(vol,12) and
ref(vol,(12-3))<ref(vol,12) and
ref(vol,(12-2))<ref(vol,12) and
ref(vol,(12-1))<ref(vol,12);
XGX30:=(C-REF(C,1))>0 AND C>O;
xgx31:=xgx7=1 or xgx8=1 or xgx9=1 or xgx10=1 or xgx11=1 or xgx12=1;
XGX: XGX31=1 AND XGX30=1; |
|