Skip to content
All library documents

Inside-Bar Trading with Moving-Average Filters and Risk-Based Stops

Article Strategy library · Author: tweakerID

Summary

This strategy trades inside-bar patterns, whose price range sits within the preceding bar’s range. The accompanying discussion frames the pattern as a possible continuation or reversal, with context such as an established trend or nearby support and resistance helping determine its meaning. The script allows traders to choose the number of inside bars in a pattern, require a fully bullish or bearish pattern, and apply a moving-average trend filter.

Risk controls include optional stop-loss and take-profit orders, with stop choices based on a strategy stop, recent swing highs or lows, or an average true range multiple. A configurable risk-reward ratio sets the target, and a trailing-stop option is available. The excerpt shows inputs and part of the stop calculation, but does not provide complete entry and exit logic or performance results. Its settings therefore describe a configurable framework rather than evidence of profitability; pattern interpretation and stop parameters still require testing in the intended market.

Key ideas

  • An inside bar can signal continuation or reversal, depending on the surrounding price context.
  • The script allows configuration of pattern length, directional requirements, and a moving-average trend filter.
  • Stops can be based on strategy logic, recent swing levels, or an average true range multiple.
  • A risk-reward setting determines the take-profit distance relative to the stop, with an optional trailing stop.
  • The supplied excerpt does not include complete rules or results demonstrating performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.