For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Plot groups of points on main chart

  • Hello,

    I'm new to backtrader but enjoying using it sofar.

    I have a custom indicator which will find groups of points (3) and I want to draw these lines connected on the main plot (overlaid on main chart). There are multiple groups of these points, I would like like them drawn discretely . I have the points calculated but dont know how to draw them - has anybody done something similiar or can direct me to exmaple code?

    Many thanks!

  • Sorry just realised this might not be right sub-forum, i tried to delete the post but cannot, if mods could move if required.


Log in to reply