[R-SIG-Finance] Quantstrat Position Accounting System: Netting vs Hedging Systems
Ilya Kipnis
||y@@k|pn|@ @end|ng |rom gm@||@com
Sun Nov 8 14:21:01 CET 2020
Look at your stoploss rule and the orderqty it calls for. You actively
specify orderqty = 'all'. That means to flatten the entire position.
As far as a stop loss on a partial position, in your particular case, you
can simply set that with a better specified orderqty argument by specifying
100 lots instead of 'all'.
[[alternative HTML version deleted]]
More information about the R-SIG-Finance
mailing list