Overview
The "1-ONE MA SYSTEM" is a beginner-friendly, trend-following trading strategy coded in MQL5 for the MetaTrader 5 platform. For new traders, a trend-following strategy means we try to ride the direction of the market—up or down—by using a tool called a Simple Moving Average (SMA). The SMA is like a smooth line that averages past closing prices to help us spot the trend. In this strategy, we use a "21-period SMA", meaning it looks at the last 21 candles (price bars) on your chart to calculate this average. Our goal is to find buy and sell signals based on how the price moves compared to this "SMA" line and whether the "SMA" itself is moving up or down.
Strategy Rules
Buy Signal: We enter a buy trade (betting the price will go up) when two things happen:
The "21-period SMA" is rising, meaning the current "SMA" value is higher than the one before it, and that one is higher than the one before that—showing an upward trend over three bars.
The closing price of the previous candle (a candle is a visual block on your chart showing price movement over time) is above the previous "SMA" value, confirming the price is pushing upward.
Sell Signal: We enter a sell trade (betting the price will go down) when:
The "21-period SMA" is falling, meaning the current "SMA" value is lower than the previous one, and that one is lower than the one before that—showing a downward trend over three bars.
The closing price of the current candle is below the previous "SMA" value, confirming the price is dropping.
Key Components:
We rely on a "21-period SMA" calculated from closing prices (the final price of each candle).
We check the trend by comparing three "SMA" values in a row.
We confirm trades by looking at where the price sits compared to the "SMA".
Platform: This runs on MetaTrader 5, a popular trading software, using MQL5, its coding language.