support for vbt indicators in helpers

This commit is contained in:
David Brazda
2024-06-12 15:12:27 +02:00
parent c29b1c5535
commit d9cff93ba8
3 changed files with 26 additions and 12 deletions

View File

@ -7,6 +7,12 @@ from numpy import isin
import pandas as pd
def is_vbt_indicator(variable):
# Get the module path of the variable's type
module_path = variable.__class__.__module__
# Check if it starts with 'vectorbtpro.indicators'
return module_path.startswith('vectorbtpro.indicators')
class Pane:
def __init__(self, window):
from lightweight_charts import Window