OPEN-SOURCE SCRIPT
IND001 - Tide Flow Structure Map

==================================================
WARNING
==================================================
This indicator is designed to read trend structure. It is not designed to act on every drop only because price reaches a lower or red area.
The correct use is to first check whether the market still has a supportive structure. The indicator works best when price action is stable, liquid, and structured. It is less suitable for very risky, illiquid, speculative, or erratic instruments.
==================================================
(1) INTRODUCTION
==================================================
IND001 - Tide Flow Structure Map is a public open-source trend-structure indicator.
The idea behind Tide Flow is simple: markets often move in phases. Some phases are healthy and structured, while others are weak, noisy, or damaged. This indicator was built to help users read those phases more clearly by combining trend direction, active flow, structure, volatility, trend strength, and optional asset-quality checks.
It is not meant to be a simple signal tool. It is meant to help the user understand the current market condition first.
==================================================
(2) OVERVIEW
==================================================
Tide Flow is mainly a structure-reading and trend-following tool. It is designed to work best when the market shows clear continuation behavior and enough stability for the curves to reflect real structure.
The main question is:
Instead of using one simple signal, the indicator combines several layers of information:
Quick color key
--------------------------------------------------
WHERE TIDE FLOW FITS BEST
--------------------------------------------------
Best trading styles
Less suitable trading style
Timeframe guidance
Best asset types
Less suitable asset types
Practical summary
==================================================
(3) MOST IMPORTANT: HOW TO USE IT PROPERLY
==================================================
The correct way to use this indicator is to read the market structure first, then use the table, background colors, and alerts only as extra confirmation.
Simple workflow
Correct use
Incorrect use
==================================================
(4) CURVES
==================================================
The indicator is built around four main curves. Each curve represents a different layer of market structure.
🟨 Yellow curve - Main trend
The yellow curve represents the broader trend environment.
🟦 Blue curve - Active trend flow
The blue curve represents the active movement inside the main trend.
🟩 Green curve - Upper structure
The green curve represents the upper part of recent smoothed price structure.
🟥 Red curve - Lower structure
The red curve represents the lower part of recent smoothed price structure.
==================================================
(5) LOGICAL SEQUENCE
==================================================
The indicator should be read in order. Each curve gives a different part of the full picture.
Correct reading order
What is normal
A healthier bullish structure usually develops in a stable way:
This suggests that the market structure is still functioning in a supportive way.
What is not normal
A weaker or damaged structure usually looks different:
This suggests that the tide flow is no longer healthy and the market should be treated with caution.
==================================================
(6) EXAMPLE 1: CLEAN PULLBACK IN TREND
==================================================
Price is above the yellow curve, so the broader environment is still supportive. The blue curve is rising, showing that the active flow is healthy. Price pulls back toward the blue curve, respects it, and then continues toward the green curve.
Main reading
This is a structured use case because the idea is based on trend behavior, not on chasing price.
==================================================
(7) EXAMPLE 2: BREAKOUT AFTER BUILDING
==================================================
Price remains above the yellow curve and spends time moving between the blue and green curves. This shows that the market is building structure. Later, price moves above the green curve with stronger behavior.
Main reading
This is a better-quality setup because the move happens after structure has already developed.
==================================================
(8) EXAMPLE 3: RECLAIM OF THE BLUE CURVE
==================================================
Price briefly moves below the blue curve but remains above the yellow curve. Soon after, price moves back above the blue curve and continues higher.
Main reading
This is useful because the main structure did not break and the active flow was restored.
==================================================
(9) EXAMPLE 4: AVOIDING A WEAK CONDITION
==================================================
Price moves below the yellow curve. This means the broader trend environment is no longer supportive. A small bounce may appear, but the structure is still weak.
Main reading
This helps the user avoid acting too early in a damaged structure.
==================================================
(10) EXAMPLE 5: SIDEWAYS MARKET
==================================================
Price moves around the blue curve with no clear direction. The blue curve is flat, and price does not clearly move toward the green curve or break structure with strength.
Main reading
This is a situation where patience is usually better than forcing a trade idea.
==================================================
(11) OPTIONAL HELPERS: BG COLORS, TABLE, SETUP / RISK USE
==================================================
The indicator includes helper tools to make the chart easier to read. These tools are not the full system by themselves. The main reading still comes from the four structure curves.
--------------------------------------------------
1. BG COLORS - VISUAL HELP FOR IMPROVING CONDITIONS
--------------------------------------------------
Background colors can appear when the indicator detects improving structure after a weaker phase.
They can help the user notice:
They should not be used as standalone entry signals.
BG colors are not:
--------------------------------------------------
2) TABLE - QUICK SUMMARY OF CURRENT CONDITION
--------------------------------------------------
The table gives a compact summary of the current market state. It helps organize the most important checks in one place.
The table can show:
The table is useful because it shows whether the current move is supported by more than one condition. It should still be treated as a summary panel, not as a replacement for chart reading.
--------------------------------------------------
3) SETUP / RISK USE - EXTRA CONFIRMATION ONLY
--------------------------------------------------
The indicator is first a structure-reading tool. The table, background colors, and alerts can support the reading, but they should not replace it.
A stronger long-side condition may be present when:
A weaker or risk-off condition may be present when:
Simple summary
When these parts agree, the reading is stronger. When they disagree, the user should be more careful.
==================================================
(12) HOW EVERYTHING IS CALCULATED
==================================================
This section explains the internal logic in simple terms.
How the curves are calculated
How the main conditions are calculated
How asset quality is calculated
The optional asset-quality guard uses:
These values are combined into a quality score and grouped into a quality rank. The purpose is to help avoid instruments with weak liquidity, weak size, or unstable trading conditions.
In practice, the indicator combines:
The purpose is not to predict the future exactly. The purpose is to judge whether current market conditions are supportive enough.
==================================================
(13) 10 POINTS: WHAT IS WRONG WHEN USING TIDE FLOW
==================================================
==================================================
(14) ALERTCONDITION
==================================================
The indicator includes alert conditions so users can monitor important chart events.
Alerts can be used for conditions such as:
==================================================
(15) SUMMARY TO USE
==================================================
Use Tide Flow as a trend-following and structure-reading indicator, not as a simple buy or sell signal tool.
Simple reading process
==================================================
DISCLAIMER
==================================================
This script is a public open-source indicator for educational and informational use.
It is not financial advice, investment advice, or a recommendation to buy or sell any asset.
The indicator does not guarantee profitable trades, signal accuracy, or future performance. It can produce false or late signals, especially in sideways, illiquid, volatile, or news-driven markets.
Users should always apply their own analysis, position sizing, and risk management before making any trading decision.
==================================================
PINE NOTE
==================================================
Pine Script®
WARNING
==================================================
This indicator is designed to read trend structure. It is not designed to act on every drop only because price reaches a lower or red area.
The correct use is to first check whether the market still has a supportive structure. The indicator works best when price action is stable, liquid, and structured. It is less suitable for very risky, illiquid, speculative, or erratic instruments.
The script does not predict the future. It helps the user read whether current market conditions are supportive, neutral, weakening, or risk-off.
==================================================
(1) INTRODUCTION
==================================================
IND001 - Tide Flow Structure Map is a public open-source trend-structure indicator.
The idea behind Tide Flow is simple: markets often move in phases. Some phases are healthy and structured, while others are weak, noisy, or damaged. This indicator was built to help users read those phases more clearly by combining trend direction, active flow, structure, volatility, trend strength, and optional asset-quality checks.
It is not meant to be a simple signal tool. It is meant to help the user understand the current market condition first.
==================================================
(2) OVERVIEW
==================================================
Tide Flow is mainly a structure-reading and trend-following tool. It is designed to work best when the market shows clear continuation behavior and enough stability for the curves to reflect real structure.
The main question is:
Is the current movement still healthy and structured, or is the structure starting to weaken?
Instead of using one simple signal, the indicator combines several layers of information:
- main trend direction
- active trend flow
- upper and lower price structure
- volatility
- trend strength
- higher-timeframe confirmation
- RSI extension control
- optional asset-quality filtering
Quick color key
- 🟨 Yellow - main trend environment
- 🟦 Blue - active trend flow
- 🟩 Green - upper structure and strength
- 🟥 Red - lower structure and risk
--------------------------------------------------
WHERE TIDE FLOW FITS BEST
--------------------------------------------------
Best trading styles
- Swing trading - usually the best fit, because structure is clearer on higher timeframes.
- Intraday / day trading - can work well on liquid and cleanly trending assets.
- Position trading - suitable for following broader structure on higher timeframes.
Less suitable trading style
- Scalping - usually the weakest fit, because very low timeframes often contain more noise and false shifts.
Timeframe guidance
- Best fit: 1H, 4H, Daily
- Good fit: 15m, Weekly
- Use with caution: 5m and lower
Best asset types
- liquid stocks
- major crypto assets
- index-related instruments
- assets with stable trend structure
- markets with clear continuation behavior
Less suitable asset types
- very low-liquidity assets
- small speculative instruments
- thin or manipulated markets
- assets with frequent abnormal spikes or unstable gaps
- sideways markets with weak structure
Practical summary
- Best overall use: swing trading
- Good use: day trading on liquid trending assets
- Weakest use: scalping on very low timeframes
==================================================
(3) MOST IMPORTANT: HOW TO USE IT PROPERLY
==================================================
The correct way to use this indicator is to read the market structure first, then use the table, background colors, and alerts only as extra confirmation.
Simple workflow
- 🟨 Start with the yellow curve.
Check whether price is above or below the main trend. If price is below the yellow curve, the broader structure is weaker and long-side ideas need more caution. - 🟦 Then check the blue curve.
The blue curve shows the active trend flow. A rising or stable blue curve is healthier. A falling blue curve means the active flow is weakening. - 🟩 Then check the green curve.
The green curve shows upper structure and strength. Price moving toward or above the green curve can show stronger expansion, but chasing too far above it can create poor risk-reward. - 🟥 Then check the red curve.
The red curve shows lower structure and risk. Price moving close to or below the red curve means the structure is weakening or breaking. - Only after that, check the table and background colors.
The table and BG colors are helpers. They should support the structure reading, not replace it. - Use alerts only for monitoring.
An alert means a chart condition has appeared. It is not a trade instruction and does not guarantee a result.
Correct use
- Use it when the market is liquid, structured, and trending clearly.
- Use it to separate supportive structure from weak or risk-off structure.
- Use it to avoid acting too early when price is below the main trend.
- Use it with your own risk management and position sizing.
Incorrect use
- Do not use it as a simple green-buy / red-sell system.
- Do not act only because the table shows a stronger state.
- Do not act only because the background color changes.
- Do not act only because price touches the red or lower area.
- Do not expect the script to predict future price movement.
The most important rule is: read the curves first. The helpers come second.
==================================================
(4) CURVES
==================================================
The indicator is built around four main curves. Each curve represents a different layer of market structure.
🟨 Yellow curve - Main trend
The yellow curve represents the broader trend environment.
- Price above yellow: the broader trend condition is more supportive.
- Price below yellow: the broader trend is weaker or damaged.
🟦 Blue curve - Active trend flow
The blue curve represents the active movement inside the main trend.
- Price above blue: active flow is stronger.
- Price around blue: the market is testing the flow.
- Price below blue: the active flow is weakening.
🟩 Green curve - Upper structure
The green curve represents the upper part of recent smoothed price structure.
- Price below green: price is still building inside structure.
- Price at or above green: strength or expansion is increasing.
🟥 Red curve - Lower structure
The red curve represents the lower part of recent smoothed price structure.
- Price above red: lower structure is still holding.
- Price near red: structure is becoming weaker.
- Price below red: lower structure is breaking.
==================================================
(5) LOGICAL SEQUENCE
==================================================
The indicator should be read in order. Each curve gives a different part of the full picture.
Correct reading order
- 🟨 Yellow curve - defines the broader environment
- 🟦 Blue curve - defines the active flow
- 🟩 Green curve - shows strength and expansion
- 🟥 Red curve - shows weakness and risk
What is normal
A healthier bullish structure usually develops in a stable way:
- price is above the yellow curve
- blue curve is flat-to-rising or rising
- price respects the blue curve during pullbacks
- price moves toward or above the green curve
- red curve remains clearly below price
This suggests that the market structure is still functioning in a supportive way.
What is not normal
A weaker or damaged structure usually looks different:
- price falls below the yellow curve
- blue curve starts to flatten or decline
- price cannot recover toward the green curve
- price moves too close to the red curve or breaks below it
This suggests that the tide flow is no longer healthy and the market should be treated with caution.
==================================================
(6) EXAMPLE 1: CLEAN PULLBACK IN TREND
==================================================
Price is above the yellow curve, so the broader environment is still supportive. The blue curve is rising, showing that the active flow is healthy. Price pulls back toward the blue curve, respects it, and then continues toward the green curve.
Main reading
- above yellow = supportive environment
- blue rising = healthy active flow
- pullback to blue = controlled movement
This is a structured use case because the idea is based on trend behavior, not on chasing price.
==================================================
(7) EXAMPLE 2: BREAKOUT AFTER BUILDING
==================================================
Price remains above the yellow curve and spends time moving between the blue and green curves. This shows that the market is building structure. Later, price moves above the green curve with stronger behavior.
Main reading
- above yellow = supportive condition
- movement between blue and green = structure building
- move above green = expansion
This is a better-quality setup because the move happens after structure has already developed.
==================================================
(8) EXAMPLE 3: RECLAIM OF THE BLUE CURVE
==================================================
Price briefly moves below the blue curve but remains above the yellow curve. Soon after, price moves back above the blue curve and continues higher.
Main reading
- above yellow = broader trend still valid
- temporary move below blue = short-term weakness
- reclaim of blue = active flow improves again
This is useful because the main structure did not break and the active flow was restored.
==================================================
(9) EXAMPLE 4: AVOIDING A WEAK CONDITION
==================================================
Price moves below the yellow curve. This means the broader trend environment is no longer supportive. A small bounce may appear, but the structure is still weak.
Main reading
- below yellow = weak environment
- small bounce = not enough confirmation
- structure still weak = caution
This helps the user avoid acting too early in a damaged structure.
==================================================
(10) EXAMPLE 5: SIDEWAYS MARKET
==================================================
Price moves around the blue curve with no clear direction. The blue curve is flat, and price does not clearly move toward the green curve or break structure with strength.
Main reading
- flat blue = weak active flow
- sideways movement = unclear structure
- no clean expansion = lower-quality condition
This is a situation where patience is usually better than forcing a trade idea.
==================================================
(11) OPTIONAL HELPERS: BG COLORS, TABLE, SETUP / RISK USE
==================================================
The indicator includes helper tools to make the chart easier to read. These tools are not the full system by themselves. The main reading still comes from the four structure curves.
--------------------------------------------------
1. BG COLORS - VISUAL HELP FOR IMPROVING CONDITIONS
--------------------------------------------------
Background colors can appear when the indicator detects improving structure after a weaker phase.
They can help the user notice:
- improving recovery conditions
- strengthening active flow
- a transition from weaker structure to healthier structure
They should not be used as standalone entry signals.
BG colors are not:
- direct trade instructions
- standalone entry signals
- a replacement for reading the curves
- a guarantee that price will continue
Correct use: first read the yellow, blue, green, and red curves. Then use background colors as extra visual context only.
--------------------------------------------------
2) TABLE - QUICK SUMMARY OF CURRENT CONDITION
--------------------------------------------------
The table gives a compact summary of the current market state. It helps organize the most important checks in one place.
The table can show:
- current state
- direction
- higher-timeframe trend
- trend condition
- ADX strength
- ATR condition
- structure zone
- asset quality
- quality data
- quality explanation
The table is useful because it shows whether the current move is supported by more than one condition. It should still be treated as a summary panel, not as a replacement for chart reading.
--------------------------------------------------
3) SETUP / RISK USE - EXTRA CONFIRMATION ONLY
--------------------------------------------------
The indicator is first a structure-reading tool. The table, background colors, and alerts can support the reading, but they should not replace it.
A stronger long-side condition may be present when:
- price is above the yellow curve
- the blue curve is healthy or rising
- price respects structure instead of breaking it
- price moves toward or above the green curve
- the table supports the stronger condition
- background colors show improving structure
A weaker or risk-off condition may be present when:
- price falls below the yellow curve
- the blue curve weakens or turns down
- price fails to recover toward the green curve
- price moves close to or below the red curve
- the table no longer supports the stronger condition
Simple summary
- the curves explain the structure
- the background colors show visual improvement
- the table summarizes the internal checks
- alerts help with monitoring
When these parts agree, the reading is stronger. When they disagree, the user should be more careful.
==================================================
(12) HOW EVERYTHING IS CALCULATED
==================================================
This section explains the internal logic in simple terms.
How the curves are calculated
- Yellow curve: an EMA of price using the main trend length.
- Blue curve: a faster EMA of price.
- Green curve: recent highest highs over a lookback period, then smoothed.
- Red curve: recent lowest lows over a lookback period, then smoothed.
How the main conditions are calculated
- ATR checks whether volatility is active enough.
- ADX checks whether trend strength is acceptable.
- Higher-timeframe filter checks whether broader direction supports the trend.
- RSI helps avoid overly extended long-side conditions.
- The active-flow check uses the slope of the blue curve to detect weakness.
How asset quality is calculated
The optional asset-quality guard uses:
- market cap
- 20-day average dollar volume
- 60-day average dollar volume
- price level
These values are combined into a quality score and grouped into a quality rank. The purpose is to help avoid instruments with weak liquidity, weak size, or unstable trading conditions.
In practice, the indicator combines:
- trend structure
- active flow
- volatility
- trend strength
- higher-timeframe confirmation
- asset quality
- liquidity quality
The purpose is not to predict the future exactly. The purpose is to judge whether current market conditions are supportive enough.
==================================================
(13) 10 POINTS: WHAT IS WRONG WHEN USING TIDE FLOW
==================================================
- Using it like a simple signal tool
The indicator is not meant to be a simple green-buy / red-sell system. - Acting below the yellow curve without caution
When price is below the yellow curve, the broader environment is weaker. - Ignoring the blue curve
If the blue curve is flat or falling, the active flow is weak. - Treating every dip as an opportunity
A drop in price alone is not a valid reason to act. - Chasing price too far above the green curve
Late entries after large expansion can create poor risk-reward. - Ignoring the red curve
When price gets close to or below the red curve, structure is weakening. - Using it in sideways markets without caution
The indicator works best when the market has structure and direction. - Skipping the reading sequence
The correct order is yellow first, blue second, green third, red last. - Expecting prediction instead of interpretation
The indicator helps interpret condition. It does not predict future price. - Using it without patience
Better readings usually come when structure is clear and supportive.
==================================================
(14) ALERTCONDITION
==================================================
The indicator includes alert conditions so users can monitor important chart events.
Alerts can be used for conditions such as:
- main gates becoming aligned
- price moving above the upper structure curve
- a long-side setup forming
- recovery conditions appearing
- asset quality warning
- price crossing below important structure levels
- price confirming below the active risk line
Alerts are only monitoring tools. They are not trade instructions, performance claims, or guarantees of future results.
==================================================
(15) SUMMARY TO USE
==================================================
Use Tide Flow as a trend-following and structure-reading indicator, not as a simple buy or sell signal tool.
Simple reading process
- 🟨 Start with the yellow curve to check the broader environment.
- 🟦 Use the blue curve to confirm active trend flow.
- 🟩 Use the green curve to identify strength or expansion.
- 🟥 Use the red curve to monitor weakness and risk.
- Use the table and background colors only as helpers.
- Use alerts only for monitoring chart conditions.
- Avoid forcing trades in weak, sideways, illiquid, or unstable markets.
- Use your own risk management and analysis.
The indicator is most useful when the market is structured, liquid, and trending clearly.
==================================================
DISCLAIMER
==================================================
This script is a public open-source indicator for educational and informational use.
It is not financial advice, investment advice, or a recommendation to buy or sell any asset.
The indicator does not guarantee profitable trades, signal accuracy, or future performance. It can produce false or late signals, especially in sideways, illiquid, volatile, or news-driven markets.
Users should always apply their own analysis, position sizing, and risk management before making any trading decision.
==================================================
PINE NOTE
==================================================
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。