Hello, I’m a little bit in short. I try to study Dash, however something seems strange:
This returns:
dcc.Checklist(
id=‘studies’,
options=[
{‘label’: ‘Accumulation/D’, ‘value’: ‘accumulation_trace’},
{‘label’: ‘Bollinger bands’, ‘value’: ‘bollinger_trace’},
{‘label’: ‘MA’, ‘value’: ‘moving_average_trace’},
{‘label’: ‘EMA’, ‘value’: ‘e_moving_average_trace’},
{‘label’: ‘CCI’, ‘value’: ‘cci_trace’},
{‘label’: ‘ROC’, ‘value’: ‘roc_trace’},
{‘label’: ‘Pivot points’, ‘value’: ‘pp_trace’},
{‘label’: ‘Stochastic oscillator’,‘value’: ‘stoc_trace’},
{‘label’: ‘Momentum indicator’,‘value’: ‘mom_trace’}
],
values=[‘moving_average_trace’],
labelStyle={‘display’: ‘block’}
),
RETURNS:
You’ve entered “None”
HOWEVER:
The RadioItems version seems correct (“moving_average_trace”):
dcc.RadioItems(
id=‘studies’,
options=[
{‘label’: ‘Accumulation/D’, ‘value’: ‘accumulation_trace’},
{‘label’: ‘Bollinger bands’, ‘value’: ‘bollinger_trace’},
{‘label’: ‘MA’, ‘value’: ‘moving_average_trace’},
{‘label’: ‘EMA’, ‘value’: ‘e_moving_average_trace’},
{‘label’: ‘CCI’, ‘value’: ‘cci_trace’},
{‘label’: ‘ROC’, ‘value’: ‘roc_trace’},
{‘label’: ‘Pivot points’, ‘value’: ‘pp_trace’},
{‘label’: ‘Stochastic oscillator’,‘value’: ‘stoc_trace’},
{‘label’: ‘Momentum indicator’,‘value’: ‘mom_trace’}
],
value=‘moving_average_trace’,
labelStyle={‘display’: ‘block’}
),
Many thanks.
Vaclav