Search code examples
pine-scriptpine-script-v5pine-script-v4

Does pine script allow buy and sell orders at the same time?


I have been trying to get pinescript to open buy and sell orders without closing orders in the opposite direction. Is that possible?


Solution

  • No, this is not possible. Hedging is currently not supported.

    If you really need this, you can create an indicator and simulate all the strategy behavior there.