策略研究頭寸設置
作者:開拓者 TB 來源:cxh99.com 發布時間:2021年05月27日
-
咨詢內容:
使用內建公式DualMA,每次回測開倉數量都是1,如何改成根據資金量滿倉開倉?
?
?來源:CXH99.COM
-
TB技術人員:
Lots = portfolio_currentcapital/(close[1]*contractunit*MarginRatio)
Lots就是要開倉的量,近似滿倉
?
-
TB客服:
更正一下,
Lots = portfolio_currentcapital/(open*contractunit*MarginRatio)
Lots就是要開倉的量,近似滿倉,還有一些價格偏移的內容,影響不大。