Trade Controller EA (MT4/MT5) — Features and Input Parameters
An EA that places market orders with one click from an on-chart panel and automatically sets SL/TP. Lot size is calculated automatically based on a percentage of Equity, so you can maintain consistent risk management regardless of account balance. For the initial setup procedure common to all free EAs, see How to Use Free EAs (Common Setup).
Place instant market orders via SELL/BUY buttons on the on-chart panel
Automatically set SL/TP (configurable pip distance per instrument type)
Auto lot calculation based on Equity percentage
Toggle between SL Auto / SL Manual mode with one click (drag the line to adjust SL in manual mode)
Real-time break-even line display when holding 2 or more positions
Real-time P/L (pips) label for each position (auto-removed after close)
Close all positions (All Close) or close by symbol (Close) with one button
Real-time floating P/L displayed on close buttons (pips / money / equity %)
Override lot size with manual input
Visual loss amount and loss rate display on SL label in manual mode
Drag panel to any position using the grip bar
Requirements
Traderisme account (active subscription)
MT4 or MT5
Account API Key (obtained from the “Settings” page in the app)
WebRequest allowed in MT: Tools > Options > Expert Advisors — add https://app.traderis.me to the allowed URL list
How to Use
Extract the zip file and place the .ex5 or .ex4 in MT’s MQL5/Experts/ (or MQL4/Experts/) folder, then refresh the Navigator
Drag and drop the EA onto the chart you want to trade
Enter your Account API Key in the parameter dialog and click OK to start
Once the panel appears on the chart, check and adjust Loss Rate % (default: 1.0%)
Change the SL/TP distance (pips) for your instrument type if needed
To set SL manually, click the “SL Auto ▼” button to switch to “SL Manual”, then drag the red line to your desired SL position
The lot size is calculated automatically and displayed (manual override also available)
Click SELL or BUY to place the order
Input Parameters
Calculation
Parameter
Type
Default
Description
InpLossRate
double
1.0
Allowable loss rate (% of Equity). Used to auto-calculate lot size.
InpMagicNumber
long
202601
Magic number assigned to orders placed by this EA.
Auto SL/TP Distance (Pips)
Parameter
Type
Default
Description
InpSLTP_Forex
int
30
SL/TP distance in pips for Forex pairs (e.g. EURUSD).
InpSLTP_Metal
int
200
SL/TP distance in pips for metals (XAUUSD, XAGUSD).
InpSLTP_CFD
int
200
SL/TP distance in pips for CFDs (indices, oil, etc.).
InpSLTP_Crypto
int
200
SL/TP distance in pips for crypto (e.g. BTCUSD).
Horizontal Lines
Parameter
Type
Default
Description
InpColorSL
color
Red
Color of the SL line.
InpColorSLWarn
color
Pink
Warning label color when loss rate exceeds the configured limit.
InpLineWidth
int
2
Width of the SL line (px).
InpInitBars
int
50
Number of bars to look back for recent high/low when placing SL in manual mode.
InpColorBE
color
Gold
Color of the break-even line (shown when holding 2 or more positions).
InpBEStyle
enum
Dot
Style of the break-even line (solid, dot, dash, etc.).
InpBEWidth
int
1
Width of the break-even line (px).
InpBELabelColorPlus
color
DodgerBlue
Break-even label color when total pips ≥ 0.
InpBELabelColorMinus
color
Tomato
Break-even label color when total pips < 0.
InpShowBreakEven
bool
true
Show break-even line when holding 2 or more positions.
InpShowPosLabels
bool
true
Show per-position P/L (pips) labels when holding 1 or more positions.
InpPosLabelFontSize
int
12
Font size of position labels.
InpPosLabelBold
bool
false
Display position labels in bold.
InpPosLabelAutoRemove
bool
true
Auto-remove position label after close (false = manual removal).
InpPosLabelCloseDelaySec
int
30
Delay in seconds before auto-removing the label after position close.
Panel
Parameter
Type
Default
Description
InpGripColor
color
SlateGray
Color of the grip bar at the top of the panel.
Label Position
Parameter
Type
Default
Description
InpLabelAnchor
enum
Right
Anchor side for SL label (Right: right edge / Left: left edge).
InpLabelOffset
int
150
Offset from the anchor edge (px).
InpShowPips
bool
true
Show pip distance from current price on the SL label.
Close Buttons
Parameter
Type
Default
Description
InpShowCloseAll
bool
true
Show the “Close All” button.
InpShowCloseSymbol
bool
false
Show the “Close” button (current symbol only).
InpCloseBtnHeight
int
25
Height of close buttons (px).
InpCloseBtnFontSize
int
8
Font size of close buttons.
InpCloseBtnDisplay
enum
Pips
P/L display mode on close buttons (Pips / Money / Off).
InpCloseBtnPipSize
enum
Auto
Pip size used for pips calculation (Auto recommended).
InpCloseBtnColorPlus
color
DodgerBlue
Button text color when P/L is positive.
InpCloseBtnColorMinus
color
Tomato
Button text color when P/L is negative.
InpCloseBtnShowEquityPct
bool
true
Show equity % on close buttons.
Subscription
Parameter
Type
Default
Description
InpAccountApiKey
string
(empty)
Traderisme account API key. Required.
Notes
Heartbeat authentication: The EA periodically sends authentication requests to the Traderisme server. If the API key is missing or invalid, order buttons will not function.
WebRequest permission: In MT, go to Tools > Options > Expert Advisors and add https://app.traderis.me to the allowed WebRequest URLs. An error will be displayed if this is not configured.
Subscription period: The EA only operates while your subscription is active. It also works during trial periods.
Supported instruments: Forex, metals (XAU/XAG), CFDs, and crypto are supported. The appropriate pip size is selected automatically based on the instrument.
Magic number: If running alongside other EAs on the same chart, make sure InpMagicNumber does not conflict with other EAs.
SL manual mode: Placing the SL line too close to the entry price may cause the order to be rejected (broker StopLevel restriction). A warning color (pink) is shown on the label if the loss rate exceeds the configured limit.
Manual lot override: Entering a value directly in the lot input field overrides the auto-calculated lot. It resets after the next order or chart change.
Break-even line: Displays the break-even price across all positions when holding 2 or more. Label color changes based on whether total pips are positive or negative.
Position label auto-removal: When InpPosLabelAutoRemove is true, labels are automatically removed InpPosLabelCloseDelaySec seconds after a position closes.