Reputation: 63
How can I add stop loss and take profit section in Tradingview alarm message?
I want to use it in study app, not in strategy
Upvotes: 0
Views: 448
Reputation: 21362
Plot your TP and SL like below:
plot(tp_price, "TP") plot(sl_price, "SL")
Then you can use the name of the plots in your alert message:
alertcondition(your_condition_here, "Alert Title", "TP: {{plot("TP")}}, SL: {{plot("SL")}}"
See this for more details.
Upvotes: 1