Try a trading setup in seconds, then trade it from the same screen
Testing a combination of trading systems usually takes an afternoon. You set the inputs, run the Strategy Tester, write down the result, change one thing and run it again. If you want to compare a dozen mixes at different sizes, it takes days, and by then you have stopped asking "what if".
Index Lab is built around one idea: you should be able to try a setup in seconds, see what it would have done, and trade it from the same screen. It is an Expert Advisor for the large US stock indices (Nasdaq 100 and S&P 500). Its main screen is not a status line but a lab.
The lab on a Nasdaq 100 chart with two systems on. The replay on the chart is not a forecast. Screenshot from the Index Lab MT5 product page.
The building blocks
The EA comes with four systems. You decide which ones run and how much each one gets:
- Systems A, B and C buy short dips of the index a few minutes before the New York close and sell on the first strength. They are different, partly overlapping entry rules.
- System D is a short position for one session a month. It trades on days when the dip systems usually do not.
The rules inside each system are fixed and tested. What you design is the mix.
Mix, look, change, look again
Everything happens with the mouse, on the chart, and the picture updates as you click:
- Switch systems on and off. Click A, B, C or D. Fifteen combinations are one click apart.
- Choose how the size is shared. Give every system the same size, give them one shared budget, or use the polygon: the systems are its corners, and you drag a point between them. Near a corner, that system keeps the full size and the others get less. Moving the point is the quickest way to feel how much each system adds.
- Set the leverage. Drag the slider, or use the Conservative, Balanced and Aggressive buttons.
All four systems mixed with the polygon. The setup is not traded until you press Apply. The replay on the chart is not a forecast. Screenshot from the Index Lab MT5 product page.
With every change, the lab replays the setup on your broker's own history and shows:
- the equity curve, with the index itself for comparison,
- the drawdown under it,
- the return a year, the worst drawdown, the worst year and the time in the market,
- for the whole history, the last 5 years or the last 2 years.
So the question "what if I add system D and take a little less leverage?" takes a few seconds, not a test run.
Tools that answer the harder questions
- Limits on the chart. Two fixed grey lines show the extremes of all 15 combinations at the same size: the one with the highest return and the one with the lowest drawdown. You always see where your setup sits between them.
- Risk curve. The worst drawdown at every leverage from 0.1x to 6x, including the point where the account would have been wiped out. Click or drag on the curve to pick the leverage. It shows at a glance how quickly risk grows with size.
- Auto. Instead of trying combinations by hand, set a goal and let the lab search. It switches systems on and off in rounds and keeps a change only if it helps. The goals: return and drawdown both better; the highest return under your drawdown limit; the lowest drawdown for your target return; or the best ratio of the two. Auto learns on the history without the last 12 months and then shows those months separately, as a check on data it has not seen.
Auto with a drawdown limit, and the last 12 months shown separately as a check on data it has not seen. The replay on the chart is not a forecast. Screenshot from the Index Lab MT5 product page.
From the lab to the market, in one click
Experimenting never touches your trading. When the lab shows something you want to trade, press Apply. The button turns green when there is something to apply, and only then does the EA trade the new setup. There is no second window and no input dialog to fill in.
- Presets: save up to five setups (systems, sizing, polygon point, leverage) and switch between them with one click. They are shared by all charts in the terminal, so you can keep a careful setup and a bolder one side by side.
- TRADING ON / OFF: a switch in the title bar stops or allows new positions at once. Open positions still close by their own rules.
Under the hood
- The EA builds the bars of the regular New York session (09:30 to 16:00) from M5 bars, whatever your broker's server time is. The dip systems decide 2 minutes before the cash close: exits first, then entries, as market orders.
- The size comes from equity × leverage × the system's weight. Before every order the EA checks the volume step, the lot limits, the volume limit and the free margin.
- No grid, no martingale, no averaging. No stop loss by default; an emergency stop in % and a maximum number of sessions per trade are available as inputs.
- The replay in the lab is approximate (session bars, the current spread, no swap) and usually a little better than the Strategy Tester. Use the lab to compare choices and the Strategy Tester for the final check.
A word on risk
The lab makes risk visible; it does not remove it. The product page lists the Strategy Tester results. The one to keep in mind is S&P 500 with systems A + B at the Aggressive profile, January 2020 to November 2026: the maximum equity drawdown was 41.7 %, mostly in the crash of February and March 2020. A crash while positions are open is the main risk, and more leverage makes it larger. These are tests on one broker's data, not a forecast. Expect losing months.
S&P 500, Aggressive profile, January 2020 to November 2026, including the 2020 crash. Strategy Tester result from the product page, not a forecast. Screenshot from the Index Lab MT5 product page.
More systems to come
The four systems are the start. We plan to add more systems to the lab over time, so there are more building blocks to switch on, mix and compare in the same way.
Try it
Attach the EA to one chart of a Nasdaq 100 or S&P 500 CFD (USTEC, US100, NAS100, US500, SPX500 …), open the lab and start clicking. Try it first in the Strategy Tester and on a demo account with your broker's symbol, spreads and swaps. On MetaTrader 5 the product is Index Lab MT5; on MetaTrader 4, Index Lab MT4. Both versions use the same systems and the same inputs.
Questions and ideas for new systems are welcome in the comments on those pages, or by private message on MQL5.
Found a bug or something that doesn't work as described? Please message me on MQL5 (https://www.mql5.com/en/users/apprentice) and I'll fix it.
This post is educational and reflects my own views. It is not investment advice and not a recommendation to buy or sell any instrument or to use any leverage. Strategy Tester results and replays on past data do not predict future results. Index CFDs are leveraged products and can lose more than expected in a fast market. Always test on a demo account first and use your own risk rules.


![[XAUUSD]: Weekly Liquidity Activation Points (LAP), November 30-December 4, 2026 [XAUUSD]: Weekly Liquidity Activation Points (LAP), November 30-December 4, 2026](https://c.mql5.com/6/1059/splash-preview-782550.jpg)