I’m using Pine Script strategy.entry() with the alert_message = JSON-file-sent-to-Alpaca to open new position.
When I create a TP, using strategy.exit(), and it executes, I need to both issue the TP order and update the stop loss amount for the original entry position in the same alert_message as there is not and update function in Pine.
So, the question is: can I submit multiple orders in the same JSON file?