MT5 Expert Advisor · US100 and US500 · daily bars · Version 1.00 · November 2026
Trading leveraged products carries a high level of risk. No profit or return is promised.
This is the user manual for Tidewater 1.00, a MetaTrader 5 Expert Advisor that buys short pullbacks in a rising US index. The two set files (Standard, Conservative) are attached at the bottom of this post.
Product page: Tidewater.
Contents: 1. What Tidewater is · 2. Requirements and account size · 3. Installation · 4. How it trades · 5. The dashboard and the chart · 6. Inputs · 7. Set files · 8. Testing in the Strategy Tester · 9. Troubleshooting and FAQ · 10. What it is not · 11. Risk warning
1. What Tidewater is
Tidewater trades one rule on the daily bars of US100 (NAS100) and US500 (SP500). It buys when the index is above its 200-day average and RSI(2) has dropped below 15, and it sells when RSI(2) is back above 70, after 10 days, or at the stop. It is long only and holds one trade per chart.
| Symbols | US100 / NAS100 and US500 / SP500 (others only if you allow them) |
|---|---|
| Chart | Any timeframe; it reads daily bars. D1 recommended |
| Decisions | Once a day, at the first price of the new daily bar |
| Trades | About one a month per index, held for days |
| Stop loss | 3 × ATR10 (daily), set on every order |
| Not used | Grid, martingale, averaging, hedging, short selling |
2. Requirements and account size
- MetaTrader 5. Tested on a hedging account. It holds one position per chart, so a netting account should work too; netting is untested.
- A US100 or US500 symbol. The name must contain NAS100, US100, USTEC, USTECH, NDX, NQ100, NASDAQ, SP500, US500, SPX, S&P or USA500. On any other symbol the dashboard says "IDLE - not US100/US500" until you set Allow symbols other than US100/US500 = true.
- Daily history. At least 200 daily bars for the 200-day average.
- Uptime. Decisions happen at the daily open of the index, so the terminal must run then. A VPS is recommended.
Account size. The lot size is your risk divided by the stop distance, rounded down to the broker's lot step. The stop is wide (3 × ATR on daily bars), so on small accounts even the minimum lot can risk more than your setting. Tidewater then trades the minimum lot only if it risks no more than Min-lot risk multiple × your risk (3 × 1% = 3% with the Standard set). Otherwise it skips the trade and says so in the Experts log.
To use Tidewater on an account below that size anyway, raise Min-lot risk multiple (for example to 10). Each trade can then risk more than your risk setting, so do this knowingly. Contract sizes differ between brokers, so check the first trades on a demo account.
3. Installation
- Get Tidewater from the MQL5 Market inside MetaTrader 5 (Toolbox > Market). It appears under Navigator > Expert Advisors > Market.
- Download the two set files attached to this post into the terminal's MQL5\Presets folder (File > Open Data Folder).
- Open a US100 chart, set it to D1, and scroll back once so the daily history loads.
- Drag Tidewater onto the chart. On the Inputs tab press Load and pick a set file, then OK.
- Press Algo Trading in the toolbar so it turns green.
- Check the dashboard: the state (WATCHING or BELOW TREND), your symbol and the trend row.
- For US500, repeat steps 3 to 6 on a US500 chart.
Tidewater only manages its own trades (magic number 770041, per symbol), so it can run beside other EAs.
4. How it trades
- Trend. At each new daily bar it checks the last closed bar: its close must be above the 200-day simple moving average.
- Signal. RSI(2) of that close is below 15.
- Checks before the order. The market is open, the spread limit (if set) is met, the stop is outside the broker's stop level, the lot passes the min-lot and volume-limit checks, and there is enough free margin.
- Order. A market buy with a stop loss 3 × ATR10 below the entry. There is no take profit on the order.
- Exit. At the next daily open after RSI(2) closes above 70, or after 10 completed daily bars (the entry day not counted), or at the stop.
- Guards. It never exits and re-enters on the same bar. After a stop-out it does not buy at the next open. After a restart it makes no second decision for a bar it has already traded.
All decisions use the last closed daily bar and wait for the first price inside the trading session. If a close fails, it is tried again on the next price.
5. The dashboard and the chart
| Row | What it shows |
|---|---|
| State (top right) | WATCHING, BELOW TREND, IN TRADE, PAUSED, MARKET CLOSED, ALGO OFF, or IDLE - not US100/US500 |
| Trend | Above: dips allowed, or Below: no new trades |
| RSI(2), last close | The value, with the buy (15) and exit (70) levels |
| Next daily decision | Time until the next daily bar |
| Open trade | Lots, current R and profit including swap |
| Held (time stop) | The day of 10 |
| Stop | The 3 × ATR distance below the entry |
| Risk per trade | The risk setting |
| Last action | The last buy, close or skipped signal |
| Track record | Tidewater's closed trades on this symbol: count, win %, total R |
Buttons. Pause new entries skips new signals; an open trade keeps its stop and exit rules. Close trade closes Tidewater's open trade after a second click within 3 seconds.
On the chart. The 200-day average as a teal line over the last year. With Tidewater chart look on, the chart gets a black background, teal and graphite candles, day separators, no grid and tick volume. Your own chart look comes back when you remove Tidewater.
6. Inputs
| Input | Default | Meaning |
|---|---|---|
| RSI period (D1) | 2 | The RSI of daily closes |
| Buy when RSI is below this | 15 | Entry level |
| Trend filter: close above this SMA | 200 | 0 switches the trend filter off |
| Wait for spread <= this many points | 0 | 0 = off; otherwise waits at the open until the spread is low enough |
| Exit rule | RSI | RSI above the exit level, or close above the exit SMA |
| RSI exit level | 70 | For the RSI rule |
| SMA for the SMA exit rule | 5 | For the SMA rule |
| Time stop | 10 | Completed daily bars after the entry day |
| ATR period for the stop (D1) | 10 | |
| Stop, x ATR below the entry | 3.0 | Stop distance |
| Risk per trade, % of balance | 1.0 | On the stop distance |
| Min-lot risk multiple | 3.0 | Small-account rule (Section 2) |
| Maximum lot size | 50 | Upper limit |
| Slippage, points | 100 | Market order deviation |
| Allow symbols other than US100/US500 | false | Trade another symbol anyway |
| Show the dashboard / Draw on the chart / Tidewater chart look | true | Display options |
| Dashboard left / top offset | 10 / 26 px | Panel position |
| Magic number | 770041 | Change only if another EA uses it |
| Order comment | Tidewater | Shown on the orders |
The rule inputs (RSI, SMA, ATR, stop, exits) are the designed values. Changing them gives a different strategy.
7. Set files
| Standard | Conservative | |
|---|---|---|
| Risk per trade | 1.0% | 0.5% |
| Stop | 3 × ATR10 | 3 × ATR10 |
| Exit | RSI(2) above 70 | RSI(2) above 70 |
| Time stop | 10 days | 10 days |
| Min-lot risk multiple | 3 | 3 |
Both files are attached below. Load the same set on both index charts. The two indices often signal on the same day, so with both charts running your total risk can be twice the setting.
8. Testing in the Strategy Tester
- Expert: Tidewater. Symbol: your broker's US100 or US500. Period: D1.
- Modelling: 1-minute OHLC or real ticks. Inputs: load a set file.
- Start the test at least 200 daily bars after the start of your broker's history.
- In the tester Tidewater trades the chart symbol.
- If your broker's older history has only daily bars, those years can show no trades: the EA waits for a price inside the trading session, and such history has none. Start the test where intraday history begins.
9. Troubleshooting and FAQ
| What you see | Why | What to do |
|---|---|---|
| IDLE - not US100/US500 | The chart symbol is not a US index name | Attach to your broker's US100 or US500, or allow other symbols |
| ALGO OFF | Algo Trading is off | Press Algo Trading; tick Allow Algo Trading in the EA's settings |
| BELOW TREND for weeks | The index is under its 200-day average | Normal: Tidewater only buys in an uptrend |
| No trade for weeks while WATCHING | RSI(2) has not closed below 15 | Normal: about one trade a month per index |
| "skip: the minimum lot … would risk …" in the log | Account too small for the wide stop | Larger account, or raise the Min-lot risk multiple (more risk) |
| A trade open for many days | It waits for RSI(2) above 70 | The time stop closes it after 10 days |
Can it trade other symbols? Only with Allow symbols other than US100/US500 on. The rule is made for US stock indices.
Does it use martingale or grid? No. One trade per chart, each with its own stop loss.
Why no take profit? The exit is the RSI rebound, checked once a day, not a fixed price.
Is there a news filter? No.
10. What it is not
- Not for other markets: the rule is US-index specific.
- Not active in downtrends: below the 200-day average it waits, sometimes for months.
- Not frequent: about one trade a month per index.
- Not free of costs: overnight swap is charged on every night a trade is held.
- Not a promise: losing trades and losing years happen.
11. Risk warning
Trading index CFDs carries a high level of risk and can lose money quickly. Depending on your broker, losses can exceed your deposit. No profit or return is promised.
Results on your account depend on your broker, spread, swap, execution and account size. Trade only money you can afford to lose, and run Tidewater on a demo account first. Tidewater is a trading tool, not investment advice.


