用的是通達信吧。簡單概括地說,在你的公式裡,你所使用的變數中只能有一個是你要想輸出的,換言之,通達信在“條件選股公式”裡只允許有一個輸出變數。也就是說,你書寫的變數裡只能有一個是“:”的,不帶“=”號,其餘的全部都得有“=”號。VAR2:=CLOSE*VOL;VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);VAR4:=EMA(CLOSE,9);SUP:=1.06*VAR3;SDN:=VAR3*0.94;LUP:=EMA(VAR4*1.14,5);LDN:=EMA(VAR4*0.86,5);買1:=C>O AND REF(C,1)<LDN AND C>LDN;DRAWICON(買1,LDN,11);買2:=O<REF(C,1) AND C>REF(O,1) AND REF(C,1)<REF(O,1) AND REF(((CLOSE/REF(CLOSE,1)-1)*100)<(-3),1) AND REF(C,1)<=SDN AND C>SDN;DRAWICON(買2,SDN,11);買3:=O>SDN AND LOW<LDN;DRAWICON(買3,LDN,11);買4:=C>O AND C<SDN AND REF(COUNT(C<O,3)=3,1) AND (REF(CLOSE,4)-REF(CLOSE,1))>(LUP-SDN);DRAWICON(買4,C,11);aaaa:買1 or 買2 or 買3 or 買4;
用的是通達信吧。簡單概括地說,在你的公式裡,你所使用的變數中只能有一個是你要想輸出的,換言之,通達信在“條件選股公式”裡只允許有一個輸出變數。也就是說,你書寫的變數裡只能有一個是“:”的,不帶“=”號,其餘的全部都得有“=”號。VAR2:=CLOSE*VOL;VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);VAR4:=EMA(CLOSE,9);SUP:=1.06*VAR3;SDN:=VAR3*0.94;LUP:=EMA(VAR4*1.14,5);LDN:=EMA(VAR4*0.86,5);買1:=C>O AND REF(C,1)<LDN AND C>LDN;DRAWICON(買1,LDN,11);買2:=O<REF(C,1) AND C>REF(O,1) AND REF(C,1)<REF(O,1) AND REF(((CLOSE/REF(CLOSE,1)-1)*100)<(-3),1) AND REF(C,1)<=SDN AND C>SDN;DRAWICON(買2,SDN,11);買3:=O>SDN AND LOW<LDN;DRAWICON(買3,LDN,11);買4:=C>O AND C<SDN AND REF(COUNT(C<O,3)=3,1) AND (REF(CLOSE,4)-REF(CLOSE,1))>(LUP-SDN);DRAWICON(買4,C,11);aaaa:買1 or 買2 or 買3 or 買4;