代發(fā)貼 [金字塔]
- 咨詢內(nèi)容:
請客服幫忙把以下有關(guān)頭寸管理編程的請教報告貼到論壇合適的老師處,謝謝謝謝了!!
一、資金管理采取浮動手?jǐn)?shù)方式;
二、具體規(guī)則是:
1、無論是做多還是做空,首次開倉為1手;
2、如果本次交易盈利,下一次無論是開多還是開空,開倉加1手,即為2手;下一次如連續(xù)盈利,還是開2手,也就是最高就是2手。
3、如果本次交易虧損,下一次無論是開多還是開空,開倉恢復(fù)到1手。
下面一個,修改了一下,請幫助貼一下,謝謝
- 金字塔客服:
//多頭為例
VARIABLE:n=0;
if 開多條件 and holding=0 then buy(1,ss,market);
if 平多條件 and holding>0 then sell(1,holding,market);
if numprofit>0 then n:=1;
if 開多條件 and holding>0 and n=1 then buy(1,2,market);if NUMPROFIT<0 then n:=2;
if 開多條件 and n=2 holding>0 then buy(1,1,market); - 用戶回復(fù): 謝謝
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容