HOW-TO: Execute closed-source script alerts via TradingConnectorHOW-TO: Auto-Execute closed-source script alerts using TradingConnector
(Assuming alerts don't match required syntax and script author won't adjust)
TradingView hosts numerous Pine-Scripts with alerts generated by those scripts. Oftentimes, you discover an indicator or strategy with promising parameters, and to top it off, the alerts trigger precisely when needed. It feels as though the entire setup is pleading, "Automate me!"
However, there's a challenge. Many times, these scripts are closed-source, and the alert messages they produce don't align with the execution service's syntax requirements. Moreover, the script author may not be inclined to modify these alerts.
Introducing the "Search&Replace Alerts Modifier" Module
TradingConnector has recently introduced the “Search&Replace Alerts Modifier” module, offering a solution to this issue. This module acts as a bridge between alerts generated by closed-source scripts and the expected syntax of TradingConnector. By intercepting alerts fired from TradingView, the Alerts Modifier adjusts them using a familiar Search&Replace mechanism. Consequently, these alerts are aligned with the required syntax before being forwarded for execution in MetaTrader.
Configuring the Alerts Modifier is straightforward. Users only need to specify two strings of text for Search&Replace: one to identify within the incoming alert and the other to replace it in every occurrence.
Example Scenario
Consider an alert generated by a closed-source script:
{"id": 1701248700,"symbol": "XAUUSD","command": "short tradesymbol=XAUUSD lot=0.01","time": 1701248700}
This alert, in its current form, wouldn't be parsed by TradingConnector due to the absence of an expected keyword like short . It contains a partial occurrence of the term ( "...mind": "short" ) that wouldn't be recognized.
Processing this alert through the Search&Replace Alerts Modifier, with a specification to replace " symbol with a plain space , transforms the alert into a recognizable format:
{ id : 1701248700, symbol : XAUUSD , command : short tradesymbol=XAUUSD lot=0.01 , time : 1701248700}
Now, the distinct short keyword is recognizable, enabling the alert's execution in MetaTrader. Moreover, irrelevant words ( time, id, symbol, command ) or strings ( :1701248700, XAUUSD ) are intelligently ignored without causing any disruption.
Customization and Flexibility
Users can configure multiple search&replace pairs of strings, facilitating comprehensive customization to accommodate various alert formats and syntax variations.
By incorporating the "Search&Replace Alerts Modifier" alongside TradingConnector, traders can seamlessly handle alerts from closed-source scripts that diverge from the expected syntax. This module acts as a pivotal tool, reconciling these discrepancies and enabling the automated execution of alerts in MetaTrader without necessitating modifications to the original scripts.
Mt5
Expecting some upside on the US30EIGHTCAP:US30
Here on the 4 hour chart, we can see price action forming an expanding wedge. Knowing there is are still imbalances to the upside that are likely to get filled before any more dramatic moves down, I'm looking for the bulls to take control around the ATR of 33189 where I'll be bidding this market. This area will be the 3rd push on the wedge, meeting ATR and likely to see RSI around the 20. The ultimate situation will see the 4 HR chart finish as an SFP at this level. My stop loss is set below the next swing low and I'm targeting the top of the expanding wedge, which is also a major swing high.
The prophet of profits,
The Meditrader
Bitcoin Primed For The Next Move UPAfter an aggressive sell down to acquire more liquidity to fill what we would assume are institutional orders, we see 3 attempts from the bears to push price lower once a previous level of support was reached. The wedge pattern also finished with a swing failure pattern, taking out all stop within that range and creating more buying pressure to the upside. As additional confluence, we have RSI divergence. I'm now anticipating this to be the reversal up which will eventually lead to higher prices. Stop is set below the SFP candle and take profits are set at naked levels and swing points along the way.
DOW JONES (US30) US ELECTION TRADE PLANHELLO EVERYONE!
MY VIEW ON US ELECTION TRADE PLAN
SORRY FOR THIS LATE POST
DOW JONES GETTING READY TO BREAK DOULE TOP NECKLINE AROUND 26500
S0,THERE WILL BE A HUGE SELLOFF THIS WEEK
DT TARGET-24000
THANK YOU!
Auto-delivering TradingView Alerts into MT4, MT5Check out TradingConnector (dot_com), an integration tool, which enables auto-delivery of TradingView Alerts in to MT4 and MT4, to trade Forex, commodities and indices!
Delivery time is below 1 second, so it can be even used for scalping, as well as higher timeframe trading.
Disclaimer: This is no financial advice nor any financial service. Remember – 95%+ traders lose money. You are trading at your own risk.