Change number of lots in Ninjatrader
2件の返信
How can I change number of lots in Ninjatrader strategy generated by Strategy Quant? While I can set number of lots in SQ strategy options when generating a strategy, I often need to adjust this amount when trading in Ninjatrader. There is no entry for number of lots in Ninjatrader strategy options. I also don’t see a number of lots specified in Ninjatrader strategy code. Do I need to add custom code to define number of lots? If so what would it be for stop/limit orders? I attached an example of Ninjatrader strategy and Strategy Quant source code.
0
SQ strategies for NinjaTrader trade with DefaultQuantity, which is usually 1.
You can edit this number in the code in Initialize() method, you can add a line there:
DefaultQuantity = 2;
It is also possible to change Order Properties parameter of the strategy, there you can too change default quantity or use account size to compute quantity.
マーク
StrategyQuantアーキテクト
0
Thanks, Mark. Could you post an example of 1) default quantity change in Order Properties and 2) using account size to compute quantity?
0
2件の返信を表示中 - 1 - 2件目 (全2件中)