EMA Crossover with Signalswhen the 8 ema line crosses above the 50 ema, a buy signal is initiated. Will not paint again for 24 hours. Should a candle touch the 20 ema line to the downside, a orange X will appear - helps for raising your stop-loss or closing your order.
Multitimeframe
Cointegration Buy and Sell Signals [EdgeTerminal]The Cointegration Buy And Sell Signals is a sophisticated technical analysis tool to spot high-probability market turning points — before they fully develop on price charts.
Most reversal indicators rely on raw price action, visual patterns, or basic and common indicator logic — which often suffer in noisy or trending markets. In most cases, they lag behind the actual change in trend and provide useless and late signals.
This indicator is rooted in advanced concepts from statistical arbitrage, mean reversion theory, and quantitative finance, and it packages these ideas in a user-friendly visual format that works on any timeframe and asset class.
It does this by analyzing how the short-term and long-term EMAs behave relative to each other — and uses statistical filters like Z-score, correlation, volatility normalization, and stationarity tests to issue highly selective Buy and Sell signals.
This tool provides statistical confirmation of trend exhaustion, allowing you to trade mean-reverting setups. It fades overextended moves and uses signal stacking to reduce false entries. The entire indicator is based on a very interesting mathematically grounded model which I will get into down below.
Here’s how the indicator works at a high level:
EMAs as Anchors: It starts with two Exponential Moving Averages (EMAs) — one short-term and one long-term — to track market direction.
Statistical Spread (Regression Residuals): It performs a rolling linear regression between the short and long EMA. Instead of using the raw difference (short - long), it calculates the regression residual, which better models their natural relationship.
Normalize the Spread: The spread is divided by historical price volatility (ATR) to make it scale-invariant. This ensures the indicator works on low-priced stocks, high-priced indices, and crypto alike.
Z-Score: It computes a Z-score of the normalized spread to measure how “extreme” the current deviation is from its historical average.
Dynamic Thresholds: Unlike most tools that use fixed thresholds (like Z = ±2), this one calculates dynamic thresholds using historical percentiles (e.g., top 10% and bottom 10%) so that it adapts to the asset's current behavior to reduce false signals based on market’s extreme volatility at a certain time.
Z-Score Momentum: It tracks the direction of the Z-score — if Z is extreme but still moving away from zero, it's too early. It waits for reversion to start (Z momentum flips).
Correlation Check: Uses a rolling Pearson correlation to confirm the two EMAs are still statistically related. If they diverge (low correlation), no signal is shown.
Stationarity Filter (ADF-like): Uses the volatility of the regression residual to determine if the spread is stationary (mean-reverting) — a key concept in cointegration and statistical arbitrage. It’s not possible to build an exact ADF filter in Pine Script so we used the next best thing.
Signal Control: Prevents noisy charts and overtrading by ensuring no back-to-back buy or sell signals. Each signal must alternate and respect a cooldown period so you won’t be overwhelmed and won’t get a messy chart.
Important Notes to Remember:
The whole idea behind this indicator is to try to use some stat arb models to detect shifting patterns faster than they appear on common indicators, so in some cases, some assumptions are made based on historic values.
This means that in some cases, the indicator can “jump” into the conclusion too quickly. Although we try to eliminate this by using stationary filters, correlation checks, and Z-score momentum detection, there is still a chance some signals that are generated can be too early, in the stock market, that's the same as being incorrect. So make sure to use this with other indicators to confirm the movement.
How To Use The Indicator:
You can use the indicator as a standalone reversal system, as a filter for overbought and oversold setups, in combination with other trend indicators and as a part of a signal stack with other common indicators for divergence spotting and fade trades.
The indicator produces simple buy and sell signals when all criteria is met. Based on our own testing, we recommend treating these signals as standalone and independent from each other . Meaning that if you take position after a buy signal, don’t wait for a sell signal to appear to exit the trade and vice versa.
This is why we recommend using this indicator with other advanced or even simple indicators as an early confirmation tool.
The Display Table:
The floating diagnostic table in the top-right corner of the chart is a key part of this indicator. It's a live statistical dashboard that helps you understand why a signal is (or isn’t) being triggered, and whether the market conditions are lining up for a potential reversal.
1. Z-Score
What it shows: The current Z-score value of the volatility-normalized spread between the short EMA and the regression line of the long EMA.
Why it matters: Z-score tells you how statistically extreme the current relationship is. A Z-score of:
0 = perfectly average
> +2 = very overbought
< -2 = very oversold
How to use it: Look for Z-score reaching extreme highs or lows (beyond dynamic thresholds). Watch for it to start reversing direction, especially when paired with green table rows (see below)
2. Z-Score Momentum
What it shows: The rate of change (ROC) of the Z-score:
Zmomentum=Zt − Zt − 1
Why it matters: This tells you if the Z-score is still stretching out (e.g., getting more overbought/oversold), or reverting back toward the mean.
How to use it: A positive Z-momentum after a very low Z-score = potential bullish reversal A negative Z-momentum after a very high Z-score = potential bearish reversal. Avoid signals when momentum is still pushing deeper into extremes
3. Correlation
What it shows: The rolling Pearson correlation coefficient between the short EMA and long EMA.
Why it matters: High correlation (closer to +1) means the EMAs are still statistically connected — a key requirement for cointegration or mean reversion to be valid.
How to use it: Look for correlation > 0.7 for reliable signals. If correlation drops below 0.5, ignore the Z-score — the EMAs aren’t moving together anymore
4. Stationary
What it shows: A simplified "Yes" or "No" answer to the question:
“Is the spread statistically stable (stationary) and mean-reverting right now?”
Why it matters: Mean reversion strategies only work when the spread is stationary — that is, when the distance between EMAs behaves like a rubber band, not a drifting cloud.
How to use it: A "Yes" means the indicator sees a consistent, stable spread — good for trading. "No" means the market is too volatile, disjointed, or chaotic for reliable mean reversion. Wait for this to flip to "Yes" before trusting signals
5. Last Signal
What it shows: The last signal issued by the system — either "Buy", "Sell", or "None"
Why it matters: Helps avoid confusion and repeated entries. Signals only alternate — you won’t get another Buy until a Sell happens, and vice versa.
How to use it: If the last signal was a "Buy", and you’re watching for a Sell, don’t act on more bullish signals. Great for systems where you only want one position open at a time
6. Bars Since Signal
What it shows: How many bars (candles) have passed since the last Buy or Sell signal.
Why it matters: Gives you context for how long the current condition has persisted
How to use it: If it says 1 or 2, a signal just happened — avoid jumping in late. If it’s been 10+ bars, a new opportunity might be brewing soon. You can use this to time exits if you want to fade a recent signal manually
Indicator Settings:
Short EMA: Sets the short-term EMA period. The smaller the number, the more reactive and more signals you get.
Long EMA: Sets the slow EMA period. The larger this number is, the smoother baseline, and more reliable trend bases are generated.
Z-Score Lookback: The period or bars used for mean & std deviation of spread between short and long EMAs. Larger values result in smoother signals with fewer false positives.
Volatility Window: This value normalizes the spread by historical volatility. This allows you to prevent scale distortion, showing you a cleaner and better chart.
Correlation Lookback: How many periods or how far back to test correlation between slow and long EMAs. This filters out false positives when EMAs lose alignment.
Hurst Lookback: The multiplier to approximate stationarity. Lower leads to more sensitivity to regime change, higher produces a more stricter filtering.
Z Threshold Percentile: This value sets how extreme Z-score must be to trigger a signal. For example, 90 equals only top/bottom 10% of extremes, 80 = more frequent.
Min Bars Between Signals: This hard stop prevents back-to-back signals. The idea is to avoid over-trading or whipsaws in volatile markets even when Hurst lookback and volatility window values are not enough to filter signals.
Some More Recommendations:
We recommend trying different EMA pairs (10/50, 21/100, 5/20) for different asset behaviors. You can set percentile to 85 or 80 if you want more frequent but looser signals. You can also use the Z-score reversion monitor for powerful confirmation.
Scalping Supertrend + Stochastic RSIThe Scalping Supertrend + Stochastic RSI Indicator is designed for short-term trading and scalping on lower timeframes. It combines the Supertrend indicator to identify trend direction with the Stochastic RSI to pinpoint overbought/oversold conditions for precise entry and exit signals. The indicator generates buy and sell signals when the Stochastic RSI crosses predefined levels (oversold/overbought) while aligned with the Supertrend’s trend direction.
Pi Cycle | AlchimistOfCrypto Pi Cycle Top Indicator - A Powerful Market Phase Detector
Developed by AlchimistOfCrypto
🧪 The Pi Cycle uses mathematical harmony to identify Bitcoin market cycle tops
with remarkable precision. Just as elements react at specific temperatures,
Bitcoin price behaves predictably when these two moving averages converge! 🧬
⚗️ The formula measures when the 111-day SMA crosses below the 350-day SMA × 2,
creating a perfect alchemical reaction that has successfully identified the
major cycle tops in 2013, 2017, and 2021.
🔬 Like the Golden Ratio in nature, this indicator reveals the hidden
mathematical structure within Bitcoin's chaotic price movements.
🧮 When the reaction occurs, prepare for molecular breakdown! 🔥
MSS + Confirmation + RSI + Strong Candle FilterMSS Strong Confirmed Indicator
This indicator is designed to detect only the strongest entry opportunities based on strict conditions:
✅ MSS (Market Structure Shift) detection.
✅ Waiting for a strong confirmation candle (body > 60% of total candle length).
✅ RSI filter (above 50 for Long, below 50 for Short).
✅ AlphaTrend trend confirmation.
✅ Automatic drawing of Take Profit (TP) and Stop Loss (SL) levels.
Only rare, high-probability entries are shown — no noise, no false signals.
Ideal for traders who prioritize accuracy and quality over quantity.
Script created and designed by Taha Shalata 💎🚀
Scalping Bollinger BreakoutThe Scalping Bollinger Breakout Indicator is designed for scalping and short-term trading.
Key features:
Bollinger Bands: Detects volatility-driven breakouts above/below upper/lower bands.
MACD: Confirms bullish/bearish momentum for reliable signals.
Heikin Ashi: Aligns trades with smoothed trend direction, reducing noise.
Volume Filter: Ensures breakouts are supported by elevated volume.
Non-Repainting: Uses closed-bar data for consistent, reliable signals.
Visuals & Alerts: Displays buy/sell triangles and includes trading alerts.
Ideal for fast-paced trading in volatile markets.
Flask's Week IndicatorThis indicator shows the start of each new week and syncs local timezone to exchange you trading on.
BTC Growth | AlchimistOfCrypto🌈 BTC Regression Bands & Halvings – Unveiling Bitcoin's Logarithmic Growth Fields 🌈
"The Bitcoin Regression Bands, engineered through advanced logarithmic mathematics, visualizes the probabilistic distribution of Bitcoin's price evolution within a multi-cycle growth paradigm. This indicator employs principles from hyperbolic regression where decay coefficients create mathematical boundaries that define Bitcoin's long-term value progression. Our implementation features algorithmically enhanced rainbow visualization derived from extensive cycle analysis, creating a dynamic representation of Bitcoin's logarithmic growth with adaptive color gradients that highlight critical halving-based phase transitions in the asset's monetary evolution."
📊 Professional Trading Application
The Bitcoin Regression Bands transcends traditional price prediction models with a sophisticated multi-band illumination system that reveals the underlying structure of Bitcoin's monetary evolution. Scientifically calibrated across multiple halving cycles and featuring seamless rainbow visualization, it enables investors to perceive Bitcoin's position within its macro growth trajectory with unprecedented clarity.
- Visual Theming 🎨
Scientifically designed rainbow gradient optimized for cycle pattern recognition:
- Violet-Blue: Lower value accumulation zones with highest mathematical growth potential
- Green: Fair value equilibrium zone representing the regression mean
- Yellow-Orange: Moderate overvaluation regions indicating potential resistance
- Red: Statistical extreme zones indicating mathematical cycle peaks
- Halving Visualization 🔍
- Precise cycle boundaries demarcating Bitcoin's fundamental supply shock events
- Adaptive band spacing based on mathematical cycle progression
- Multiple sub-cycle markers revealing the probabilistic nature of Bitcoin's trajectory
🚀 How to Use
1. Identify Macro Position ⏰: Locate Bitcoin's current price relative to the regression bands
2. Understand Cycle Context 🎚️: Note position within the current halving cycle for time-based analysis
3. Assess Mathematical Value 🌈: Determine potential over/undervaluation based on band location
4. Adjust Investment Strategy 🔎: Modulate position sizing based on mathematical value assessment
5. Identify Cycle Phases ✅: Monitor band transitions to detect accumulation and distribution zones
6. Invest with Precision 🛡️: Utilize lower bands for strategic accumulation, upper bands for strategic reduction
7. Manage Risk Dynamically 🔐: Scale investment allocations based on mathematical cycle positioning
Moving Average ToolkitMoving Average Toolkit - Advanced MA Analysis with Flexible Source Input
A powerful and versatile moving average indicator designed for maximum flexibility. Its unique source input feature allows you to analyze moving averages of ANY indicator or price data, making it perfect for creating custom combinations with RSI, Volume, OBV, or any other technical indicator.
Key Features:
• Universal Source Input:
- Analyze moving averages of any data: Price, Volume, RSI, MACD, Custom Indicators
- Perfect for creating advanced technical setups
- Identify trends in any technical data
• 13 Moving Average Types:
- Traditional: SMA, EMA, WMA, RMA, VWMA
- Advanced: HMA, T3, DEMA, TEMA, KAMA, ZLEMA, McGinley, EPMA
• Dual MA System:
- Compare two different moving averages
- Independent settings for each MA
- Perfect for multiple timeframe analysis
• Visual Offset Analysis:
- Dynamic color changes based on momentum
- Fill between current and offset values
- Clear visualization of trend strength
Usage Examples:
• Price Trend: Traditional MA analysis using price data
• Volume Trend: Apply MA to volume for volume trend analysis
• RSI Trend: Smooth RSI movements for clearer signals
• Custom: Apply to any indicator output for unique insights
Settings:
• Fully customizable colors for bull/bear conditions
• Adjustable offset periods
• Independent length settings
• Optional second MA for comparison
Perfect for:
• Advanced technical analysts
• Multi-indicator strategy developers
• Custom indicator creators
• Traders seeking flexible analysis tools
This versatile toolkit goes beyond traditional moving averages by allowing you to apply sophisticated MA analysis to any technical data, creating endless possibilities for custom technical analysis strategies.
Islamabad Forex Academy Strategy-1 Best on 1H-4H forex charts (EURUSD/GBPUSD)
Adjust supertrend multiplier between 2.5-3.2 based on volatility
Switch to close-price crosses during low volatility periods
Combine with London/New York sessions for best results
Event-Based Multi MA v1.1📈 Event-Based Multi MA v1.1 — Smart Trading with Dynamic MA Updates
Overview
In a world where most moving averages blindly follow every candle, Event-Based Multi MA v1.1 introduces a smarter logic:
➡️ Update moving averages only when significant price movements occur.
Forget the noise. Focus on what's important.
This indicator recalculates your moving averages only after meaningful price shifts, allowing you to spot true trends and avoid market whipsaws.
Key Features
✅ Event-Driven Logic
Set events based on:
Points: Absolute price change
Percent: Relative price movement
ATR: Volatility-adjusted dynamic movement
✅ Seven Fully Customizable Moving Averages (MA1–MA7)
Each MA offers:
Custom timeframe
Selection of types (EMA, SMA, WMA, VWMA, HMA, LSMA, DEMA, TEMA, ALMA, RMA)
Adjustable lengths and colors
✅ Reduced Market Noise
MAs adjust only after important price actions — cutting down lag and false signals.
✅ Multi-Timeframe Analysis
You can blend moving averages from different timeframes (e.g., 15m, 1H, Daily) into a single chart — perfect for professional multi-frame strategy building.
Settings Explained
Event Trigger Type: Select Points, Percent, or ATR-based movement.
Event Threshold: The amount of price movement needed to trigger a new calculation.
ATR Length: If ATR mode is selected, this controls the sensitivity.
Each Moving Average (MA1 to MA7) has:
MA Type: Choose the smoothing method that suits your trading style.
Length: The number of bars used in the calculation.
Color: Customize visual styling.
Timeframe: Load MAs from different timeframes into your current chart.
How to Use It in Trading
🔹 Trend Confirmation
Wait for event-triggered updates. Fresh MAs after a significant move are much stronger signals than constantly refreshing MAs.
🔹 Momentum Breakouts
Combine short-term (e.g., MA1, MA2) and long-term (e.g., MA5, MA6) MAs. When short-term MAs cross above/below long-term after an event, it's a powerful breakout cue.
🔹 Dynamic Support/Resistance
Use slow-moving MAs like 100-200 length across different timeframes.
The event-based recalculation keeps them relevant to recent major price moves.
🔹 Volatility Filters
Switch to ATR-based events to adapt moving average updates during volatile periods and calm markets.
Why It Beats Traditional Moving Averages
🚀 No More Overfitting to Every Candle
You focus only on impactful price changes.
🚀 Multi-Timeframe Flexibility
Blend micro and macro views seamlessly in one chart.
🚀 Cleaner Signals, Less Noise
Event-triggered recalculations filter out useless minor price wobbles.
🚀 Customization Beyond Standard MAs
TEMA, HMA, ALMA, DEMA, VWMA — all included for ultra-fine-tuned strategies.
✨ Ready to Upgrade Your Trading?
Forget the old, slow MAs.
Use intelligence. Trade events, not noise.
→ Add Event-Based Multi MA v1.1 to your chart and experience true precision!
1-Hour Candlestick Patterns on 15m Chartplots 1 hour candlesticks on lower timeframe so there is no need to jump from higher time frame to lower time frame.
Cabreras RSIThis custom Pine Script v6 indicator transforms your smoothed RSI into a vibrant “ridge” chart, optimized for 5-minute scalping. Here’s what it does and how to use it:
1. Core Concept
Zero-Centered Ridge
• Takes a standard RSI (default period 7) and smooths it with an EMA (default length 3).
• Subtracts 50 so the ridge oscillates around zero—peaks above zero indicate bullish momentum, valleys below zero bearish momentum.
Rainbow Coloring
• Maps RSI values (0–100) to a full 360° hue spectrum (red→yellow→green→cyan→blue→magenta→red).
• As the smoothed RSI climbs, the ridge fill cycles through the rainbow, giving you instant visual feedback on momentum strength and direction.
2. Configurable Inputs
Input Default Description
Price Source Close Which price series to calculate RSI on
RSI Length 7 Number of bars for the base RSI calculation
Smoothing Length 3 EMA length applied to the raw RSI
Upper Level (e.g. 70) 70 Overbought threshold (plotted at +20 on the ridge)
Lower Level (e.g. 30) 30 Oversold threshold (plotted at –20 on the ridge)
Area Transparency 20 Opacity for the rainbow fill (0 = solid, 100 = clear)
Zone BG Transparency 85 Opacity for background shading beyond OB/OS zones
3. Visual Elements
Rainbow Ridge Area
• The main plot (style = area) fills from the zero-line up or down.
• Color hue changes dynamically with RSI value.
Midline & Thresholds
Midline (zero): a dotted gray line.
Upper Level: dashed red line at (Upper Level – 50).
Lower Level: dashed green line at (Lower Level – 50).
Background Shading
Purple band behind the ridge when it exceeds the upper level.
Green band behind the ridge when it drops below the lower level.
4. How to Read It
Color progression from red→green→blue indicates rising momentum; reversing hues signal slowing or flipping momentum.
Ridge peaks above the upper threshold suggest overbought conditions; valleys below the lower threshold suggest oversold.
Background highlight quickly shows when RSI is in extreme zones without scanning numbers.
Use this on a 5 min chart to spot rapid reversals and gauge momentum at a glance—perfect for scalping setups. Adjust your upper/lower levels and transparency settings to fine-tune to your strategy.
ICT Ultimate Checklist | MARKET MAVERISK MOHAMMAD ESMAILIIThis indicator serves as a checklist for ICT traders. It stays on the chart regularly because the ICT method has various components for confirmation needed to enter a trade, helping us not to get distracted and stay on our strategy.
LDO Combined Sup/Res, Trends, MA Bands & Vector Candle ZonesQuick Guide to Using "LDO Combined Sup/Res, Trends, MA Bands & Vector Candle Zones"
Add the Indicator:
In TradingView, go to the "Indicators" menu, search for "LDO Combined Sup/Res, Trends, MA Bands & Vector Candle Zones", and add it to your chart.
Customize Settings:
Open the indicator settings:
Support & Resistance: Toggle Show Sup & Res Lines? and adjust pivot settings for support/resistance lines.
Trend Lines: Enable Show Trend Lines? to display trend lines based on pivots.
Moving Average Bands: Toggle Show MA Bands?. Adjust EMA/SMA lengths (default: 50 EMA, 21 SMA, 200 EMA) for more aggressive settings (e.g., 13 EMA, 8 SMA for faster signals).
Vector Candle Zones: Set Maximum zones to draw (default: 500) and customize zone appearance (e.g., transparency, border width).
PVSRA Colors: Enable Set PVSRA candle colors? to color candles based on volume/spread (green/red for high volume, blue/violet for moderate, gray for regular). Adjust colors if needed.
Alerts: Enable Enable PVSRA Candle Alerts? to get notifications for green/red PVSRA candles. You can change the indicator settings’ timeframe: if the chart is 1-hour, set alerts on a minute level (e.g., 5-minute) by adjusting the Higher Timeframe in settings.
Interpret the Chart:
Support/Resistance Lines: Blue lines indicate support/resistance levels; color changes based on price position.
Trend Lines: Colored lines show trends based on pivots (e.g., pink for highs, blue for lows).
MA Ribbon: 50 EMA (green), 21 SMA (green), and 200 EMA (gray) with a fill (blue/green) between EMA and SMA.
Vector Zones: Yellow zones highlight significant candles (based on volume/spread).
PVSRA Candles: Green/red candles indicate high volume/spread; blue/violet for moderate; gray for regular.
Set Up Alerts:
Click the "Alert" icon in TradingView.
Select the indicator and choose "PVSRA Green Candle" or "PVSRA Red Candle".
Configure notification settings (e.g., once per bar close on your chosen timeframe) and save.
Monitor and Trade:
Use support/resistance and trend lines for key levels.
Watch MA ribbon for trend direction (EMA/SMA crossover).
Look for PVSRA candles and zones for high-volume activity.
Respond to alerts for potential trading opportunities.
Ultimate Multi EMA🔹 Ultimate Multi EMA + HTF Bias Line
This script plots four customizable EMAs (8, 21, 50, 200) with flexible colors and line widths.
It also adds an automatic Higher Timeframe (HTF) EMA line:
On the Daily timeframe: shows the Weekly EMA.
On lower timeframes (like 1-minute): shows the Daily EMA.
The HTF EMA helps to easily identify market bias.
All colors and thicknesses can be adjusted in the settings.
Default settings:
EMA 8 (green)
EMA 21 (gold)
EMA 50 (blue)
EMA 200 (black)
HTF EMA (lilac)
Ultimate Multi EMA🔹 Ultimate Multi EMA + HTF Bias Line
This script plots four customizable EMAs (8, 21, 50, 200) with flexible colors and line widths.
It also adds an automatic Higher Timeframe (HTF) EMA line:
On the Daily timeframe: shows the Weekly EMA.
On lower timeframes (like 1-minute): shows the Daily EMA.
The HTF EMA helps to easily identify market bias.
All colors and thicknesses can be adjusted in the settings.
Default settings:
EMA 8 (green)
EMA 21 (gold)
EMA 50 (blue)
EMA 200 (black)
HTF EMA (lilac)
EMA Crossover BackgroundWhen the chart closes above or below the EMA, the background color changes.
"Useful if you want to trade in the trend direction but don't always want to look at the EMA. For example, in an aggressive up or down trend, the EMA is far away on lower time frames, but you can instantly see if it’s above or below, which makes backtesting easier too."
Tighter Support, Resistance, and Consolidation ZonesScript that shows Support, Resistance and Consolidation.
Micro Gaps DetectorSimple Micro Gap Indicator: A Technical Analysis Tool
The Simple Micro Gap Indicator is a specialized momentum indicator designed to identify and analyze micro gaps between consecutive candlesticks in financial charts. Unlike traditional gap analysis that focuses on larger price gaps, this indicator specifically targets smaller, less noticeable spaces between candles.
Key Features:
Detects minimal price disparities between consecutive candlesticks
Helps identify potential short-term momentum shifts
Useful for high-frequency trading and scalping strategies
Functions as a momentum indicator for short-term price movements
Supertrend X2 + CalcSize Calculator:
Size Calculator is a risk management tool that helps traders position themselves intelligently by calculating optimal position size, stop loss, and take profit levels based on account capital, ATR volatility, and personal risk tolerance. It takes the guesswork out of sizing so you can focus on execution.
Features:
✅ Risk-based position sizing
✅ ATR-based stop loss & take profit levels
✅ Dynamic leverage estimation
✅ Support for long and short positions
✅ Visual display of key levels and metrics via table
✅ Works across any timeframe with locked timeframe support
How It Works:
This tool computes the ideal position size as a % of account capital based on how much you're willing to risk per trade and how far your stop loss is (in ATR units). It calculates corresponding stop loss and take profit prices, and visually plots them along with a floating table of metrics. You can lock the timeframe used for ATR and price, keeping your risk logic stable even when changing chart views.
Customizable Inputs:
Account capital and risk tolerance
ATR-based stop loss & take profit multiples
Trade direction (Long or Short)
ATR period and locked timeframe
Optional detailed metrics display
Dual SuperTrend:
The Dual Supertrend indicator enhances the classic Supertrend strategy by layering two customizable Supertrend signals with independent ATR settings. This setup gives you a deeper, more nuanced read on trend strength and potential entry zones.
Features:
✅ Two Supertrend lines (each with adjustable ATR periods and multipliers)
✅ Optional Heikin Ashi candle smoothing for noise reduction
✅ Color-coded trend background for fast visual analysis
✅ Multi-timeframe trend table overlay (customizable)
✅ Built-in signal logic to identify "Long", "Short", or "N/A" zones
✅ Built-in alerts from Long and Short Entry Zones
How It Works:
The script calculates two Supertrend levels using separate ATR settings. Trend direction is derived from the relationship between price and each band. When the larger (slower) Supertrend flips and the smaller (faster) confirms, it signals a potential entry. The multi-timeframe table helps you align trades across different timeframes.
Customizable Inputs:
ATR Periods & Multipliers for both Supertrends
Timeframes for entry zone detection (up to 4)
Enable/disable Heikin Ashi candles for smoother trend detection