Skip to content

Commit 705354c

Browse files
SunsetWolfLinlang Lv (iSoftStone)
andauthored
fix-issue948 (microsoft#986)
Co-authored-by: Linlang Lv (iSoftStone) <v-linlanglv@microsoft.com>
1 parent 1b5d0d4 commit 705354c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/component/strategy.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ BaseStrategy
2424

2525
Qlib provides a base class ``qlib.strategy.base.BaseStrategy``. All strategy classes need to inherit the base class and implement its interface.
2626

27-
- `get_risk_degree`
28-
Return the proportion of your total value you will use in investment. Dynamically risk_degree will result in Market timing.
29-
30-
- `generate_order_list`
31-
Return the order list.
27+
- `generate_trade_decision`
28+
generate_trade_decision is a key interface that generates trade decisions in each trading bar.
3229
The frequency to call this method depends on the executor frequency("time_per_step"="day" by default). But the trading frequency can be decided by users' implementation.
3330
For example, if the user wants to trading in weekly while the `time_per_step` is "day" in executor, user can return non-empty TradeDecision weekly(otherwise return empty like `this <https://github.com/microsoft/qlib/blob/main/qlib/contrib/strategy/signal_strategy.py#L132>`_ ).
3431

0 commit comments

Comments
 (0)