ThoresDecimus Signal Receiver EA
Version 1.0 - Installation & User Manual
📋 Table of Contents
- Overview
- How It Works
- Installation
- Configuration
- Trading Logic
- Troubleshooting
1. Overview
The ThoresDecimus Signal Receiver EA is an automated trading Expert Advisor (EA) for MetaTrader 4 (MT4)
that connects to the ThoresDecimus trading platform to receive and execute trading signals automatically.
The EA polls the server every 60 seconds (configurable) to check for new trading signals. When a signal is received,
it automatically opens positions according to the signal parameters and manages them using a sophisticated pyramiding strategy.
2. How It Works
2.1 Signal Reception
The EA connects to the ThoresDecimus platform server and polls for signals every minute. When you send a signal from
your dashboard, the EA receives it and displays the information on the chart.
2.2 Trading Process
- Signal Received: EA receives signal with pair, direction (LONG/SHORT), TP, entry price, and lot size.
- Position Check: EA checks if any positions already exist for that pair. If yes, signal is ignored.
- First Position: Opens first position at current market price with the specified lot size.
- TP Calculation: First position's TP is calculated from the signal's entry price (not actual open price).
- Pyramiding: If price moves 100 points in losing direction, opens additional position with increased lot size.
- Auto-Close: When ANY position reaches its TP, ALL positions are closed automatically.
2.3 Lot Size Scaling
Additional positions use a progressive lot size formula:
New Lot Size = Previous Lot × (1.02 + (100 / (100 + TP)))
Example: If TP = 200 points and previous lot = 0.01:
- Multiplier = 1.02 + (100 / 300) = 1.353
- New Lot = 0.01 × 1.353 = 0.0135 (normalized to 0.01 or 0.02)
3. Installation
3.1 Download the EA
Click the download button above to download ThoresDecimus_Signal_Receiver_v2.ex4
3.2 Install in MT4
- Open MetaTrader 4
- Click File → Open Data Folder
- Navigate to
MQL4 → Experts
- Copy the downloaded
.ex4 file into this folder
- Restart MT4 or right-click "Expert Advisors" in Navigator and select "Refresh"
3.3 Enable Expert Advisors
Important: You must enable Expert Advisors in MT4 before the EA can run.
- In MT4, go to Tools → Options
- Click the "Expert Advisors" tab
- Check the following boxes:
- ✓ Allow automated trading
- ✓ Allow DLL imports (if needed)
- ✓ Allow WebRequest for listed URL
- Click OK
3.4 Add WebRequest URL
Critical: Without adding the server URL to allowed WebRequest URLs, the EA cannot connect to the server.
- In MT4, go to Tools → Options
- Click the "Expert Advisors" tab
- Click "Add" button next to "WebRequest URLs"
- Enter the following URL:
https://nina-production-097d.up.railway.app
- Click OK to save
- Restart MT4 for changes to take effect
3.5 Attach EA to Chart
- Open a chart for any currency pair (the EA will trade the pair from the signal)
- In the Navigator panel, find "Expert Advisors"
- Drag "ThoresDecimus_Signal_Receiver_v2" onto the chart
- The EA inputs window will appear
4. Configuration
4.1 EA Input Parameters
When you attach the EA to a chart, you'll see these input parameters:
| Parameter |
Default Value |
Description |
| RailwayURL |
https://nina-production-097d.up.railway.app |
The server URL (usually doesn't need to be changed) |
| AccountNumber |
(empty - REQUIRED) |
Your MT4 account number. MUST be set! This links your EA to your platform account. |
| RequestInterval |
60 |
How often (in seconds) the EA polls the server for signals. Default is 60 seconds (1 minute). |
⚠️ Important: You MUST enter your MT4 account number in the AccountNumber field.
This is the same account number you use when connecting to the EA from the platform dashboard.
Without it, the EA cannot receive signals.
4.2 Finding Your Account Number
To find your MT4 account number:
- In MT4, look at the bottom right corner of the terminal
- Your account number is displayed there (e.g., "12345678")
- Copy this number and paste it into the EA's
AccountNumber input field
5. Trading Logic Explained
5.1 First Position
- Opens immediately when signal is received (if no positions exist for that pair)
- Opens at current market price (Ask for BUY, Bid for SELL)
- Uses the lot size specified in the signal
- TP is calculated from the signal's entry price (not the actual open price):
- BUY: TP = Signal Entry Price + (TP points × Point Value)
- SELL: TP = Signal Entry Price - (TP points × Point Value)
5.2 Additional Positions (Pyramiding)
- Opens when price moves 100 points in the losing direction from the last opened position
- Opens at current market price
- Lot size increases using the formula:
Previous Lot × (1.02 + (100/(100+TP)))
- TP is calculated from the actual open price of that position:
- BUY: TP = Open Price + (TP points × Point Value)
- SELL: TP = Open Price - (TP points × Point Value)
- This process continues as long as price keeps moving against you (every 100 points)
5.3 Position Closing
- The EA monitors ALL positions every tick
- When ANY position reaches its TP, ALL positions are closed immediately
- After closing, the EA resets and waits for the next signal
- An alert will appear: "All positions closed! Ready for next signal."
5.4 Safety Features
- Position Check: If positions already exist for a pair, new signals are ignored
- Symbol Identification: Only trades positions with "ThoresDecimus Signal" comment
- Point Value Detection: Automatically handles different currency pair types (standard, JPY, Gold)
6. Troubleshooting
6.1 EA Not Connecting
Problem: EA shows "WebRequest FAILED" or Error 4060
Solution: Make sure you've added the server URL to allowed WebRequest URLs (see section 3.4)
6.2 No Signals Received
- Check that your Account Number is correctly set in EA inputs
- Verify you've connected to EA from the platform dashboard
- Check the EA logs in MT4 (View → Terminal → Experts tab) for error messages
- Ensure you have an active signal credit and have sent a signal from the dashboard
6.3 Positions Not Opening
- Check that "Allow automated trading" is enabled in MT4 options
- Verify your broker allows automated trading
- Check account balance and margin requirements
- Look for error messages in the EA logs
6.4 Chart Display
The EA displays two labels on the chart:
- Top label (white): "Last interrogation of the server: [timestamp]" - Updates every poll
- Bottom label (green): Last received signal details - Shows pair, direction, TP, price, odds, and lot size
If you don't see these labels, check that the EA is running (smiley face in top right of chart).
6.5 Common Error Codes
| Error Code |
Meaning |
Solution |
| 4060 |
URL not in allowed list |
Add server URL to WebRequest URLs (section 3.4) |
| 130 |
Invalid stops |
Check broker's minimum stop level requirements |
| 134 |
Not enough money |
Deposit more funds or reduce lot size |
| 146 |
Trading subsystem is busy |
Wait a moment and try again |
7. Support
For additional support or questions, please contact us through the ThoresDecimus platform dashboard.
ThoresDecimus Signal Receiver EA v1.0
© 2024 ThoresDecimus. All rights reserved.
← Back to Homepage