Position check before place an order - Bank Nifty — Tradetron Community
← Community

Position check before place an order - Bank Nifty

Strategy 1,003 views

Vidhya Ramkumar

Hello,

I have a created an set 1 with entry when trading view signal is 1 and exit when signal is -1. This is for call option. Similarly, another set 2 with entry when trading view signal is -1 and exit when signal is 1. This is for put option.

The question is when the order is placed fulfilled call or put option from previous signal, again after 10 mins if the same signal repeated, Does it place another call or put option or ignore?

If not, Do we need to add position check before placing the order?

Is this a correct condition?

Thanks,
Vidhya

Tradetron Team Tradetron team

It will not add a second position while the first is still open. While a set holds an open position, Tradetron checks that set’s repair and exit conditions, not its entry. A repeat signal during that time is ignored by the entry.

What can happen is a re-entry after the exit. A TradingView key/value stays at its last value until a Universal Exit. So if signal = 1 is still stored when Set 1 exits, Set 1 can enter again right away.

Fix: once a signal has been used, reset it in the Runtime section of the block that used it (for example set the variable to Number(0) on entry), or send another webhook call that sets it to 0. To allow only one entry per run, add a runtime-variable entry gate. Keyword docs: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.