Add dollar volume fsp config section to display in subchart

dolla_vlm
Tyler Goodlet 2022-01-24 06:38:26 -05:00
parent 0f200d9596
commit 8e81f8bd81
1 changed files with 15 additions and 1 deletions

View File

@ -932,7 +932,7 @@ async def maybe_open_vlm_display(
async with open_fsp_sidepane(
linked, {
'$_vlm': {
'vlm': {
'params': {
@ -1102,6 +1102,20 @@ async def display_symbol_data(
# TODO: eventually we'll support some kind of n-compose syntax
fsp_conf = {
'dolla_vlm': {
'func_name': 'dolla_vlm',
'zero_on_step': True,
'params': {
'price_func': {
'default_value': 'chl3',
# tell target ``Edit`` widget to not allow
# edits for now.
'widget_kwargs': {'readonly': True},
},
},
'chart_kwargs': {'style': 'step'}
},
'rsi': {
'func_name': 'rsi', # literal python func ref lookup name