TradeSgnl Logo
TradeSgnl
Docs
Portal

TradeSgnl EA Signal Guide

Learn how to format and send signals to the TradeSgnl Expert Advisor.

The TradeSgnl EA receives signals through webhooks and executes them on your MT5 platform. Each signal uses a comma-separated format, allowing you to control all aspects of your trades.

Tip
Our signals format works with TradingView alerts, making it easy to automate your trading strategies.

Signal Format


TradeSgnl uses a comma-separated format with required and optional parameters:

LicenseID,SYMBOL,ACTION,risk=VOLUME,[OPTIONAL_PARAMS]
Signal Structure

Each signal consists of 4 required components followed by optional parameters:

  1. LicenseID - Your unique license identifier (e.g., LicenseID)

  2. SYMBOL - The trading instrument (e.g., EURUSD, BTCUSD)

  3. ACTION - The trading action (buy, sell, buystop, etc.)

  4. VOLUME - Trading size with risk= prefix (e.g., risk=0.01)

  5. OPTIONAL PARAMETERS - Additional settings (sl=, tp=, comment=, etc.)

Format Rules
  • Parameters are separated by commas with NO spaces

  • All parameters are case-insensitive (buy = BUY)

  • Optional parameters can be in any order

  • Values are assigned with equals sign (sl=30)

  • Risk can be in lots (risk=0.01) or percentage (risk=1)

Signal Format Cheat Sheet


Here's a quick reference guide for common signal formats:

ActionFormat
Market Buy

LicenseID,SYMBOL,buy,risk=VOLUME

Market Sell

LicenseID,SYMBOL,sell,risk=VOLUME

Buy with SL/TP

LicenseID,SYMBOL,buy,risk=VOLUME,sl=PIPS,tp=PIPS

Buy Stop

LicenseID,SYMBOL,buystop,risk=VOLUME,pending=PIPS

Buy Limit

LicenseID,SYMBOL,buylimit,risk=VOLUME,pending=PIPS

Close Buy Positions

LicenseID,SYMBOL,closebuy

Close All Positions

LicenseID,SYMBOL,closeall

Close All with Comment

LicenseID,SYMBOL,closeall,comment=Strategy1

Buy with Trailing Stop

LicenseID,SYMBOL,buy,risk=VOLUME,trtrig=PIPS,trdist=PIPS,trstep=PIPS

Buy with Breakeven

LicenseID,SYMBOL,buy,risk=VOLUME,betrig=PIPS,bedist=PIPS

Cancel Pending Buy Orders

LicenseID,SYMBOL,cancellong

Cancel Pending Sell Orders

LicenseID,SYMBOL,cancelshort

Signal Parameters


Market order commands allow you to immediately enter or exit positions at current market prices.

buy (or long)

Places a buy order at the current market price.

LicenseID,EURUSD,buy,risk=0.01
sell (or short)

Places a sell order at the current market price.

LicenseID,EURUSD,sell,risk=0.01
closebuy (or closelong)

Closes all buy positions for the specified symbol.

LicenseID,EURUSD,closebuy
closesell (or closeshort)

Closes all sell positions for the specified symbol.

LicenseID,EURUSD,closesell
closeall

Closes all open positions. Can optionally filter by comment to close only specific strategy positions.

LicenseID,EURUSD,closeall

With Comment Filter:

LicenseID,EURUSD,closeall,comment=Strategy1
Tip
When using closeall with a comment filter, only positions that have the exact matching comment will be closed. If no comment is provided, ALL open positions will be closed regardless of their comment or symbol.

Optional Parameters


Enhance your signals with these optional parameters:

ParameterDescriptionExample

sl=

Stop Loss in pips from entry price

sl=50

tp=

Take Profit in pips from entry price

tp=100

pending=

Pending order level (interpretation depends on EA setting)

pending=20

trtrig=

Pips needed to activate trailing stop

trtrig=20

trdist=

Trailing stop distance in pips

trdist=10

trstep=

Pips needed to move trailing stop

trstep=5

betrig=

Pips needed to activate breakeven

betrig=15

bedist=

Breakeven distance in pips

bedist=2

comment=

Comment for the trade

comment=Strategy1

py

Enable pyramid trading mode

py

re

Enable recovery mode

re

Parameter Processing Rules


When processing signals, the TradeSgnl EA follows these rules:

Symbol Names

Symbol names in signals must match exactly with the symbol names in your MT5 terminal. For example, if your broker uses "EURUSD.a" in Market Watch, your signal must use the same format.

LicenseID,EURUSD.a,buy,risk=0.01
Tip
Alternatively, you can use our Symbol Mapping feature to map symbol names to the correct broker-specific symbols.
Learn about Symbol Mapping
Risk-Based Sizing

When using percentage-based risk (e.g., risk=1), the lot size is calculated as a percentage of your account balance or equity, depending on the EA's settings. The sl= parameter is not required for this calculation.

Tip
Example: With risk=1 on a $10,000 account, a 1 lot position will be opened (0.1 lot for a $1,000 account, or 10 lots for a $100,000 account).

EA Settings and Signal Parameters


The TradeSgnl EA has settings that determine which parameters it uses for trades:

Feature Control Settings

Advanced features can be controlled by either signals or EA settings:

FeatureEA SettingSignal Parameter
Trailing StopTrailing Mode: Disabled/Enabled/Signal

trtrig, trdist, trstep (requires Signal mode in EA)

Pyramid TradingPyramid Mode: Disabled/Enabled/Signal

py (requires Signal mode in EA)

Recovery SystemRecovery Mode: Disabled/Enabled/Signal

re (requires Signal mode in EA)

Tip
Important: For any feature to be controlled via signal parameters, the corresponding EA setting MUST be set to "Signal". Otherwise, the signal parameters for these features will be ignored.

Valid Action Types


The EA supports the following action types in signals:

CategoryAction TypesDescription
Market Orders

buy, long, sell, short

Immediate market entry orders
Closing Positions

closebuy, closelong, closesell, closeshort, closeall

Close existing positions by type or all positions
Pending Orders

buystop, buylimit, sellstop, selllimit

Orders that execute at specified price levels
Cancel Orders

cancellong, cancelshort

Cancel pending orders by type

Need Additional Help?

Our support team is ready to assist you with any questions you might have.

Email Support