OPEN-SOURCE SCRIPT

[SHORT ONLY] 10 Bar Low Pullback

268
█ STRATEGY DESCRIPTION
The "10 Bar Low Pullback" strategy is a contrarian short trading system designed to capture pullbacks after a new 10‐bar low is made. it identifies a potential short opportunity when the current bar’s low breaks below the lowest low of the previous 10 bars, provided that the bar exhibits strong internal momentum as measured by its IBS value. An optional trend filter further refines entries by requiring that the close is below a 200-period EMA.

█ WHAT IS INTERNAL BAR STRENGTH (IBS)?
Internal Bar Strength (IBS) measures where the closing price falls within the high-low range of a bar. It is calculated as:

- Low IBS (≤ 0.2): Indicates the close is near the bar's low, suggesting oversold conditions.
- High IBS (≥ 0.8): Indicates the close is near the bar's high, suggesting overbought conditions.

█ SIGNAL GENERATION
1. SHORT ENTRY
A Short Signal is triggered when:
  • The current bar’s low is below the lowest low of the past X bars (default: 10).
  • The bar’s IBS is greater than the specified threshold (default: 0.85).
  • The signal occurs within the defined trading window (between Start Time and End Time).
  • If the EMA Filter is enabled, the close must be below the 200-period EMA.


2. EXIT CONDITION
  • An exit Signal is generated when the current close falls below the previous bar’s low (close < low[1]), indicating a potential bearish reversal and prompting the strategy to close its short position.


█ ADDITIONAL SETTINGS
  • Lookback Period: Defines the number of bars (default is 10) over which the lowest low is calculated.
  • IBS Threshold: Sets the minimum required IBS value (default is 0.85) to qualify as a pullback.
  • Trading Window: Trades are only executed between the user-defined Start Time and End Time.
  • EMA Filter (Optional): When enabled, short entries are only considered if the current close is below the 200-period EMA, with the EMA period being adjustable (default is 200).


█ PERFORMANCE OVERVIEW
  • Designed for shorting opportunities, this strategy aims to capture pullbacks following an aggressive 10-bar low break.
  • It leverages a combination of a lookback low and IBS measurement to identify overextended bullish moves that may revert.
  • The optional EMA filter helps confirm a bearish market environment by ensuring the price remains under the trend line.
  • Suitable for use on various assets, including stocks and ETFs, on daily or similar timeframes.
  • Backtesting and parameter optimization are recommended to tailor the strategy to specific market conditions.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.