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
I use ta4j to backtest stock trading strategies. Can ta4j backtest trading multiple stocks simultaneously? For example, selecting stocks that meet the criteria from a basket of stocks and open trades. The reason for not backtesting stocks one by one is mainly due to capital limitations. For instance, on a certain day, multiple stocks are selected, but the remaining capital is not sufficient to open trades for all of them, so only a portion of the stocks can be traded. Once a trade is opened, it is checked whether it meets the closing conditions, and this process repeats.
The text was updated successfully, but these errors were encountered:
You can backtest multiple strategies/barseries in your client code via your preferred concurrency approach. As for your stated capital requirement logic, that too is specific enough to belong in your own client code.
I use ta4j to backtest stock trading strategies. Can ta4j backtest trading multiple stocks simultaneously? For example, selecting stocks that meet the criteria from a basket of stocks and open trades. The reason for not backtesting stocks one by one is mainly due to capital limitations. For instance, on a certain day, multiple stocks are selected, but the remaining capital is not sufficient to open trades for all of them, so only a portion of the stocks can be traded. Once a trade is opened, it is checked whether it meets the closing conditions, and this process repeats.
The text was updated successfully, but these errors were encountered: