File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1060,6 +1060,14 @@ def __init__(self,
1060
1060
the commission, e.g. set it to `0.0002` for commission-less forex
1061
1061
trading where the average spread is roughly 0.2‰ of asking price.
1062
1062
1063
+ .. note::
1064
+ With nonzero `commission`, long and short orders will be placed
1065
+ at an adjusted price that is slightly higher or lower (respectively)
1066
+ than the current price. See e.g.
1067
+ [#153](https://github.com/kernc/backtesting.py/issues/153),
1068
+ [#538](https://github.com/kernc/backtesting.py/issues/538),
1069
+ [#633](https://github.com/kernc/backtesting.py/issues/633).
1070
+
1063
1071
`margin` is the required margin (ratio) of a leveraged account.
1064
1072
No difference is made between initial and maintenance margins.
1065
1073
To run the backtest using e.g. 50:1 leverge that your broker allows,
You can’t perform that action at this time.
0 commit comments