can anyone point me the easiest way to implement stop loss/take profit orders in pinescript that execute inside TradingView whenever the price reaches the SL/TP?
The standard orders in TradingView have SLs and TPs and I want to use these for manual SL/TP setting , however by default the broker decides when these SL/TPs are triggered. Instead I want to build a script that triggers the SLs and TPs on the TradingView PineScript side .. and not on the broker side.
I want to maintain the existing functionality in the UI interface which allows manually setting SL/TP , but I want TradingView to fire the trigger.