TradingView
PineConnector
Mar 16, 2021 1:09 AM

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

US 100Currency.com

Description

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
Comments
ZenAndTheArtOfTrading
Very cool
More