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

How to do short selling

  • Dear all
    I want to do short selling. I search a documents to do short selling, but I can`t find it. Could you tell me how to do?

  • Issue sell order if you have no position in the security.

  • @Reo-Inoue You just reverse the process. You call the sell method with the appropriate parameters such as the size. To close out the position, you call the buy method. If the price at which the buy to cover is initiated is lower than your entry order, than you will see a profitable position.

Log in to reply

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.