mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-11 23:06:58 +08:00
split code into core and contrib for data&model
This commit is contained in:
@@ -49,7 +49,7 @@ Users can use ``Data Handler`` to build formulaic alphas `MACD` in qlib:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>> from qlib.contrib.estimator.handler import QLibDataHandler
|
||||
>> from qlib.data.dataset.handler import QLibDataHandler
|
||||
>> MACD_EXP = '(EMA($close, 12) - EMA($close, 26))/$close - EMA((EMA($close, 12) - EMA($close, 26))/$close, 9)/$close'
|
||||
>> fields = [MACD_EXP] # MACD
|
||||
>> names = ['MACD']
|
||||
|
||||
Reference in New Issue
Block a user