Zero trade rates each step
parent
45464a5465
commit
228f21d7b0
|
@ -632,6 +632,7 @@ async def open_vlm_displays(
|
||||||
|
|
||||||
mx = 0
|
mx = 0
|
||||||
for name in names:
|
for name in names:
|
||||||
|
|
||||||
mxmn = chart.maxmin(name=name)
|
mxmn = chart.maxmin(name=name)
|
||||||
if mxmn:
|
if mxmn:
|
||||||
ymax = mxmn[1]
|
ymax = mxmn[1]
|
||||||
|
@ -640,7 +641,7 @@ async def open_vlm_displays(
|
||||||
|
|
||||||
return 0, mx
|
return 0, mx
|
||||||
|
|
||||||
chart.view._maxmin = partial(maxmin, names=['volume'])
|
chart.view.maxmin = partial(maxmin, names=['volume'])
|
||||||
|
|
||||||
# TODO: fix the x-axis label issue where if you put
|
# TODO: fix the x-axis label issue where if you put
|
||||||
# the axis on the left it's totally not lined up...
|
# the axis on the left it's totally not lined up...
|
||||||
|
@ -812,6 +813,7 @@ async def open_vlm_displays(
|
||||||
flow_rates,
|
flow_rates,
|
||||||
{ # fsp engine conf
|
{ # fsp engine conf
|
||||||
'func_name': 'flow_rates',
|
'func_name': 'flow_rates',
|
||||||
|
'zero_on_step': True,
|
||||||
},
|
},
|
||||||
# loglevel,
|
# loglevel,
|
||||||
)
|
)
|
||||||
|
@ -844,13 +846,13 @@ async def open_vlm_displays(
|
||||||
},
|
},
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# add custom auto range handler
|
# add custom auto range handler
|
||||||
tr_pi.vb._maxmin = partial(
|
tr_pi.vb.maxmin = partial(
|
||||||
maxmin,
|
maxmin,
|
||||||
# keep both regular and dark vlm in view
|
# keep both regular and dark vlm in view
|
||||||
names=trade_rate_fields,
|
names=trade_rate_fields,
|
||||||
)
|
)
|
||||||
|
|
||||||
chart_curves(
|
chart_curves(
|
||||||
trade_rate_fields,
|
trade_rate_fields,
|
||||||
tr_pi,
|
tr_pi,
|
||||||
|
|
Loading…
Reference in New Issue