Page 1 of 1

Possible to run 2 strategy.entry long orders simultaneously?

Posted: Fri Dec 11, 2020 3:11 pm
by vij
In tradingview Pine Script, I find that if I have two strategy.entry long orders, it executes the 2nd strategy.entry long order only after the first one ends. Is it possible to have the 2nd long order run while the 1st long order is still open? How?

Please help.

Re: Possible to run 2 strategy.entry long orders simultaneously?

Posted: Fri Jan 15, 2021 1:22 am
by Matthew
Try adding this to your strategy annotation function (or turn Recalculate On Order Fills on in the Strategy Tester settings):

Code: Select all

strategy(title="Strategy", calc_on_order_fills=true)