Add delay to alert logic on Tradingview (Pinescript)
Budget: €8 – €30 EUR
Hello There,
I already have a working script with alerts on a strategy version. It triggers alerts with the conditions are met as it was designed.
What to do now:
1. add a delay of 2 sec after the "strategy.close"
What i want to do is to close all the positions before enter a new one, it does with the code i have, but i think i need to add a delay for the exchange to be able to proceed with the second order.
I have attached the alert portion of the script were I want to have a 2 sec delay
I already have a working script with alerts on a strategy version. It triggers alerts with the conditions are met as it was designed.
What to do now:
1. add a delay of 2 sec after the "strategy.close"
What i want to do is to close all the positions before enter a new one, it does with the code i have, but i think i need to add a delay for the exchange to be able to proceed with the second order.
I have attached the alert portion of the script were I want to have a 2 sec delay