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

how to distinct from BUY/Cover_Short, SHORT/Close_LONG for the tradings plots?

  • In the plot chart, the buy and cover_short trading are the same, and the short and close_long trading are the same. I used to try some other backtest platform, they have more type of trading types, and they are plotted with different flags. is it possible in the backtrader framework? (cover_short are the trading that close the short positions, and close_long are the trading that close the long positions)

  • It is possible, but requires some programming skills. I think you need to write your own BuySell observer which will distinguish different types of trades.

  • thanks, maybe try it latter!