Find the moments when a fully formed candlestick (bar #1) crosses the 'Moving Average' indicator. Then we look for the previous intersection. Between the dates found, draw a rectangle.
Pic. 1. High Low Сluster
The borders of the rectangle (upper and lower) can be used as Stop Loss and Take Profit levels.
Histogram between price and indicator or between two indicators
Strategy based on the 'DeMarker' indicator, working with pending orders
Development of the first version. Added parameters 'Maximum number of positions' and 'Minimum step of positions'
Trend indicator. Added alerts (Sound, Alert, email, push)