Expert Advisor Variables

mt5

TradingView to MT4 and TradingView to MT5 EA has several variables that help in your trade optimization. Let’s look at what each does.

Webhook URL: Use this field to enter your Webhook.

Default Parameters: Use this field to set default parameters that will be applied to all your trades that are sent without these parameters. Parameters are separated by empty spaces.
image
The command Buy EURUSD will be executed as Buy EURUSD M=884 TP=200 SL=400 Q=0.5

Override Parameters: Use this field to enter the parameters to replace those typed in the commands.
image
The command Buy EURUSD Q=1 TP=1000 will be executed as Buy EURUSD TP=200 Q=0.5

You can also pass the multiply, add, divide, or subtract factor of a parameter in this section.
image
For the command Buy EURUSD Q=0.5 TP=500 SL=300, it will translate to Buy EURUSD Q=1 TP=700 SL=250.

Position Mode: Use this field to choose what happens to your open position when an opposite signal is received.

  1. The first option allows the EA to open trade in all directions simultaneously.
  2. The second option allows an opposite signal to close the existing trade.
  3. Close and Enter - This will close an opposite open position, before opening a new one.
    image

.

Slippage: The maximum points by which the price is allowed to deviate from the specified one.

Maximum Open Trades: This is the maximum number of trades you can have open in any direction per strategy or magic number.

Maximum Open Symbols: This is the maximum number of trades you can open per symbol in both directions.

Maximum Trades per Symbol: This is the maximum number of trades you can open per symbol in both directions.

Pyramiding: This is the maximum number of trades you can open in one direction per symbol and magic number.

Symbol Mapping: Allows you to customize symbol names in cases where the broker uses different names for an asset.
image

EA Refresh Rate: This is the duration after which the EA should refresh.