Breakout Targets [AlgoAlpha]🟠 OVERVIEW
This script identifies consolidation zones and provides automated breakout targets with risk management levels. It focuses on finding periods where price action compresses and then tracks the subsequent breakout from these ranges. When a price breakout is confirmed, the script automatically projects three take-profit (TP) levels and a stop-loss (SL) based on current market volatility. This helps traders move from identifying a range to executing a trade with predefined exit points without manual calculation.
🟠 CONCEPTS
The script uses a relationship between Weighted Moving Averages (WMA) and Exponential Moving Averages (EMA) of price ranges to detect consolidation. When these moving averages cross, it triggers the detection of recent pivot highs and lows to draw a visual "box" or channel. This channel represents the current trading range. Once price closes outside this box, the script uses the Average True Range (ATR) to determine the volatility-adjusted distance for the stop loss. The take-profit levels are then calculated as multiples of this risk distance, ensuring a consistent reward-to-risk approach.
🟠 FEATURES
Dynamic box drawing that highlights potential supply and demand zones within the range.
Real-time breakout signals with bullish (green) and bearish (red) markers.
Automated trade projection including Entry, SL, and three TP levels.
Integrated alert system for breakouts and hits on any profit or loss target.
🟠 USAGE
Setup : Add the script to your chart and adjust the "Range Detection Period." A higher period will find larger, more significant ranges, while a lower period will find smaller, short-term consolidation zones.
Read the chart : Look for the grey boxes on your chart; these represent areas where the market is "coiling." A green arrow label indicates a bullish breakout from the top of the box, while a red arrow indicates a bearish breakout from the bottom. Once a breakout occurs, follow the projected horizontal levels for your trade management.
Settings that matter : The Stop Loss ATR Multiplier is the most critical setting for risk; increasing it will give the trade more room to breathe but will also push your TP levels further away. The Prevent Overlap toggle is useful for keeping the chart clean by ensuring the script doesn't draw new boxes until the current range has been resolved.
指标和策略
Precision Market Entropy Heatmap [LuxAlgo]The Precision Market Entropy Heatmap indicator provides a high-resolution visualization of volume distribution and market activity within specific anchor intervals using intrabar data.
By utilizing lower timeframe (LTF) precision, it maps out where the most significant trading activity occurred, allowing traders to identify institutional interest zones and "fair value" areas through a dynamic heat-mapped profile.
🔶 USAGE
The indicator segments the chart into blocks based on the selected Anchor Interval. Within each block, a vertical distribution of volume is calculated using the Intrabar Precision setting to ensure the heatmap accurately reflects market participation at specific price levels.
Heatmap Blocks : Brighter colors represent higher volume concentrations (high entropy). These areas often act as significant support or resistance zones where the market has previously found "fair value" or high liquidity.
Identifying Institutional Interest : High-volume "bright" nodes represent price levels where heavy institutional participation occurred. These nodes act as powerful magnets or barriers for future price action.
Navigating Liquidity Voids : Darker areas indicate low volume nodes (low entropy). Price often "slips" through these gaps quickly. Traders can use these zones to anticipate fast-moving price action or set targets beyond the void.
Trend Direction via POC : Observe the slope and shifts of the Developing POC polyline. An ascending POC confirms bullish value migration, while a descending one suggests bearish value migration.
Mean Reversion : Significant price deviations from the largest high-volume node, when the POC remains static, can signal that the market is overextended and likely to return to "fair value."
Breakout Validation : Use the blocks to identify compression zones. A breakout is more reliable when the POC shifts into the new range, confirming that the move is backed by volume and accepted by the market.
POC Extensions : Dashed lines extend the session's final POC. These are dynamically colored based on their relationship to the current price: Green if the POC is below the current price (potential support) and Red if above (potential resistance).
🔶 DETAILS
Unlike standard Volume Profiles that look at fixed ranges, this script focuses on "Entropy" by visualizing the density of distribution across a user-defined grid.
By requesting security data from lower timeframes, it provides a much more granular view of price action than what is visible on the current chart timeframe alone.
The indicator uses a gradient-based coloring system to distinguish between low-activity areas and high-volume nodes, making it easier to spot "Liquidity Voids" (darker areas) and "High Volume Nodes" (brighter areas).
🔶 SETTINGS
🔹 Heatmap Settings
Anchor Interval : Sets the timeframe that defines each heatmap block (e.g., "D" for Daily blocks).
Intrabar Precision : Determines the lower timeframe used to calculate the volume distribution. Lower values (like "1m") provide higher precision but are limited by available historical data.
Number of Rows : Controls the vertical price resolution of the heatmap grid. Higher values create a more detailed but computationally heavier profile.
🔹 Style Settings
Heatmap Intensity : A three-color gradient selector that defines the color transition from low to high volume areas.
Heatmap Transparency : Adjusts the visibility of the heatmap blocks on the chart.
POC Extension (Bull/Bear) : Sets the colors for the dashed POC lines based on whether they are currently below (Bull) or above (Bear) the market price.
Show Developing POC : Toggles the visibility of the real-time POC polyline.
Auto : When enabled, the developing POC color automatically syncs with your chart theme's foreground color.
🔹 Display Settings
Max Sessions to Show : Limits the number of historical heatmap blocks rendered on the chart to maintain performance.
Extend POCs to Current Bar : When enabled, historical POC lines will extend to the far right of the chart until they are replaced by newer sessions.
Crypto PCA [LuxAlgo]The Crypto PCA indicator provides a sophisticated, multi-asset sentiment gauge by applying Principal Component Analysis (PCA) to a basket of the top 20 cryptocurrencies.
By extracting the primary driver of variance across these assets, the tool offers a "market-wide" oscillator that filters out individual coin noise to highlight the dominant trend and sentiment shifts in the crypto space.
In modern quantitative finance, PCA is used to reduce dimensionality and identify the underlying factors that move a group of assets. This indicator brings that institutional-grade approach to the retail trader, condensing the price action of Bitcoin, Ethereum, Solana, and 17 other majors into a single, actionable signal.
🔶 USAGE
The script serves as a macro-sentiment oscillator, allowing traders to see the "hidden" force driving the crypto market. It is designed to identify when the market is moving in unison and when that collective movement has reached an extreme.
🔹 Identifying Market Regimes
The primary use of the PCA line (PC1) is to determine the current market regime. When the oscillator is above the zero line and colored green, it indicates that the majority of the top 20 assets are experiencing positive variance, signaling a broad bullish regime. Conversely, when the line is below zero and colored red, the market is in a collective bearish state. Traders can use this to align their individual trades with the direction of the total market energy.
🔹 Using Snapshot Mode for Situational Analysis
While the continuous mode is ideal for long-term trend following, the Snapshot Mode provides a focused view of market dynamics over the most recent lookback window. This mode isolates the current sentiment cycle, allowing traders to see the specific trajectory and "shape" of the latest move without the influence of older historical data.
By enabling Snapshot Mode, you can analyze the immediate internal structure of the market. It is particularly useful for identifying whether a recent pump or dump is a coordinated market-wide event or a more fragmented move. This helps in distinguishing between a broad structural shift and a temporary volatility spike.
🔹 Spotting Overextended Sentiment
The indicator includes dashed horizontal lines at +2 and -2, representing standard deviation thresholds. Because the assets are standardized before calculation, these levels mark statistical extremes.
Overbought Extremes: When the PCA line exceeds +2, the broad market is significantly overextended to the upside. This often precedes a cooling-off period or a mean-reversion event across the entire sector.
Oversold Extremes: When the PCA line drops below -2, it suggests a "panic" or exhausted selling state across the basket. This can signal potential bottoming interest or a relief rally.
🔹 Gauging Relative Strength
The faint "ghost" lines in the background represent the individual standardized price paths of the 20 included assets. By comparing these to the main PCA line, traders can identify leaders and laggards. An asset line that stays consistently above the PCA line during a rally is exhibiting relative strength, while an asset trailing below the PCA line is underperforming the market average.
🔶 DETAILS
The indicator follows a rigorous mathematical pipeline to ensure the data is statistically significant and comparable across assets with different price scales.
🔹 Standardization (Z-Scores)
Before performing PCA, every asset must be on the same scale. The script converts the price of all 20 assets into Z-scores based on the user-defined Lookback Period. A Z-score tells us how many standard deviations a price is from its mean. This allows the movement of a high-priced asset like BTC to be mathematically compared to a lower-priced asset like PEPE.
🔹 The Basket & PCA Approximation
The indicator includes the following assets: BTC, ETH, BNB, XRP, SOL, TRX, DOGE, ADA, BCH, WBTC, XLM, LTC, HBAR, LINK, AVAX, PEPE, DOT, UNI, NEAR, and ICP.
The script uses a correlation-based approximation to find the First Principal Component. It calculates the correlation of each asset to the equally weighted basket and uses these correlations as "loadings" to compute the PC1. This ensures that assets moving in sync with the general market trend are given higher priority in the final oscillator value.
🔹 Why PCA?
Most "Crypto Indices" are simply weighted averages. PCA is superior because it identifies the commonality between assets. If 18 coins are moving up and 2 are moving down, PCA gives more weight to the 18 moving together, as they represent the "Principal Component" of the market's current energy.
🔶 SETTINGS
🔹 Main Settings
Lookback Period (N): Determines the window used for Z-score standardization and PCA calculation. A shorter period makes the indicator more reactive, while a longer period identifies macro-cycle shifts.
Z-Score Smoothing: Applies a Simple Moving Average (SMA) to the standardized asset values before the PCA calculation. This effectively filters out high-frequency noise and produces a smoother principal component line, which is useful for reducing false regime shifts in volatile markets.
Enable Snapshot Mode: Switches the visual output from a continuous rolling line to a static view of the PCA over the most recent lookback window.
🔹 Visual Settings
Standardized Assets Color: Controls the color and transparency of the 20 individual asset lines.
Bull/Bear Colors: Defines the colors used for positive and negative market sentiment.
Disclaimer: This indicator is a statistical tool for sentiment analysis and does not constitute financial advice. The PCA approach measures variance and correlation, not guaranteed future direction.
Supertrend Breakout Boxes• ⭐ Built using original Supertrend logic to detect tradable breakouts.
• ⚙️ SuperTrend Breakout Pine v6 — built for XAUUSD precision, and equally lethal on Forex + Crypto.
• 📦 Shift Zones boxed consolidation after reversals = clean, tradable structure no noise.
• 📈 BUY STOP ▲ auto-plotted above bullish zones for breakout entries — no guesswork, just levels.
• 📉 SELL STOP ▼ auto-plotted below bearish zones for breakdown plays — instant clarity.
• 🧠 Adaptive spacing uses zone range % so stops scale with volatility perfect for Gold’s swings.
• 🧭 Projection lines extend forward so you can plan the trade before price arrives.
• 🟩🟪 Dual color system + BULL/BEAR labels = zero interpretation lag when trend flips.
• 🧼 Box-only display keeps charts clean: zones + stops = actionable, minimal, fast decisions.
• ⭐ Apply to your M30/H1/H4 TradingView chart — your breakout roadmap for Gold, FX, Crypto.
• 🚀 Make it your default overlay: spot consolidation → place stops → ride the expansion move.
• 📦 Enable/Disable BUY/SELL breakouts. For Gold you can use BUY only breakouts.
• 📦 Too many boxes on chart? Increase your ART multiplier from settings.
• ⭐ How to trade this? Enter in the direction of breakout.
NQ M30
GBPUSD M30
BTCUSD H1
UKOIL H1
GK Trend Ribbon SWING + PREPARE HUDGK Trend Ribbon SWIGN+ PREPARE HUD
This is the swing trading version of GK Trend Ribbon system.
it works with the core logic and structure as its predecessors,
but is tuned for a smoother, longer trend phases and reduced noise, making it more suitable for holding trades through broader market moves
The ribbon adapts to volatility using ATR-based bands, wile the zero-lag bassline tracks real trend direction.
The visual prepare alerts gives a early heads up before confirmed GK BUY or GK SELL signals,
helping traders get positioned before momentum fully shifts
CREATOR'S preferred timeframes for XAUUSD
15MIN CHART
30MIN CHART
also works on other assets
designed for structure trend based swing execution-patience, discipline and letting the ribbon lead
Step Generalized Moving Average [BackQuant]Step Generalized Moving Average
Overview
Step Generalized Moving Average (StepGMA) is a trend-structure moving average designed to solve two common problems with classic MAs:
They overreact to noise in chop, causing constant micro-flips.
They lag too much when you smooth them enough to stop that noise.
StepGMA tackles this by combining two layers:
A Generalized Moving Average (GMA) that increases responsiveness without simply shortening length.
A Step Filter that converts the MA into discrete “steps” sized by ATR, suppressing insignificant movement and only updating when the move is meaningful.
The output is a trend line that behaves more like market structure: it holds its level through noise, then “reprices” in chunks when volatility-adjusted movement is large enough.
What the indicator is trying to represent
Instead of showing every tiny MA wiggle, StepGMA tries to represent the idea that:
Most price movement is noise relative to volatility.
Trend only matters when it advances by a meaningful amount.
A good trend line should stay stable until the market forces it to move.
That makes this indicator useful as:
A regime filter (trend vs chop).
A trend-following bias line.
A structure-like dynamic S/R reference.
A signal generator with fewer low-quality flips.
Component 1: Moving Average engine (selectable)
The base smoothing is not fixed. You can choose between multiple MA types:
SMA, EMA, WMA, VWMA: classic smoothing families.
DEMA, TEMA: reduced-lag EMA variants.
T3: smooth yet responsive, good for trend.
HMA: very low lag, can be twitchy without filtering.
ALMA: center-weighted smoothing, often “cleaner” visually.
KAMA: adaptive smoothing based on efficiency ratio, good in mixed regimes.
LSMA: regression-based, tends to track trend direction well.
McGinley: dynamic smoothing designed to reduce lag during fast moves.
This matters because the StepGMA is not “one MA.” It is a framework that lets you pick the underlying smoothing behavior, then applies the generalization and step logic on top.
Component 2: Generalized Moving Average (GMA)
Where the idea comes from
Generalized MA here is essentially a form of two-stage smoothing compensation . A common trick in signal processing and technical analysis is:
Apply a smoother once (MA1).
Apply it again (MA2).
Use MA2 as a “lag reference,” then combine MA1 and MA2 to reduce lag while keeping smoothness.
This is related in spirit to reduced-lag filters (like DEMA/TEMA) and “zero-lag” style constructions that subtract part of the lag component. You are not magically removing lag, you are biasing the output toward the first-pass MA while subtracting some of the second-pass smoothing that represents delayed response.
How this script does it
It computes:
ma1 = MA(src, len)
ma2 = MA(ma1, len)
Then combines them using a volume factor (vf):
generalized = ma1 * (1 + vf) - ma2 * vf
Interpretation:
ma2 is a “more delayed” version of ma1.
Subtracting vf * ma2 and adding (1+vf) * ma1 pushes the output toward responsiveness.
vf controls how aggressive that push is.
Volume Factor (vf) is really an aggressiveness knob
The script clamps vf between 0.01 and 1.0 to keep it stable. Conceptually:
Low vf: behaves closer to a normal MA1, smoother, more lag.
High vf: more compensation, faster response, more risk of overshoot or noise sensitivity (which is then handled by the step filter).
So the GMA stage tries to give you a cleaner, faster trend estimate without just shrinking the MA period.
Component 3: Step Filter (the key behavior)
What a step filter is
A step filter turns a continuous signal (here, the generalized MA) into a discrete “staircase” signal. Instead of updating every bar, it updates only when the input has moved far enough to justify a new step.
This is conceptually similar to:
A quantizer in signal processing (rounding changes to discrete increments).
A volatility threshold filter (ignore changes smaller than X).
Market structure logic where levels matter more than micro movement.
How it works in this script
The filter maintains a persistent value: stepped .
Each bar:
diff = src - stepped
If |diff| < stepSize, do nothing (hold the level).
If |diff| >= stepSize, move stepped by a number of step increments.
The step increment size is:
stepSize = (stepMult / 100) * ATR(atrPeriod)
This is critical:
In higher volatility, ATR is larger, so steps are larger, fewer updates, more stability.
In lower volatility, ATR is smaller, so steps are smaller, more updates, more sensitivity.
So the step behavior automatically adapts to volatility.
Multiple-step catching behavior
If price jumps far beyond one step, the script does not move only one step. It moves by:
floor(|diff| / stepSize) * stepSize
So it “catches up” in discrete blocks, preserving the stepped character without lagging massively after large moves.
Direction and regime
Direction is determined by the stepped line, not the raw MA:
direction = +1 if steppedMA is rising
direction = -1 if steppedMA is falling
otherwise direction stays the same
Signals only trigger on direction state changes:
Long when direction flips to +1
Short when direction flips to -1
This matters because it prevents repeated signals while the trend remains intact. You only get a signal when the market has moved enough (in ATR terms) to justify a structural step in the opposite direction.
Secondary line and gradient fill
The script also plots a secondary “slow MA” (length 25, same MA type). This is not the core logic, it is a visual context layer:
StepGMA is the structure line (discrete, regime-driven).
Slow MA is a smoother reference for the underlying drift.
The gradient fill highlights separation and dominance.
When StepGMA sits above the slow MA, the fill reinforces bullish bias. When below, it reinforces bearish bias. It is basically a “trend pressure” visual, not a separate signal.
How to interpret it
1) StepGMA as trend structure
Flat steps mean price is not making enough volatility-adjusted progress to move structure.
Up-steps mean the market has advanced enough to reprice the trend line upward.
Down-steps mean deterioration significant enough to reprice structure downward.
2) Direction is a regime, not a tick-by-tick call
Because direction is derived from step changes, it is naturally a regime filter:
Fewer flips in chop.
Clearer regime transitions.
Signals tend to occur later than ultra-fast tools, but with better confirmation quality.
3) Step size controls noise rejection
StepMult is the main “anti-chop” control:
Higher stepMult = bigger ATR steps = fewer updates, fewer signals, more confirmation, slower to react.
Lower stepMult = smaller steps = more updates, more signals, more sensitivity, more chop risk.
4) Generalization controls responsiveness of the underlying trend estimate
vf controls how “fast” the MA tries to be before stepping:
Higher vf makes the MA respond faster to new price information.
Lower vf makes the MA smoother and more conservative.
The step filter then decides whether that change is meaningful enough to matter.
Practical use cases
Trend filter for entries
Only take longs when direction is bullish.
Only take shorts when direction is bearish.
Avoid trades when StepGMA is flat for long periods, market is not repricing meaningfully.
Dynamic support and resistance
Because the line holds levels, it often behaves like structure:
In uptrends it can act as a rising support reference.
In downtrends it can act as falling resistance.
Signal quality layer
The step-based flip signals tend to be higher quality than basic MA crossovers because they require:
A meaningful volatility-adjusted move.
A confirmed direction change in the stepped trend structure.
Trade management
Use StepGMA as a trailing invalidation reference.
Use direction flips as “hard” regime exits.
Use separation vs slow MA as a “pressure” gauge for scaling decisions.
Tuning guidelines
MA Type
Pick based on the character you want:
T3, ALMA, KAMA are usually good defaults for clean trend representation.
HMA/LSMA are faster but may need larger stepMult to avoid twitch.
SMA is slow and stable but can be too laggy unless vf is increased.
MA Period
Sets the base smoothing horizon. Longer periods give “macro trend,” shorter periods give “tactical trend.”
Volume Factor (vf)
Sets responsiveness compensation:
0.05–0.25 is usually sensible.
Higher than that can get aggressive, step filter will save you, but your steps may fire more often.
ATR Period and StepMult
These define your structure sensitivity:
ATR Period controls how stable the volatility estimate is.
StepMult controls how large a move must be to change structure.
If you want fewer flips, increase StepMult or ATR Period. If you want quicker reaction, lower StepMult or ATR Period.
What this indicator is and is not
It is:
A trend structure MA that ignores sub-threshold noise.
A regime tool that uses volatility-adjusted repricing logic.
A configurable framework that works across assets and timeframes.
It is not:
A predictive reversal tool.
A scalping signal machine.
A replacement for risk management.
Summary
Step Generalized Moving Average combines a lag-compensated moving average (generalization via MA1/MA2 blending) with a volatility-scaled step filter (ATR-based quantization). The result is a stable, structure-like trend line that updates only when price movement is meaningful relative to volatility, producing cleaner regimes, fewer chop flips, and clearer trend bias than conventional moving averages.
RSI Directional OverlayRSI Directional Overlay is a clean, minimal price‑pane tool built around a custom Adaptive RSI (ARSI) engine. It focuses on one thing only: showing the true directional state of momentum with instant visual clarity.
How it works:
The indicator compares ARSI vs. its signal line and classifies the market into two directional regimes:
Green State: ARSI > Signal
Red State: ARSI < Signal
Each state is then refined using the RSI midline (50):
Light Green: Bullish shift forming, ARSI below/near 50
Dark Green: Strong bullish momentum, ARSI above 50
Light Red: Bearish shift forming, ARSI above/near 50
Dark Red: Strong bearish momentum, ARSI below 50
This creates a smooth, intuitive color transition without the noise of yellow “transition” candles.
Directional arrows appear only when ARSI crosses its signal line, giving clean, unambiguous shift markers.
Why it’s useful:
Removes emotional bias by showing momentum shifts instantly
Highlights early trend transitions with light colors
Confirms strong directional conviction with dark colors
Keeps the chart clean — no traffic lights, no labels, no clutter
Perfect for scalpers, day traders, and momentum‑based entries
Best setup:
Use on 1m–15m for intraday precision
Pair with the RSI Cross Over pane indicator for confirmation
Light colors = early transition
Dark colors = strong directional follow‑through
Arrows = momentum shift triggers
This indicator is designed for traders who want clarity, speed, and zero noise.
Std Dev Zones MTFStd Dev Zones MTF Key Features Overview
• ⭐ Built using ADR10 (Average Daily Range) logic to measure volatility-based standard deviation zones from timeframe open.
• ⚙️ ADR10 STD DEV Zones Pine v6 — MTF support for Daily, H4, H8, H12 timeframes for multi-timeframe volatility analysis.
• 📦 Dynamic zones calculated from period open (Daily/H4/H8/H12) using average range = clean, objective volatility structure.
• 📊 ±0.5 SD zones = neutral territory — price within normal range from open.
• 📈 +0.75 SD & +1.0 SD = OVERBOUGHT zones — price extended above normal range, potential exhaustion or reversal area.
• 📉 -0.75 SD & -1.0 SD = OVERSOLD zones — price extended below normal range, potential exhaustion or reversal area.
• 🔥 +1.25 SD = MAX OVERBOUGHT — extreme extension above open, highest volatility threshold for exits/profit-taking.
• 🧊 -1.25 SD = MAX OVERSOLD — extreme extension below open, highest volatility threshold for exits/profit-taking.
• 🧠 Adjustable zone thickness (% of ADR10) so zones scale with market volatility — perfect for Gold, Forex, Crypto swings.
• 🎨 Color-coded zones with large labels inside each zone for instant visual clarity — no interpretation lag.
• 🧭 Zones extend throughout the trading period so you can track price behavior relative to volatility bands.
• 🟩🟪 Dual color system for upper/lower zones + descriptive labels - zero confusion on market extension.
• 🧼 Clean overlay display: zones + open line = actionable, minimal, fast volatility assessment.
• ⭐ Apply to your M15/M30/H1/H4 TradingView chart — your volatility roadmap for Gold, FX, Crypto, Indices.
• 🚀 Use for exit planning & take-profit levels at overbought/oversold extremes — NOT for standalone entry signals.
• 📦 Enable/Disable individual zone levels (±0.5, ±0.75, ±1.0, ±1.25) to customize your chart view.
• 📦 Too cluttered? Adjust "Periods to Show" or increase zone thickness % from settings.
• 🎯 How to use this? Monitor price behavior at overbought/oversold zones for potential reversals or continuations. Use Max Overbought/Oversold levels for aggressive profit-taking. Combine with your entry system for complete trade management.
• ⚠️ IMPORTANT NOTICE: This indicator is designed to measure market volatility and identify potential exit/take-profit zones. It should NOT be used as a standalone signal for entering trades. Use it in conjunction with your trading strategy to assess overbought/oversold conditions and plan exits.
NQ
GBPUSD
BTCUSD
Renko Cloud (H-Ashi Data)First, thanks to the author of the original idea - pl.tradingview.com and his indicator
The idea behind my idea is to smooth the chart as much as possible...
This script is a trend-following indicator that combines Heikin Ashi price data, Renko box logic, and ALMA (Arnaud Legoux Moving Average) smoothing to filter out market noise.
A small note at the beginning - the indicator on Japanese candles and Heiken Ashi is the same - figuratively - the calculations from Heiken Ashi are projected onto regular candles ;)
PS - The default settings are proposed for BTC/USD on the 1D interval
Here is a breakdown of what the script does:
1. Data Pre-processing (Heikin Ashi)
Instead of using standard price bars, the script fetches Heikin Ashi data. Heikin Ashi candles are already a filtering mechanism designed to reduce "sawtooth" price action and make trends easier to spot. The script specifically uses the average of the Heikin Ashi Open and Close as its main price source.
2. Dual ALMA Moving Averages
The script plots two ALMA lines on the chart:
Medium (Aggressive): A faster moving average used to detect short-term trend shifts.
Long: A slower moving average used to identify the macro trend.
Visuals: These lines change color (e.g., Green for up, Red for down) based on their slope.
3. "Synthetic" Renko Logic
Standard Renko charts discard the time axis, but this script calculates Renko logic on top of a standard time-based chart.
Brick Size Calculation: You can choose how the "brick" size is determined:
ATR: Dynamically adjusts based on volatility (using an ALMA-smoothed ATR).
Percent: Based on a percentage of the price.
Static: A fixed point/pip value.
Trend Tracking: The script only updates its "current" price level when the source price moves by at least one full "brick size." This effectively ignores minor price fluctuations that don't meet the threshold.
4. Dynamic Ribbon & Visualization
The script visualizes the trend through a "Ribbon" or "Channel":
Renko Center: The smoothed path of the Renko levels.
Bands: It plots an Upper and Lower band (one brick size away from the center).
Color Gradients: The space between the bands is filled with color. It turns Green when the Renko direction is Up and Red when the Renko direction is Down.
Barcolor: It automatically changes the color of your price bars to match the detected trend.
Summary of Use Case
This indicator is designed for trend traders who want to stay in a position as long as the momentum is strong and exit only when a significant reversal occurs. By combining Heikin Ashi and Renko logic, it aims to eliminate "fakeouts" and keep the trader focused on the primary market direction.
Happy hunting for profits!
Smooth Accelarating RSISmooth Accelerating RSI (SA RSI) | MisinkoMaster
Smooth Accelerating RSI is a refined long-term momentum oscillator designed to deliver smoother RSI behavior while preserving the ability to react when momentum begins to accelerate. The indicator focuses on reducing noise typically found in standard RSI calculations while maintaining responsiveness during meaningful trend transitions.
This makes it particularly suitable for traders who prefer longer-term structure analysis or want cleaner signals across volatile markets.
Key Features
Smoother, longer-term RSI behavior compared to standard RSI
Momentum acceleration component for faster reaction to trend changes
Multiple moving average types supported for flexible smoothing behavior
Configurable trend and value-zone thresholds
Visual trend labeling and colored candles for intuitive reading
Divergence-style momentum histogram for shift detection
Adaptive smoothing to balance responsiveness and stability
How It Works
The indicator builds on traditional RSI logic but introduces layered smoothing and acceleration techniques to improve stability while preserving responsiveness.
Instead of relying on a single smoothing pass, the oscillator blends multiple smoothing layers and applies adaptive acceleration logic. This allows the RSI to remain calm during consolidation yet react quickly when momentum begins to expand.
An additional momentum change component highlights acceleration or deceleration phases, helping traders detect potential trend continuation or exhaustion.
The result is an RSI variant that behaves more smoothly over longer horizons while still adapting when market momentum shifts.
Inputs Overview
Source — Selects the price source used in RSI calculations
RSI Length — Controls the primary RSI calculation period
Smooth Accelerating Length — Controls final smoothing and acceleration responsiveness
MA Type — Selects which moving average method is applied throughout calculations
ALMA Offset & Sigma — Parameters used only when ALMA smoothing is selected
Upper Threshold — Level signaling bullish trend bias
Lower Threshold — Level signaling bearish trend bias
Overbought Threshold — Defines potential exhaustion zones on the upside
Oversold Threshold — Defines potential exhaustion zones on the downside
Usage Notes
Designed for smoother, longer-term momentum tracking
Suitable for traders preferring fewer but more stable signals
Momentum histogram helps identify acceleration or weakening trends
Threshold crossings can indicate directional shifts
Overbought and oversold zones may help locate pullback opportunities
Works best when combined with price action or confirmation tools
Always test parameters according to asset volatility and timeframe
Summary
Smooth Accelerating RSI provides a calmer and more structured alternative to standard RSI while preserving the ability to detect meaningful momentum changes. It is well suited for traders seeking cleaner long-term signals without losing awareness of emerging trend acceleration.
WMA MAD Trend | RakoQuantWMA MAD Trend | RakoQuant is a robust volatility-regime trend system built on Weighted Moving Average structure and Median Absolute Deviation dispersion, engineered to produce clean directional states while suppressing wick-driven noise and unstable ATR distortions.
This tool belongs to the RakoQuant protected research line, combining a smooth WMA baseline, statistically robust volatility envelopes (MAD bands), SuperTrend-style regime logic, and a strength-aware visualization layer designed for consistent performance across trending, mean-reverting, and mixed market environments.
Core Concept
This indicator answers one fundamental question:
Is price holding a statistically meaningful deviation from its WMA baseline, or reverting back into range?
Unlike classic SuperTrend variants that rely on ATR (highly sensitive to spikes and wicks), WMA MAD Trend uses Median Absolute Deviation as its volatility engine — a robust dispersion measure that remains stable in the presence of outliers.
How It Works
1) WMA Baseline (Directional Structure)
At its core, the indicator defines the market’s structural center using a Weighted Moving Average:
* WMA Baseline tracks directional bias with smoother, trend-weighted responsiveness
* The baseline can optionally be smoothed further in intraday mode to reduce micro-chop
This provides a stable anchor for dispersion-based regime classification.
2) MAD Volatility Engine (Robust Dispersion Core)
Instead of ATR, volatility is measured via Median Absolute Deviation (MAD) around the baseline:
* Compute absolute deviation:
|Close − Baseline|
* Take rolling median of deviation over madLen
* Optional normalization scales MAD toward a stdev-like measure (via constant factor)
This makes volatility estimation:
* Outlier-resistant
* Wick-resistant
* Regime-stable during abnormal price spikes
3) MAD Bands + SuperTrend Trailing Logic (Regime State Model)
Bands are built as:
* Upper Band = Baseline + Factor × MAD
* Lower Band = Baseline − Factor × MAD
Then classic SuperTrend-style trailing constraints are applied so the active band persists until a true regime break occurs.
That produces a state engine:
* Bull regime when price breaks above the trailing upper logic (transition into trend-up state)
* Bear regime when price breaks below the trailing lower logic (transition into trend-down state)
This behaves like a structural market regime model, not a reactive oscillator.
4) Strength Engine (Deviation-Based Intensity)
A defining layer of this tool is the MAD Z-score intensity system:
* Compute Z-score:
z = |Close − Baseline| / MAD
* Map into a 0 → 1 strength scale
Interpretation:
* Low deviation = weak regime confidence (likely chop / mean reversion)
* High deviation = strong regime confidence (trend expansion)
5) Intensity Visual Engine (Signal Clarity Layer)
WMA MAD Trend includes a protected visual engine that scales opacity with strength:
* Strong expansion = solid trend band
* Weak deviation = faded band
This gives immediate clarity:
Not all flips are equal — strength is displayed structurally.
6) Optional Institutional Filters
Two optional confirmation modules allow institutional-grade filtering:
Baseline Confirmation
* Bull flips only accepted if price is above baseline
* Bear flips only accepted if price is below baseline
EMA Stack Filter
* Bull only when Fast EMA > Slow EMA
* Bear only when Fast EMA < Slow EMA
These modules make the tool suitable for:
* Directional portfolio bias frameworks (RSPS)
* Regime classification overlays
* Trend confirmation filters for execution systems
7) Strong Flip Tier Alerts
Signal quality is tiered:
* Standard flip alerts
* Strong flip alerts only when deviation strength exceeds a threshold
This produces a higher-confidence regime transition model for swing positioning and exposure scaling.
How To Use
✅ Trend regime overlay
✅ Wick-resistant volatility trend filter
✅ MAD-based deviation strength engine
✅ Directional bias tool for portfolio systems
Best use cases:
* 1H–1D trend frameworks
* Regime filters for signal stacking
* Chop suppression in volatile markets
Suggested workflow:
* Bull bias when the regime is bullish and strength is rising
* Reduce risk / defensive when strength fades or a bearish flip occurs
* Pair with execution tools (breakout/mean-reversion entries) for timing
Screenshot Placement
📸 Example chart / screenshot: snapshot
Central Bank Liquidity Gap IndicatorThis indicator measures the gap between global liquidity growth and stock market growth to identify potential buying opportunities.
Liquidity drives markets. When central banks print money, that liquidity eventually flows into stocks and other assets. If we spot when liquidity growth is outpacing market growth, we can spot moments when the market is "due" to catch up.
I like this quote:
Earnings don't move the overall market; it's the Federal Reserve Board... focus on the central banks and focus on the movement of liquidity."
- Stanley Druckenmiller
How Central Bank Liquidity Gap Indicator Works
The indicator calculates a simple divergence:
Divergence = Liquidity Growth % − S&P 500 Growth %
Green bars = Liquidity is growing faster than the market (bullish)
Red bars = Market is growing faster than liquidity (less bullish)
Multi-Country M2 Money Supply
Unlike basic M2 indicators, this one lets you combine money supply data from multiple economies, including US, UK, Canada, China, Eurozone, Switzerland and Japan.
Each country's M2 is automatically weighted by its actual size (converted to USD). Larger economies have more influence on the global liquidity picture.
I've added a discount for China. China's M2 weight is reduced by 50% to account for capital controls that limit how much Chinese liquidity flows into global markets and into the US market.
Fed Net Liquidity
You can also blend in Fed Net Liquidity for a more precise US liquidity measure:
Net Liquidity = Fed Balance Sheet − Treasury General Account − Reverse Repo
This captures the actual liquidity the Fed has injected into financial markets, not just the broad money supply.
How To Read It
The Buy Zone (5%+ Divergence)
When the divergence exceeds +5%, the indicator enters the "Buy Zone" (highlighted with green background). This means liquidity is significantly outpacing market growth — historically a good buy signal.
The Support Table
The info table shows:
Component weights: How much each country's M2 contributes
Corr w/ SPX: Current correlation between liquidity and SPX (are they moving together?)
Leads SPX by X: Does past liquidity predict future SPX moves? (higher = more predictive)
Divergence %: Current divergence value
Signal
Correlation Stats
Corr w/ SPX: Measures if liquidity and SPX are moving in sync right now
Leads SPX: Measures if liquidity changes predict future SPX moves. A positive value here suggests liquidity is a leading indicator.
Potential Use Cases
Long-term investing: Wait for 5%+ divergence (buy zone) to accumulate index funds, ETFs, or stocks
Leveraged ETFs: Use buy zone signals to time entries into UPRO, TQQQ, SSO (higher risk, higher reward)
Crypto: Bitcoin and crypto markets also correlate with global liquidity — use this for BTC accumulation timing
Risk management: Avoid adding positions when divergence is deeply negative
Important Notes
This is a long-term indicator and not for daytrading. It works best used on Daily/Weekly timeframes
It identifies accumulation zones and not precise bottoms
Truly yours, Henrique Centieiro
Inspired by the relationship between M2 money supply and market performance, enhanced with multi-country liquidity tracking and Fed balance sheet analysis.
Let me know if you have questions/suggestions.
MarketStructureLab - Swing Reversion Zones (FREE)Swing Reversion Zones is an indicator designed to analyze price reversions to market structure after impulsive moves.
The indicator builds a smoothed structural baseline and a dynamic deviation range, highlighting areas where price statistically tends to slow down, react, or retrace.
What it shows
• Zones of potential overbought and oversold conditions
• Areas where price reverts back to structure
• Context for pullback-based entries rather than entries in the middle of a move
How to use
• Trading swing movements within an existing trend
• Identifying price reactions near the range boundaries
• Confirming long and short setups in combination with market structure
Features
• Adaptive smoothing without reliance on static levels
• Works across all markets and timeframes
Important
This indicator is not a signal system and does not make predictions.
It highlights reaction and reversion zones relative to market structure. Trade decisions remain the trader’s responsibility.
Designed for traders who focus on structure, context, and market reaction.
[KTY] Similar Pattern Finder Similar Pattern Finder
Hi, I'm Kim Thank You 👋
KTY = Kim Thank You (김땡큐)
Finds the most similar historical price pattern and projects a future path based on what happened next.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FEATURES
- Pattern Matching
- Scans historical bars for the closest matching price pattern
- Auto-adjusts scan range and pattern length per timeframe
- Future Projection
- Projects future price path based on what followed the matched pattern
- Scaled to current price range for accurate projection
- Endpoint price label displayed
- Signal Dashboard
- 🚀 STRONG BULL / 💥 STRONG BEAR: High confidence + directional
- 📈 BULLISH / 📉 BEARISH: Above threshold + directional
- ⚠️ LOW CONFIDENCE: Below minimum threshold
- ⏸️ NO MATCH: No valid pattern found
- Confidence % bar and projected move % displayed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ HOW TO USE
- Higher confidence % = more reliable projection
- Use as directional bias, not exact price target
- Combine with support/resistance or indicators for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS
- Works best in trending or repeating market conditions
- Low confidence warnings should be taken cautiously
- Past pattern similarity does not guarantee future results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is for educational purposes only.
Not financial advice. Always do your own research.
Forecast Trend Filter ~ CharonQuantThe Forecast Trend Filter (FTF) is a trend and momentum confirmation indicator built on the original Forecast Oscillator concept developed by Tushar Chande.
The original Forecast Oscillator measures how far price deviates from a linear regression forecast to highlight momentum shifts.
This version extends that foundation and restructures it into a practical, signal-quality focused trend filter designed for real trading conditions.
What’s different in this implementation:
• Forecast Oscillator combined with slope confirmation to ensure momentum is accelerating, not stalling
• Trend alignment filter using a user-selectable moving average (SMA, EMA, WMA, HMA, ALMA, VWMA)
• Minimum deviation threshold to filter out weak or noisy signals
• Directional state logic that clearly defines bullish, bearish, or neutral conditions
• Visual trend context using adaptive colors, background bias, and overlay plots
Signals are only generated when all conditions align:
• Price deviates meaningfully from its linear regression forecast
• Oscillator slope confirms momentum continuation
• Deviation exceeds the minimum quality threshold
• Price is aligned with the higher-level trend filter
If one condition fails, the signal is ignored.
This design prioritizes signal quality over signal frequency.
Development and usage notes:
This indicator was developed and calibrated on the 1D INDEX:ETHUSD chart.
You must tweak the parameters to fit your market, timeframe, and trading style.
If you do not read this description or do not understand what the indicator is designed to do, do not use it.
Indicators amplify both discipline and mistakes.
Important reminder: No single indicator is sufficient on its own.
RTR - Indecision Box Buy/Sell 3RRRTR Buy and Sell Indicator
The RTR Buy and Sell indicator is a technical analysis tool designed to identify potential buying and selling opportunities in the market. It generates buy signals when market conditions suggest a possible upward movement, and sell signals when conditions indicate a potential downward move. The indicator helps traders make more informed decisions by highlighting trend changes and optimal entry and exit points.
Supertrend with Keltner Channels ~ CharonQuantThe Supertrend with Keltner Channels Strategy is a trend-following and volatility indicator designed to filter noise and highlight high-quality directional opportunities.
Core Logic
The indicator is based on two complementary components:
• Supertrend defines the primary market regime (bullish or bearish)
• Keltner Channels define volatility expansion and contraction
Signals are only generated when both trend direction and volatility breakout agree.
Signal Conditions
A Buy signal is triggered when:
• Supertrend flips bullish
• Price breaks above the upper Keltner Channel
A Sell signal is triggered when:
• Supertrend flips bearish
• Price breaks below the lower Keltner Channel
If one condition is missing, no signal is produced. This design prioritizes signal quality over signal frequency.
Visual Structure
The indicator uses a clear visual hierarchy:
• Bar coloring reinforces directional bias
• Supertrend acts as the main directional spine
• Keltner Channels provide volatility context
• Buy and Sell labels mark execution points
All visual elements can be enabled or disabled from the Visual Settings panel.
Development and usage notes:
This indicator was developed and calibrated on the 1D INDEX:BTCUSD chart.
You must tweak the parameters to fit your market, timeframe, and trading style.
If you do not read this description or do not understand what the indicator is designed to do, do not use it.
Indicators amplify both discipline and mistakes.
Important reminder: No single indicator is sufficient on its own.
For Loop THMA ~ CharonQuantThe For Loop THMA is a trend classification and momentum confirmation indicator designed to measure directional strength through relative price dominance, not raw crossings.
This indicator blends a Triple Hull Moving Average structure with a for-loop comparison engine and multiple trend quality filters to reduce noise and false signals.
Concept Overview
The core idea behind this indicator is simple:
Instead of asking “did price cross a line?”, it asks
“How often is the price stronger than its recent past?”
By looping over previous THMA values and comparing them to the current value, the indicator builds a directional score that reflects internal momentum and persistence.
This approach allows trends to be evaluated statistically rather than emotionally.
Indicator Components
The For Loop THMA is composed of four layers:
• Triple Hull Moving Average (THMA) as the smoothed price backbone
• For-loop counter to quantify relative dominance over a lookback window
• EMA trend filter to align signals with higher-timeframe bias
• ADX + DMI filter to ensure sufficient trend strength
Signals are only produced when all components align.
For-Loop Logic
The for-loop compares the current THMA value to its past values over a user-defined range.
Each comparison increments or decrements a counter, producing an oscillator that reflects bullish or bearish pressure.
Optional weighting can be enabled to give more importance to recent price action.
This counter becomes the primary decision engine of the indicator.
Visual Interpretation
• The oscillator displays the strength and direction of the trend
• Threshold lines define bullish and bearish regimes
• Bar coloring reflects the active trend state
• Color intensity adapts to directional confidence
Credits and Inspiration
This indicator is inspired by and builds upon:
• THMA ~ CharonQuant
• For Loop MA Indicator from CraftMan18
Development and usage notes:
You must tweak the parameters to fit your market, timeframe, and trading style.
If you do not read this description or do not understand what the indicator is designed to do, do not use it.
Indicators amplify both discipline and mistakes.
Important reminder: No single indicator is sufficient on its own.
SACHIN_WITH_SLgears for setting signals use it
lllllllllllllllllllllllllllllllllllllllllllllllllhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
ALMA SD Bands | RakoQuantALMA SD Bands | RakoQuant is a volatility-regime band system built from first principles using an institutional smoothing framework: an ALMA baseline combined with ALMA-smoothed standard deviation width, designed for clean trend containment and controlled regime classification.
This tool is part of the RakoQuant protected research line, focusing on minimal noise, persistent state logic, and volatility-aware market structure rather than traditional reactive Bollinger-style band behavior.
Core Concept
This indicator answers one key structural question:
Is price operating inside a stable volatility regime, or transitioning into a new directional band expansion phase?
Unlike classical deviation band systems that fluctuate aggressively candle-to-candle, ALMA SD Bands introduce:
* Ultra-smooth baseline structure
* Smoothed volatility width
* Persistent directional regime logic
* Deadband-based flip stabilization
The result is a clean institutional containment model rather than noisy retail band plotting.
How It Works
1. ALMA Baseline (Institutional Mean Structure)
The centerline of the system is computed using:
Arnaud Legoux Moving Average (ALMA)
ALMA provides:
* Reduced lag compared to EMA
* Superior smoothness compared to SMA
* Stable regime structure across crypto volatility
This baseline acts as the equilibrium axis of the band system.
2. Standard Deviation Volatility Width (Smoothed)
Band width is driven by volatility, measured through standard deviation, with two selectable modes:
* Price Standard Deviation
* Return Standard Deviation (log-return volatility)
Rather than using raw deviation directly, volatility is passed through a second ALMA smoothing layer:
Smoothed Volatility = ALMA(StdDev)
This eliminates the jitter and band shaking that defines most Bollinger-type systems.
3. Adaptive Containment Bands
Final bands are constructed as:
* Upper Band = ALMA Basis + Multiplier × Smoothed Volatility
* Lower Band = ALMA Basis − Multiplier × Smoothed Volatility
Unlike traditional ±2σ envelopes, the multiplier is intentionally adjustable and tuned for regime containment rather than extreme tagging.
4. Deadband Regime Engine (Persistent State Logic)
A defining feature of this protected release is its regime persistence model.
Instead of flipping trend bias instantly, the script applies a volatility-scaled deadband buffer:
* Bull regime activates only above Basis + Deadband
* Bear regime activates only below Basis − Deadband
This removes micro-flips and produces a true structural regime state:
* Bullish containment (green)
* Bearish containment (red)
* Neutral transition zone suppression
Regime state persists until a confirmed boundary transition occurs.
Visual Engine
ALMA SD Bands follows the RakoQuant minimal institutional plotting standard:
* Active volatility bands only
* Smooth containment fill
* Optional candle painting by regime bias
* Ultra-clean overlays suitable for confluence stacking
This indicator is designed as a structural layer, not a clutter generator.
How To Use
✅ Volatility containment framework
✅ Trend regime bias overlay
✅ Expansion / contraction classifier
✅ Portfolio directional filter (RSPS compatible)
Recommended workflow:
* Trade long only during bullish regime containment
* Defensive during bearish containment
* Watch for regime flips as volatility transition events
* Combine with momentum triggers for execution
Best environments:
* 4H–1D swing trend structure
* Volatility breakout classification
* Institutional band containment systems
Screenshot Placement
📸 Example chart / screenshot:
All in One Trend Indicator by Nicks**Multi-Factor Confluence Suite (7-in-1 Overlay)**
### **Description:**
**Overview**
This script is a comprehensive workspace optimizer designed to combine 7 essential trading tools into a single, efficient overlay. By merging trend analysis, market structure, liquidity zones, and momentum signals, this tool allows traders to bypass the standard indicator limit and view high-probability confluence setups without a cluttered chart.
**Key Features & Functionality**
* **Trend Filtering (Hull Suite):**
* A lag-reduced moving average system that visualizes the macro trend.
* Includes candle coloring options to easily identify trend alignment.
* **Market Structure (SMC):**
* Automatically maps Break of Structure (BOS) and Change of Character (CHoCH).
* Identifies Order Blocks and Fair Value Gaps (FVG) for potential entry/exit zones.
* **Liquidity Analysis:**
* **Swings:** Highlights key swing highs and lows where stop losses typically reside.
* **Grabs:** Specifically detects "stop hunts" where price wicks liquidity before reversing (Bubbles visualization).
* **Momentum Signals (UT Bot & MACD):**
* **UT Bot:** Provides high-sensitivity Buy/Sell labels based on ATR trailing stops.
* **MACD Overlay:** Plots signal crossovers directly on the price chart (arrows) to identify momentum shifts without occupying a separate oscillator pane.
* **Session Timing:**
* Visualizes major trading sessions (NY, London, Tokyo, Sydney) with an optional dashboard table.
**How to Use**
This suite is designed for "Confluence Trading."
1. **Identify Trend:** Use the Hull Suite color to determine the directional bias.
2. **Find Structure:** Wait for price to react at an SMC Order Block or Liquidity Zone.
3. **Confirm Entry:** Look for a UT Bot label or MACD Arrow in the direction of the trend.
**Settings**
Each module is separated by headers in the settings menu. You can toggle specific indicators on/off to suit your trading style and keep the chart clean.
**Credits & Attribution**
This script is a compilation of open-source logic from the TradingView community, adapted and updated to Pine Script v5/v6 for compatibility. Special thanks to the original authors for their foundational work:
* *InSilico* (Hull Logic)
* *LuxAlgo* (SMC & Liquidity Swings Logic)
* *Flux Charts* (Liquidity Grabs Logic)
* *QuantNomad* (UT Bot Logic)
* *TraderHariKrishna* (Session Logic)
**License**
This source code is subject to the terms of the Mozilla Public License 2.0 and/or Creative Commons (CC BY-NC-SA 4.0) where applicable by the original authors. This script is intended for educational and personal use.
---
AOC Pro - Elite Audited Suite (V6.6)this is one of best indicator for indan market based on option chain volume support and resistance for best result one can follow
SELF FU Wick Sweep + Inside Close//@version=5
indicator("SELF FU Wick Sweep + Inside Close", overlay=true)
// Oldingi va joriy sham holati
prevBull = close > open
prevBear = close < open
currBull = close > open
currBear = close < open
// Wick ikkala tomondan sweep
wickSweep = high > high and low < low
// Yopilish narxi oldingi sham ichida
closeInsidePrev = close < high and close > low
// Bearish SELF FU
bearSELFFU = prevBull and currBear and wickSweep and closeInsidePrev
plotshape(bearSELFFU, title="Bearish SELF FU", location=location.abovebar,
style=shape.labeldown, color=color.red, text="SELF FU", textcolor=color.white)
// Bullish SELF FU
bullSELFFU = prevBear and currBull and wickSweep and closeInsidePrev
plotshape(bullSELFFU, title="Bullish SELF FU", location=location.belowbar,
style=shape.labelup, color=color.green, text="SELF FU", textcolor=color.white)






















