咨詢內容:
最近準備把圖表的改成后臺程序化交易請教如何在后臺實現反手啊圖表是這樣寫的sellshort(pk,holding,thisclose);buy( kd and holding<=0 ,1,thisclose);sell(pd,holding,thisclose);BUYSHORT(kk and holding>=0 ,1,thisclose ); 改成后臺sellshort(pk,1,thisclose);buy( kd and tholding<=0 ,1,thisclose);sell(pd,1,thisclose);BUYSHORT(kk and tholding>=0 ,1,thisclose );在模擬測試的時候平倉沒有問題 開倉開不出來請各位大蝦指教