以前做了一個(gè)股價(jià)預(yù)測(cè)的,莊友反映不懂得如何使用,,現(xiàn)貼出源碼,,當(dāng)作主圖參考,有一定的準(zhǔn)確性。 使用方法:看頂部的提示就可以了。白色線框?yàn)轭A(yù)測(cè)的今日高低點(diǎn)??梢宰鳛閰⒖迹贿m合底部反轉(zhuǎn)和頂部反轉(zhuǎn),。 PH:=MA(HIGH/REF(CLOSE,1),13)*CLOSE; PL:=MA(LOW/REF(CLOSE,1),13)*CLOSE; FC3:=forcast(c,3); FC4:=forcast(c,4); FC5:=forcast(c,5); CC:=(fc3+fc4+fc5)/3; 預(yù)測(cè)高點(diǎn):ref(ph,1),colorff00ff,linethick1; 預(yù)測(cè)低點(diǎn):ref(pl,1),colorff5500,linethick1; 實(shí)際高點(diǎn):h,colorred,linethick2; 實(shí)際低點(diǎn):l,color00ff00,linethick2; 明日高點(diǎn):ph,colorff00ff,pointdot; 明日低點(diǎn):pl,colorffff00,pointdot; STICKLINE(PH>=PL, 預(yù)測(cè)高點(diǎn),預(yù)測(cè)低點(diǎn), 4.5, 1),colorwhite,linethick1; STICKLINE(open>=close, close,open, 3, 1),colorgreen,linethick1; STICKLINE(high>open and open>close, high,open,1, 0),colorgreen,linethick1; STICKLINE(low<close and open>close, low,close,1, 0),colorgreen,linethick1; STICKLINE(open<close, open,close, 3, 1),colorred,linethick1; STICKLINE(low<open and open<close, low,open,1, 0),colorred,linethick1; STICKLINE(high>close and open<close, high,close,1, 0),colorred,linethick1; |
|