Crown Pips
Menu

Your Crown Pips account

Log in to your dashboard or create your first account.

Strategy Lab

Moving Average Cross rules and sample replay

This five-bar study records when a closing price moves to the opposite side of its simple moving average.

Crown Pips · Reviewed

Walkthrough

  1. Calculate a five-close arithmetic mean for the previous candle, then again for the current candle with its own five-close window.
  2. Record a long study when the prior close was at or below its average and the new close is above its updated average.
  3. Record a short study for the mirror condition. A close staying on the same side or sitting exactly on its new average produces WAIT.

Worked example

For closes of 100, 100, 100, 100, 99 and 102, the penultimate close is below 99.8. The last close is above 100.2, producing an upward cross.

Replay the rule

Fictional M15 candles. Each decision uses only bars completed at that point.

  1. Bar 1 · WAIT · Close 103

    Need 6 completed bars including the decision bar.

  2. Bar 2 · WAIT · Close 101

    Need 6 completed bars including the decision bar.

  3. Bar 3 · WAIT · Close 102

    Need 6 completed bars including the decision bar.

  4. Bar 4 · WAIT · Close 101

    Need 6 completed bars including the decision bar.

  5. Bar 5 · WAIT · Close 100

    Need 6 completed bars including the decision bar.

  6. Bar 6 · WAIT · Close 101

    There was no new close across the five-bar average.

  7. Bar 7 · LONG STUDY · Close 104

    The close moved from at or below its average to above it.

  8. Bar 8 · WAIT · Close 103

    There was no new close across the five-bar average.

  9. Bar 9 · WAIT · Close 104

    There was no new close across the five-bar average.

  10. Bar 10 · SHORT STUDY · Close 100

    The close moved from at or above its average to below it.

  11. Bar 11 · WAIT · Close 102

    There was no new close across the five-bar average.

  12. Bar 12 · LONG STUDY · Close 103

    The close moved from at or below its average to above it.

  13. Bar 13 · WAIT · Close 110

    There was no new close across the five-bar average.

  14. Bar 14 · WAIT · Close 109

    There was no new close across the five-bar average.

  15. Bar 15 · SHORT STUDY · Close 102

    The close moved from at or above its average to below it.

  16. Bar 16 · WAIT · Close 99

    There was no new close across the five-bar average.

Open in the dashboard

In the Crown Pips Telegram bot, send /tactics average-cross 7 for this candle.

What to keep in mind

A short moving average can change direction repeatedly in a flat market. The research window of five bars is selected for this walkthrough.

Source & further reading
TradingView · MovingAvg Cross