1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-17 17:34:35 +08:00

fix comments

This commit is contained in:
bxdd
2021-05-13 00:33:57 +08:00
parent 621cb243c2
commit 07eaada31e
14 changed files with 294 additions and 185 deletions

View File

@@ -173,7 +173,9 @@ class OrderGenWOInteract(OrderGenerator):
stock_id=stock_id, trade_start_time=trade_start_time, trade_end_time=trade_end_time
):
amount_dict[stock_id] = (
risk_total_value * target_weight_position[stock_id] / trade_exchange.get_close(stock_id, pred_date)
risk_total_value
* target_weight_position[stock_id]
/ trade_exchange.get_close(stock_id, trade_start_time=pred_start_time, trade_end_time=pred_end_time)
)
elif stock_id in current_stock:
amount_dict[stock_id] = (