showing only specific orders on the plot
How can I show only specific bracket orders( having specified condition in the code) on the plot? For example, showing only bracket orders having positive result.
You would have to code an
Observerwhich only pays attention to specific orders.
It's not something which is a builtin in backtrader
Thanks for you reply.
I know that I should implement this by using observer class, but i don't know how.
I want to plot only buy/sell pairs that those corresponding trade is positive.
Your best bet is to look at the source of the
Tradesobserver and only plot the trades of your choosing.