請老師改一個后臺的模型
作者:金字塔 來源:cxh99.com 發布時間:2017年02月04日
- 咨詢內容:
老師辛苦了,請您把這個改成后臺運行的模型 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
- 金字塔客服:
這段代碼是要實現什么目的?有來源鏈接嗎
- 網友回復:
實現程序化自動交易(可以對所有品種)目的,圖表程序化可以運行,請老師改成后臺的,我想把把所有品種模擬一下你只管改成后臺運行就可以謝謝,老師
- 網友回復:
要了解這個思路才好改后臺,圖表改后臺不是改幾個函數就行的。