Posted By: aelagha
Tracking Price Series in Stock Rotation Strategy - 09/29/23 14:29
Hi there,
I am working on a stock rotation strategy. In between rotations, I want to monitor the current price and make calculations on price history for the assets that have open trades. So, for every bar, I cycle trhough open_trades, and attempt to create a series, but Zorro erros out as I am switching and chaning the series between "run function" calls, e.g. Error 041.
One way is to create a sereis for each asset in the assetList (all_assets) rather than only for open trades. Is there a better / more efficient way since I have 100's of assets.
Thanks,
-Alaa
I am working on a stock rotation strategy. In between rotations, I want to monitor the current price and make calculations on price history for the assets that have open trades. So, for every bar, I cycle trhough open_trades, and attempt to create a series, but Zorro erros out as I am switching and chaning the series between "run function" calls, e.g. Error 041.
One way is to create a sereis for each asset in the assetList (all_assets) rather than only for open trades. Is there a better / more efficient way since I have 100's of assets.
Thanks,
-Alaa