Drop the unit-volume chart once $vlm is fully drawn
							parent
							
								
									f9d2e45836
								
							
						
					
					
						commit
						9b0d4b5cd6
					
				| 
						 | 
					@ -753,20 +753,14 @@ async def open_vlm_displays(
 | 
				
			||||||
                'dark_trade_rate',
 | 
					                'dark_trade_rate',
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # add custom auto range handler
 | 
					            group_mxmn = partial(
 | 
				
			||||||
            dvlm_pi.vb._maxmin = partial(
 | 
					 | 
				
			||||||
                maxmin,
 | 
					                maxmin,
 | 
				
			||||||
                # keep both regular and dark vlm in view
 | 
					                # keep both regular and dark vlm in view
 | 
				
			||||||
                names=fields + dvlm_rate_fields,
 | 
					                names=fields + dvlm_rate_fields,
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # TODO: is there a way to "sync" the dual axes such that only
 | 
					            # add custom auto range handler
 | 
				
			||||||
            # one curve is needed?
 | 
					            dvlm_pi.vb._maxmin = group_mxmn
 | 
				
			||||||
            # hide the original vlm curve since the $vlm one is now
 | 
					 | 
				
			||||||
            # displayed and the curves are effectively the same minus
 | 
					 | 
				
			||||||
            # liquidity events (well at least on low OHLC periods - 1s).
 | 
					 | 
				
			||||||
            vlm_curve.hide()
 | 
					 | 
				
			||||||
            chart.removeItem(vlm_curve)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # use slightly less light (then bracket) gray
 | 
					            # use slightly less light (then bracket) gray
 | 
				
			||||||
            # for volume from "main exchange" and a more "bluey"
 | 
					            # for volume from "main exchange" and a more "bluey"
 | 
				
			||||||
| 
						 | 
					@ -834,6 +828,14 @@ async def open_vlm_displays(
 | 
				
			||||||
                fr_shm,
 | 
					                fr_shm,
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            # TODO: is there a way to "sync" the dual axes such that only
 | 
				
			||||||
 | 
					            # one curve is needed?
 | 
				
			||||||
 | 
					            # hide the original vlm curve since the $vlm one is now
 | 
				
			||||||
 | 
					            # displayed and the curves are effectively the same minus
 | 
				
			||||||
 | 
					            # liquidity events (well at least on low OHLC periods - 1s).
 | 
				
			||||||
 | 
					            vlm_curve.hide()
 | 
				
			||||||
 | 
					            chart.removeItem(vlm_curve)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # Trade rate overlay
 | 
					            # Trade rate overlay
 | 
				
			||||||
            # XXX: requires an additional overlay for
 | 
					            # XXX: requires an additional overlay for
 | 
				
			||||||
            # a trades-per-period (time) y-range.
 | 
					            # a trades-per-period (time) y-range.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue