Make $vlm axis color same as clears

multichartz_backup
Tyler Goodlet 2023-01-02 17:13:44 -05:00
parent 73f48d6336
commit 3ef222c4ad
1 changed files with 7 additions and 6 deletions

View File

@ -661,6 +661,12 @@ async def open_vlm_displays(
# str(period_param.default)
# )
# use slightly less light (then bracket) gray
# for volume from "main exchange" and a more "bluey"
# gray for "dark" vlm.
vlm_color = 'i3'
dark_vlm_color = 'charcoal'
# built-in vlm which we plot ASAP since it's
# usually data provided directly with OHLC history.
shm = ohlcv
@ -796,6 +802,7 @@ async def open_vlm_displays(
humanize,
digits=2,
),
'text_color': vlm_color,
},
)
@ -827,12 +834,6 @@ async def open_vlm_displays(
# add custom auto range handler
dvlm_pi.vb._maxmin = group_mxmn
# use slightly less light (then bracket) gray
# for volume from "main exchange" and a more "bluey"
# gray for "dark" vlm.
vlm_color = 'i3'
dark_vlm_color = 'charcoal'
# add dvlm (step) curves to common view
def chart_curves(
names: list[str],