Skip to content

Commit

Permalink
Update strategy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangTP1996 authored and you-n-g committed Aug 5, 2021
1 parent e71e2f9 commit 398131c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qlib/contrib/strategy/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ def __init__(
only_tradable : bool
will the strategy only consider the tradable stock when buying and selling.
if only_tradable:
strategy will make buy sell decision without checking the tradable state of the stock.
the strategy will peek at the information in the short future to avoid untradable stocks (untradable stocks include stocks that meet suspension, or hit limit up or limit down).
else:
strategy will make decision with the tradable state of the stock info and avoid buy and sell them.
the strategy will generate orders without peeking any information in the future, so the order generated by the strategies may fail.
"""
super(TopkDropoutStrategy, self).__init__()
ListAdjustTimer.__init__(self, kwargs.get("adjust_dates", None))
Expand Down

0 comments on commit 398131c

Please sign in to comment.