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.
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:
LicenseID - Your unique license identifier (e.g., LicenseID)
SYMBOL - The trading instrument (e.g., EURUSD, BTCUSD)
ACTION - The trading action (buy, sell, buystop, etc.)
VOLUME - Trading size with risk= prefix (e.g., risk=0.01)
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:
Action | Format |
---|---|
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
Optional Parameters
Enhance your signals with these optional parameters:
Parameter | Description | Example |
---|---|---|
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
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.
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:
Feature | EA Setting | Signal Parameter |
---|---|---|
Trailing Stop | Trailing Mode: Disabled/Enabled/Signal | trtrig, trdist, trstep (requires Signal mode in EA) |
Pyramid Trading | Pyramid Mode: Disabled/Enabled/Signal | py (requires Signal mode in EA) |
Recovery System | Recovery Mode: Disabled/Enabled/Signal | re (requires Signal mode in EA) |
Valid Action Types
The EA supports the following action types in signals:
Category | Action Types | Description |
---|---|---|
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.