Moving averages and trend
A moving average is a line that follows price and smooths it out. The simplest use of one is as a trend filter: it tells you which direction you are allowed to trade.
A line that shows the trend
A moving average takes the last so many closes and averages them, and does that again on every new candle. The result is a smooth line that trails behind price. An EMA, or exponential moving average, is a version that gives more weight to recent candles, so it reacts a little faster.
The number after it is how many candles it looks back over. A 200 EMA is slow and shows the bigger trend. A 50 EMA is faster. When price is above the line, the trend over that period is up. When price is below it, the trend is down.
How to find it on your chart
- Add the indicator
- Add "Exponential Moving Average (EMA)" from the Indicators list. It is free and built in.
- Set the length
- Set the length to 200. That is the one to start with.
- Read it
- Price above the line: the trend is up. Price below the line: the trend is down.
- Flat and tangled
- When the line is flat and price keeps crossing it, there is no trend. That is useful to know too.
Turning it into one rule
A concept is not a rule until you write it as one. Here are two ways to add this to your strategy. Pick one. Not both.
- Option A
- Only take longs when the breakout candle closes above the 200 EMA. Only take shorts when it closes below. Breakouts against the EMA are skipped.
- Option B
- The same rule with a 50 EMA. Faster, so it flips more often and removes fewer trades.
Write your version down in one sentence before you start, exactly as you will apply it. If you cannot write it as a clear rule, you cannot test it.
Does it make your results better?
A concept is only worth keeping if your own results say so. Test it the same way you tested the strategy.
- Make a new backtestName it with the concept, so you can tell it apart from your baseline.
- Change one thing onlySame coin, timeframe, window and rules as your baseline, plus this one rule. Nothing else.
- Run 100 tradesFrom a date you have not tested before. All the honest backtest rules still apply.
- Compare with your baselineTotal R, win rate, worst losing streak and trades per month, side by side.
- Keep it or drop itKeep it only if it is clearly better. If it is about the same, drop it. A rule that does nothing just makes the strategy harder to follow.
Things to watch for with this one:
- You will lose roughly the trades that went against the trend. Whether those were your winners or your losers is the whole question.
- Do not shop for the perfect length. Trying 20, 34, 50, 89, 100, 200 and keeping whichever looks best is over-optimising. Test 200. If you must, test one other.
Stuck on how to apply it? You can always ask Rehan. Open a free ticket in the Discord and show what you are testing.
Now it needs 100 trades.
Reading about a concept proves nothing. If you want to use it, write the rule, run the test, and let your results decide.