Crown Pips
Menu

Your Crown Pips account

Log in to your dashboard or create your first account.

Strategy Lab

Volatility Band Return rules and sample replay

This Crown Pips research variant looks for a close back inside a volatility envelope after the previous candle closed outside it.

Crown Pips · Reviewed

Walkthrough

  1. On each candle, take the average of the latest five closes. Place the bands 1.5 population standard deviations above and below that mean.
  2. Compare each closing price with the bounds calculated for that same candle. Require a strictly outside previous close and a current close strictly inside both bands.
  3. A return from below records a long study. A return from above records a short study. Flat bands, touches and jumps across the entire envelope produce WAIT.

Worked example

For closes of 100, 100, 100, 100, 90 and 99, the lower band for the fifth candle is 92. The close of 90 is outside. The next close of 99 is back inside its updated bands.

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

    A strictly outside close followed by a close inside both bands is required.

  7. Bar 7 · WAIT · Close 104

    A strictly outside close followed by a close inside both bands is required.

  8. Bar 8 · SHORT STUDY · Close 103

    The previous close was above its upper band. This close is back inside.

  9. Bar 9 · WAIT · Close 104

    A strictly outside close followed by a close inside both bands is required.

  10. Bar 10 · WAIT · Close 100

    A strictly outside close followed by a close inside both bands is required.

  11. Bar 11 · WAIT · Close 102

    A strictly outside close followed by a close inside both bands is required.

  12. Bar 12 · WAIT · Close 103

    A strictly outside close followed by a close inside both bands is required.

  13. Bar 13 · WAIT · Close 110

    A strictly outside close followed by a close inside both bands is required.

  14. Bar 14 · SHORT STUDY · Close 109

    The previous close was above its upper band. This close is back inside.

  15. Bar 15 · WAIT · Close 102

    A strictly outside close followed by a close inside both bands is required.

  16. Bar 16 · WAIT · Close 99

    A strictly outside close followed by a close inside both bands is required.

Open in the dashboard

In the Crown Pips Telegram bot, send /tactics band-return 8 for this candle.

What to keep in mind

This is a short-window demonstration inspired by volatility bands. The reference strategy uses different parameters and order handling.

Source & further reading
TradingView · Bollinger Bands Strategy Directed