Skip to content

Possible to have OHLC chart as Addplot? #168

@luongjames8

Description

@luongjames8

Hi - this is a great package. Thanks for the work on it.

Is it possible to have two ohlc plots? I've setup an ohlc chart on panel 0. But when I try to create an ohlc chart on panel1, I get an error that there's no candle type on the addplot?

Is the ohlc limited to main chart in panel 0?

Sorry if I missed it in the documentation somewhere.

C:\ProgramData\Anaconda3\lib\site-packages\mplfinance\plotting.py in make_addplot(data, **kwargs)
    735         raise TypeError('Wrong type for data, in make_addplot()')
    736 
--> 737     config = _process_kwargs(kwargs, _valid_addplot_kwargs())
    738 
    739     # kwarg `type` replaces kwarg `scatter`

C:\ProgramData\Anaconda3\lib\site-packages\mplfinance\_arg_validators.py in _process_kwargs(kwargs, vkwargs)
    230                 import inspect
    231                 v = inspect.getsource(vkwargs[key]['Validator']).strip()
--> 232                 raise TypeError('kwarg "'+key+'" validator returned False for value: "'+str(value)+'"\n    '+v)
    233 
    234        # ---------------------------------------------------------------

TypeError: kwarg "type" validator returned False for value: "candle"
    'Validator'   : lambda value: value in valid_types },

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requestedreleasedcode merged into repo AND released to Pypi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions