You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current BarSeriesManager uses amount as the quantity to use of the price on the instrument.
For example if amount is 1 and closePrice $10 then the entry is on $10. and lets say exit becomes at $11. Next entry the price can be $15 and exit $16.
In these backtest I only find the PnL-percentage valuable, but not the PnL it self. Saying the profit is (in the example above) $2 says nothing in the context of a backtest running on an instrument for x years.
I find it more useful with a BarSerierManager that create trades on a specific amount (with or without re-investing) for example; always enter with $1000. Here both the PnL and PnL-percentage will make sense.
I'm about to write a custom FixedPositionSizeBarSeriesManager which takes a Num value (like 1000) for the entry-amount and then reuse the BarSeriesManager-logic except that the amount value sent to the tradeExecutionModel is re-calculated each time by amount / entryValue.
I dont know yet if it will be as expected a FixedPositionSizeBarSeriesManager or a TradeExecutionModel or just a wrapping Streategy
Is there something similar to what I want to achieve that i missed? If not, and I do this implementation, is it interesting to provide to the lib?
The text was updated successfully, but these errors were encountered:
I have checked existing issues and wiki
The current BarSeriesManager uses amount as the quantity to use of the price on the instrument.
For example if amount is 1 and closePrice $10 then the entry is on $10. and lets say exit becomes at $11. Next entry the price can be $15 and exit $16.
In these backtest I only find the PnL-percentage valuable, but not the PnL it self. Saying the profit is (in the example above) $2 says nothing in the context of a backtest running on an instrument for x years.
I find it more useful with a BarSerierManager that create trades on a specific amount (with or without re-investing) for example; always enter with $1000. Here both the PnL and PnL-percentage will make sense.
I'm about to write a custom
FixedPositionSizeBarSeriesManager
which takes a Num value (like 1000) for the entry-amount and then reuse theBarSeriesManager
-logic except that theamount
value sent to thetradeExecutionModel
is re-calculated each time byamount / entryValue
.I dont know yet if it will be as expected a
FixedPositionSizeBarSeriesManager
or aTradeExecutionModel
or just a wrappingStreategy
Is there something similar to what I want to achieve that i missed? If not, and I do this implementation, is it interesting to provide to the lib?
The text was updated successfully, but these errors were encountered: