請老師改一個后臺的模型 [金字塔]
- 咨詢內(nèi)容:
老師辛苦了,請您把這個改成后臺運行的模型 if cc2>0 and l<lo then begin pc:=min(max(holding,0),cang2); kc:=cang2-pc; if pc>0 then sell(1,pc,limitr,min(o,lo-0.2)-0.6); if kc>0 then buyshort(1,kc,limitr,min(o,lo-0.2)-0.6); cc2:=0; end if cc2<0 and h>hi then begin pc:=min(abs(min(holding,0)),cang2); kc:=cang2-pc; if pc>0 then sellshort(1,pc,limitr,max(o,hi+0.2)+0.6); if kc>0 then buy(1,kc,limitr,max(o,hi+0.2)+0.6); cc2:=0; end if cc2=0 and h>hi then begin pc:=min(abs(min(holding,0)),cang2); kc:=cang2-pc; if pc>0 then sellshort(1,pc,limitr,max(o,hi+0.2)+0.6); if kc>0 then buy(1,kc,limitr,max(o,hi+0.2)+0.6); cc2:=1; end if cc2=0 and l<lo then begin pc:=min(max(holding,0),cang2); kc:=cang2-pc; if pc>0 then sell(1,pc,limitr,min(o,lo-0.2)-0.6); if kc>0 then buyshort(1,kc,limitr,min(o,lo-0.2)-0.6); cc2:=-1; end
- 金字塔客服:
這段代碼是要實現(xiàn)什么目的?有來源鏈接嗎
- 網(wǎng)友回復(fù):
實現(xiàn)程序化自動交易(可以對所有品種)目的,圖表程序化可以運行,請老師改成后臺的,我想把把所有品種模擬一下你只管改成后臺運行就可以謝謝,老師
- 網(wǎng)友回復(fù): 要了解這個思路才好改后臺,圖表改后臺不是改幾個函數(shù)就行的。
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容