This is a script used in a strategy called the secretariat taught in the courses offered by Michael Toma ( I won't mention the business names here to comply with house rules for open publication).
Its intended as a tool to keep you out of chop and get you in pretty early in a trend.
The indicator uses a fast and a slow moving average as filter. When it sees the highest high or lowest low in the last 50 (configurable) bars, it notes a potential trade, then when there is a pull back into the moving averages, an entry can be considered. Michael is happy for me to share this indicator, and its up to you to discover a way to use it as a strategy.
Blue dots are highest high in the lookback period, red the lowest low in that period. The green triangles suggest a possible sell entry and the red a possible buy.
None of the signals provided are watertight magic promises of a successful trade, just an opportunity for you to consider an entry in accordance with your own rules, filters and risk etc.
Enjoy!