Guide
Can a long entry alert close my short position?
Yes. Set the long side's entry to Exit short position and each long entry alert closes an open short instead of opening a long. The short side works the same way with Exit long position. Use it when your alert source sends entries only. The closing side never opens a position of its own.
Official documentation
Close a position with the opposite entry alert
- 1
Set the other side to Enter position
Exit short position and Exit long position can only be picked when the other side is set to Enter position.
- 2
Pick the exit entry
On the side that should close, set its entry to Exit short position (the long side) or Exit long position (the short side).
- 3
Turn on Close on exit alerts
Switch it on for the side that holds the position. If it is off, the closing alert is ignored.
- 4
Send the opposite alert
With a short open, a long entry alert closes it. With a long open, a short entry alert closes it.
- 5
Check the log
The strategy's Logs tab shows the close, or why the alert was skipped.
A long-only example
- Long behavior: Entry is Enter position, and Close on exit alerts is on.
- Short behavior: Entry is Exit long position.
- A long entry alert opens a long.
- A short entry alert closes the open long and does not open a short.
When the alert is skipped
- No position is open to close.
- The other side's Close on exit alerts is off.
- The alert arrives outside Limit trading hours, where it counts as an entry and is dropped.
What the closing side lacks
- It has no legs and no exit setting of its own.
- It never opens a position.
- To reverse into the opposite side instead, set both sides to Enter position.
Questions
- Does the closing side ever open a trade?
- No. It only closes.
- Why is Exit short position greyed out?
- The other side must be set to Enter position first.
- What if nothing is open?
- The alert is skipped.
- Can an alert that names only the ticker close it?
- Yes. A ticker-only exit closes the most recent long or short in that ticker with its stacked entries.
- What does it cost?
- Paper is free. Live trading from $15 a month.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Alpaca.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- Alert tester.
Guides
How do I close or reverse a position with a TradingView alert?
CLOSE with the direction exits. One alert that reports the flip reverses.
Read guideHow do I set a stop loss or take-profit from a TradingView alert?
Put the stop in your strategy. Its fill sends the exit alert.
Read guideWhat happens to my open position if I pause or delete a trading bot?
Pause closes nothing. Delete with a position open makes the bot Closing only.
Read guideWhy was my trading bot's exit skipped?
Skipped exits send nothing. Five causes, one leaves a position open.
Read guideWhy did my sell alert arrive before my buy alert?
Close alerts can race. Space them out or send one reversing alert.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.