StratNinjaTableAuthor’s Instructions for StratNinjaTable
Purpose:
This indicator is designed to provide traders with a clear and dynamic table displaying The Strat candle patterns across multiple timeframes of your choice.
Usage:
Use the input panel to select which timeframes you want to monitor in the table.
Choose the table position on the chart (top left, center, right, or bottom).
The table will update each bar, showing the candle type, direction arrow, and remaining time until the candle closes for each selected timeframe.
Hover over or inspect the table to understand current market structure per timeframe using The Strat methodology.
Notes:
The Strat pattern is displayed as "1", "2U", "2D", or "3" based on the relationship of current and previous candle highs and lows.
The timer updates in real-time and adapts to daily, weekly, monthly, and extended timeframes.
This script requires Pine Script version 6. Please use it on supported platforms.
MFI or other indicators are not included in this base version but can be integrated separately if desired.
Credits:
Developed and inspired by shayy110 — thanks for your foundational work on The Strat in Pine Script.
Disclaimer:
This script is for educational and informational purposes only. Always verify signals and manage risk accordingly.
指標和策略
EZSignals SuperTrend EMAA technical indicator, even with high accuracy, must be rigorously backtested to assess its stability across various market conditions. Its effectiveness depends not only on the algorithm itself but also on how it is integrated into the overall trading system. Proper usage, combined with risk management and a solid understanding of market context, is essential to convert theoretical accuracy into practical trading advantage.
ai quant oculusAI QUANT OCULUS
Version 1.0 | Pine Script v6
Purpose & Innovation
AI QUANT OCULUS integrates four distinct technical concepts—exponential trend filtering, adaptive smoothing, momentum oscillation, and Gaussian smoothing—into a single, cohesive system that delivers clear, objective buy and sell signals along with automatically plotted stop-loss and three profit-target levels. This mash-up goes beyond a simple EMA crossover or standalone TRIX oscillator by requiring confluence across trend, adaptive moving averages, momentum direction, and smoothed price action, reducing false triggers and focusing on high‐probability turning points.
How It Works & Why Its Components Matter
Trend Filter: EMA vs. Adaptive MA
EMA (20) measures the prevailing trend with fixed sensitivity.
Adaptive MA (also EMA-based, length 10) approximates a faster-responding moving average, standing in for a KAMA-style filter.
Bullish bias requires AMA > EMA; bearish bias requires AMA < EMA. This ensures signals align with both the underlying trend and a more nimble view of recent price action.
Momentum Confirmation: TRIX
Calculates a triple-smoothed EMA of price over TRIX Length (15), then converts it to a percentage rate-of-change oscillator.
Positive TRIX reinforces bullish entries; negative TRIX reinforces bearish entries. Using TRIX helps filter whipsaws by focusing on sustained momentum shifts.
Gaussian Price Smoother
Applies two back-to-back 5-period EMAs to the price (“gaussian” smoothing) to remove short-term noise.
Price above the smoothed line confirms strength for longs; below confirms weakness for shorts. This layer avoids entries on erratic spikes.
Confluence Signals
Buy Signal (isBull) fires only when:
AMA > EMA (trend alignment)
TRIX > 0 (momentum support)
Close > Gaussian (price strength)
Sell Signal (isBear) fires under the inverse conditions.
Requiring all three conditions simultaneously sharply reduces false triggers common to single-indicator systems.
Automatic Risk & Reward Plotting
On each new buy or sell signal (edge detection via not isBull or not isBear ), the script:
Stores entryPrice at the signal bar’s close.
Draws a stop-loss line at entry minus ATR(14) × Stop Multiplier (1.5) by default.
Plots three profit-target lines at entry plus ATR × Target Multiplier (1×, 1.5×, and 2×).
All previous labels and lines are deleted on each new signal, keeping the chart uncluttered and focusing only on the current trade.
Inputs & Customization
Input Description Default
EMA Length Period for the main trend EMA 20
Adaptive MA Length Period for the faster adaptive EM A substitute 10
TRIX Length Period for the triple-smoothed momentum oscillator 15
Dominant Cycle Length (Reserved) 40
Stop Multiplier ATR multiple for stop-loss distance 1.5
Target Multiplier ATR multiple for first profit target 1.5
Show Buy/Sell Signals Toggle on-chart labels for entry signals On
How to Use
Apply to Chart: Best on 15 m–1 h timeframes for swing entries or 5 m for agile scalps.
Wait for Full Confluence:
Look for the AMA to cross above/below the EMA and verify TRIX and Gaussian conditions on the same bar.
A bright “LONG” or “SHORT” label marks your entry.
Manage the Trade:
Place your stop where the red or green SL line appears.
Scale or exit at the three yellow TP1/TP2/TP3 lines, automatically drawn by volatility.
Repeat Cleanly: Each new signal clears prior annotations, ensuring you only track the active setup.
Why This Script Stands Out
Multi-Layer Confluence: Trend, momentum, and noise-reduction must all align, addressing the weaknesses of single-indicator strategies.
Automated Trade Management: No manual plotting—stop and target lines appear seamlessly with each signal.
Transparent & Customizable: All logic is open, adjustable, and clearly documented, allowing traders to tweak lengths and multipliers to suit different instruments.
Disclaimer
No indicator guarantees profit. Always backtest AI QUANT OCULUS extensively, combine its signals with your own analysis and risk controls, and practice sound money management before trading live.
ICT Manipulation DetectorThis indicator detects ICT-style manipulations, liquidity sweeps (stop hunts), and Fair Value Gaps (FVG) automatically on the chart.
🔍 What It Does:
Identifies key highs and lows as liquidity zones.
Detects stop hunts above highs or below lows.
If the price move is large enough, marks it as a manipulation.
Highlights Fair Value Gaps (FVGs) where price might return.
Shows all events visually with boxes, lines, and alerts.
📌 Visuals:
🟩 Green box = Bullish manipulation → “DON’T SELL”
🟥 Red box = Bearish manipulation → “DON’T BUY”
🟨 Yellow dashed lines = Liquidity levels
🔼 / 🔽 Arrows = Sweeps without full manipulation
In short: It automatically detects and warns you of smart money manipulation based on ICT concepts.
[Stratégia] VWAP Mean Magnet v9 (Simple Alert)This strategy is specifically designed for a ranging (sideways-moving) Bitcoin market.
A trade is only opened and signaled on the chart if all three of the following conditions are met simultaneously at the close of a candle:
Zone Entry
The price must cross into the signal zone: the red band for a Short (sell) position, or the green band for a Long (buy) position.
RSI Confirmation
The RSI indicator must also confirm the signal. For a Short, it must go above 65 (overbought condition). For a Long, it must fall below 25 (oversold condition).
Volume Filter
The volume on the entry candle cannot be excessively high. This safety filter is designed to prevent trades during risky, high-momentum breakouts.
Bollinger Heatmap [Quantitative]Overview
The Bollinger Heatmap is a composite indicator that synthesizes data derived from 30 Bollinger bands distributed over multiple time horizons, offering a high-dimensional characterization of the underlying asset.
Algorithm
The algorithm quantifies the current price’s relative position within each Bollinger band ensemble, generating a normalized position ratio. This ratio is subsequently transformed into a scalar heat value, which is then rendered on a continuous color gradient from red to blue. Red hues correspond to price proximity to or extension below the lower band, while blue hues denote price proximity to or extension above the upper band.
Using default parameters, the indicator maps bands over timeframes increasing in a pattern approximating exponential growth, constrained to multiples of seven days. The lower region encodes relationships with shorter-term bands spanning between 1 and 14 weeks, whereas the upper region portrays interactions with longer-term bands ranging from 15 to 52 weeks.
Conclusion
By integrating Bollinger bands across a diverse array of time horizons, the heatmap indicator aims to mitigate the model risk inherent in selecting a single band length, capturing exposure across a richer parameter space.
Liquidity Grab Entry Signals [Daily Enhanced]Liquidity Grab Entry Signals is a powerful tool designed to detect intraday reversal opportunities around daily high/low liquidity zones.
Core features: – Plots current daily high/low levels
– Identifies price interaction with these key zones
– Confirms rejection via strong engulfing candles
– Plots real-time long/short entry signals directly on chart
– Includes alerts for both long and short setups
This script is ideal for scalpers and intraday traders looking to exploit stop hunts, liquidity sweeps, and false breakouts.
Optimized for instruments like US30, NAS100, Gold, BTC and more.
Customize the sensitivity buffer to suit your asset and timeframe.
Use this in combination with VWAP, FVG or Smart Money concepts for enhanced confirmation.
---
Built for: 1s–15m charts
Includes: Alerts + Custom Settings
Type: Non-repainting
Trade with clarity around the most manipulated price levels of the day.
Riches Tyler Break of Structure ModelThis Script follows the rules of a famous Trading Youtuber named Tyler. His model for finding trends. I would've named it after him but I got a message saying it copywrited and I can't mention his three letter name in the indicator or description at all so I'm salty about that.
For bullish triangle break of structure you take the last green and red candle and the highest wick between the 2 and it draws a line. Then if a candle closes above that line, that is your break of structure.
It would be the same thing for bearish.
This is meant to help identify the trend and not to trade solely off of.
This is my first indicator I've made so let me know how I can make it better.
🐿️ Squirrel of Wall Street This indicator is provided for educational and informational purposes only. It does not constitute a buy or sell recommendation. The user is solely responsible for any trading decisions. Always do your own research and use appropriate risk management.
Martin Strategy - No Loss Exit v3Martin Strategy1.0 Martin Strategy1.0 Martin Strategy1.0 Martin Strategy1.0 Martin Strategy1.0 Martin Strategy1.0
ZoneShift+StochZ+LRO + AI Breakout Bands [Combined]This composite Pine Script brings together four powerful trend and momentum tools into a single, easy-to-read overlay:
ZoneShift
Computes a dynamic “zone” around price via an EMA/HMA midpoint ± average high-low range.
Flags flips when price closes convincingly above or below that zone, coloring candles and drawing the zone lines in bullish or bearish hues.
Stochastic Z-Score
Converts your chosen price series into a statistical Z-score, then runs a Stochastic oscillator on it and HMA-smooths the result.
Marks momentum flips in extreme over-sold (below –2) or over-bought (above +2) territory.
Linear Regression Oscillator (LRO)
Builds a bar-indexed linear regression, normalizes it to standard deviations, and shows area-style up/down coloring.
Highlights local reversals when the oscillator crosses its own look-back values, and optionally plots LRO-colored candles on price.
AI Breakout Bands (Kalman + KNN)
Applies a Kalman filter to price, smooths it further with a KNN-weighted average, then measures mean-absolute-error bands around that smoothed line.
Colors the Kalman trend line and bands for bullish/bearish breaks, giving you a data-driven channel to trade.
Composite Signals & Alerts
Whenever the ZoneShift flip, Stoch Z-Score flip, and LRO reversal all agree and price breaks the AI bands in the same direction, the script plots a clear ▲ (bull) or ▼ (bear) on the chart and fires an alert. This triple-confirmation approach helps you zero in on high-probability reversal points, filtering out noise and combining trend, momentum, and statistical breakout criteria into one unified signal.
Squeeze Momentum Regression Clouds [SciQua]╭──────────────────────────────────────────────╮
☁️ Squeeze Momentum Regression Clouds
╰──────────────────────────────────────────────╯
🔍 Overview
The Squeeze Momentum Regression Clouds (SMRC) indicator is a powerful visual tool for identifying price compression , trend strength , and slope momentum using multiple layers of linear regression Clouds. Designed to extend the classic squeeze framework, this indicator captures the behavior of price through dynamic slope detection, percentile-based spread analytics, and an optional UI for trend inspection — across up to four customizable regression Clouds .
────────────────────────────────────────────────────────────
╭────────────────╮
⚙️ Core Features
╰────────────────╯
Up to 4 Regression Clouds – Each Cloud is created from a top and bottom linear regression line over a configurable lookback window.
Slope Detection Engine – Identifies whether each band is rising, falling, or flat based on slope-to-ATR thresholds.
Spread Compression Heatmap – Highlights compressed zones using yellow intensity, derived from historical spread analysis.
Composite Trend Scoring – Aggregates directional signals from each Cloud using your chosen weighting model.
Color-Coded Candles – Optional candle coloring reflects the real-time composite score.
UI Table – A toggleable info table shows slopes, compression levels, percentile ranks, and direction scores for each Cloud.
Gradient Cloud Styling – Apply gradient coloring from Cloud 1 to Cloud 4 for visual slope intensity.
Weight Aggregation Options – Use equal weighting, inverse-length weighting, or max pooling across Clouds to determine composite trend strength.
────────────────────────────────────────────────────────────
╭──────────────────────────────────────────╮
🧪 How to Use the Indicator
1. Understand Trend Bias with Cloud Colors
╰──────────────────────────────────────────╯
Each Cloud changes color based on its current slope:
Green indicates a rising trend.
Red indicates a falling trend.
Gray indicates a flat slope — often seen during chop or transitions.
Cloud 1 typically reflects short-term structure, while Cloud 4 represents long-term directional bias. Watch for multi-Cloud alignment — when all Clouds are green or red, the trend is strong. Divergence among Clouds often signals a potential shift.
────────────────────────────────────────────────────────────
╭───────────────────────────────────────────────╮
2. Use Compression Heat to Anticipate Breakouts
╰───────────────────────────────────────────────╯
The space between each Cloud’s top and bottom regression lines is measured, normalized, and analyzed over time. When this spread tightens relative to its history, the script highlights the band with a yellow compression glow .
This visual cue helps identify squeeze zones before volatility expands. If you see compression paired with a changing slope color (e.g., gray to green), this may indicate an impending breakout.
────────────────────────────────────────────────────────────
╭─────────────────────────────────╮
3. Leverage the Optional Table UI
╰─────────────────────────────────╯
The indicator includes a dynamic, floating table that displays real-time metrics per Cloud. These include:
Slope direction and value , with historical Min/Max reference.
Top and Bottom percentile ranks , showing how price sits within the Cloud range.
Current spread width , compared to its historical norms.
Composite score , which blends trend, slope, and compression for that Cloud.
You can customize the table’s position, theme, transparency, and whether to show a combined summary score in the header.
────────────────────────────────────────────────────────────
╭─────────────────────────────────────────────╮
4. Analyze Candle Color for Composite Signals
╰─────────────────────────────────────────────╯
When enabled, the indicator colors candles based on a weighted composite score. This score factors in:
The signed slope of each Cloud (up, down, or flat)
The percentile pressure from the top and bottom bands
The degree of spread compression
Expect green candles in bullish trend phases, red candles during bearish regimes, and gray candles in mixed or low-conviction zones.
Candle coloring provides a visual shorthand for market conditions , useful for intraday scanning or historical backtesting.
────────────────────────────────────────────────────────────
╭────────────────────────╮
🧰 Configuration Guidance
╰────────────────────────╯
To tailor the indicator to your strategy:
Use Cloud lengths like 21, 34, 55, and 89 for a balanced multi-timeframe view.
Adjust the slope threshold (default 0.05) to control how sensitive the trend coloring is.
Set the spread floor (e.g., 0.15) to tune when compression is detected and visualized.
Choose your weighting style : Inverse Length (favor faster bands), Equal, or Max Pooling (most aggressive).
Set composite weights to emphasize trend slope, percentile bias, or compression—depending on your market edge.
────────────────────────────────────────────────────────────
╭────────────────╮
✅ Best Practices
╰────────────────╯
Use aligned Cloud colors across all bands to confirm trend conviction.
Combine slope direction with compression glow for early breakout entry setups.
In choppy markets, watch for Clouds 1 and 2 turning flat while Clouds 3 and 4 remain directional — a sign of potential trend exhaustion or consolidation.
Keep the table enabled during backtesting to manually evaluate how each Cloud behaved during price turns and consolidations.
────────────────────────────────────────────────────────────
╭───────────────────────╮
📌 License & Usage Terms
╰───────────────────────╯
This script is provided under the Creative Commons Attribution-NonCommercial 4.0 International License .
✅ You are allowed to:
Use this script for personal or educational purposes
Study, learn, and adapt it for your own non-commercial strategies
❌ You are not allowed to:
Resell or redistribute the script without permission
Use it inside any paid product or service
Republish without giving clear attribution to the original author
For commercial licensing , private customization, or collaborations, please contact Joshua Danford directly.
Bitcoin Logarithmic Growth Curve 2025 Z-Score"The Bitcoin logarithmic growth curve is a concept used to analyze Bitcoin's price movements over time. The idea is based on the observation that Bitcoin's price tends to grow exponentially, particularly during bull markets. It attempts to give a long-term perspective on the Bitcoin price movements.
The curve includes an upper and lower band. These bands often represent zones where Bitcoin's price is overextended (upper band) or undervalued (lower band) relative to its historical growth trajectory. When the price touches or exceeds the upper band, it may indicate a speculative bubble, while prices near the lower band may suggest a buying opportunity.
Unlike most Bitcoin growth curve indicators, this one includes a logarithmic growth curve optimized using the latest 2024 price data, making it, in our view, superior to previous models. Additionally, it features statistical confidence intervals derived from linear regression, compatible across all timeframes, and extrapolates the data far into the future. Finally, this model allows users the flexibility to manually adjust the function parameters to suit their preferences.
The Bitcoin logarithmic growth curve has the following function:
y = 10^(a * log10(x) - b)
In the context of this formula, the y value represents the Bitcoin price, while the x value corresponds to the time, specifically indicated by the weekly bar number on the chart.
How is it made (You can skip this section if you’re not a fan of math):
To optimize the fit of this function and determine the optimal values of a and b, the previous weekly cycle peak values were analyzed. The corresponding x and y values were recorded as follows:
113, 18.55
240, 1004.42
451, 19128.27
655, 65502.47
The same process was applied to the bear market low values:
103, 2.48
267, 211.03
471, 3192.87
676, 16255.15
Next, these values were converted to their linear form by applying the base-10 logarithm. This transformation allows the function to be expressed in a linear state: y = a * x − b. This step is essential for enabling linear regression on these values.
For the cycle peak (x,y) values:
2.053, 1.268
2.380, 3.002
2.654, 4.282
2.816, 4.816
And for the bear market low (x,y) values:
2.013, 0.394
2.427, 2.324
2.673, 3.504
2.830, 4.211
Next, linear regression was performed on both these datasets. (Numerous tools are available online for linear regression calculations, making manual computations unnecessary).
Linear regression is a method used to find a straight line that best represents the relationship between two variables. It looks at how changes in one variable affect another and tries to predict values based on that relationship.
The goal is to minimize the differences between the actual data points and the points predicted by the line. Essentially, it aims to optimize for the highest R-Square value.
Below are the results:
snapshot
snapshot
It is important to note that both the slope (a-value) and the y-intercept (b-value) have associated standard errors. These standard errors can be used to calculate confidence intervals by multiplying them by the t-values (two degrees of freedom) from the linear regression.
These t-values can be found in a t-distribution table. For the top cycle confidence intervals, we used t10% (0.133), t25% (0.323), and t33% (0.414). For the bottom cycle confidence intervals, the t-values used were t10% (0.133), t25% (0.323), t33% (0.414), t50% (0.765), and t67% (1.063).
The final bull cycle function is:
y = 10^(4.058 ± 0.133 * log10(x) – 6.44 ± 0.324)
The final bear cycle function is:
y = 10^(4.684 ± 0.025 * log10(x) – -9.034 ± 0.063)
The main Criticisms of growth curve models:
The Bitcoin logarithmic growth curve model faces several general criticisms that we’d like to highlight briefly. The most significant, in our view, is its heavy reliance on past price data, which may not accurately forecast future trends. For instance, previous growth curve models from 2020 on TradingView were overly optimistic in predicting the last cycle’s peak.
This is why we aimed to present our process for deriving the final functions in a transparent, step-by-step scientific manner, including statistical confidence intervals. It's important to note that the bull cycle function is less reliable than the bear cycle function, as the top band is significantly wider than the bottom band.
Even so, we still believe that the Bitcoin logarithmic growth curve presented in this script is overly optimistic since it goes parly against the concept of diminishing returns which we discussed in this post:
This is why we also propose alternative parameter settings that align more closely with the theory of diminishing returns."
Now with Z-Score calculation for easy and constant valuation classification of Bitcoin according to this metric.
Created for TRW
SMA 12 / 25 with Arrows & Dynamic ColorsSMA 12 / 25 with Arrows & Dynamic Colors
Colors are the same after crosses
Up down arrows at crosses
Synthetic Nifty Future from OptionsTo Calculate Synthetic Nifty Future from Options
Please contact me for more details
ATR-Scaled Deviation OscillatorATR-DevOsc is a custom momentum-and-volatility adaptive oscillator that scales N-bar price momentum by its rolling deviation and then reacts dynamically to sudden ATR spikes. By shrinking the deviation window when true volatility surges, it amplifies extreme moves—making medium-term trend shifts and deep drawdowns far more likely to breach your predefined thresholds.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
Fibonacci Retracement RealTimeAuto Fib Retracements with the important levels
Very useful to trade in real time with the high and lof of the day
Maybe more updates where you can track with the previous high and lows where the levels were and see where it bounced
Thanks to Grok and chat gpt for making this real
Timeframe Change Rate//@version=5
indicator("Timeframe Change Rate", overlay=true, max_labels_count=500)
// Calculate change rate and multiply by 100 manually
change_rate = (ta.change(close) / close ) * 100
// Get current timeframe string
timeframe_str = timeframe.period
// Format label text with manual percent
label_text = str.format("Change ({0}): {1}%", timeframe_str, str.tostring(change_rate, "#.##"))
// Show label on last bar
if barstate.islast
label_color = change_rate >= 0 ? color.new(color.green, 70) : color.new(color.red, 70)
label.new(bar_index, high * 1.002, text=label_text, yloc=yloc.price, style=label.style_label_down, color=label_color, textcolor=color.white, size=size.normal)