所给的公式还是玩了点小名堂,本人已将公式已进行了修正且测试通过:
设置参数:m1 2 500 5; m2 2 500 10
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);
STICKLINE(V>=REF(V,1)*1.85,V,O,1,0)COLORYELLOW;
STICKLINE(V>=REF(V,1)*0.98 AND V<=REF(V,1)*1.02,V,O,1,0)COLORWHITE;
STICKLINE(V>=REF(V,1)*0.98 AND V<=REF(V,1)*1.02,V,O,1,0)COLORWHITE;
BLZ:=VOL<REF(LLV(VOL,45),1);
GL:=FILTER(BLZ,45);
STICKLINE(BLZ AND GL,0,V,2,0),COLORMAGENTA; |