Search & Replace Alerts Modifier (Optional)

The Process

No matter if alerts are coming from TradingView or Telegram, it might happen that they are not exactly following TradingConnector’s Alerts Syntax rules. And therefore – cannot be executed by TradingConnectorEA.

It can happen especially when alerts triggered on TradingView are coming from closed-source scripts (and script author has no intention of modifying them) or signals on Telegram are also posted in a format differing from ours.

But don’t worry, we’ve got it covered!

Between receiving alerts from TradingView or Telegram and sending the to MetaTrader for execution, then can be modified on-the-go, while inside TradingConnector.EXE.

The optional functionality is called SEARCH & REPLACE ALERTS MODIFIER

It works in a well-known from text editors Search&Replace mechanism – you define two strings of text: one to be found in incoming alert and a second one to replace the first one in every occurrence.

Example – let’s say your alert looks like this:

{“id”:1701248700,”symbol”:”XAUUSD”,”command”:"short tradesymbol=XAUUSD lot=0.01”,”time”:1701248700} 

Such alert will not be parsed by TradingConnector, because keyword like short will not be found. There is only …mind”:”short – which will not be recognised. But if you process your alerts through Search & Replace Alerts Modifier, specifying to replace symbol with plain space, above alert would become this:

{ id :1701248700, symbol : XAUUSD , command : short tradesymbol=XAUUSD lot=0.01 , time :1701248700} 

Nicely separated short keyword will be recognised and alert will get executed in MetaTrader. Irrelevant words (time, id, symbol, command) or strings (:1701248700, XAUUSD) will be ignored doing no harm.