Templar Meridian
- Experts
- Versione: 1.0
- Attivazioni: 10
Automated USDJPY Trading Based on Japanese Gotobi Banking Days
Templar Meridian is a MetaTrader 5 Expert Advisor developed around the Japanese Gotobi trading calendar and the Tokyo foreign exchange market.
The EA follows a predefined, time-based trading strategy designed primarily for USDJPY. It combines scheduled trade execution with configurable position sizing, optional recovery methods, automatic broker-rule handling, and a compact information dashboard.
The strategy does not rely on continuously opening trades. Instead, it focuses on specific Japanese banking days and manages each position according to its trading schedule and configured exit rules.
1. Trading Strategy
The strategy is based on Gotobi dates, traditionally associated with Japanese commercial settlement activity.
Templar Meridian automatically identifies qualifying trading dates, accounts for Japanese banking holidays, and adjusts scheduled dates when they fall on non-business days.
Default trading schedule:
-
Primary instrument: USDJPY
-
Trade direction: SELL
-
Scheduled entry: 09:55 Japan Standard Time (JST)
-
Scheduled exit: 10:20 JST
-
Initial stop-loss: 10 pips
-
One scheduled entry attempt per eligible trading day
-
Automatic position closing and management
The trading schedule is integrated into the EA and does not require manual configuration.
Japan Standard Time remains UTC+9 throughout the year and does not observe daylight saving time.
The EA uses broker-time synchronization and historical market-session calibration to determine Tokyo time. Trading is suspended when the required time conversion cannot be verified.
2. Position Sizing and Money Management
Templar Meridian offers four position-sizing methods:
-
Fixed lot size
-
Percentage risk based on initial stop-loss
-
Margin percentage based on account equity
-
Margin percentage based on account balance
Default configuration:
| Parameter | Default |
|---|---|
| Position sizing | Stop-loss risk percentage |
| Risk per trade | 4% |
| Risk calculation basis | Account balance |
| Margin budget | 4% |
| Initial stop-loss | 10 pips |
| Fixed lot size (alternative mode) | 0.10 lots |
| Dynamic balance-based lot ceiling | Enabled |
| Recovery sizing | Disabled |
| Trailing stop | Disabled |
| Additional floating-profit exit | Disabled |
| Account drawdown entry limit | Disabled |
| Information dashboard | Disabled |
The 4% margin budget applies only when a margin-based sizing mode is selected. It is not applied simultaneously with the 4% stop-loss risk calculation.
The dynamic lot ceiling can increase the maximum permitted position size as the account balance grows.
Actual position sizes are also subject to broker volume requirements and available margin.
A configured risk percentage is a calculation target, not a guarantee of maximum loss. Market gaps and execution differences may result in larger losses.
3. Optional Recovery Management
Templar Meridian includes optional position-sizing adjustments following losing trades.
Three recovery modes are available:
-
Disabled: Standard position sizing without recovery increments.
-
Add Base Lots: Adds an additional base lot amount for each recovery step.
-
Multiply: Increases the base position size using a configurable multiplier.
Recovery parameters include the lot multiplier, maximum recovery steps, and reset conditions.
Available reset methods include resetting after a non-losing trade or when account equity or balance reaches a recorded balance peak.
The recovery system maintains selected state information across terminal restarts.
Recovery is disabled by default.
When activated, recovery sizing increases exposure after losses. It can substantially increase drawdown and does not guarantee recovery of previous losses.
4. Broker Compatibility
Templar Meridian was initially developed and tested under RoboForex trading conditions.
Compatibility and execution behavior may vary between brokers.
The EA is designed to recognize broker-specific USDJPY symbol names, including prefixes and suffixes such as USDJPYm, USDJPY.pro, and pro.USDJPY.
Broker-aware execution features include:
-
Automatic pip and point calculations
-
Symbol-specific price precision and tick size
-
Broker minimum stop-loss distances
-
Freeze-level handling for stop modifications
-
Minimum and maximum lot requirements
-
Lot-step normalization
-
Directional volume restrictions
-
Supported order filling policies
-
Available-margin calculations
-
Trading-permission checks
If the broker requires a wider initial stop-loss than requested, the EA can adjust the distance and recalculate SL-based position sizing.
Orders that cannot satisfy the broker's requirements may be skipped or rejected.
USDJPY is the intended and historically evaluated instrument. Other symbols are not deliberately blocked, but their trading performance has not been validated. The EA displays a warning when used outside USDJPY.
Users should backtest and demo-test the EA using their own broker's trading conditions before live operation.
5. Compact Information Dashboard
Templar Meridian includes an optional on-chart information panel.
The dashboard uses a compact design with four selectable sections. Users can switch between sections or minimize the entire panel.
Overview
Displays the next scheduled trade, countdown, Tokyo time, trading status, account balance, equity, EA profit/loss, open and closed trades, and current spread.
Results
Displays starting balance, current balance, equity, balance change, realized and floating EA profit/loss, trade statistics, winning and losing trades, and recovery progress.
Broker
Displays the current trading server, symbol precision, spread, minimum stop-loss distance, freeze level, lot requirements, volume restrictions, filling mode, leverage, free margin, and SELL trading permissions.
Clocks
Displays broker server time, local computer time, Tokyo time, broker UTC offset, time synchronization status, and the scheduled trading session.
The dashboard also highlights unverified trading instruments and relevant broker restrictions.
The interface is disabled by default and can be enabled in the EA settings.
6. Terminal Restart and State Recovery
Templar Meridian includes persistent state management designed to support continued operation after MetaTrader 5 restarts or unexpected shutdowns.
The EA stores selected information about:
-
Previous scheduled trading attempts
-
Recovery progression
-
Recorded account equity levels
-
Pending profit-based exits
-
Dashboard baseline information
Existing positions and relevant trading history are checked when the EA initializes.
The recovery mechanism is designed primarily for restarts on the same terminal installation. Migration to another computer or VPS may require additional steps to preserve locally stored state.
Open positions remain with the broker if MetaTrader 5 closes, but automated management cannot operate while the EA or terminal is offline.
Missed entries are not automatically opened outside the scheduled trading window.
7. Historical Backtesting
A historical development backtest was performed using MetaTrader 5 Strategy Tester under RoboForex trading conditions.
Testing environment:
| Parameter | Configuration |
|---|---|
| Instrument | USDJPY |
| Period | January 1, 2021 – January 1, 2026 |
| Initial deposit | $1,000 USD |
| Account leverage | 1:500 |
| Modeling method | Every tick based on real ticks |
| History quality | 100% |
| Historical spreads | Included |
| Execution delays | Enabled |
Historical development test results:
| Metric | Result |
|---|---|
| Initial deposit | $1,000.00 |
| Final balance | $100,093.62 |
| Total net profit | $99,093.62 |
| Profit factor | 2.29 |
| Total trades | 352 |
| Winning trades | 58.24% |
| Maximum relative equity drawdown | 27.79% |
| Maximum relative balance drawdown | 25.27% |
| Recovery factor | 9.09 |
These figures originate from an earlier development backtest. They have not yet been independently reproduced using the latest v1.00 release build.
They are historical simulated results, not actual live trading returns or projections of future results.
Execution Costs and Slippage
The historical test used real-tick modeling with historical Bid/Ask spreads and simulated execution delays.
No separate fixed slippage allowance or additional slippage cost was documented for this test.
Execution delays can affect simulated execution prices, but actual live slippage, market liquidity, broker execution and other trading costs may differ from the simulation.
The historical report should therefore be regarded as an example of past simulated strategy behavior rather than an indication of expected future returns.
8. Installation and Recommended Usage
Templar Meridian is designed for MetaTrader 5.
To begin:
-
Attach the EA to a trading chart, preferably USDJPY.
-
Enable algorithmic trading.
-
Select the preferred position-sizing settings.
-
Optionally enable the on-chart dashboard.
-
Perform a historical backtest using your broker's data.
-
Test on a demo account before considering live operation.
A continuously running terminal or suitable hosting environment is recommended for accurate scheduled execution and ongoing position management.
The EA is offered as an initial release. Further broker compatibility testing and user feedback will help guide future updates.
Technical feedback and bug reports can be submitted through the MQL5 messaging system.
9. Risk Disclosure
Templar Meridian is an automated trading system. Forex trading involves substantial financial risk.
Historical backtesting does not guarantee future performance.
Actual trading results may differ because of market conditions, spread changes, slippage, liquidity, broker restrictions, leverage and transaction costs.
The optional recovery system can increase exposure and significantly amplify losses.
Users are responsible for evaluating the strategy, configuring appropriate position sizes and monitoring their trading accounts.
Losses may exceed the configured stop-loss risk percentage, and the entire trading account balance may be lost.
