急求:日盈虧超過(guò)N值平倉(cāng)并不再開(kāi)倉(cāng)的寫(xiě)法 [金字塔]
- 咨詢(xún)內(nèi)容:
日盈虧 需要調(diào)用開(kāi)平倉(cāng)之后的數(shù)值,才是正確的
- 金字塔客服:
variable:c1:=1;r1:=barslast(date<>ref(date,1));if r1=0 then c1:=1;
r2:=asset-ref(asset,r1+1);r3:=ref(asset,r1+1)-asset;
if r2>n1 then c1:=-1;if r3>n2 then c1:=-1;..........................if cond1 and c1>0 thenbeginsellshort.......buy..............endif cond2 and c1>0 thenbeginsell.......buyshort......end
if c1<0 thenbeginsell.........sellshort......end
[此貼子已經(jīng)被作者于2013-3-3 9:51:59編輯過(guò)]
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容