A breakout above resistance can reverse before the candle closes. How can a Sierra Chart strategy distinguish that failed auction from a genuine breakout without entering on information that was not yet available?

What you will learn

  • Define a failed breakout using completed bars.
  • Separate entry timing from protective risk and target logic.
  • Implement the signal in ACSIL and manage order state.
  • Test sensitivity to gaps, costs and persistent trends.

Trading hypothesis and rules

Calculate the highest high of the 20 bars preceding the signal. A short candidate must trade strictly above that reference, close strictly below it and close below its own open. This is a price-pattern hypothesis, not evidence of actual order-flow imbalance. Evaluate only after the signal bar closes. Enter at the first available opportunity after confirmation, provided the strategy is flat and has no working entry. Do not repeatedly submit the same signal.

Worked example

Assume resistance at 100, signal open 99.8, high 101, low 99.2 and close 99.5. The rejection qualifies. A hypothetical next opening fill at 99.4 with a stop at 101.1 implies 1.7 points of initial risk; a two-risk target is 96.0. These prices are illustrative; round to valid ticks and account for costs.

Failed Breakout Rejection Strategy in ACSIL

Hypothetical failed breakout followed by a next-bar entry opportunity; the reference uses only prior bars.

ACSIL implementation

// ACSIL signal fragment; i is a completed bar.
float ref = sc.Highest(sc.High, i - 1, 20);
bool rejection = sc.High[i] > ref &&
    sc.Close[i] < ref &&
    sc.Close[i] < sc.Open[i];

Use this fragment only when i is at least 20 and the bar is closed, as determined by sc.GetBarHasClosedStatus(i). In an automatic-loop study, distinguish historical evaluation from live submission and remember the last processed signal index. In live execution, submit a short market entry using sc.SellEntry with a configured s_SCNewOrder, after checking position and working orders. Configure attached stop and target orders, reconcile actual fills and reject invalid risk distances. The example is a signal fragment, not a complete trading study. See the ACSIL trading documentation for order handling. Never assume a market order fills at the next open in live trading.

Risk and validation

Use a stop one valid tick above the signal high, a target two times actual initial risk below the fill, and a time exit after ten completed bars following entry if neither protective order has executed. Use fixed quantity for baseline research, then size against a predetermined risk budget including tick value and estimated costs. Reconcile competing exit orders and partial fills. Compare lookbacks of 10, 20 and 40 with identical costs and exits; measure net return, drawdown, adverse excursion and rejection frequency. Test gaps beyond the intended stop, equal reference prices, repeated signals, and bars touching both exits. Use replay and out-of-sample data; strong trends may continue despite a temporary rejection. This code has not been compiled or backtested. Trading involves substantial risk and stops do not guarantee loss limits.

For custom signal and order-state implementation, see Custom Sierra Chart strategy Development Services.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.