Home / Open questions / Can I perform a backtest on the…
Open question NOT YET CONFIRMED

Can I perform a backtest on the 50-week moving average using AmiBroker?

AmiBroker can be used for backtesting various trading strategies, including those involving moving averages.

Why this isn't answered outright

Traders keep asking this, but our backtests and cited sources don't (yet) settle it. Rather than invent a number or a verdict, here's what's actually known and what isn't.

Using AmiBroker for Backtesting

AmiBroker is a powerful tool for backtesting trading strategies across various assets. It supports a wide range of indicators, including moving averages. To perform a backtest on the 50-week moving average (MA), you would typically need to write a specific trading strategy script in AmiBroker's AFL (AmiBroker Formula Language).

The 50-week moving average can be calculated using the 'MA' function in AFL. The backtest can then be configured to buy or sell based on the price crossing above or below this moving average, depending on your strategy.

Considerations for Backtesting

When backtesting with the 50-week MA or any other indicator, it's important to consider factors such as the time frame of your data, the assets you are testing, and the parameters of your trading strategy. Ensure that your data is clean and that you are using a sufficient sample size to validate your strategy effectively.

Resources for Learning AFL

If you are new to AmiBroker or AFL, there are numerous resources available online, including forums, tutorials, and documentation provided by AmiBroker. These resources can help you learn how to implement your backtesting strategy effectively.

Not financial advice

This is general, educational information — not investment, trading, tax, or financial advice, and not a recommendation to buy or sell anything. Any figures come from our own hypothetical backtests (standard settings, realistic costs, with an out-of-sample check); past results do not guarantee future returns. Trading involves risk of loss. Verify everything yourself and consult a licensed professional before acting. See the methodology and full disclaimer.

Free · no spam

Get the weekly edge report

The best-performing indicator per asset, what changed this week, and the honest caveats — straight to your inbox.