PROTECTED SOURCE SCRIPT
Focusprofit. Market Structure

Focusprofit. Market Structure marks classic market structure on any symbol and any timeframe. It works right after you add it to the chart ? the four settings below are optional.
What it draws
How to read it
An uptrend prints HH/HL pairs: each impulse pushes to a new Higher High, each pullback holds at a Higher Low. A downtrend mirrors this with LL/LH pairs. When the sequence breaks and the structure reverses, the marking flips automatically and starts tracking the new direction.
Swings are confirmed by the engine's internal rules rather than by a fixed fractal length, so the marking follows the structure a manual analyst would draw, not a mechanical N-bar pivot. A label appears once the swing is confirmed by those rules, not on the tick that prints the extreme.
Settings (four, all optional)
Works on stocks, futures, forex, crypto and indices, on any timeframe.
Not financial advice. This tool marks structure; trading decisions and risk are always yours.
What it draws
- HH (Higher High) and HL (Higher Low) ? impulse and pullback swings of an uptrend;
- LH (Lower High) and LL (Lower Low) ? pullback and impulse swings of a downtrend.
How to read it
An uptrend prints HH/HL pairs: each impulse pushes to a new Higher High, each pullback holds at a Higher Low. A downtrend mirrors this with LL/LH pairs. When the sequence breaks and the structure reverses, the marking flips automatically and starts tracking the new direction.
Swings are confirmed by the engine's internal rules rather than by a fixed fractal length, so the marking follows the structure a manual analyst would draw, not a mechanical N-bar pivot. A label appears once the swing is confirmed by those rules, not on the tick that prints the extreme.
Settings (four, all optional)
- Start of analysis (date) ? where the marking begins (default: 2020-01-01);
- Structure direction ? the initial direction seed (up / down); if it does not match the market, the structure flips automatically;
- Labels: up color ? colour of HH/HL labels;
- Labels: down color ? colour of LH/LL labels.
Works on stocks, futures, forex, crypto and indices, on any timeframe.
Not financial advice. This tool marks structure; trading decisions and risk are always yours.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Market structure, not signals.
Free indicator: tradingview.com/script/eXlTQAd9/
Course: focusprofit.pro/tv/ · RU: focusprofit.pro/ru/tv/
Free indicator: tradingview.com/script/eXlTQAd9/
Course: focusprofit.pro/tv/ · RU: focusprofit.pro/ru/tv/
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Market structure, not signals.
Free indicator: tradingview.com/script/eXlTQAd9/
Course: focusprofit.pro/tv/ · RU: focusprofit.pro/ru/tv/
Free indicator: tradingview.com/script/eXlTQAd9/
Course: focusprofit.pro/tv/ · RU: focusprofit.pro/ru/tv/
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.