Extending a Moving Average Breakout Candle Rectangle in ProRealTime
Summary
The document explains a ProRealTime charting technique that draws a rectangle around the candle where price crosses a moving average, then extends the rectangle a chosen number of bars beyond the latest price. The rectangle uses the crossing candle’s high and low, and the example can detect a cross in either direction. A configurable moving-average period and extension length make the drawing reusable, while the platform’s last-bar drawing option refreshes the display so that only the latest active occurrence is shown.
This is a visualization example rather than a trading system: it gives no entry, exit, or risk rules and provides no evidence that moving-average crosses predict profitable moves. The described approach can be adapted to other events that a trader wants to mark on a chart. Its usefulness is chiefly in showing how a past trigger can anchor a drawing that continues into future bars; actual trading value depends on the user’s separate analysis and testing.
Key ideas
- The rectangle begins at a candle where price crosses above or below a moving average.
- Its vertical bounds use the crossing candle’s high and low.
- A configurable bar count controls how far the rectangle extends beyond the latest price.
- The drawing refreshes to show the latest active crossing occurrence.
- The example teaches chart annotation and does not define or validate a trading strategy.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.