From 705354cc28756d877e0df63e753ad4950d43c910 Mon Sep 17 00:00:00 2001 From: Linlang <30293408+SunsetWolf@users.noreply.github.com> Date: Thu, 17 Mar 2022 19:24:17 +0800 Subject: [PATCH] fix-issue948 (#986) Co-authored-by: Linlang Lv (iSoftStone) --- docs/component/strategy.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/component/strategy.rst b/docs/component/strategy.rst index f839cb3ae..cdaf4d6b1 100644 --- a/docs/component/strategy.rst +++ b/docs/component/strategy.rst @@ -24,11 +24,8 @@ BaseStrategy Qlib provides a base class ``qlib.strategy.base.BaseStrategy``. All strategy classes need to inherit the base class and implement its interface. -- `get_risk_degree` - Return the proportion of your total value you will use in investment. Dynamically risk_degree will result in Market timing. - -- `generate_order_list` - Return the order list. +- `generate_trade_decision` + generate_trade_decision is a key interface that generates trade decisions in each trading bar. 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. 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 `_ ).