Replies: 2 comments
-
---> This is for vectorbt stock universes. And it is for backtrader, but it helps for vectorbt also. |
Beta Was this translation helpful? Give feedback.
-
def find_code () :
code_df = vbt.AQuantData.get_codes( market='KOSDAQ' )
df = []
for index in range(0, len(code_df)) :
row = code_df.iloc[index]
if (float(config['min_cap']) < row['marcap'] < float(config['max_cap'])) and (row['amount'] > 0) :
df.append(row)
|
Beta Was this translation helpful? Give feedback.
-
Wonder if vbt support dynamic universe and rebalance? For example, rebalance every weekend, when rebalancing, only trade top 1000 most liquid stocks.
Beta Was this translation helpful? Give feedback.
All reactions