Skip to content

[BUG]gQuant/plugins/gquant_plugin/notebooks/cuIndicator/indicator_demo.ipynb does not work #155

@complyue

Description

@complyue

Describe the bug

The cuIndicator demo notebook has various issues to reproduce its result.

Steps/Code to reproduce bug

First, an identified issue and possible fix:

#154 (comment)

Then

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [16], in <module>
     17     return df.query('datetime<@end_date and datetime>=@beg_date')
     19 indicator_lists = ['Accumulation Distribution', 'ADMI', 'Average True Range', 'Bollinger Bands',
     20                    'Chaikin Oscillator', 'Commodity Channel Index', 'Coppock Curve', 'Donchian Channel',
     21                    'Ease of Movement', 'EWA', 'Force Index', 'Keltner Channel', 'KST Oscillator', 'MA', 'MACD',
     22                    'Mass Index', 'Momentum', 'Money Flow Index', 'On Balance Volume', 'Parabolic SAR',
     23                    'Rate of Change', 'RSI', 'Stochastic Oscillator D', 'Stochastic Oscillator K', 'TRIX',
     24                    'True Strength Index', 'Ultimate Oscillator', 'Vortex Indicator',]
---> 26 task_stocks_list = [task_stock_symbol]
     27 task_stocks_graph = TaskGraph(task_stocks_list)
     28 list_stocks = task_stocks_graph.run(outputs=['stock_symbol.stock_name'])[0].to_pandas().set_index('asset_name').to_dict()['asset']

NameError: name 'task_stock_symbol' is not defined

(I tried to give some value to that variable but further strange errors occurred, so maybe someone familiar with it should better have a look)

Expected behavior

The notebook should be reproducible.

Environment overview (please complete the following information)

Environment details

N/A

Additional context

#154

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions