
Oscillators are intended to be used as external source when it comes to TP/SL conditions, but users can directly create scripts returning scaled outputs from overlay indicators.
Exit Take Profit
Long/Short take profits exits conditions will exit a long or short position when a set condition is met such that the position exit on a profit. Take profits conditions are triggered if they are toggled on for a specific order (Long/Short) and if the selected external source is either Crossing, Crossing Up, or Crossing Down, Greater Than, Lower Than, or Equal to the numerical value specified by the user.Exit Stop Losses
Long/Short stop losses exits conditions will exit a long or short order when a set condition is met such that the position exit on a loss. Stop losses conditions are triggered if they are toggled on for a specific order (Long/Short) and if the selected external source is either Crossing, Crossing Up, or Crossing Down, Greater Than, Lower Than, or Equal to the numerical value specified by the user.Time Exits
Time exits allow users to exit trade from a specific time of the day. Note that trades are still exited at the opening of the next bar.The timezone is the same as the one of the chart symbol.
Placeholders

open
: Opening pricehigh
: High pricelow
: Low priceclose
: Closing pricehl2
:ohlc4
:hlc3
:hlcc4
:
Exit on Entry
Enabling the Exit On Entry setting will close any existing position when an entry condition leading to a new opposite position is met.Partial Exits

Only Exit On A Profit
Enabling “Only Exit On A Profit” allows only triggering an exit if this exit leads to a profit, effectively preventing any exit that would lead to a loss. This can be useful to increase winrates of strategies.Enabling this setting alongside “Dont allow trades until closed” can prevent any losing trade from being exited, leading to a theoretical 100% winrate without a stop-loss.Do note however that a unprofitable trade can be held for an unlimited amount of time, leading to unrealistic scenarios.