Band Walk Alert TENKYO GOLD — System Trade Edition User Guide
- Chapter 1: What Is the System Trade Edition?
- Chapter 2: Installation and Setup
- Chapter 3: Filling In History Data
- Chapter 4: Signals, Entry, and Exit Logic (A Signal Is an Order)
- Chapter 5: Auto-Trading Settings Panel (Most Important)
- Chapter 6: Environment Settings Panel
- Chapter 7: If You Want to Customize the Logic Parameters (Using a User Settings File)
- Chapter 8: Notifications (Push Notifications)
- Chapter 9: Dashboard and Trade History Panel
- Chapter 10: Important Notes for Safe Operation
- Chapter 11: Handling Order Errors (Troubleshooting)
- Chapter 12: Disclaimer
Chapter 1:What Is the System Trade Edition?
1-1. Core Concept
Band Walk Alert TENKYO GOLD is a logic that focuses on the “initial velocity of price” during a Bollinger Band expansion. It thoroughly eliminates gambling-style counter-trend calls that try to predict tops and bottoms, and detects a move as an “initial thrust” only at the moment momentum is statistically confirmed. Rather than chasing a gambler’s jackpot, the system prioritizes “not losing” above all else — the moment it judges a trend has stopped extending, it withdraws from the market early, protecting capital until the next “big wave” arrives.
★About Supported Symbols: This product is dedicated exclusively to two symbols: XAUUSD (Gold) and XAGUSD (Silver). A single EA supports both symbols — it automatically detects the chart’s symbol and applies parameters optimized for that symbol. If you attach it to any other symbol (such as an FX currency pair), a warning dialog stating it is unsupported will appear in the center of the chart.
Band Walk Alert TENKYO GOLD System Trade is the edition that wires this detection logic directly into automatic order entry and automatic exit on an MT5 account. The statistical calculation behind signal detection is exactly the same as the sister indicator-only product, “Band Walk Alert TENKYO GOLD” — the moment a signal lights up on the chart, it also places or closes the order.
There are two main differences from the indicator-only edition (display only):
- The signals that appear on the chart (ENTRY / OW1–4 / SEC / FAIL, etc.) drive real orders (new entries and exits), not just a visual display.
- An “Auto-Trading Settings Panel” is added at the bottom right of the screen, giving you control over lot management, a hard stop-loss, a time-of-day filter, maximum spread, a daily loss cap, and an emergency stop — the safety features you need when real money is on the line.
Chapter 2:Installation and Setup
2-1. Getting and Placing the Files
- Download the product file you purchased. What you receive is a ZIP archive.
- Right-click the ZIP file and choose “Extract All” (or “Unzip”) to pull out the
.ex5file (BandWalkAlertTENKYO_Gold_Sys.ex5). - From the MT5 menu, click “File” > “Open Data Folder,” then open “MQL5” > “Experts” inside the folder that opens.
- Copy the extracted BandWalkAlertTENKYO_Gold_Sys.ex5 into this folder.
- In the “Navigator” panel on the left side of MT5 (press Ctrl + N if it isn’t visible), right-click “Expert Advisors” and choose “Refresh” — the EA’s name will then appear in the list.
- Double-click the EA that appears in the list, or grab it with the mouse and drag it onto the chart you want to run it on (XAUUSD or XAGUSD).
- Copy every bundled recommended-parameter settings file into the “MQL5” > “Files” folder.
★About recommended-parameter files: the System Trade Edition does not have a feature (available in the indicator edition’s Environment Settings Panel) that checks the server for the latest recommended parameters and applies them automatically — see Section 2-4. The files bundled with your download are used as-is for the initial configuration, so be sure to complete this copy step.
2-2. Product Authentication (License Activation)
The moment you attach the EA to a chart, a “[License Authorization]” dialog appears in the center of the screen. Until authentication succeeds, the EA will not function correctly — including the dashboard and panel calculations.
- Open “Tools” > “Options” from the MT5 menu and select the “Expert Advisors” tab.
- Check “Allow WebRequest for listed URL” and add https://tenkyo-fx.com exactly as shown.
- In the input field of the authentication dialog in the center of the chart, enter the activation code (serial key) issued at purchase, then click “Activate.”
- Once authentication succeeds, the dialog closes automatically and the EA begins operating normally.
★If you see an error: “WebRequest is currently disabled” means you should re-check the URL registration in steps 1–2 above. “Invalid code” means there may be a typo in your activation code (full-width/half-width characters, stray spaces, etc.) — please double-check it.
★Your authentication result is cached locally so it carries over the next time you attach the EA. If you install the same EA on multiple charts on the same terminal, every chart after the first will start up already authenticated automatically.
2-3. Actually Enabling Auto-Trading (Additional Step Required for the System Trade Edition)
Everything above is shared with the display-only indicator edition. Because the System Trade Edition places real orders, the following additional settings are required.
- Turn the “AutoTrading” button ON in the MT5 top toolbar (it switches from orange to green). Orders will not execute while it’s off.
- On the EA’s properties screen (the “Common” tab), check “Allow live trading.” If this is left unchecked, order placement will fail with an “AutoTrading is not allowed” error.
- No real orders will be placed at all until you click “I understand and accept full responsibility” in the Auto-Trading Settings Panel at the bottom right of the screen, immediately after attaching the EA to a chart (see Chapter 5). If you forget this step, signals will light up on the chart but no orders will actually go through — please be careful.
2-4. About Recommended-Parameter Updates
The indicator edition (Pro, etc.) has a feature in its Environment Settings Panel that checks the server for the latest recommended parameters and downloads them, but the System Trade Edition (Sys) does not include this feature. To comply with certain financial-instruments regulations, the System Trade Edition is built to never contact the server about logic parameters while it is running.
If you want to bring in updated recommended parameters, use one of the following methods instead:
- Re-download the latest version of the product and overwrite the bundled recommended-parameter files in your “MQL5” > “Files” folder.
- Load a user settings file created with the sister indicator edition (see Chapter 7).
Chapter 3:Filling In History Data (Critical: Data Integrity)
For the dashboard’s performance tally and session judgment to work correctly, MT5 needs to be properly loaded with the historical price data that the statistical calculations are based on. Skipping this step will make the dashboard’s numbers meaningless, so be sure to carry it out.
3-0. [Must Set Before Starting the EA] Set the Chart’s Maximum Bars to “Unlimited”
Before going through the steps below, please confirm this setting in MT5 itself first.
- Open “Tools” > “Options” from the MT5 menu and select the “Charts” tab.
- Change “Max bars in chart” from its default (tens or hundreds of thousands of bars) to “Unlimited.”
★Why this matters: this setting has nothing to do with how much history your broker’s server holds — it caps how many bars the MT5 terminal itself is allowed to keep locally. If it isn’t set to unlimited, the terminal can’t hold the roughly two years of 1-minute (M1) data the EA needs. Even though the data genuinely exists on the broker’s server, the EA will keep showing a “past M1 data is insufficient” dialog, or an auto-fetch will start and then stop after about a minute with “M1 data fetch was interrupted.” This is almost always caused by this setting, not a bug in the EA. The EA does show a hint in yellow text inside that dialog when it detects this state, but setting this correctly before you start avoids ever seeing it in the first place.
★After changing this setting, restart MT5 once just to be safe, then go through the steps below.
- Open the History Center: press the F2 key.
- Drill into the symbol’s hierarchy: click the “+” mark next to the symbol you want to trade (e.g., Metals > XAUUSD) to expand it.
- Enable the timeframe you want to fetch: find the timeframe you’re trading in the list (e.g., “M15”) and look at the icon just to its left. If the icon is gray, double-click quickly on the timeframe’s text. Once the icon turns colored (yellow and green), it has been enabled successfully.
- Download: click the “Download” button at the bottom, and click “OK” through any warning that appears. Wait until the green bar reaches the right edge.
- Restart MT5: once it’s done, close MT5 entirely and relaunch it.
Chapter 4:Signals, Entry, and Exit Logic (A Signal Is an Order)
Each label that lights up on the chart is the result of a calculation correlating the dynamic change of the Bollinger Bands with the candlesticks. This detection logic itself is identical to the indicator edition, but in the System Trade Edition a lit signal drives an actual order (entry or exit) directly.
4-1. The Entry Process (From Warning Sign to Confirmation)
- EXPANSION (warning sign): fires the instant the width of the Bollinger Bands’ third standard deviation (±3σ) expands beyond a specified “band expansion speed (TH)” compared with the previous bar. It’s an alert that the statistical “soil” for a trend to develop has been prepared.
- ENTRY (LONG / SHORT): once every condition is cleared after EXPANSION fires, an arrow and price are displayed and, a new market order (OrderSend) is placed at the same instant. When the Scramble Mode setting is aggressive, an ENTRY signal can appear suddenly without EXPANSION ever lighting up.
4-2. Exit Logic (OW1–4: Four Definitions of a Trend’s End)
The reasoning for “the band walk is over” is classified into four categories, in order to maximize profit while capping risk. All four close the position at market the instant they fire.
- OW1 Convergence: closes the instant the Bollinger Band expansion stalls and the band width turns to contraction (a squeeze). This is the most standard exit, signaling that the trend’s momentum has died.
- OW2 Reversal: closes when a specified number of consecutive candles form against the direction of the trade after entry (the “allowed reversal-candle count”).
- OW3 Deviation: fires when price clearly breaks through a reference line set a certain multiple of standard deviations away from the center line, judged to have deviated from the trend’s trajectory. This multiple is tuned as part of the recommended parameters, separately for XAUUSD and XAGUSD and by timeframe, so it is not always a fixed value like ±2σ.
- OW4 Center line: closes when price returns to the band’s center line (the Basis). This is the last line of defense as the trend fully collapses and heads toward a range or a reversal.
4-3. Special Exits and Protective Signals
- SECURED Small-profit exit: once unrealized profit reaches the “breakeven (BE) move” line and price then pulls back, the position is closed at market at entry price + spread + a specified amount (SEC), locking in a small profit. This is defensive logic designed to eliminate outright losses.
- FAIL False-break avoidance: an emergency stop-loss signal that applies only to entries made in Scramble Mode. If, on the very first candle after entry, the candle body is pushed back by half or more, the position is closed at market immediately — while the damage is still shallow. FAIL never fires for entries made in normal mode (NORM/OFF).
- The zone where entry logic automatically shuts down (outside the Onion Zone): a stagnation zone with “zero edge” where the bands are not expanding and price is drifting near the center line. It is the area outside the “Onion Zone” (the shaded band-expansion region you can enable via “Onion Zone Fill” in the Environment Settings Panel), and all entry logic is automatically shut down inside it (no new orders are placed either).
4-4. How Signals Map to Actual Orders
| Signal on the Chart | What Actually Happens |
|---|---|
| ENTRY (LONG / SHORT) | Places a new market order. |
| OW1–OW4 | Closes the position at market. |
| SECURED | Closes the position at market (small-profit exit). |
| FAIL | Closes the position at market (emergency stop-loss to avoid a false break; Scramble-mode entries only). |
| SL / TSL | Fills at the same price level as the real stop-loss placed with the broker (see “Hard Stop-Loss” in Chapter 5), at the same time the exit logic makes its determination. |
Order entry and exit only execute on the real-time latest bar (on the first tick right after the determination, on a closed-bar basis) — they are never triggered by recalculation of past bars or by the history scan that happens when you reopen a chart. Strategy Tester runs use the same logic to place simulated orders, so backtesting is possible before going live.
Chapter 5:Auto-Trading Settings Panel (Most Important)
This panel opens when you click the “Auto-Trading Settings” button at the bottom right of the screen. It’s a feature exclusive to the System Trade Edition, and so that nothing is lost when the chart restarts, settings are auto-saved to a dedicated file per symbol and timeframe (TNK_UserSettings_[symbol]_[timeframe].dat) (the “acceptance of responsibility” setting below is the one exception). Even if you run both XAUUSD-M15 and XAGUSD-M15 on the same terminal, each is saved to its own separate file, so you can run different lot sizes, allowed spreads, and so on per chart.
5-1. I Understand and Accept Full Responsibility (ACCEPT)
- Until you click this button and it turns green ([Done]), no new real orders will be placed at all (internal flag
g_userAcceptedRisk). - The state of this button is not saved to a file. Every time the EA restarts (terminal restart, changing the chart’s timeframe, re-attaching the EA, restarting MT5, etc.) it reverts to the un-accepted state. You must click it again every single time you resume operation.
5-2. Lot Sizing Method
- Fixed: always trades at the value entered in the “fixed lot size” field.
- % Risk: automatically back-calculates the lot size from your allowed loss percentage of account equity and that trade’s stop-loss width (as a price difference). The result is rounded to the broker’s minimum lot step and kept within the broker’s minimum/maximum lot range.
Note that this is the opposite way of thinking from a fixed lot. With a fixed lot, you decide the lot size first and the resulting loss amount follows from that; with % Risk, you decide the loss amount (as a %) you’re willing to accept first, and the lot size is back-calculated from it. The formula is as follows:
Loss tolerance = Account equity x Risk % SL distance = |Entry price - Stop-loss price| (varies trade by trade, based on the stop-loss width configured for that session) Lot size = Loss tolerance / (SL distance x Contract size)
Example: with account equity of ¥500,000, a risk setting of 1%, and an SL distance on this trade of $3.00 (for XAUUSD, per ounce) with a contract size of 100 ounces, the loss tolerance is ¥5,000, and the lot size is then determined after applying the necessary conversion (the prevailing JPY/USD exchange rate). The actual figures will vary with the USD/JPY rate and your broker’s contract specifications, so please treat this only as an illustration of the underlying approach.
- Because the distance to the SL changes trade by trade depending on the stop-loss width configured for that session, the same “% Risk” setting will automatically size the lot larger when the SL is close and smaller when the SL is far, every time. With a fixed lot, the lot size stays the same regardless of how the SL distance changes, so the real risk (loss amount) per trade will vary.
- The calculation is based on the account’s current equity, including floating profit and loss — not the balance fixed at the time of deposit. If floating or realized losses reduce equity, the next lot size will automatically shrink as well.
- The calculated result is always rounded down to the broker’s minimum lot step, so the actual loss amount will never exceed the configured percentage (it may come in under it).
5-3. Slippage
The allowed slippage (in points) used for both new-entry and exit orders.
5-4. Magic Number
The number this EA uses to identify the positions it opens and manages as its own. It used to be settable only on the EA’s “Inputs” screen, requiring the EA to be re-attached to change it — now, just like the lot size and slippage, you can change it directly on this panel, and the new value is saved to the chart’s own settings file.
If you run this EA on multiple timeframes or multiple charts for the same symbol at the same time, always set a different magic number for each chart (see also Chapter 10, item 1).
5-5. Hard Stop-Loss (Default: ON)
When ON, immediately after a new order fills, the EA places the virtual stop-loss price it manages internally as a real SL on the broker’s server as well. This means that even in an unforeseen event — your PC freezing, MT5 crashing, your internet connection dropping — the broker-side SL still caps your worst-case loss. Because this is the safer setting, we recommend leaving it ON unless you have a specific reason to turn it off.
5-6. Time-of-Day Filter (Bans 1–3)
The time windows configured here (in local time, based on MT5’s TimeLocal()) block new entries only. Setting a start time later than the end time (e.g., 22:00–03:00) makes it work as a window that spans midnight.
★ Important: Signals (such as ENTRY) still light up on the chart during a banned window, and the EA’s internal virtual position state continues to progress normally — only the real order placement is blocked. This means that, for exactly as many signals as fire during a banned window, you’ll see a signal appear with no order actually placed. Additionally, because the EA internally treats itself as holding a virtual position, the next signal won’t fire until that virtual position is closed — meaning you can miss one opportunity as a result. Please be aware of this as a design characteristic before using the filter.
Closing an existing position (OW determination, SL, SEC, etc.) still executes normally during a banned window. Only new entries are blocked.
5-7. Maximum Spread
When ON, if the spread (Ask − Bid) just before an order would be placed exceeds the configured value, that entry is skipped for the round. This guards against buying at a spike price during a sudden spread widening, such as right after a news release.
5-8. Daily Loss Cap
When ON, once that day’s (based on the server date) total realized P&L (closed profit/loss plus swap plus commission) falls to or below the configured amount (in account currency), all further new entries for that day are stopped.
★ Note: this daily realized-P&L tally resets to 0 on restart. The ON/OFF setting and the cap amount itself are saved to a file, but the counter for “how much have I lost today” is not. If you restart the terminal or the EA during the same day, that day’s tally resets, and trades that should have been blocked by the cap become possible again — please be careful.
5-9. Emergency Stop
Pressing the red button immediately closes all positions at market held by this EA (same symbol, same magic number) and stops any further new orders. Pressing it again releases the stop and resumes trading. This state is saved to a file, so the emergency-stop state persists across a restart.
5-10. [Extremely Important] Priority Between Input Parameters and Panel Settings
The EA’s “Inputs” screen contains Inp_LotSize, Inp_Slippage, Inp_MagicNumber, Use_TimeFilter, and Inp_Ban_Time1–3. These are only used as initial values for the Auto-Trading Settings Panel the very first time the EA is attached to that chart (when that chart’s dedicated settings file does not yet exist).
Once a settings file has been created even once (TNK_UserSettings_[symbol]_[timeframe number].dat — the symbol is used exactly as the broker reports it, suffix included, and the timeframe becomes a minute-based number such as 15 for M15; for example, XAUUSD-cd on M15 becomes TNK_UserSettings_XAUUSD-cd_15.dat), changing the Inputs values will no longer have any effect on the EA’s behavior. To change the lot size, slippage, magic number, or time filter, always operate the Auto-Trading Settings Panel at the bottom right of the screen directly.
“I changed the Inputs but nothing happened” is the single most likely support question. If you want to reset your configuration back to its initial state, delete the corresponding TNK_UserSettings_[symbol]_[timeframe number].dat file from the MQL5 > Files folder and then restart the EA.
★ This file is saved separately for every combination of symbol and timeframe. Even running XAUUSD-M15 and XAGUSD-M15 at the same time on one terminal, each keeps its own independent configuration (lot size, allowed spread, time filter, etc.), and changing settings on one chart has no effect on the other.
Chapter 6:Environment Settings Panel
This expands when you click the “Environment Settings” toggle button at the top of the chart. It’s a dedicated section for customizing display settings and the environment that the calculations are based on.
★Difference from the FX edition: in the GOLD edition, the reference time for session determination is fixed to London time (UTC+0), and there is no display-timezone selector (switching between 20 world regions) like the one found in the FX edition’s indicator. The time shown on the chart is always based on London time.
Other Customization
- Background color: [Dark] / [Light] — optimizes the color palette of the panels and signals (arrows and text) to match your chart’s background color.
- Language: [English] / [Japanese] — instantly switches all text within the panels, as well as the language used for notifications (alerts).
- Onion Zone shading: [OFF] / [Light] / [Dark] — chooses whether to highlight the high-edge “Onion Zone” (the band-expansion period) with colored shading on the chart.
External Communication and Data Management (Action Buttons)
- Fetch Past Bars: opens a dedicated download dialog (a bar-count selection screen) when clicked. It forcibly loads any missing history data so that past performance can be calculated accurately (see Chapter 3).
- Save Settings: writes the spread, theme, language, and other settings you changed in the panel to a local file.
★The “Check Recommended Parameters” button found in the indicator edition’s Environment Settings Panel is not shown in the System Trade Edition (see Chapter 2, Section 2-4).
Chapter 7:If You Want to Customize the Logic Parameters (Using a User Settings File)
The System Trade Edition does not include a panel — like the “Parameter Panel” found in the indicator edition — for adjusting the numbers behind the signal-detection logic itself on screen, such as the BB period, entry sensitivity, or stop-loss width. It’s built on the premise that you’ll run it with the bundled or downloaded recommended parameters as-is.
7-1. Load Order for Logic Parameters at Startup
Regardless of whether an on-screen panel exists, the EA internally loads logic parameters automatically, in the following priority order, every time it starts:
- If a user settings file (
TNK_Params_[symbol]_[timeframe number].csv) exists in theMQL5 > Filesfolder, it is loaded with top priority. - If no user settings file exists, the recommended-parameter file (
TNK_Recommended_[symbol]_[timeframe number].csv) is loaded. - If neither file exists, the EA falls back to the built-in default values.
Because no user settings file exists right after installation, the EA always starts from either 2 or 3 above — that is, with the recommended parameters applied. This priority order is the same as in the indicator edition.
7-2. The System Trade Edition Alone Cannot Create a User Settings File
The load order is shared with the indicator edition, but because the System Trade Edition has no Parameter Panel, this EA alone cannot create or save a new user settings file. To customize the logic parameters to your own preference, use the method below instead.
7-3. How to Load a User Settings File Created in the Indicator Edition
- Temporarily attach the sister indicator product (Pro, etc.) to a chart with the same symbol and timeframe as the System Trade Edition.
- Adjust the numbers in the indicator edition’s Parameter Panel and click “Save Parameters.” This saves
TNK_Params_[symbol]_[timeframe number].csvinto theMQL5 > Filesfolder on the terminal where the indicator edition is running. - This filename is determined only by the symbol and timeframe, and contains nothing that identifies the edition. So, if you run the System Trade Edition on the same terminal (the same MT5’s Files folder), this user settings file will automatically be picked up the next time the EA starts or restarts. If you’re running the System Trade Edition on a different terminal, copy this file into that terminal’s
MQL5 > Filesfolder.
★The symbol portion of the filename is determined by extracting only the uppercase letters from the symbol name (e.g., XAUUSD-cd on M15 becomes TNK_Params_XAUUSD_15.csv). For symbols where the broker’s suffix includes uppercase letters, the name can shift, so always use the exact same symbol name and timeframe in both the indicator edition and the System Trade Edition when saving and loading.
★This method simply uses the standard save-file format and load logic exactly as designed. No special file tampering or source-code modification is required.
Chapter 8:Notifications (Push Notifications)
The entry and exit signals that appear on-screen in Band Walk Alert TENKYO GOLD System Trade can be pushed to your phone as notifications.
8-1. Preparation on Your Phone (Finding Your MetaQuotes ID)
Find your MetaQuotes ID, which serves as the “address” push notifications are sent to.
- Launch the mobile MT5 app.
- Open the settings menu (on iPhone: tap “Settings” at the bottom right; on Android: open the hamburger menu at the top left and choose “Settings”).
- Tap “Chats and Messages” (or “Messages”).
- Note down or copy the “My MetaQuotes ID: [8-character alphanumeric string]” shown at the bottom of the screen. Note: this ID can change if you reinstall the app, so check it again if notifications stop arriving.
8-2. Configuration on Desktop MT5 (Enabling Notifications)
- Launch desktop MT5 and click “Tools” → “Options” in the top menu.
- Select the “Notifications” tab.
- Check “Enable Push Notifications.”
- Enter the 8-character ID you found in 8-1 into the “MetaQuotes ID” field.
- Click the “Test” button on the right of the ID field — setup is complete once a “Test Message from [PC name]” notification arrives on your phone.
8-3. Types of Events That Are Notified
- Expansion/No Entry: notifies you when the “warning sign” that a band has expanded is detected, or when an entry is skipped because conditions weren’t met.
- Entry (LONG/SHORT): notifies you the instant the statistical edge is confirmed and the entry arrow actually lights up. In the System Trade Edition, this is sent at the same moment the actual new-order signal fires.
- Exit: notifies you the instant a trade is closed (OW, SL, SEC, FAIL, etc.). In the System Trade Edition, this is sent at the same moment the actual exit signal fires.
★ Note: a notification is purely a notice that “a signal occurred” — it does not indicate whether that round’s order actually succeeded (whether it failed due to insufficient margin, a requote, etc.). If order placement fails, an “Order Failed” panel appears at the bottom right of the chart (see Chapter 11).
Chapter 9:Dashboard and Trade History Panel
9-1. Dashboard (Note: This Is “Virtual Simulation Performance”)
The statistics dashboard shown at the top left of the chart calculates the “full performance of virtual trades” in real time over a specified aggregation period, serving as a monitor for objectively evaluating how effective your settings are. These are numbers calculated by applying the logic, for the specified period, to past data — they are a separate thing from the actual profit and loss this EA has produced through auto-trading.
Display and Function Control via Toggle Buttons
- [Dashboard Show/Hide] button: toggles whether the dashboard panel itself is shown or hidden.
- [Notifications: ON/OFF] button: the “master switch” for every alert (Chapter 8) the system sends out.
Choosing the Aggregation Period
Six period buttons — “1 Week,” “1 Month,” “3 Months,” “6 Months,” “1 Year,” and “2 Years” — appear at the bottom of the dashboard as an exclusive selector for the aggregation period (the default is “6 Months”). Whatever period you choose here also applies to the Trade History Panel and the CSV export described in Section 9-2.
Performance Metrics Explained
Nine statistics are displayed, based on the trade results within the aggregation period (shown in silver just below the title). Unlike the FX edition, monetary indicators are displayed in “$” (a dollar-denominated price difference) rather than “pips.”
| Metric | Description |
|---|---|
| Total Trades | The total number of trades made within the specified period. To ensure statistical reliability, treat the numbers with caution unless there’s a sample of at least 100 trades. |
| Profit Factor | Calculated as “total profit ÷ total loss,” this is the headline metric for evaluating the system. A value of 1.0 means breakeven; 1.5 or higher indicates a logic strong enough to “really compete.” It isn’t meaningful when trade count is low. |
| Net Profit ($) | The final net profit remaining after subtracting total losses from total profits across all trades. This is calculated as a realistic figure with the configured or measured “spread” already deducted. |
| Max Drawdown ($) | The “deepest valley,” representing the largest decline from a previous peak in the equity (cumulative P&L) curve. The smaller this number, the more consistently the equity curve has trended upward. |
| Drawdown Ratio | Shows what percentage the max drawdown represents relative to the peak of the equity (cumulative P&L) curve (formula: max drawdown ÷ peak equity × 100). |
| Expectancy ($) | The expected value of how many dollars of profit (or loss) you can expect, on average, per trade (formula: net profit ÷ total trades). |
| Wins / Losses | A breakdown of trades that ended in profit (wins) versus trades that ended in a loss (losses). |
| Avg. Win/Loss ($) | Shows the average amount gained per winning trade side by side with the average amount lost per losing trade — a metric for checking your so-called “risk-reward” balance. |
9-2. Trade History Panel (Detailed Verification of Virtual Trades)
This panel expands when you click the “Trade History” toggle button at the top right of the chart. It lists the full history of virtual trades made within the period selected in Section 9-1, giving you an analysis tool for verifying “at what point, and for what reason” each trade closed under your configured parameters.
Reading the Trade History List
Up to 60 rows (per page) of history data are shown, newest first, laid out in a monospaced font (header: TIME TYPE ENTRY EXIT PIPS REASON — in the GOLD edition, the PIPS column is likewise shown as a dollar-denominated price difference). Text is color-coded between winning and losing trades.
- TIME: the date and time the trade was closed
- TYPE: LONG (buy) or SHORT (sell)
- ENTRY / EXIT: the entry price and exit price
- PIPS: the profit/loss for that trade (a dollar-denominated price difference)
- REASON: the logical basis for why the trade ended (SEC = small-profit exit / SL·TSL = the initial stop-loss or the temporary stop-loss used in Scramble mode / OW1–OW4 = a logical exit that determined the trend had ended / FAIL = an exit to avoid a false break)
Scrolling and Navigating the List
When there are more than 60 records, the [-] / [+] buttons at the top of the panel let you page back through past data. [-] scrolls to older history, [+] scrolls to newer history, and pressing the same button again stops the scroll. The [Jump to Latest] button returns you to the top of the list (the most recent trade history) in one click.
Exporting a Performance Report to CSV
Clicking the green “Export” button generates a CSV file containing all data for the period currently selected in Section 9-1. The top of the file contains a performance summary (profit factor, net profit, max drawdown, etc.), followed by the detailed history of every trade (time, direction, price, P&L, exit reason). The file is saved not to the “Common” folder but to that chart’s own MQL5 > Files folder, with a filename determined only by the symbol and timeframe, e.g. TNK_Report_XAUUSD_15.csv.
★ Note: the filename does not include a timestamp. Clicking “Export” again for the same symbol and timeframe will overwrite the previous CSV file. If you want to keep more than one export, rename the file yourself each time before exporting again.
9-3. Your Real Positions and P&L Are Found Elsewhere, Not on the Dashboard
The dashboard and trade history panel above are purely a virtual simulation. Check the “Open Real Positions” panel at the bottom right of the screen for information about the positions you actually hold (entry time, entry price, current floating P&L, etc.). Check the “Account History” tab in MT5 for the official record of your actual trading profit and loss.
Chapter 10:Important Notes for Safe Operation
- Managing magic numbers: if you run this EA on multiple timeframes or multiple charts for the same symbol at the same time, always set a different magic number for each chart (Chapter 5, Section 5-4). If you open two or more charts with the same symbol and the same magic number, one chart may misidentify the other’s position as “its own,” which can cause new entries to fail to be blocked correctly, or trigger unintended duplicate exit processing.
- The Auto-Trading Settings Panel is independent per symbol and timeframe: as described in Chapter 5, Section 5-10, lot settings, the time filter, the emergency-stop state, the daily loss cap, and so on are saved to a separate file for each combination of symbol and timeframe. Even when running multiple charts on the same terminal, a settings change on one chart never affects another. The flip side of this is that if you want to trigger an emergency stop for a given symbol, you must press the emergency-stop button on that chart individually — it is not automatically linked to other charts.
- The acceptance-of-responsibility flag resets every time the EA starts: you must click the “accept” button in the Auto-Trading Settings Panel again every time the terminal restarts, the EA is re-attached, or the timeframe is changed. If you’re running on a VPS and it restarts unexpectedly, periodically check whether the acceptance has been cleared and auto-trading has stopped.
- The daily loss cap’s counter resets on restart: as described in Chapter 5, Section 5-8, the daily realized-P&L counter returns to 0 when the terminal restarts, etc. Be careful when combining this with a VPS’s automatic restart settings.
- Signals still fire and internal state still progresses during a banned time window: as described in Chapter 5, Section 5-6, this can cause you to simply miss an opportunity, since only the real order is blocked.
- We recommend leaving the hard stop-loss ON as a general rule: turning it OFF removes the broker-side protection if the EA or MT5 stops running, creating a risk of unlimited loss.
- This EA will not work on symbols other than XAUUSD and XAGUSD: it is dedicated exclusively to gold and silver. If you accidentally attach it to a chart for any other symbol, a warning dialog will appear and normal calculation and order placement will not occur.
Chapter 11:Handling Order Errors (Troubleshooting)
If an “ORDER FAILED” panel appears at the bottom right of the screen, the following are the typical causes.
| Situation | Likely Cause / Fix |
|---|---|
| Server not connected | MT5 is not connected to the broker’s server. Check your connection and login status. |
| Trade timeout / broker busy / requote | The connection or execution environment is unstable. Wait a while, or review your slippage setting (Chapter 5, Section 5-3). |
| Invalid stop price (below the broker’s minimum distance) | The SL the EA tried to set is closer to the current price than the broker’s required “minimum stop distance.” Review your stop-loss width setting. |
| Invalid lot size | The lot size calculated by the % Risk method may be outside the broker’s minimum/maximum lot range. Review your risk % setting. |
| Insufficient margin | Your account doesn’t have enough margin for the lot size. Review your lot size / risk % settings. |
| AutoTrading not allowed | Either the “AutoTrading” button at the top of MT5 is OFF, or “Allow live trading” is unchecked on the EA’s “Common” tab (double-check Chapter 2, Section 2-3). |
| Market closed | It’s outside trading hours — a weekend, a holiday, etc. |
If only a numeric error code is displayed, look up that code in the MQL5 standard return-code list (MetaQuotes’ official documentation).
“M1 Data Fetch Was Interrupted” Message
This isn’t an order error, but we include it here because it’s an extremely common support question. In 99% of cases, the cause is that “Max bars in chart” from Section 3-0 hasn’t been set to unlimited. Change it to “Unlimited” under Tools > Options > Charts, restart MT5, and re-attach the EA to the chart. The data does exist on the broker’s server — this isn’t a server-side data problem.
Chapter 12:Disclaimer
By using this software, “Band Walk Alert TENKYO GOLD System Trade,” the user is deemed to fully understand and agree to the following.
- On the uncertainty of operation: due to market conditions, network environment, changes to the MT5 platform’s specifications, VPS malfunctions, and similar factors, this EA may exhibit unexpected behavior — failing to enter as intended, failing to exit at the moment it should, or leaving a position unattended. These are either a matter of the program’s design or force majeure, and the author bears no obligation whatsoever to fix or compensate for any resulting opportunity loss, floating loss, forced margin call, or other damages.
- On bugs and defects: being software, it may contain latent bugs or design flaws. Users must run it accepting the risk of “loss caused by a bug.” Providing bug fixes or updates is entirely at the author’s discretion, and is not a commitment to respond immediately to any user’s request.
- Full responsibility for losses: any and all losses incurred through the use of this EA are 100% the user’s own responsibility. The author bears no responsibility whatsoever, under any circumstances, for any reason. Regardless of the scale or cause of the damage, the user is strictly forbidden from pursuing any claim for damages, refund, or complaint against the author, including on moral grounds.
- Full self-management: lot sizing, risk management (including configuration of the various safety features in the Auto-Trading Settings Panel), and the decision to continue or stop running the EA are entirely the user’s responsibility. Be aware that any outcome resulting from leaving this EA unattended is the result of the user’s own choice.
- Copyright and prohibited actions: all copyright in this software and manual belongs to the author. Regardless of the reason, unauthorized reproduction, duplication, distribution, resale, lending to a third party, and analysis of the source code (such as reverse engineering) are strictly prohibited.
The claim “I lost because it didn’t behave the way I expected” does not hold up in the world of investing. If you have even the slightest objection to this clause, you are prohibited from using this EA.