急求:日盈虧超過N值平倉并不再開倉的寫法 [金字塔]
- 咨詢內容:
日盈虧 需要調用開平倉之后的數值,才是正確的
- 金字塔客服:
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
[此貼子已經被作者于2013-3-3 9:51:59編輯過]
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容