Skip to content
All library documents

A Bar-High and Bar-Low Breakout Strategy

Article MQL5 code base

Summary

This short description outlines a symmetric breakout rule. It buys or covers a short position when price moves above the high of a chosen number of prior bars, and sells short when price falls below the low of that lookback window. The lookback length is left as a parameter, and the text invites users to modify filters, so it presents a basic strategy template rather than a fully specified trading system.

The strategy is said to have been backtested on USDJPY from 2013 to 2023, but no performance figures, execution assumptions, position sizing, exit rules, or risk controls are supplied. As a result, the mention of a backtest provides context but is not enough to assess robustness or profitability. The description also does not clarify whether break conditions use intrabar prices or closing prices, or how existing positions are managed beyond the stated cover action.

Key ideas

  • The rule enters long when price breaks above the high of a selected prior-bar window.
  • It enters short when price breaks below the low of that window.
  • The lookback length and optional filters are left for the user to choose.
  • A USDJPY backtest covering 2013–2023 is mentioned, but results and implementation assumptions are absent.

Tags

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