Indicators and strategies
Indicador Multi-Estrategia - ComunidadMulti-indicator designed for use by TradingView users with a free account. The intention is to support users who are just starting out in the world of crypto trading.
EMA Momentum by NardThis indicator using basically EMA. This indicator will gives signal if there is a EMA momentum, to buy and sell
MTF-IndSunTab V1This is just an indicator in tabular form which picks the inputs from different indicators and presents them in tabular form as ready reckoner.
Awesome SuperTrend Zone Dynamic Alerts// created by © OmegaTools, upgrade to v6 and alert condition added
//@version=6
Awesome SuperTrend Zone Alerts with dynamic alerts
Awesome SuperTrend Zone Alerts v2// created by © OmegaTools, upgrade to v6 and alert condition added
//@version=6
Created dynamic alert conditions. Users can now select multiple conditions to be notified on 1 alert
momentum spread strategy ilkerThis script is the opposite of a traditional mean-reversion pairs trading strategy. It is a "Cointegration Breakdown" or "Momentum Divergence" tool.
Instead of betting on a spread's Z-Score to revert to 0, this strategy is designed to identify when the statistical relationship (the "elastic band") has snapped. It then provides signals to trade with the momentum as the spread diverges.
It filters for true breakouts by waiting for a "Momentum Regime," which is confirmed only when the pair's relationship becomes statistically unstable.
## 📈 Key Features
1. The Momentum Regime (Blue Background)
This is the core of the indicator. The background turns BLUE to signal a "Momentum Regime". This is the only time you should look for a momentum trade.
The blue background activates only if TWO conditions are met simultaneously:
• 1. Relationship Instability: The pair's relationship is broken. This is confirmed when either the rolling Correlation Z-Score (purple line) breaks down OR the Volatility Ratio (orange line) becomes unstable.
• 2. Divergence Confirmation: The Half-Life calculation (from our v2.8 script) shows "N/A (Divergent)" in the dashboard. This mathematically confirms the mean-reverting force (\lambda) is gone (it has turned positive) and the spread is statistically diverging.
If the background is GRAY, the script is in a "Neutral" or "Mean-Reversion" state, and all momentum signals should be ignored.
2. Momentum Breakout Signals
This strategy inverts the Z-Score logic. The 0-line is not a profit target; it is the breakout line.
• BUY Signal (Blue Triangle ▲): Appears only if the background is BLUE and the Z-Score (blue line) crosses ABOVE 0. This is your long momentum entry.
• SELL Signal (Fuchsia Triangle ▼): Appears only if the background is BLUE and the Z-Score crosses BELOW 0. This is your short momentum entry.
3. Built-in Trade Management
• Take Profit (X Cross): Your profit target is the outer band. The script plots an 'X' when the Z-Score hits the +2.0 band (for longs) or the -2.0 band (for shorts).
• Stop Loss (X Cross): Your stop is a failure of the momentum. The script plots an 'X' if the Z-Score re-crosses the 0-line against your trade.
4. Full Quant Dashboard
All the statistical components are plotted for analysis:
• Price Z-Score (Blue Line): Your primary momentum indicator.
• Z-Score Correlation (Purple Line): Lets you visually confirm the correlation breakdown.
• Volatility Ratio (Orange Line): Lets you visually confirm the volatility spike.
• Half-Life Dashboard: Confirms the regime by showing "N/A (Divergent)".
## 🛠 How to Use (Required Setup)
IMPORTANT: This indicator is designed to run on a spread chart (e.g., M2K/MES or MGC/SIL).
1. Load your spread chart first (e.g., type M2K/MES in the ticker bar).
2. Add this indicator to the chart.
3. Go into the indicator's Settings (⚙).
4. In the "Inputs" tab, you MUST fill in the two individual tickers:
• Ticker du Symbole 1 (REQUIS): M2K
• Ticker du Symbole 2 (REQUIS): MES
5. The script uses these two inputs to calculate the Volatility and Correlation filters. The main Z-Score is calculated from the spread chart itself.
This tool is for traders who want to capture explosive divergence moves that happen during fundamental news or regime changes, while filtering out the "noise" of stable, mean-reverting periods.
Momentum Quant Spread IlkerThis script is the opposite of a traditional mean-reversion pairs trading strategy. It is a "Cointegration Breakdown" or "Momentum Divergence" tool.
Instead of betting on a spread's Z-Score to revert to 0, this strategy is designed to identify when the statistical relationship (the "elastic band") has snapped. It then provides signals to trade with the momentum as the spread diverges.
It filters for true breakouts by waiting for a "Momentum Regime," which is confirmed only when the pair's relationship becomes statistically unstable.
## 📈 Key Features
1. The Momentum Regime (Blue Background)
This is the core of the indicator. The background turns BLUE to signal a "Momentum Regime". This is the only time you should look for a momentum trade.
The blue background activates only if TWO conditions are met simultaneously:
• 1. Relationship Instability: The pair's relationship is broken. This is confirmed when either the rolling Correlation Z-Score (purple line) breaks down OR the Volatility Ratio (orange line) becomes unstable.
• 2. Divergence Confirmation: The Half-Life calculation (from our v2.8 script) shows "N/A (Divergent)" in the dashboard. This mathematically confirms the mean-reverting force (\lambda) is gone (it has turned positive) and the spread is statistically diverging.
If the background is GRAY, the script is in a "Neutral" or "Mean-Reversion" state, and all momentum signals should be ignored.
2. Momentum Breakout Signals
This strategy inverts the Z-Score logic. The 0-line is not a profit target; it is the breakout line.
• BUY Signal (Blue Triangle ▲): Appears only if the background is BLUE and the Z-Score (blue line) crosses ABOVE 0. This is your long momentum entry.
• SELL Signal (Fuchsia Triangle ▼): Appears only if the background is BLUE and the Z-Score crosses BELOW 0. This is your short momentum entry.
3. Built-in Trade Management
• Take Profit (X Cross): Your profit target is the outer band. The script plots an 'X' when the Z-Score hits the +2.0 band (for longs) or the -2.0 band (for shorts).
• Stop Loss (X Cross): Your stop is a failure of the momentum. The script plots an 'X' if the Z-Score re-crosses the 0-line against your trade.
4. Full Quant Dashboard
All the statistical components are plotted for analysis:
• Price Z-Score (Blue Line): Your primary momentum indicator.
• Z-Score Correlation (Purple Line): Lets you visually confirm the correlation breakdown.
• Volatility Ratio (Orange Line): Lets you visually confirm the volatility spike.
• Half-Life Dashboard: Confirms the regime by showing "N/A (Divergent)".
## 🛠 How to Use (Required Setup)
IMPORTANT: This indicator is designed to run on a spread chart (e.g., M2K/MES or MGC/SIL).
1. Load your spread chart first (e.g., type M2K/MES in the ticker bar).
2. Add this indicator to the chart.
3. Go into the indicator's Settings (⚙).
4. In the "Inputs" tab, you MUST fill in the two individual tickers:
• Ticker du Symbole 1 (REQUIS): M2K
• Ticker du Symbole 2 (REQUIS): MES
5. The script uses these two inputs to calculate the Volatility and Correlation filters. The main Z-Score is calculated from the spread chart itself.
This tool is for traders who want to capture explosive divergence moves that happen during fundamental news or regime changes, while filtering out the "noise" of stable, mean-reverting periods.
AshokTrendThe AshokTrend indicator uses a combination of trendline logic and pivot high/low detection to signal possible BUY and SELL trades based on price action and structural breakouts.
### Buy/Sell Signal Logic
- **Buy Trade Signal**: It identifies local pivot lows using a lookback period, then checks multiple conditions comparing current and previous pivot values to validate a breakout. If conditions are met, triangle-up shapes are plotted below bars to indicate a possible long trade, and trendlines are drawn connecting pivots for visual confirmation.
- **Sell Trade Signal**: It locates pivot highs, applies similar multi-point checks, and confirms breakdowns in structure. Upon a valid signal, triangle-down shapes are plotted above bars to indicate a possible short trade, with corresponding trendlines marking pivot connections.
### Structural Confirmation
- Both buy and sell signals require the breakout/breakdown to be visually confirmed via the movement and steepness (slope) of custom lines that represent price momentum between pivots. Lines are updated or deleted if price fails the required strength, ensuring signals are filtered for validity.
### Alert and Analysis Details
- **Alerts**: Plotted shapes (triangle up for buy, triangle down for sell) can be used for automated alerts, integrating with platform alert conditions for strategy automation.
- **Analysis**: The indicator incorporates logic for cleaning up invalid signals and pruning trendlines when a reversal is detected, increasing reliability of entries and exits for both buy and sell trades.
### Key Settings for Customization
- Lookback period, padding, and color settings allow the user to tune signal frequency and visual appearance according to specific trading needs.
### Summary Table
| Signal Type | Visual Mark | Pivot Reference | Trendline Confirmation | Filtering Logic |
|----------------------|--------------|-----------------|-----------------------|-------------------------------|
| BUY | Triangle Up | Pivot Low | Slope & multi-point | Valid breakout only |
| SELL | Triangle Down| Pivot High | Slope & multi-point | Valid breakdown only |
This approach ensures that only structurally strong breakout-based trades are considered, pruning false signals in real-time for improved consistency in automated or manual trade analysis
Follow me for more updates...
Disclaimer - This post is created for only Learning Purpose. Every Charts, Trade Ideas, Buy & Sell Levels and Updates are Provided For Learning Purpose Only . We Do Not Provide Any Buy And Sell Signals Tips. We are Not SEBI Registered .Do Always Calculate Your risk Before Taking the Trade And consult your Financial Advisor Before taking any Trade. Thank You
Vwap Daily By SamsungTitle
Daily VWAP with Historical Lookback (Logic Fix)
Description
This script calculates and plots the daily Volume-Weighted Average Price (VWAP), an essential tool for intraday traders.
What makes this indicator special is its robust plotting logic. Unlike many simple VWAP scripts that struggle to show data for previous days, this version includes a crucial fix that allows you to reliably display historical VWAP lines for as many days back as you need. This allows for more comprehensive backtesting and analysis of how price has interacted with the VWAP on previous trading days.
This is an indispensable tool for traders who use VWAP as a dynamic level of support/resistance, a benchmark for trade execution quality, or a gauge of the day's trend.
Key Features
Historical VWAP Display: Easily plot VWAP for multiple past days on your chart. Simply set the number of lookback days in the settings.
Accurate Daily Calculation: The VWAP calculation correctly resets at the beginning of each new trading session (00:00 server time).
Fully Customizable: You have full control over the appearance of the VWAP line, including its color, width, and style (Solid or Stepped).
Robust Plotting Engine: This script solves the common Pine Script issue where conditionally plotted historical lines fail to render. It works reliably on all intraday timeframes.
Built-in Debug Mode: For advanced users or those curious about the inner workings, a comprehensive debug mode can be enabled to display raw VWAP values, cumulative volume, and timeframe warnings.
How to Use
Add the "Daily VWAP with Historical Lookback" indicator to your chart.
IMPORTANT: Make sure you are on an intraday timeframe (e.g., 1H, 30M, 15M, 5M, 1M). This indicator is designed for intraday analysis and will display a warning if used on a daily or higher timeframe.
Open the indicator's settings.
In the "VWAP Settings" tab, adjust the "Lookback Days to Display" to set how many previous days of VWAP you want to see. (e.g., 0 for today only, 1 for today and yesterday, 10 for the last 10 days).
Customize the line's appearance in the "Line Style" tab.
The "Logic Fix" Explained (For Developers)
A common challenge in Pine Script is conditionally plotting data for historical bars. Many scripts attempt this by dynamically changing the plot color to na (transparent) for bars that shouldn't be displayed. This method is often unreliable and can result in the entire plot failing to render.
This script employs a more robust and standard approach: manipulating the data series itself.
The Problem: plot(vwap, color = shouldPlot ? color.red : na) can be buggy.
The Solution: plot(shouldPlot ? vwap : na, color = color.red) is reliable.
Instead of changing the color, we create a new data series (plotVwap). This series contains the vwapValue only on the bars that meet our date criteria. On all other bars, its value is na (Not a Number). The plot() function is designed to handle na values by simply "lifting the pen," creating a clean break in the line. This ensures that the VWAP is drawn only for the selected days, with 100% reliability across all historical data.
Settings Explained
Lookback Days to Display: Sets the number of past days (from the last visible bar) for which to display the VWAP.
Line Color, Width, and Style: Standard cosmetic settings for the VWAP line.
Enable Debug Mode (Master Switch): Toggles all debugging features on or off. It is enabled by default to help new users.
Display Debug: Cumulative Volume: When enabled, it shows the daily cumulative volume in a gray area on a separate pane.
Display Debug: Raw VWAP Value: When enabled, it plots the raw, unfiltered VWAP calculation for all days on the chart, helping to verify the core logic.
This script is provided for educational and informational purposes. Trading involves significant risk. Always conduct your own research and analysis before making any trading decisions.
If you find this script useful, a 'Like' is always appreciated! Happy trading
Adaptive DEMABEST USED ON 1-4 HOUR TIME FRAME - this indicator uses specific inputs and coding to help signal when the market is going to make its move. combine this with your technical analysis to pint point timing
MACD HTF Hardcoded (A/B Presets) + Regimes [CHE] MACD HTF Hardcoded (A/B Presets) + Regimes — Higher-timeframe MACD emulation with acceptance-based regime filter and on-chart diagnostics
Summary
This indicator emulates a higher-timeframe MACD directly on the current chart using two hardcoded preset families and a time-bucket mapping, avoiding cross-timeframe requests. It classifies four MACD regimes and applies an acceptance filter that requires several consecutive bars before a state is considered valid. A small dead-band around zero reduces noise near the axis. An on-chart table reports the active preset, the inferred time bucket, the resolved lengths, and the current regime.
Pine version: v6
Overlay: false
Primary outputs: MACD line, Signal line, Histogram columns, zero line, regime-change alert, info table
Motivation: Why this design?
Cross-timeframe indicators often rely on external timeframe requests, which can introduce repaint paths and added latency. This design provides a deterministic alternative: it maps the current chart’s timeframe to coarse higher-timeframe buckets and uses fixed EMA lengths that approximate those views. The dead-band suppresses flip-flops around zero, and the acceptance counter reduces whipsaw by requiring sustained agreement across bars before acknowledging a regime.
What’s different vs. standard approaches?
Baseline: Classical MACD with user-selected lengths on the same timeframe, or higher-timeframe MACD via cross-timeframe requests.
Architecture differences:
Hardcoded A and B length families with a bucket map derived from the chart timeframe.
No `request.security`; all calculations occur on the current series.
Regime classification from MACD and Histogram sign, gated by an acceptance count and a small zero dead-band.
Diagnostics table for transparency.
Practical effect: The MACD behaves like a slower, higher-timeframe variant without external requests. Regimes switch less often due to the dead-band and acceptance logic, which can improve stability in choppy sessions.
How it works (technical)
The script derives a coarse bucket from the chart timeframe using `timeframe.in_seconds` and maps it to preset-specific EMA lengths. EMAs of the source build MACD and Signal; their difference is the Histogram. Signs of MACD and Histogram define four regimes: strong bull, weak bull, strong bear, and weak bear. A small, user-defined band around zero treats values near the axis as neutral. An acceptance counter checks whether the same regime persisted for a given number of consecutive bars before it is emitted as the filtered regime. A single alert condition fires when the filtered regime changes. The histogram columns change shade based on position relative to zero and whether they are rising or falling. A persistent table object shows preset, bucket tag, resolved lengths, and the filtered regime. No cross-timeframe requests are used, so repaint risk is limited to normal live-bar movement; values stabilize on close.
Parameter Guide
Source — Input series for MACD — Default: Close — Using a smoother source increases stability but adds lag.
Preset — A or B length family — Default: “3,10,16” — Switch to “12,26,9” for the classic family mapped to buckets.
Table Position — Anchor for the info table — Default: Top right — Choose a corner that avoids covering price action.
Table Size — Table text size — Default: Normal — Use small on dense charts, large for presentations.
Dark Mode — Table theme — Default: Enabled — Match your chart background for readability.
Show Table — Toggle diagnostics table — Default: Enabled — Disable for a cleaner pane.
Zero dead-band (epsilon) — Noise gate around zero — Default: Zero — Increase slightly when you see frequent flips near zero.
Acceptance bars (n) — Bars required to confirm a regime — Default: Three — Raise to reduce whipsaw; lower to react faster.
Reading & Interpretation
Histogram columns: Above zero indicates bullish pressure; below zero indicates bearish pressure. Darker shade implies the histogram increased compared with the prior bar; lighter shade implies it decreased.
MACD vs. Signal lines: The spread corresponds to histogram height.
Regimes:
Strong bull: MACD above zero and Histogram above zero.
Weak bull: MACD above zero and Histogram below zero.
Strong bear: MACD below zero and Histogram below zero.
Weak bear: MACD below zero and Histogram above zero.
Table: Inspect active preset, bucket tag, resolved lengths, and the filtered regime number with its description.
Practical Workflows & Combinations
Trend following: Use strong bull to favor long exposure and strong bear to favor short exposure. Use weak states as pullback or transition context. Combine with structure tools such as swing highs and lows or a baseline moving average for confirmation.
Exits and risk: In strong trends, consider exiting partial size on a regime downgrade to a weak state. In choppy sessions, increase the acceptance bars to reduce churn.
Multi-asset / Multi-timeframe: Works on time-based charts across liquid futures, indices, currencies, and large-cap equities. Bucket mapping helps retain a consistent feel when moving from lower to higher timeframes.
Behavior, Constraints & Performance
Repaint/confirmation: No cross-timeframe requests; values can evolve intrabar and settle on close. Alerts follow your TradingView alert timing settings.
Resources: `max_bars_back` is set to five thousand. Very large resolved lengths require sufficient history to seed EMAs; expect a warm-up period on first load or after switching symbols.
Known limits: Dead-band and acceptance can delay recognition at sharp turns. Extremely thin markets or large gaps may still cause brief regime reversals.
Sensible Defaults & Quick Tuning
Start with preset “3,10,16”, dead-band near zero, and acceptance of three bars.
Too many flips near zero: increase the dead-band slightly or raise the acceptance bars.
Too sluggish in clean trends: reduce the acceptance bars by one.
Too sensitive on fast lower timeframes: switch to the “12,26,9” preset family or raise the acceptance bars.
Want less clutter: hide the table and keep the alert.
What this indicator is—and isn’t
This is a visualization and regime layer for MACD using higher-timeframe emulation and stability gates. It is not a complete trading system and does not generate position sizing or risk management. Use it with market structure, execution rules, and protective stops.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Zscore correlation volatility Demi vie IlkerThis is an all-in-one "regime" dashboard for pairs trading. It's designed to stop you from taking bad mean-reversion trades by first identifying if the market conditions are stable.
It answers two key questions:
1. "Is this a good time to trade a mean-reversion strategy?" (The Regime Filter)
2. "If yes, how fast should I expect the trade to work?" (The Half-Life)
## 📈 Key Features
This script runs four main calculations at once:
1. The Price Z-Score (Blue Line)
This is your primary entry signal. It shows you how "cheap" (e.g., -2.0) or "expensive" (e.g., +2.0) the spread is relative to its short-term history (z_len).
2. The Regime Background (Green / Red)
This is the most important part. It acts as a "traffic light" for your trading:
• 🟢 GREEN (Stable Regime): It's safe to look for mean-reversion trades. This means both the correlation and volatility filters are stable.
• 🔴 RED (Unstable Regime): DO NOT trade mean-reversion. The relationship between the assets is broken. Any signal is likely a trap.
3. The Regime Filters (Your "Guards")
These two filters determine the background color:
• Correlation Z-Score (Purple Line): It measures the stability of the correlation. If this purple line drops below the red threshold (corr_z_threshold), it means the correlation has broken down, and the background turns RED.
• Volatility Ratio (Orange Line): It compares the volatility of the two assets. If one asset suddenly becomes much more volatile than the other (deviating from its average ratio), the background turns RED.
4. The Half-Life Dashboard (Top-Right Table)
This is your "speedometer." Based on an Ornstein-Uhlenbeck model, it calculates the average time (in bars) it takes for the spread to revert 50% of the way back to its mean.
• HL: 13.86 periods: You can expect it to take ~14 bars to go from a Z-Score of 2.0 to 1.0.
• N/A (Divergent): A critical warning. The math shows the spread is currently diverging and has no tendency to revert.
## 💡 How to Use This Indicator
Setup (Required):
1. Load a spread chart (e.g., type MES/MNQ or MGC/SIL into the TradingView search).
2. Add this indicator to the spread chart.
3. Go into the indicator's Settings (⚙).
4. In the "Inputs" tab, you must enter the two individual tickers:
• Symbol 1 Ticker: MGC
• Symbol 2 Ticker: SIL
(This is so the script can calculate the Correlation and Volatility filters).
Trading Signals
1. Mean-Reversion Signals
• BUY Signal (Green Triangle ▲): Appears only if the background is GREEN and the Price Z-Score (blue line) crosses below the -2.0 band.
• SELL Signal (Red Triangle ▼): Appears only if the background is GREEN and the Price Z-Score (blue line) crosses above the +2.0 band.
• EXIT: Your target is a reversion back to the 0 line. The Half-Life value gives you an idea of how long to wait.
2. Divergence Warning Signals
• Blue/Fuchsia Triangles (▲ / ▼): These appear at the exact moment the background turns RED. They warn you that the "stable" regime is broken and a new "divergence" or "trend" regime may be starting. This is a signal to stay out or manage any existing positions.
This tool is designed to add a layer of quantitative, risk-management logic to a standard Z-Score strategy. It helps you trade only when the statistics are in your favor.
5M Gap Finder — Persistent Boxes (Tiered) v65 M gap finder, using 3 different types of gaps: Tier Definition Tightness Frequency Use Case
Tier A (Strict) Gap ≥ 0.10%, body ≥ 70% of range Rare Institutional-strength displacement
Tier B (Standard) Gap ≥ 0.05%, body ≥ 60% of range Medium Baseline trading setup
Tier C (Loose) Gap ≥ 0.03%, no body condition Common Data collection and observation
RSI Optimized + 200MA FilterRSI Optimized + 200MA Filter with RSI, Williams %R, and QQE
This indicator combines multiple momentum and trend analysis tools to identify high-probability trade setups.
It includes:
• RSI (Relative Strength Index) optimized for short-term and swing trading signals.
• 200-period Moving Average Filter to determine long-term trend bias — trades are filtered based on whether price is above or below the 200MA.
• Williams %R for identifying overbought and oversold zones more responsively than RSI.
• QQE (Quantitative Qualitative Estimation) for smoothing RSI and confirming momentum strength.
Usage:
• Buy signals appear when RSI and QQE indicate upward momentum above the 200MA trend line.
• Sell signals appear when momentum weakens below 200MA or when RSI/Williams %R reach overbought extremes.
• The indicator can be applied to any asset or timeframe but performs best on 1H–4H charts.
Category: Relative Strength Indicators
Recommended for: Momentum traders, swing traders, and algorithmic strategy developers.
Multi-TF Gates (Labels + Alerts)//@version=6
indicator("PO9 – Multi-TF Gates (Labels + Alerts)", overlay=true, max_lines_count=500)
iYear=input.int(2024,"Anchor Year",minval=1970)
iMonth=input.int(11,"Anchor Month",minval=1,maxval=12)
iDay=input.int(6,"Anchor Day",minval=1,maxval=31)
useSymbolTZ=input.bool(true,"Use symbol's exchange timezone (syminfo.timezone)")
tzChoice=input.string("Etc/UTC","Custom timezone (if not using symbol TZ)",options= )
anchorType=input.string("FX NY 17:00","Anchor at",options= )
showEvery=input.int(9,"Mark every Nth candle",minval=1)
showD=input.bool(true,"Show Daily")
show3H=input.bool(true,"Show 3H")
show1H=input.bool(true,"Show 1H")
show15=input.bool(true,"Show 15M")
show5=input.bool(false,"Show 5M (optional)")
colD=input.color(color.new(color.red,0),"Daily color")
col3H=input.color(color.new(color.orange,0),"3H color")
col1H=input.color(color.new(color.yellow,0),"1H color")
col15=input.color(color.new(color.teal,0),"15M color")
col5=input.color(color.new(color.gray,0),"5M color")
styStr=input.string("dashed","Line style",options= )
lnW=input.int(2,"Line width",minval=1,maxval=4)
extendTop=input.float(1.5,"ATR multiples above high",minval=0.1)
extendBottom=input.float(1.5,"ATR multiples below low",minval=0.1)
showLabels=input.bool(true,"Show labels")
enableAlerts=input.bool(true,"Enable alerts")
f_style(s)=>s=="solid"?line.style_solid:s=="dashed"?line.style_dashed:line.style_dotted
var lines=array.new_line()
f_prune(maxKeep)=>
if array.size(lines)>maxKeep
old=array.shift(lines)
line.delete(old)
tzEff=useSymbolTZ?syminfo.timezone:tzChoice
anchorTs=anchorType=="FX NY 17:00"?timestamp("America/New_York",iYear,iMonth,iDay,17,0):timestamp(tzEff,iYear,iMonth,iDay,0,0)
atr=ta.atr(14)
f_vline(_color,_tf,_idx)=>
y1=low-atr*extendBottom
y2=high+atr*extendTop
lid=line.new(x1=bar_index,y1=y1,x2=bar_index,y2=y2,xloc=xloc.bar_index,extend=extend.none,color=_color,style=f_style(styStr),width=lnW)
if showLabels
label.new(x=bar_index,y=high+(atr*2),text=_tf+" #"+str.tostring(_idx),xloc=xloc.bar_index,style=label.style_label_down,color=_color,textcolor=color.black)
array.push(lines,lid)
is_tf_open(tf)=> time==request.security(syminfo.tickerid,tf,time,barmerge.gaps_off,barmerge.lookahead_off)
f_tf(_tf,_show,_color,_name)=>
var bool started=false
var int idx=0
isOpen=_show and is_tf_open(_tf)
firstBar=isOpen and (time>=anchorTs) and (nz(time ,time)
Bitcoin: Price projection from previous cycles onto 2024 cycleAn indicator for displaying the BITFINEX:BTCUSD price movement pattern from previous cycles onto the 2024–2025 cycle.
Best checked on Bitfinex or the “Brave New Coin – Bitcoin Liquid Index” (though that one has gone offline).
Next time it should be done with embedded constants rather than by copying candles from previous cycles.
Publishing to share the idea.
FTI - AnalyticaFlow Trend Index (FTI) – Analytica
The Flow Trend Index (FTI) – Analytica combines momentum, trend, and volatility into a data-driven analytical view — displayed directly on your chart and candlesticks.
It builds on the FTI-Core foundation by revealing the numerical values behind each visual element — turning market flow, into measurable insight.
Analytica shows how strongly the market is moving (flow), where its adaptive baseline lies (trend), and how far price has stretched from equilibrium (volatility).
This deeper layer helps analysts interpret when the market is gaining strength, losing momentum, or shifting direction, and especially when conditions are overbought or oversold.
• Smoothed RSI (Heikin-Ashi Powered)
────────────
Transforms RSI into color-coded candles with visible RSI values.
Heikin-Ashi smoothing filters noise, exposing authentic momentum and exhaustion levels.
-See and measure momentum simultaneously.
• McGinley Dynamic Line
────────────
Adaptive moving average that adjusts speed to market volatility.
In Analytica, you can view the exact McGinley value and Δ % distance from price, providing a real-time sense of stretch or compression.
→ Quantifies rhythm between trend and pause.
• FIBB Cloud (Fibonacci ATR Bands)
────────────
• Analytical Enhancements
────────────
RSI Number Overlay on each candle (live values)
Analytical Table showing RSI · McGinley · Δ % vs McGinley
Custom Advanced RSI Ranges for precise zone control
Adjustable themes, text size, and line style
See it. Measure it. Understand it.
In short:
FTI-Analytica merges visual flow and analytical depth.
It reveals the true numerical forces behind each move —
FTI – Analytica shows the true numerical information behind each Data point.
No signals or alerts are generated — the indicator is intended solely for visualization, study, and educational purposes.
© Zyro Trades. All rights reserved.
Zyro™ and FTI™ are unregistered trademarks of Zyro Trades.
BUY LOW, BUY MORE, SELL HIGH - MARKET FLOW STRATEGY-JTM────────────────────────────────────────────────────────
BUY LOW, BUY MORE, SELL HIGH – MARKET FLOW STRATEGY (v594) – JTM
────────────────────────────────────────────────────────
Category: Quantitative Momentum & Liquidity Flow Strategy
Author: JTM
────────────────────────────────────────────────────────
An Adaptive Contrarian live trading strategy that scales into deep pullbacks,
rides liquidity waves, and locks profit automatically, using your TradersPost.io webhook.
────────────────────────────────────────────────────────
DESCRIPTION
────────────────────────────────────────────────────────
The "Buy Low, Buy More, Sell High" strategy combines value-based accumulation
with adaptive profit protection. It adds exposure on weakness (new lower lows
and confirmed liquidity support) and closes trades dynamically once a profitable
run-up retraces by a set percentage (default 13%).
It reconstructs multi-timeframe market structure
(Intraday → Daily → Weekly → Monthly → Yearly)
using synthetic OHLCs to avoid repainting, and integrates VWAP anchoring,
adaptive KAMA smoothing, RSI validation, and rolling lower-low tracking.
Contrarian strategies are difficult for the human to be easily comfortable with...
because but the results can be worth the wait. Believe that you truly want to Sell when everyone is buying and buy when everyone is almost done selling. Not vice-versa!
Forget about trying to time the market at the true top or the true bottom - just ride
the rolling waves and the profits will come ashore.
────────────────────────────────────────────────────────
CORE FEATURES
────────────────────────────────────────────────────────
• Non-repainting by design – only confirmed bars update persistent state
• Synthetic HTF OHLC construction avoids lookahead bias
• Adaptive trailing TakeProfit logic aims for (80–87% of peak profit retained)
• AI-like market flow dashboard with Bull/Bear liquidity dominance
• Dynamic rolling "Lowest Low" (LLL) detection and visualization
• Modular time detection and session alignment (New York market default)
• Optional Liquidity Dashboard with intraday/swing dual-mode analytics
1. Non-Repainting Architecture - Long side strategy. Not coded for short selling.
2. Works best on a 1hr/60m intraday chart with a 3hr higher Timeframe (strategy input)
3. Immediately Uncheck Show Trade Signals in the Strategy's Style Settings to eliminate
onscreen clutter
4. Market Liquidity Dashboard can be displayed by setting in the strategy's inputs.
5. You set a price range of stocks you wish to allow to trade when using an alert list.
6. You can set a preview period where gray TV trades alerts to Traderspost are withheld.
7. If you check "Do not LIVE sell any assets today" and update the alert, no Traderspost
8. As well as the Market Flow Dashboard, you can display a table of HLs, and LLs.
Trending stocks will display HLs and Vice Versa.
9. You can switch away from Big Rolling Waves Mode (default) to Intraday Short Moves mode
10. Default Big Wave Rolling Cycle is 120 bars (Recommended) 30,60,90,120 are typical.
(this affects the strategy profitability and choice of entry and exits).
11. Reference to FIFO is about the array size for the stored non-repainting HLs and LLs
12. Option to execute trades on unconfirmed bar is BETA. The strategy Only trades on
confirmed bars always, but I am wanting/hoping to eventually Take Profit on a
BIG ASS institutional candle, morning session bar when they occur.
(a new bar is unconfirmed, building, and tricky to code without
breaking the strategy's reliability). Use at your own risk.
────────────────────────────────────────────────────────
Technical Highlights
────────────────────────────────────────────────────────
• AI-inspired “Flow Confidence” through liquidity imbalance between Bull and Bear pressure.
• Adaptive KAMA smoothing for non-lag confirmation.
• Dynamic trailing take-profit computed as 80–87% of the highest profitable run-up.
• Non-repainting multi-timeframe framework (daily–weekly–monthly aggregation).
• LLL Table module for Lowest-Low progression and trend exhaustion.
• Market Flow Dashboard visualizing rolling liquidity dominance and delta pressure.
• Session-aware logic for intraday vs. swing operation.
• All logic has been tuned to peak performance that satisfies the TradingView Profiler.
• Strategy Buys again at a lower price instead of selling and taking a loss. Drawdown Peaks!
but this requires you configure TradingView Strategy Pyramiding orders to 2 or more
and % of equity.
(definitely is more $$ risky, potentially more profitable and might beat Buy and Hold profits)
See the chart above.
────────────────────────────────────────────────────────
WHY IT DOES NOT REPAINT (even thought the TradingView alert message says it might.)
────────────────────────────────────────────────────────
1. All trade, table, and OHLC updates occur only on `barstate.isconfirmed`
2. Synthetic HTFs are self-built without `lookahead` or future data
3. All arrays use `var` persistence to freeze past state
4. Trailing TakeProfit peak updates only on confirmed highs
5. No forward-referencing of real-time partial bars
────────────────────────────────────────────────────────
LIMITATIONS
────────────────────────────────────────────────────────
1. Heavy computation on long intraday histories (optimize `max_bars_back`)
2. Requires intraday chart resolution (1m–4h)
3. U.S. session defaults (09:30–16:00 ET); adjust for other exchanges
4. Arrays and tables consume memory – disable extra visuals if unneeded
5. Not for use with Crypto, Forex, or Futures.
6. Only to be used with Stocks/Tickers having volume data.
7. Live trading is coded for a TradersPost.io Webhook and a brokerage account. (IBKR)
────────────────────────────────────────────────────────
WARNINGS
────────────────────────────────────────────────────────
1. This is an Adaptive and Contrarian Trading strategy that scales into DEEP pullbacks,
rides long liquidity waves, and locks profit automatically.
2. Trades can have a long duration but are minimal. This is not a strategy that will
generate thousands of trades. It will save you on commissions to.
3. It does its best to limit losses and but I cannot guarantee it will work for
all assets, all the time. Market conditions vary. Tickers vary.
4. Use it with assets that you trust not to race to zero dollars.
5. Use this strategy with healthy tickers that have medium to high volatility.
6. To eliminate onscreen clutter, uncheck strategy settings/style/trade signals.
7. I use this strategy exclusively. TradingView alerts run for me 24/7 and ROBO trade.
but you should vet the system with manual trades signals it generates for yourself.
8. It does not prevent you from losing profits in after hours trading and Market News.
9. The BIG ASS new bar of opening candle is Not calculated into the stats until it is confirmed. Especially bothersome for me when its a big 10% down candle. You still need to watch the first 9:30 candle with your eyes. I recommend you watch liquidity at Open using a 1m timeframe.
10. This is a pro-grade coded strategy but is NOT a “Wall Street Quant grade.” strategy.
Institutions rely on:
• slippage models
• depth-of-book impact modeling
• latency simulation
• volume-weighted fills
• partial fills & queue priority
• order slicing (TWAP, VWAP, POV)
Pine Script cannot simulate the above.
11. This Pine Script strategy is market-internal (chart & volume) and for personal-use only. The code remains private to me.
12. To the full-time traders — my respect.
I live in the world of code, not charts, scalps, candles and screens,
so I engineered this 2500-line strategy to trade for me with un-emotional discipline, as you do.
If this strategy resonates with you, I provide it for you to use in the TradingView spirit of community. Backtested results are hypothetical and not indicative of future performance.
Nothing here constitutes investment advice.
Trading involves risk, and users must assume full responsibility for their trading decisions.
Remember, its not about making 'all' the money a stock theoretically could return as if you did a buy and hold many years ago - its about making good money as you navigate the waves of the stormy seas, and not sinking. It about making better trade decisions compared to the persons you are trading against. Have fun all the while making your money - work for you.
────────────────────────────────────────────────────────
“Be fearful when others are greedy, and be greedy when others are fearful.”
— Warren E. Buffett
“The stock market is a device for transferring money from the impatient to the patient.”
— Warren E. Buffett
True wealth grows through time, not reaction. A person sits in the shade today because
of a tree that somebody planted years ago.
— Warren E. Buffett
Happy Trading!
Goldencross & Deathcross Highlights (50/200 SMA) - Fixed dailyThis indicator visualizes major long-term trend shifts in the market
by tracking the daily 50-day and 200-day Simple Moving Averages (SMAs)
— regardless of your current chart timeframe.
🟩 A green flash (Golden Cross) appears when the 50-day SMA crosses
above the 200-day SMA — signaling potential long-term bullish momentum.
🟥 A red flash (Death Cross) appears when the 50-day SMA crosses
below the 200-day SMA — suggesting potential long-term bearish pressure.
Unlike typical SMA overlays, this script:
• Pulls daily data directly (fixed to daily timeframe)
• Works cleanly on any chart timeframe (5m, 1h, 4h, etc.)
• Avoids clutter by hiding moving average lines
• Shows only short, subtle flashes and one clean marker per event
London Breakout Structure by Ale 2This indicator identifies market structure breakouts (CHOCH/BOS) within a specific London session window, highlighting potential breakout trades with automatic entry, stop loss (SL), and take profit (TP) levels.
It helps traders focus on high-probability breakouts when volatility increases after the Asian session, using price structure, ATR-based volatility filters, and a custom risk/reward setup.
🔹 Example of Strategy Application
Define your session (e.g. 04:00 to 05:00).
Wait for a CHOCH (Change of Character) inside this session.
If a bullish CHOCH occurs → go LONG at candle close.
If a bearish CHOCH occurs → go SHORT at candle close.
SL is set below/above the previous swing using ATR × multiplier.
TP is calculated automatically based on your R:R ratio.
📊 Example:
When price breaks above the last swing high within the session, a “BUY” label appears and the indicator draws Entry, SL, and TP levels automatically.
If the breakout fails and price closes below the opposite structure, a “SELL” signal will replace the bullish setup.
🔹 Details
The logic is based on structural shifts (CHOCH/BOS):
A CHOCH occurs when price breaks and closes beyond the most recent high/low.
The indicator dynamically detects these shifts in structure, validating them only inside your chosen time window (e.g. the London Open).
The ATR filter ensures setups are valid only when the range has enough volatility, avoiding false signals in low-volume hours.
You can also visualize:
The session area (purple background)
Entry, Stop Loss, and Take Profit levels
Direction labels (BUY/SELL)
ATR line for volatility context
🔹 Configuration
Start / End Hour: define your preferred trading window.
ATR Length & Multiplier: adjust for volatility.
Risk/Reward Ratio: set your desired R:R (default 1:2).
Minimum Range Filter: avoids signals with tight SLs.
Alerts: receive notifications when breakout conditions occur.
🔹 Recommendations
Works best on 15m or 5m charts during London session.
Designed for breakout and structure-based traders.
Works on Forex, Crypto, and Indices.
Ideal as a visual and educational tool for understanding BOS/CHOCH behavior.
8x Heikin Ashi Streak (1m) by Bitcoin Benito🧭 Indicator Description: “8x Heikin Ashi Streak (1m) by Bitcoin Benito”
**Purpose:**
The *8x Heikin Ashi Streak* indicator helps traders quickly identify strong short-term momentum on the **1-minute timeframe**. It automatically tracks Heikin Ashi candles and alerts you whenever **8 consecutive bullish or bearish candles** appear — a visual cue that a strong intraday trend or exhaustion point might be forming.
---
🔍 **How It Works**
* The indicator continuously counts Heikin Ashi candles in real-time.
* When it detects **8 bullish (green)** or **8 bearish (red)** candles in a row:
* A green ▲ marker appears **below** the 8th candle for bullish streaks.
* A red ▼ marker appears **above** the 8th candle for bearish streaks.
* You can set alerts to automatically notify you when these streaks occur.
This makes it ideal for **momentum traders**, **scalpers**, and **trend-reversal spotters** who want to:
* Catch strong intraday moves early.
* Identify potential overextension zones before pullbacks.
* Automate alert signals for short-term trading setups.
IMPORTANT: Only trade when most of the 8 candles are below/above the EMA 8 Line respectively. Add an EMA 8 indicator to see if this is the case
---
⚙️ **How to Use**
1. **Apply to a 1-minute chart** (this script is optimized for 1m timeframes).
2. When the indicator plots a green or red triangle:
* **Green triangle (8 bullish candles):** Trend momentum is strong upward.
* **Red triangle (8 bearish candles):** Downward momentum is dominant.
3. Optionally, combine with volume or EMA filters to confirm breakouts or exhaustion.
---
🔔 **Setting Up Alerts**
* Click the **Alert (🔔)** icon on TradingView.
* Under *Condition*, select:
* “8x Heikin Ashi Streak (1m)” → “8 Bullish Heikin Ashi (1m)”
* OR “8x Heikin Ashi Streak (1m)” → “8 Bearish Heikin Ashi (1m)”
* Choose **Once per bar close** to trigger the alert when the 8th candle completes.
* Add your custom message, e.g.
> “🚀 8 bullish Heikin Ashi candles in a row on 1-minute chart!”
> “🔻 8 bearish Heikin Ashi candles in a row on 1-minute chart!”
---
📊 **Best Practices**
* Works best on **liquid assets** (major forex pairs, indices, BTC/USD, etc.).
* Pair with **RSI**, **EMA**, or **Volume** indicators for stronger confirmation.
* Not a standalone buy/sell signal — treat it as a **momentum or exhaustion alert**.
* Can be adapted to other timeframes by changing chart resolution.
---
⚠️ **Disclaimer**
This indicator is for **educational and analytical purposes only**.
Trading carries risk — always test on demo accounts and use proper risk management.
No indicator guarantees profit; this is a tool for insight and timing, not financial advice.






















