Meet Thor EA: Your Next-Level Forex Trading Ally
Thor EA is a cutting-edge Expert Advisor (EA) crafted for MetaTrader 5 (MT5), delivering a powerful blend of automation and intelligence for forex trading. Powered by a neural network and seamlessly integrated with an SQLite database, Thor simplifies trading while offering advanced functionality for traders of all levels. With unique magic number generation for every trade and a pre-optimized setup for XAUUSD on the H1 timeframe, Thor is ready to deploy instantly—no complex configuration required. Built for adaptability and precision, it thrives in the fast-paced forex market.
Thor leverages a neural network trained on key indicators—MACD, ADX, RSI, RVI, and Bulls Power—to drive its trading decisions. Whether you’re a novice seeking a plug-and-play solution or a seasoned trader eager to tweak its settings, Thor offers a perfect mix of accessibility, sophistication, and ongoing enhancements.
Specifications
- Platform: MetaTrader 5 (MT5)
- Account Type: Hedge (recommended)
- Primary Pair: XAUUSD on H1 timeframe
- Additional Pairs: Test across all MT5 symbols for optimal results
- Default Order Type: Market orders (configurable to stop, limit, all types, or nitro)
- Database: SQLite, stored at MQL5/Files
- Timeframe: Optimized for H1 with Strategy 4 (strg4) as default
Key Input Parameters:
- Money Management: Fixed lot size (default: 0.01)
- Exit Rules: Profit target (2.8), stop loss (5.85), exit after bars (0)
- Trailing Stop: Trailing stop (0.25), activation (0.0)
- Break-Even: Move to break-even (1.38), add pips (0.63)
- Friday Exit: Enabled at 20:40 by default
- Neural Network: Epochs (340), threshold (0.21), global factor (-1.25), learning rate (0.0723)
- Calculation Mode: Coefficients (default) or pips
- Order Management:
- SetOrderExpirationinBars (0): Sets pending order expiration in bars (0 = no expiration).
- ExpirationTime (0): Sets pending order expiration in minutes (0 = no expiration).
- MaxTradesPerDay (0): Limits daily trades (0 = unlimited).
- Dynamic Order Settings (High Speed, High Stakes!):
- UseDynamicLevels (false): Enables dynamic order placement based on price offsets.
- OrderFrequencyTick (0): Controls order frequency (1–100; 0 = default multiplier).
- InitialOrderOffset (0.0): Sets pips offset from current price for first pending order.
- OrderSpacing (0.0): Sets pips spacing between multiple pending orders.
- MaxPendingOrders (0): Caps pending orders (0 = unlimited).
- MaxMarketOrders (0): Caps market orders (0 = unlimited).
Thor’s default settings are tuned for XAUUSD/H1 with Strategy 4, but its flexibility lets you adapt it to other pairs, timeframes, or strategies with these additional controls.
What These Inputs Represent
- Order Management:
- SetOrderExpirationinBars: Defines how many bars a pending order remains active (e.g., 5 bars).
- ExpirationTime: Sets a time limit in minutes for pending orders (e.g., 60 minutes).
- MaxTradesPerDay: Caps the number of trades per day to manage risk or overtrading (e.g., 10 trades).
- Dynamic Order Settings:
- UseDynamicLevels: When enabled, places pending orders at calculated price levels instead of fixed defaults.
- OrderFrequencyTick: Adjusts how aggressively orders are placed (1–100 scale; higher = more frequent).
- InitialOrderOffset: Sets the starting distance (in pips) from the current price for pending orders (e.g., 10 pips).
- OrderSpacing: Defines the gap (in pips) between multiple pending orders (e.g., 5 pips).
- MaxPendingOrders: Limits the number of active pending orders (e.g., 5 orders).
- MaxMarketOrders: Limits the number of active market orders (e.g., 3 orders).
Capabilities
Thor EA is packed with features that set it apart:
- Neural Network Core: Analyzes MACD, ADX, RSI, RVI, and Bulls Power, trained over 340 epochs with a 0.0723 learning rate. Signals like LongEntrySignal (MACD/ADX/Bulls Power) and ShortExitSignal (RVI/RSI) ensure precise entries and exits.
- Unique Magic Numbers: Automatically generates magic numbers (starting at 20) for each trade, stored in an SQLite database, enabling conflict-free multi-chart trading.
- SQLite Integration: Efficiently manages training data and magic numbers at MQL5/Files, with optional logging for transparency.
- Plug-and-Play: Pre-set for XAUUSD/H1 with Strategy 4—install, set your lot size, and trade.
- Order Versatility: Supports market, stop, limit, all types, and nitro modes, with buy/sell/both options (default: both). Nitro mode boosts execution speed for volatile conditions.
- Order Management: Control expiration (SetOrderExpirationinBars, ExpirationTime) and daily trade limits (MaxTradesPerDay) for precision and discipline.
- Dynamic Orders: Activate UseDynamicLevels to place orders at custom offsets (InitialOrderOffset) and spacing (OrderSpacing), with frequency tuning (OrderFrequencyTick) and caps (MaxPendingOrders, MaxMarketOrders) for high-speed strategies.
- Risk Tools: Configurable profit targets, stop losses, trailing stops, and break-even settings in coefficients or pips, plus time-based exits (e.g., Friday at 20:40).
- Strategy Options: Five strategies (strg1–strg5), with Strategy 4 as default—test to find your fit.
Thor balances automation with customization, offering fine-tuned order management and dynamic trading options for any style.
Testing
Unlock Thor’s potential through testing:
- MT5 Strategy Tester: Evaluate Thor across all MT5 symbols, starting with XAUUSD/H1 and Strategy 4. Experiment with other strategies, timeframes, and dynamic settings (UseDynamicLevels, OrderFrequencyTick).
- Indicator Check: Validates normalized signals (e.g., MACDVal1 [0, 1]) against your broker’s data.
- Performance Metrics: Analyze profit factor, drawdown, and trade frequency to refine settings like lot size, expiration (ExpirationTime), or order caps (MaxPendingOrders).
Testing helps tailor Thor to your market and preferences.
Validation
Before live trading, validate Thor:
- Demo Run: Test on a demo account for 2–4 weeks to confirm real-time performance with defaults (e.g., stop loss 5.85, trailing stop 0.25). Check dynamic order behavior if enabled. Demo testing is essential to ensure Thor meets your expectations before risking real capital.
- Risk Review: Assess trailing stop, break-even, and order limits (MaxTradesPerDay, MaxMarketOrders)—use a VPS for uninterrupted execution.
- Signal Confirmation: Ensure Strategy 4 signals (e.g., MACD/ADX/Bulls Power for longs) align with live conditions.
Validation ensures Thor performs reliably in live conditions.
How to Use Thor EA
Getting started with Thor is simple and straightforward:
Installation
- Open an MT5 chart for XAUUSD (Gold) on the H1 timeframe.
- Attach Thor EA by dragging it from the Navigator panel onto the chart.
Configuration
- Default Setup: Thor is ready to trade XAUUSD/H1 with Strategy 4 out of the box. Simply set your preferred fixed lot size (default: 0.01) and let it run—no further adjustments needed.
- Magic Number: Thor generates a unique magic number automatically (starting at 20), ensuring no overlap when running multiple instances. You can override this manually if desired.
- Advanced Options: Customize trade mode (buy/sell), order type (market, stop, limit, all types, nitro), or neural network parameters. Defaults are optimized for immediate use.
Testing
- Use MT5’s Strategy Tester to evaluate Thor on all symbols, focusing on H1 with Strategy 4. Identify additional pairs or tweak settings based on results.
Validation
- Run Thor on a demo account first to confirm its real-time performance and ensure it aligns with your risk and reward expectations. This step is critical before live trading.
Live Deployment
- Activate Thor on a live MT5 hedge account, ideally with a Virtual Private Server (VPS) for 24/7 operation. This ensures uninterrupted execution of trailing stops, break-even adjustments, and database updates. Monitor periodically and adjust settings if exploring beyond XAUUSD/H1.
Key Tips
- The SQLite database at MQL5/Files powers Thor’s neural network—ensure this path is accessible in MetaEditor.
- Use a VPS to maintain constant connectivity, as Thor’s risk management features (e.g., trailing stops) depend on it.
Additional Insights
Thor EA is built for today and tomorrow. Its neural network adapts via a DecisionMaker class (threshold 0.21), while SQLite ensures scalable data handling. With five strategies, nitro mode, dynamic order controls (OrderFrequencyTick, MaxPendingOrders), and unique magic numbers, it’s a versatile tool for growth. Risk management (e.g., stop loss 5.85, profit target 2.8) is balanced but adjustable—test to suit your risk appetite.
Why Thor?
Thor EA offers smart automation with zero setup hassle. Its XAUUSD/H1 readiness, continuous upgrades, and robust feature set—including advanced order management—make it a lasting investment. Whether you trade defaults or dive deep, Thor equips you to succeed.
- Platform: MT5
- Primary Pair: XAUUSD/H1
- Upgrades: Free with purchase
Start now—test, validate, and trade confidently. Reach out for support anytime. Happy trading!
Note: