PineConnector

alert() with multiple symbols, dynamic stoploss and take profits

Greetings,

This script is an adaptation from the one shared on Tradingview's official blog.

The purpose is to make the alert() more user friendly by adding editable components mostly at the top.
The script should benefit users who use alerts to automate trades on their Metatrader 4/Metatrader 5 etc

The script will showcase an EMA crossover with set TP and SL, in its simplest form.
The limitation is that you can only have 8 pairs (with both long and short alerts) concurrently.

Changes:
1) editable long and short conditions
2) editable TP and SL for both short and long
3) plotting of arrows when alerts are supposed to trigger
4) changed the message to be more of a command (to edit based on your syntax requirements)
5) changed list of symbols to be mainly FX pairs (bottom)

Do let me know if there are components I should add or remove.

Cheers

Automate your trading with Tradingview alerts to Metatrader 4/5 using webhooks.

Start your 7-day free trial now @ www.pineconnector.com/. Credit card not required.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?