MT5 connectorConnector

MT5 Connector Settings

After installing the MT5 connector to your chart, you’ll be prompted to configure various parameters that control your automated trading behavior.

⚠️

Please whitelist the domain pinetrader.io in the WebRequest settings.

Here’s how the MT5 connector input window looks: Pinetrader metatrader 5 connector input window

Basic Settings

License ID

The foundation of your connector setup - without this, server connection is impossible.

Magic Number (Optional)

A unique identifier for tracking trades and positions.

  • Required: ❌ NO
  • Value: INTEGER (non-decimal number)
  • Default: null

Suffix and Prefix

A way to modify the symbol string sent from TradingView in order to match your broker’s nomenclature.

  • Required: ❌ NO
  • Value: STRING (text)
  • Default: null
  • Suffix
    • If provided, the value will be added to the end of the symbol string received from TradingView
      • Exemple:
        • Suffix : “.i”
        • TradingView symbol : “USD/CAD”
        • Result : “USD/CAD.i”
  • Prefix
    • If provided, the value will be added to the start of the symbol string received from TradingView
      • Exemple:
        • Prefix : “X-”
        • TradingView symbol : “USD/CAD”
        • Result : “X-USD/CAD”

Trading Parameters

Trailing Settings

Determines when trailing begins. Choose from:

  • Trail Price - Price Level: Specific price level to start trailing
  • Trail Price - Ticks: Number of ticks from entry
  • Trail Price - Percentage: Percentage distance from entry

Position Sizing

Position size in Lots/Contracts

  • Direct volume specification
  • Example: size: 2.75 = 2.75 lots/contracts
  • Best for consistent position sizing

Risk Management

Stop-Loss Configuration

Stop Loss Price Level

  • Direct price specification
  • Order ticket’s sl = exact exit price
  • Best for precise exit points

Take-Profit Settings

Take Profit Price Level

  • Direct price specification
  • Order ticket’s tp = exact exit price
  • Best for specific profit targets

Advanced Configuration

Position Size Override

Set default position Fixed position size sizes for fixed-volume trading.

  • Use Case: Consistent position sizing across trades
  • Application: Fixed volume trading strategies
  • Behavior: If Position Size Percent From Equity is set then Fixed position size’s value will be used as the amount to risk (2.00 = 2%)
💡

Pro Tips

  • Review all settings carefully before live trading
  • Test configurations in a demo account first
  • Document your preferred settings for future reference
  • Regularly review and adjust based on performance