Your strategy, brought to life
From a written strategy to your Expert Advisor.
Your rules are the starting point. See how ScripTrade turns a strategy into code you can download and test in MetaTrader 5.
Real generated code. Condensed replay of the product interface.
Describe your rules
Explain when to enter, when to exit and how to manage positions. Start with the strategy you have in mind.
Generate your code
ScripTrade writes the MQL5 code and runs its compilation and review checks.
Download and test
Take your Expert Advisor to MetaTrader 5 and test it on your broker’s instruments and data.
Inside this example
Four ETFs. One clear set of rules.
Inspired by Meb Faber’s monthly timing model, this example decides when to hold each ETF and when to stay in cash. It shows how written rules become an executable algorithm.
Generated. Compiled. Executed.
The code in this example compiled without errors and ran in the MetaTrader 5 Strategy Tester.
Explore the strategy rules
Each month, compare the last closed price with its ten-month moving average, including that month. Hold above the average; stay in cash below it. Equality retains the previous state.
Each active sleeve has a fixed 25% weight. Inactive sleeves stay in cash, without redistribution. Long-only, monthly rebalancing and explicit exposure limits.
Symbols: CSPX.UK, EIMI.UK, ITPS.UK and IUKP. US equities, emerging equities, inflation-linked bonds and UK property. Available symbols vary by broker. This is a four-ETF adaptation of the author’s original model.
Read the author’s model ↗About the verification
The final source compiled independently in production and native MetaEditor, with zero errors and warnings. It executed in the native MT5 tester over 2025, using one-minute OHLC data without parameter optimization.
These checks establish compilation and the monthly behavior of this example. They do not certify profitability or every broker and operating condition. The video condenses the generation and review process, showing the initial brief and the final corrected source.
Your next strategy starts here.
Create your Expert AdvisorReview the generated code and broker-specific settings, then test on a demo account before live use.
