编写要求:
公式指标网解答:
网友求助:
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
XG: (CLOSE-OPEN)>=(UPR-BBIBOLL)AND REF(C/REF(C,1)<1.06,1)AND VVOL>REF(V,1)*1.9;
请老师将这个AAA预警公式改成大智慧的预警公式麻烦了!
解答如下:
BBIBOLL:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);
PERIOD:=COUNT(DATE<>REF(DATE,1),2)=2;
VVOL:=IF(BARSTATUS=1 AND PERIOD=5,VOL*240/FROMOPEN,0);
XG: (CLOSE-OPEN)>=(UPR-BBIBOLL)AND REF(C/REF(C,1)<1.06,1)AND VVOL>REF(V,1)*1.9;