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);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:MACD>0 AND REF(MACD,1)<0 AND REF(MACD,2)>0;
转载请注明出自股海明灯论坛 http://www.178448.com/,本贴地址:http://www.178448.com/thread-314173-1-1.html |