Skip to main content
forex
trading-system
testing
strategy

Forex Trading System: Creation and Testing

How to develop your own Forex trading system from scratch: choosing a strategy, formalizing rules, backtesting, and evaluating results.

Sliceback Team
4 min

A trading system is a set of clearly formulated rules that define all aspects of trading: when to enter, when to exit, and what volume to trade. Having a system is what distinguishes a trader from a gambler. Here is how to create your own from scratch.

Why You Need Your Own System

Many beginners buy third-party trading systems or signals. This rarely works long-term for several reasons:

  • Without understanding the logic behind the system, a trader cannot improve it or adapt it to changing conditions.
  • Someone else's system might not match the trader's psychological profile—an aggressive approach with many trades doesn't suit everyone.
  • The market is constantly changing, and only a trader who understands the principles can adapt the approach in a timely manner.

Step 1: Define the Core Idea

Every trading system is built around one or more market anomalies or patterns. Examples of core ideas:

  • Trend Following: Buy when the market is rising; sell when it is falling.
  • Mean Reversion: Trade against extreme deviations from the average price.
  • Level Breakouts: Enter upon the breakout of significant support/resistance zones.
  • Price Action Patterns: Trade based on recurring candlestick or chart models.

Choose an idea that aligns with your understanding of the market and build the system around it.

Step 2: Formalize Entry Rules

An entry rule must be so clear that two different traders looking at the same chart would reach the same conclusion: whether to enter or not.

Example of a poor rule: "Buy when the market looks bullish."

Example of a good rule: "Open a long position when: (1) the price is above the 50-day EMA, (2) the RSI crosses above the 50 level from below, (3) the last 3 H4 candles closed higher than the previous one."

Step 3: Define Exit Rules

Exit rules are just as important as entry rules. They include:

Stop Loss — the maximum allowable loss per trade. The stop must be logically justified (behind a level, beyond an ATR barrier), not chosen arbitrarily.

Take Profit — the profit target. The risk-to-reward ratio should be no worse than 1:1.5. Professionals often work with a ratio of 1:2 or higher.

Trailing Stop — to capture extended moves in trend-following strategies.

Signal-based Closing Conditions — for example, closing a position if an opposing signal appears.

Step 4: Define Money Management Rules

Position sizing is one of the most underrated elements of a system. A classic approach:

Fixed Percentage Risk: Determine what percentage of your deposit you are willing to risk in a single trade (usually 1–2%). Based on this and the distance to the stop loss, the lot size is calculated.

Example: Deposit $2,000, risk 1% = $20. Stop distance is 20 pips, pip value for 0.1 lot = $1. Therefore, you trade 0.1 lot.

Step 5: Historical Data Testing (Backtesting)

Once the rules are formalized, you need to check if the system worked in the past. This is called backtesting.

Manual Backtest: Scroll through historical charts and record every hypothetical trade according to the rules. This method is labor-intensive but provides a deep understanding of the system's behavior.

Automated Backtest: In MetaTrader, you can run an Expert Advisor (EA) on historical data. It provides fast results but requires programming skills.

What to Evaluate in Backtest Results:

  • Expectancy — the average profit per trade.
  • Win Rate — does not necessarily have to be high. Systems with a 1:3 ratio can be profitable with a 40% win rate.
  • Maximum Drawdown — the largest peak-to-trough decline in capital. A psychologically comfortable level is up to 20%.
  • Number of Trades — you need at least 100–200 trades for statistical significance.
  • Testing Period — preferably 3–5 years, covering different market conditions: trends, ranges, and crises.

Step 6: Forward Testing

After a successful backtest, run the system on a demo account in real-time for 2–3 months. This allows you to check if the system works in current conditions and how accurately you follow the rules.

Typical Pitfalls in System Creation

Over-optimization (Overfitting): If you tweak parameters too precisely to fit historical data, the system will work perfectly in the past but fail in the future. Parameters should be "robust" rather than fitted to every historical case.

Too Many Filters: Every additional filter reduces the number of trades. A system with 10 entry conditions will trade once every three months, which is insufficient for statistical reliability.

Ignoring Commissions: Backtesting must account for spreads and swaps; otherwise, the results will be unrealistically optimistic.

Conclusion

Creating a trading system is an iterative process. The first version is rarely perfect. Test, improve, and test again. The most important thing is to never trade without rules and never break the rules you have already established.

Ready to start earning?

Create a free account and get cashback on every trade

Get Started