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
When i have multiple entries and after i want to exit with tp_stop i think that it calculates tp_stop from only the last position and not the volume and average entry prices of all previous positions. So DCA strategy with exits only on take profits doesnt work at all.
Hello,
When i have multiple entries and after i want to exit with tp_stop i think that it calculates tp_stop from only the last position and not the volume and average entry prices of all previous positions. So DCA strategy with exits only on take profits doesnt work at all.
portfolio = vbt.Portfolio.from_signals(
price,
entries,
tp_stop=take_profit_pct,
size_type="value",
size=100,
init_cash=10000,
accumulate='addOnly'
)
The text was updated successfully, but these errors were encountered: