TitanGrid L/S SuperEngineTitanGrid L/S SuperEngine
Experimental Trend-Aligned Grid Signal Engine for Long & Short Execution
🔹 Overview
TitanGrid is an advanced, real-time signal engine built around a tactical grid structure.
It manages Long and Short trades using trend-aligned entries, layered scaling, and partial exits.
Unlike traditional strategy() -based scripts, TitanGrid runs as an indicator() , but includes its own full internal simulation engine.
This allows it to track capital, equity, PnL, risk exposure, and trade performance bar-by-bar — effectively simulating a custom backtest, while remaining compatible with real-time alert-based execution systems.
The concept was born from the fusion of two prior systems:
Assassin’s Grid (grid-based execution and structure) + Super 8 (trend-filtering, smart capital logic), both developed under the AssassinsGrid framework.
🔹 Disclaimer
This is an experimental tool intended for research, testing, and educational use.
It does not provide guaranteed outcomes and should not be interpreted as financial advice.
Use with demo or simulated accounts before considering live deployment.
🔹 Execution Logic
Trend direction is filtered through a custom SuperTrend engine. Once confirmed:
• Long entries trigger on pullbacks, exiting progressively as price moves up
• Short entries trigger on rallies, exiting as price declines
Grid levels are spaced by configurable percentage width, and entries scale dynamically.
🔹 Stop Loss Mechanism
TitanGrid uses a dual-layer stop system:
• A static stop per entry, placed at a fixed percentage distance matching the grid width
• A trend reversal exit that closes the entire position if price crosses the SuperTrend in the opposite direction
Stops are triggered once per cycle, ensuring predictable and capital-aware behavior.
🔹 Key Features
• Dual-side grid logic (Long-only, Short-only, or Both)
• SuperTrend filtering to enforce directional bias
• Adjustable grid spacing, scaling, and sizing
• Static and dynamic stop-loss logic
• Partial exits and reset conditions
• Webhook-ready alerts (browser-based automation compatible)
• Internal simulation of equity, PnL, fees, and liquidation levels
• Real-time dashboard for full transparency
🔹 Best Use Cases
TitanGrid performs best in structured or mean-reverting environments.
It is especially well-suited to assets with the behavioral profile of ETH — reactive, trend-intraday, and prone to clean pullback formations.
While adaptable to multiple timeframes, it shows strongest performance on the 15-minute chart , offering a balance of signal frequency and directional clarity.
🔹 License
Published under the Mozilla Public License 2.0 .
You are free to study, adapt, and extend this script.
🔹 Panel Reference
The real-time dashboard displays performance metrics, capital state, and position behavior:
• Asset Type – Automatically detects the instrument class (e.g., Crypto, Stock, Forex) from symbol metadata
• Equity – Total simulated capital: realized PnL + floating PnL + remaining cash
• Available Cash – Capital not currently allocated to any position
• Used Margin – Capital locked in open trades, based on position size and leverage
• Net Profit – Realized gain/loss after commissions and fees
• Raw Net Profit – Gross result before trading costs
• Floating PnL – Unrealized profit or loss from active positions
• ROI – Return on initial capital, including realized and floating PnL. Leverage directly impacts this metric, amplifying both gains and losses relative to account size.
• Long/Short Size & Avg Price – Open position sizes and volume-weighted average entry prices
• Leverage & Liquidation – Simulated effective leverage and projected liquidation level
• Hold – Best-performing hold side (Long or Short) over the session
• Hold Efficiency – Performance efficiency during holding phases, relative to capital used
• Profit Factor – Ratio of gross profits to gross losses (realized)
• Payoff Ratio – Average profit per win / average loss per loss
• Win Rate – Percent of profitable closes (including partial exits)
• Expectancy – Net average result per closed trade
• Max Drawdown – Largest recorded drop in equity during the session
• Commission Paid – Simulated trading costs: maker, taker, funding
• Long / Short Trades – Count of entry signals per side
• Time Trading – Number of bars spent in active positions
• Volume / Month – Extrapolated 30-day trading volume estimate
• Min Capital – Lowest equity level recorded during the session
🔹 Reference Ranges by Strategy Type
Use the following metrics as reference depending on the trading style:
Grid / Mean Reversion
• Profit Factor: 1.2 – 2.0
• Payoff Ratio: 0.5 – 1.2
• Win Rate: 50% – 70% (based on partial exits)
• Expectancy: 0.05% – 0.25%
• Drawdown: Moderate to high
• Commission Impact: High
Trend-Following
• Profit Factor: 1.5 – 3.0
• Payoff Ratio: 1.5 – 3.5
• Win Rate: 30% – 50%
• Expectancy: 0.3% – 1.0%
• Drawdown: Low to moderate
Scalping / High-Frequency
• Profit Factor: 1.1 – 1.6
• Payoff Ratio: 0.3 – 0.8
• Win Rate: 80% – 95%
• Expectancy: 0.01% – 0.05%
• Volume / Month: Very high
Breakout Strategies
• Profit Factor: 1.4 – 2.2
• Payoff Ratio: 1.2 – 2.0
• Win Rate: 35% – 60%
• Expectancy: 0.2% – 0.6%
• Drawdown: Can be sharp after failed breakouts
🔹 Note on Performance Simulation
TitanGrid includes internal accounting of fees, slippage, and funding costs.
While its logic is designed for precision and capital efficiency, performance is naturally affected by exchange commissions.
In frictionless environments (e.g., zero-fee simulation), its high-frequency logic could — in theory — extract substantial micro-edges from the market.
However, real-world conditions introduce limits, and all results should be interpreted accordingly.
Volatilidade
Approximate Entropy Zones [PhenLabs]Version: PineScript™ v6
Description
This indicator identifies periods of market complexity and randomness by calculating the Approximate Entropy (ApEn) of price action. As the movement of the market becomes complex, it means the current trend is losing steam and a reversal or consolidation is likely near. The indicator plots high-entropy periods as zones on your chart, providing a graphical suggestion to anticipate a potential market direction change. This indicator is designed to help traders identify favorable times to get in or out of a trade by highlighting when the market is in a state of disarray.
Points of Innovation
Advanced Complexity Analysis: Instead of relying on traditional momentum or trend indicators, this tool uses Approximate Entropy to quantify the unpredictability of price movements.
Dynamic Zone Creation: It automatically plots zones on the chart during periods of high entropy, providing a clear and intuitive visual guide.
Customizable Sensitivity: Users can fine-tune the ‘Entropy Threshold’ to adjust how frequently zones appear, allowing for calibration to different assets and timeframes.
Time-Based Zone Expiration: Zones can be set to expire after a specific time, keeping the chart clean and relevant.
Built-in Zone Size Filter: Excludes zones that form on excessively large candles, filtering out noise from extreme volatility events.
On-Chart Calibration Guide: A persistent note on the chart provides simple instructions for adjusting the entropy threshold, making it easy for users to optimize the indicator’s performance.
Core Components
Approximate Entropy (ApEn) Calculation: The core of the indicator, which measures the complexity or randomness of the price data.
Zone Plotting: Creates visual boxes on the chart when the calculated ApEn value exceeds a user-defined threshold.
Dynamic Zone Management: Manages the lifecycle of the zones, from creation to expiration, ensuring the chart remains uncluttered.
Customizable Settings: A comprehensive set of inputs that allow users to control the indicator’s sensitivity, appearance, and time-based behavior.
Key Features
Identifies Potential Reversals: The high-entropy zones can signal that a trend is nearing its end, giving traders an early warning.
Works on Any Timeframe: The indicator can be applied to any chart timeframe, from minutes to days.
Customizable Appearance: Users can change the color and transparency of the zones to match their chart’s theme.
Informative Labels: Each zone can display the calculated entropy value and the direction of the candle on which it formed.
Visualization
Entropy Zones: Shaded boxes that appear on the chart, highlighting candles with high complexity.
Zone Labels: Text within each zone that displays the ApEn value and a directional arrow (e.g., “0.525 ↑”).
Calibration Note: A small table in the top-right corner of the chart with instructions for adjusting the indicator’s sensitivity.
Usage Guidelines
Entropy Analysis
Source: The price data used for the ApEn calculation. (Default: close)
Lookback Length: The number of bars used in the ApEn calculation. (Default: 20, Range: 10-50)
Embedding Dimension (m): The length of patterns to be compared; a standard value for financial data. (Default: 2)
Tolerance Multiplier (r): Adjusts the tolerance for pattern matching; a larger value makes matching more lenient. (Default: 0.2)
Entropy Threshold: The ApEn value that must be exceeded to plot a zone. Increase this if too many zones appear; decrease it if too few appear. (Default: 0.525)
Time Settings
Analysis Timeframe: How long a zone remains on the chart after it forms. (Default: 1D)
Custom Period (Bars): The zone’s lifespan in bars if “Analysis Timeframe” is set to “Custom”. (Default: 1000)
Zone Settings
Zone Fill Color: The color of the entropy zones. (Default: #21f38a with 80% transparency)
Maximum Zone Size %: Filters out zones on candles that are larger than this percentage of their low price. (Default: 0.5)
Display Options
Show Entropy Label: Toggles the visibility of the text label inside each zone. (Default: true)
Label Text Position: The horizontal alignment of the text label. (Default: Right)
Show Calibration Note: Toggles the visibility of the calibration note in the corner of the chart. (Default: true)
Best Use Cases
Trend Reversal Trading: Identifying when a strong trend is likely to reverse or pause.
Breakout Confirmation: Using the absence of high entropy to confirm the strength of a breakout.
Ranging Market Identification: Periods of high entropy can indicate that a market is transitioning into a sideways or choppy phase.
Limitations
Not a Standalone Signal: This indicator should be used in conjunction with other forms of analysis to confirm trading signals.
Lagging Nature: Like all indicators based on historical data, ApEn is a lagging measure and does not predict future price movements with certainty.
Calibration Required: The effectiveness of the indicator is highly dependent on the “Entropy Threshold” setting, which needs to be adjusted for different assets and timeframes.
What Makes This Unique
Quantifies Complexity: It provides a numerical measure of market complexity, offering a different perspective than traditional indicators.
Clear Visual Cues: The zones make it easy to see when the market is in a state of high unpredictability.
User-Friendly Design: With features like the on-chart calibration note, the indicator is designed to be easy to use and optimize.
How It Works
Calculate Standard Deviation: The indicator first calculates the standard deviation of the source price data over a specified lookback period.
Calculate Phi: It then calculates a value called “phi” for two different pattern lengths (embedding dimensions ‘m’ and ‘m+1’). This involves comparing sequences of data points to see how many are “similar” within a certain tolerance (determined by the standard deviation and the ‘r’ multiplier).
Calculate ApEn: The Approximate Entropy is the difference between the two phi values. A higher ApEn value indicates greater irregularity and unpredictability in the data.
Plot Zones: If the calculated ApEn exceeds the user-defined ‘Entropy Threshold’, a zone is plotted on the chart.
Note: The “Entropy Threshold” is the most important setting to adjust. If you see too many zones, increase the threshold. If you see too few, decrease it.
Top/Bottom// @version6 redesign creadit=@MRFILARDI
join our telegram t.me
Top/Bottom live
How It Works:
Identifies pivot highs/lows based on the Depth and Deviation settings.
Uses ATR (Average True Range) to measure volatility and set dynamic thresholds.
Plots labels ("Top" for highs, "Bottom" for lows) and optional dashed lines connecting pivots.
Aligns pivots with trend direction (using ATR-based trend calculation).
FIVEXFIVEX doesn’t look at the market through the lens of just one indicator — it combines the insights of six powerful tools working together in harmony. This system brings together RSI, EMA, Bollinger Bands, OBV, MACD, and Fibonacci-based Pivot levels to deliver highly accurate signals for both trend direction and momentum.
Each indicator evaluates the chart based on its own logic and produces a decision: LONG, SHORT, or NEUTRAL. FIVEX collects these individual insights and only generates a trading signal when at least three indicators agree on the same direction. This significantly reduces false signals caused by random price movements.
At a glance, the table in the top right corner of your chart shows exactly what each indicator is thinking in real-time. Background color changes only occur when the signal is strong and stable — this keeps your screen clean and your decisions clear. If a signal appears, you'll immediately understand why.
Thanks to dynamic parameter adjustments based on timeframes, FIVEX behaves more aggressively on 15-minute charts and more refined on daily charts. It’s compatible with every trading style — from scalping to swing trading.
FIVEX isn’t just an indicator; it’s a consensus engine.
It questions, waits for confirmation, and shows only what’s truly strong.
It doesn’t shout the final word — it delivers the collective judgment of market logic.
Moving Averages with ADR%/ATR/52W/Market Cap TableThis one indicator covers all major aspects for a trader like moving averages (which you can choose as per the time frame), Average Dynamic Range (it should be above 5% on a 20 day period), CMP position from 52 Weeks High / Low and Market Capitalization of the company.
Bands Vision-XBands Vision-X (BB-Vision-X) – Full Description
Description:
Bands Vision-X is an indicator based on dynamic bands constructed from customizable moving averages and standard deviation, allowing you to visualize potential support and resistance zones, volatility, and market conditions. It uses an adjustable moving average (with multiple options such as SMA, EMA, WMA, JMA, LSMA, DEMA, and TEMA) to define the central line, and upper and lower bands calculated by standard deviation multiplied by an adjustable factor. The bands are smoothed by a Hull Moving Average (HMA) to reduce noise and improve clarity.
How to Use
The bands indicate potential support and resistance levels.
The central line serves as a dynamic price reference.
The distance between bands reflects market volatility.
Touches or breakouts of the bands may signal entry or exit opportunities.
Parameters
Parameter Description Default
Standard Error Band Period Period for moving average and standard deviation 20
Moving Average Type Type of moving average (SMA, EMA, etc.) SMA
Standard Deviation Multiplier Multiplier for standard deviation 2.0
Band Lines Smoothing Period Period for smoothing the bands (HMA) 5
Technical Notes
The JMA function used is not the original Jurik version but an approximate and open implementation based on publicly available TradingView community code.
Developed in Pine Script v6 with optimized and clean code.
Recommendations
Ideal for traders seeking a clear view of volatility and dynamic support/resistance levels.
Should not be used in isolation; it is recommended to combine with volume analysis, price action, or other technical indicators.
Adjust the period and multiplier according to the asset and timeframe for better effectiveness.
ATR-Stop-SurvivalHow to Use the ATR-Stop-Survival Indicator
This indicator was designed to prioritize functionality, removing unnecessary elements and focusing only on what is essential for survival in the financial market. It is easy to understand for both beginner and experienced traders, avoiding visual clutter and unnecessary buttons.
Key Features:
Uses only 1 indicator on the chart, unlike the previous version, which consumed 2 indicators.
Recommended for 4-hour timeframes. If desired, it can also be used in 2-hour or 3-hour intervals.
Not recommended for daily, weekly, or monthly timeframes, as they are too long and may lead to significant financial losses due to stop-loss activation.
ATR Period Adjustment: The default is 14, but it can be set to 20, if preferred.
ATR Multiplier Settings:
1.5 (Conservative) → For calm and stable assets.
2.0 (Aggressive) → For volatile, fast-moving assets with high candle retracement.
This indicator is a practical tool that ensures clarity and efficiency, allowing traders to focus only on critical market movements without distractions.
ADR Pivot LevelsThe ADR (Average Daily Range) indicator shows the average range of price movement over a trading day. The ADR is used to estimate volatility and to determine target levels. It helps to set Take-Profit and Stop-Loss orders. It is suitable for intraday trading on lower time frames.
The “ADR Pivot Levels” produces a sequence of horizontal line levels above and below the Center Line (reference level). They are sized based on the instrument's volatility, representing the average historical price movement on a selected higher timeframe using the average daily range (ADR) indicator.
Demo GPT - Bollinger Bands StrategyHere’s a professional and detailed description for publishing your **"iNsTiNcT - Bollinger Bands Strategy"** on TradingView:
---
### **Strategy Description: iNsTiNcT - Bollinger Bands Strategy**
#### **Overview**
This strategy uses **Bollinger Bands®** to identify potential breakouts and trend reversals. It goes **long** when the price closes **above the upper band** (indicating strong bullish momentum) and **exits the position** when the price closes **below the lower band** (signaling a potential reversal or weakness).
Unlike traditional Bollinger Bands strategies that may trade both long and short, this version **only takes long positions**, making it suitable for trending markets while avoiding short-side risks.
---
### **Key Features**
✅ **Long-Only Trend Strategy** – Capitalizes on strong uptrends when price breaks above the upper band.
✅ **Clear Exit Signal** – Closes the trade when price falls below the lower band, locking in profits or cutting losses.
✅ **Customizable Parameters** – Adjustable length, standard deviation multiplier, and MA type for different market conditions.
✅ **Date Range Filter** – Test or trade between **January 2018 and December 2069**.
✅ **Professional Risk Management** – **0.1% commission** and **zero slippage** for realistic backtesting.
✅ **Visual Preservation** – Maintains the original Bollinger Bands indicator plots for easy comparison.
---
### **Input Parameters**
| Parameter | Description | Default Value |
|-----------|------------|--------------|
| **Start Date** | Backtest/trade start date | Jan 1, 2018 |
| **End Date** | Backtest/trade end date | Dec 31, 2069 |
| **Length** | Period for Bollinger Bands calculation | 20 |
| **Basis MA Type** | Type of moving average (SMA, EMA, SMMA, WMA, VWMA) | SMA |
| **Source** | Price source for calculations | Close |
| **StdDev** | Multiplier for standard deviation | 2.0 |
| **Offset** | Shifts bands forward/backward | 0 |
---
### **Strategy Logic**
#### **Entry Condition (Long)**
➡ **Buy Signal:** `Close > Upper Bollinger Band`
#### **Exit Condition (Close Long)**
➡ **Sell Signal:** `Close < Lower Bollinger Band`
*(No short trades are taken—only long and flat positions.)*
---
### **How to Use This Strategy**
1. **Apply to Chart** – Works on any timeframe (best on **1H, 4H, or Daily** for swing trading).
2. **Optimize Settings** – Adjust `Length` and `StdDev` for different volatility conditions.
3. **Combine with Filters** – Add volume confirmation or RSI for stronger signals.
4. **Backtest** – Use the **date range** to test different market cycles.
---
### **Risk & Limitations**
⚠ **Works Best in Trending Markets** – May produce false signals in choppy or sideways conditions.
⚠ **Single Indicator Reliance** – Consider adding confirmation filters (e.g., RSI, MACD).
⚠ **No Stop-Loss by Default** – Exits only when price touches the lower band.
---
### **Final Notes**
This strategy is designed for **educational and experimental purposes**. Always conduct **forward testing** before live trading.
🔹 **Happy Trading!** 🚀
---
### **Publishing Tags (For SEO)**
`Bollinger Bands Strategy`, `Trend Following`, `Breakout Trading`, `Long-Only Strategy`, `Technical Analysis`, `TradingView Strategy`, `Pine Script v6`, `Swing Trading`
---
This description is **clear, engaging, and optimized for TradingView’s audience**. It highlights the strategy’s logic, strengths, and limitations while encouraging users to experiment with it.
Would you like any refinements?
Institutional Key Levels + VWAP Alerts (Labeled)🧠 Description:
This free version of the Institutional Key Levels + VWAP script gives you instant, auto-updating visibility on the most important price zones for intraday and swing trading.
✅ Designed for traders who want clean, data-driven levels without daily redrawing.
🧱 What It Shows:
Prior Day High (PDH)
Prior Day Low (PDL)
Prior Day Close (PDC)
Live VWAP
Color-coded horizontal lines + optional chart labels
Built-in alert conditions for:
Breakout above PDH
Breakdown below PDL
VWAP Reclaim or Rejection
📊 Ideal for:
Futures traders (MNQ, ES, MGC, etc.)
Equity scalpers
Options traders using directional bias
Traders who use VWAP as a dynamic S/R guide
🔧 No need to draw lines manually. This script updates daily with zero maintenance and lets you stay focused on execution.
VWAP %BVWAP %B - Volume Weighted Average Price Percent B
The VWAP %B indicator combines the reliability of VWAP (Volume Weighted Average Price) with the analytical power of %B oscillators, similar to Bollinger Bands %B but using volume-weighted statistics.
## How It Works
This indicator calculates where the current price sits relative to VWAP-based standard deviation bands, expressed as a percentage from 0 to 1:
• **VWAP Calculation**: Uses volume-weighted average price as the center line
• **Standard Deviation Bands**: Creates upper and lower bands using standard deviation around VWAP
• **%B Formula**: %B = (Price - Lower Band) / (Upper Band - Lower Band)
## Key Levels & Interpretation
• **Above 1.0**: Price is trading above the upper VWAP band (strong bullish momentum)
• **0.8 - 1.0**: Overbought territory, potential resistance
• **0.5**: Price exactly at VWAP (equilibrium)
• **0.2 - 0.0**: Oversold territory, potential support
• **Below 0.0**: Price is trading below the lower VWAP band (strong bearish momentum)
## Trading Applications
**Trend Following**: During strong trends, breaks above 1.0 or below 0.0 often signal continuation rather than reversal.
**Mean Reversion**: In ranging markets, extreme readings (>0.8 or <0.2) may indicate potential reversal points.
**Volume Context**: Unlike traditional %B, this incorporates volume weighting, making it more reliable during high-volume periods.
## Parameters
• **Length (20)**: Period for standard deviation calculation
• **Standard Deviation Multiplier (2.0)**: Controls band width
• **Source (close)**: Price input for calculations
## Visual Features
• Reference lines at key levels (0, 0.2, 0.5, 0.8, 1.0)
• Background highlighting for extreme breaks
• Real-time values table
• Clean oscillator format below price chart
Perfect for intraday traders and swing traders who want to combine volume analysis with momentum oscillators.
COV Bands ~ C H I P ACOV Bands ~ C H I P A is a custom volatility and trend identification tool designed to capture directional shifts using the Coefficient of Variation (COV), calculated from standard deviation relative to a mean price baseline.
Key features include:
A configurable SMA-based mean baseline to anchor volatility measurements clearly.
Adjustable upper and lower band multipliers to independently calibrate sensitivity and responsiveness for bullish or bearish breakouts.
Dynamic bands derived from price-relative volatility (COV), enabling adaptive identification of significant price deviations.
User-controlled standard deviation length to manage sensitivity and smoothness of volatility signals.
Direct candle coloring, providing immediate visual feedback using vibrant electric blue for bullish momentum and bright red for bearish momentum.
This indicator is particularly useful for detecting meaningful price movements, breakout signals, and potential reversals when the market moves significantly beyond its typical volatility boundaries.
Note: This indicator has not undergone formal robustness or optimization testing. Therefore, future performance in live trading environments isn't guaranteed.
ATR Keltner Channels [iryna]Hello!
I’m excited to share my custom ATR Keltner Channel script, built around a 21-period EMA and ATR-based volatility bands. I am using this tool myself for watching price behavior, any pullbacks or breakouts, and to visualize dynamic support and resistance.
How it works:
• The centerline is a 21-day Exponential Moving Average (EMA), giving you a smooth sense of the trend.
• The upper and lower bands are calculated using Average True Range (ATR), so they expand and contract based on volatility.
• The upper and lower bands are x1ATR, x2ATR, x3ATR.
All my knowledge comes from SpikeTrade community, where I am learning from Kerry Lovvorn and Alexander Elder.
Let me know if you have any suggestions to improve or update!
Have a fruitful trading session!
- Iryna
HA EMA Cross MTF Strategy + ATR SL/TP + Visuals📜 Strategy Description: HA EMA Cross MTF Strategy + ATR SL/TP + Visuals
Hello Traders,
This is a multi-timeframe, Heikin Ashi-based trend-following strategy that integrates EMA crossovers and ATR-driven exits. The goal is to filter out noise, confirm directional bias using higher timeframe structure, and manage risk through volatility-adaptive exits.
🔍 How the Strategy Works
* Heikin Ashi candles help smooth out minor price fluctuations, allowing for clearer trend detection.
* A Fast EMA crossing above or below a Slow EMA determines the local trend bias.
* A Higher Timeframe Heikin Ashi confirmation is used to validate entries only when both timeframes agree in direction.
* Session filters can restrict trading to custom hours (e.g., U.S. market open).
⚙️ Risk Management Features
This strategy includes optional ATR-based Stop-Loss and Take-Profit logic, designed to adapt dynamically to market volatility:
* ATR Stop-Loss: Based on a user-defined multiplier (default: 1.5×ATR)
* ATR Take-Profit: Based on a separate multiplier (default: 2.5×ATR)
* Users can toggle this logic on/off and customize ATR length and multipliers in the settings.
📊 Visual Aids Included
To help understand market behavior and trade execution visually, the script includes:
* Entry arrows (long and short)
* Real-time Fast EMA / Slow EMA overlays
* Stop-Loss / Take-Profit level plots
* Optional Heikin Ashi Close line for trend visualization
🔧 Customization Parameters
Users can adjust:
* EMA periods (fast and slow)
* ATR period and multipliers for SL/TP
* Session time filters
* Higher timeframe input
* Toggle ATR logic and visual overlays
🧪 Backtest Defaults (for reference only)
* Initial Capital: $10,000
* Order Size: 100% of equity
* Slippage: 1 tick
* Commission: 0.075%
* Recommended Timeframe: 1H or 15min
* Minimum Trades Suggested: 100+
* All these values can be adjusted in the strategy settings panel.
⚠️ Disclaimer
This strategy is provided for educational and research purposes only. It does not constitute financial advice, nor does it guarantee future performance. Please forward-test and adapt to your own risk tolerance before using in live trading.
This strategy is fully open-source and editable. Feel free to customize it for your use case and timeframes.
Candle Overlap DegreeThis indicator gives the ratio of max(0, min High - max Low) to (max High - min Low) over n-day.
Letzte Open Rays (18:00, 00:00, 10:00 UTC-4)super diese gute opening ray, opening rays bei den 10,18 und 0 open nur die letzten möglichen
Mandelbrot Risk Bands (Dynamic Chart-Scaled)I used Chatgpt to come up with a Madelbrot style risk bands. Thought process is similar to how Hedgeye thinks about the markets. I am currently having issues with the script not updating or scaling so if there are any ideas please let me know.
Fester prozentualer Abstand zum Kursthe indicator delivers a fixed percent distance to the market price, made with AI support
Candle Range % vs 8-Candle AvgCandle % Indicator – Measure Candle Strength by Range %
**Overview:**
The *Candle % Indicator* helps traders visually and analytically gauge the strength or significance of a price candle relative to its recent historical context. This is particularly useful for detecting breakout moves, volatility shifts, or overextended candles that may signal exhaustion.
**What It Does:**
* Calculates the **percentage range** of the current candle compared to the **average range of the past N candles**.
* Highlights candles that exceed a user-defined threshold (e.g., 150% of the average range).
* Useful for **filtering out extreme candles** that might represent anomalies or unsustainable moves.
* Can be combined with other strategies (like EMA crossovers, support/resistance breaks, etc.) to improve signal quality.
**Use Case Examples:**
***Filter out fakeouts** in breakout strategies by ignoring candles that are overly large and may revert.
***Volatility control**: Avoid entries when market conditions are erratic.
**Confluence**: Combine with EMA or RSI signals for refined entries.
**How to Read:**
* If a candle is larger than the average range by more than the set percentage (default 150%), it's flagged (e.g., no entry signal or optional visual marker).
* Ideal for intraday, swing, or algorithmic trading setups.
**Customizable Inputs:**
**Lookback Period**: Number of previous candles to calculate the average range.
**% Threshold**: Maximum percentage a candle can exceed the average before being filtered or marked.
ATR RopeATR Rope is inspired by DonovanWall's "Range Filter". It implements a similar concept of filtering out smaller market movements and adjusting only for larger moves. In addition, this indicator goes one step deeper by producing actionable zones to determine market state. (Trend vs. Consolidation)
> Background
When reading up on the Range Filter indicator, it reminded me exactly of a Rope stabilization drawing tool in a program I use frequently. Rope stabilization essentially attaches a fixed length "rope" to your cursor and an anchor point (Brush). As you move your cursor, you are pulling the brush behind it. The cursor (of course) will not pull the brush until the rope is fully extended, this behavior filters out jittery movements and is used to produce smoother drawing curves.
If compared visually side-by-side, you will notice that this indicator bears striking resemblance to its inspiration.
> Goal
Other than simply distinguishing price movements between meaningful and noise, this indicator strives to create a rigid structure to frame market movements and lack-there-of, such as when to anticipate trend, and when to suspect consolidation.
Since the indicator works based on an ATR range, the resulting ATR Channel does well to get reactions from price at its extremes. Naturally, when consolidating, price will remain within the channel, neither pushing the channel significantly up or down. Likewise, when trending, price will continue to push the channel in a single direction.
With the goal of keeping it quick and simple, this indicator does not do any smoothing of data feeds, and is simply based on the deviation of price from the central rope. Adjusting the rope when price extends past the threshold created by +/- ATR from the rope.
> Features & Behaviors
- ATR Rope
ATR Rope is displayed as a 3 color single line.
This can be considered the center line, or the directional line, whichever you'd prefer.
The main point of the Rope display is to indicate direction, however it also is factually the center of the current working range.
- ATR Rope Color
When the rope's value moves up, it changes to green (uptrend), when down, red (downtrend).
When the source crosses the rope, it turns blue (flat).
With these simple rules, we've formed a structure to view market movements.
- Consolidation Zones
Consolidation Zones generate from "Flat" areas, and extend into subsequent trend areas. Consolidation is simply areas where price has crossed the Rope and remains inside the range. Over these periods, the upper and lower values are accumulated and averaged together to form the "Consolidation Zone" values. These zones are draw live, so values are averaged as the flat areas progress and don't repaint, so all values seen historically are as they would appear live.
- ATR Channel
ATR Channel displays the upper and lower bounds of the working range.
When the source moves beyond this range, the rope is adjusted based on the distance from the source to the channel. This range can be extremely useful to view, but by default it is hidden.
> Application
This indicator is not created to provide signals, or serve as a "complete" system.
(People who didn't read this far will still comment for signals. :) )
This is created to be used alongside manual interpretation and intuition. This indicator is not meant to constrain any users into a box, and I would actually encourage an open mind and idea generation, as the application of this indicator can take various forms.
> Examples
As you would probably already know, price movement can be fast impulses, and movement can be slow bleeds. In the screenshot below, we are using movements from and to consolidation zones to classify weak trend and strong trend. As you can see, there are also areas of consolidation which get broken out of and confirmed for the larger moves.
Author's Note: In each of these examples, I have outlined the start and end of each session. These examples come from 1 Min Future charts, and have specifically been framed with day trading in mind.
"Breakout Retest" or "Support/Resistance Flips" or "Structure Retests" are all generally the same thing, with different traders referring to them by different names, all of which can be seen throughout these examples.
In the next example, we have a day which started with an early reversal leading into long, slow, trend. Notice how each area throughout the trend essentially moves slightly higher, then consolidates while holding support of the previous zone. This day had a few sharp movements, however there was a large amount of neutrality throughout this day with continuous higher lows.
In contrast to the previous example, next up, we have a very choppy day. Throughout which we see a significant amount of retests before fast directional movements. We also see a few examples of places where previous zones remained relevant into the future. While the zones only display into the resulting trend area, they do not become immediately meaningless once they stop drawing.
> Abstract
In the screenshot below, I have stacked 2 of these indicators, using the high as the source for one and the low as the source for the other. I've hidden lines of the high and low channels to create a 4 lined channel based on the wicks of price.
This is not necessary to use the indicator, but should help provide an idea of creative ways the simple indicator could be used to produce more complicated analysis.
If you've made it this far, I would hope it's clear to you how this indicator could provide value to your trading.
Thank you to DonovonWall for the inspiration.
Enjoy!
Donchian x WMA Crossover (2025 Only, Adjustable TP, Real OHLC)Short Description:
Long-only breakout system that goes long when the Donchian Low crosses up through a Weighted Moving Average, and closes when it crosses back down (with an optional take-profit), restricted to calendar year 2025. All signals use the instrument’s true OHLC data (even on Heikin-Ashi charts), start with 1 000 AUD of capital, and deploy 100 % equity per trade.
Ideal parameters configured for Temple & Webster on ASX 30 minute candles. Adjust parameter to suit however best to download candle interval data and have GPT test the pine script for optimum parameters for your trading symbol.
Detailed Description
1. Strategy Concept
This strategy captures trend-driven breakouts off the bottom of a Donchian channel. By combining the Donchian Low with a WMA filter, it aims to:
Enter when volatility compresses and price breaks above the recent Donchian Low while the longer‐term WMA confirms upward momentum.
Exit when price falls back below that same WMA (i.e. when the Donchian Low crosses back down through WMA), but only if the WMA itself has stopped rising.
Optional Take-Profit: you can specify a profit target in decimal form (e.g. 0.01 = 1 %).
2. Timeframe & Universe
In-sample period: only bars stamped between Jan 1 2025 00:00 UTC and Dec 31 2025 23:59 UTC are considered.
Any resolution (e.g. 30 m, 1 h, D, etc.) is supported—just set your preferred timeframe in the TradingView UI.
3. True-Price Execution
All indicator calculations (Donchian Low, WMA, crossover checks, take-profit) are sourced from the chart’s underlying OHLC via request.security(). This guarantees that:
You can view Heikin-Ashi or other styled candles, but your strategy will execute on the real OHLC bars.
Chart styling never suppresses or distorts your backtest results.
4. Position Sizing & Equity
Initial capital: 1 000 AUD
Size per trade: 100 % of available equity
No pyramiding: one open position at a time
5. Inputs (all exposed in the “Inputs” tab):
Input Default Description
Donchian Length 7 Number of bars to calculate the Donchian channel low
WMA Length 62 Period of the Weighted Moving Average filter
Take Profit (decimal) 0.01 Exit when price ≥ entry × (1 + take_profit_perc)
6. How It Works
Donchian Low: ta.lowest(low, DonchianLength) over the specified look-back.
WMA: ta.wma(close, WMALength) applied to true closes.
Entry: ta.crossover(DonchianLow, WMA) AND barTime ∈ 2025.
Exit:
Cross-down exit: ta.crossunder(DonchianLow, WMA) and WMA is not rising (i.e. momentum has stalled).
Take-profit exit: price ≥ entry × (1 + take_profit_perc).
Calendar exit: barTime falls outside 2025.
7. Usage Notes
After adding to your chart, open the Strategy Tester tab to review performance metrics, list of trades, equity curve, etc.
You can toggle your chart to Heikin-Ashi for visual clarity without affecting execution, thanks to the real-OHLC calls.
Euclidean Range [InvestorUnknown]The Euclidean Range indicator visualizes price deviation from a moving average using a geometric concept Euclidean distance. It helps traders identify trend strength, volatility shifts, and potential overextensions in price behavior.
Euclidean Distance
Euclidean distance is a fundamental concept in geometry and machine learning. It measures the "straight-line distance" between two points in space. In time series analysis, it can be used to measure how far one sequence deviates from another over a fixed window.
euclidean_distance(src, ref, len) =>
var float sum_sq_diff = na
sum_sq_diff := 0.0
for i = 0 to len - 1
diff = src - ref
sum_sq_diff += diff * diff
math.sqrt(sum_sq_diff)
In this script, we calculate the Euclidean distance between the price (source) and a smoothed average (reference) over a user-defined window. This gives us a single scalar that reflects the overall divergence between price and trend.
How It Works
Moving Average Calculation: You can choose between SMA, EMA, or HMA as your reference line. This becomes the "baseline" against which the actual price is compared.
Distance Band Construction: The Euclidean distance between the price and the reference is calculated over the Window Length. This value is then added to and subtracted from the average to form dynamic upper and lower bands, visually framing the range of deviation.
Distance Ratios and Z-Scores: Two distance ratios are computed: dist_r = distance / price (sensitivity to volatility); dist_v = price / distance (sensitivity to compression or low-volatility states)
Both ratios are normalized using a Z-score to standardize their behavior and allow for easier interpretation across different assets and timeframes.
Z-Score Plots: Z_r (white line) highlights instances of high volatility or strong price deviation; Z_v (red line) highlights low volatility or compressed price ranges.
Background Highlighting (Optional): When Z_v is dominant and increasing, the background is colored using a gradient. This signals a possible build-up in low volatility, which may precede a breakout.
Use Cases
Detect volatile expansions and calm compression zones.
Identify mean reversion setups when price returns to the average.
Anticipate breakout conditions by observing rising Z_v values.
Use dynamic distance bands as adaptive support/resistance zones.
Notes
The indicator is best used with liquid assets and medium-to-long windows.
Background coloring helps visually filter for squeeze setups.
Disclaimer
This indicator is provided for speculative analysis and educational purposes only. It is not financial advice. Always backtest and evaluate in a simulated environment before live trading.
Scalping Edge StrategyScalping Edge Strategy
Major exchanges: OKX, KuCoin, Bybit
Trading Checklist
- Is volatility and liquidity present?
- Are indicators aligned?
- Is entry clean?
- Is SL/TP defined before entry?
AlphaFlow: Oscillator PanelAlphaFlow: Oscillator Panel
The AlphaFlow: Oscillator Panel indicator is a versatile multi-tool designed to provide a comprehensive view of momentum, volatility, and trend strength across different timeframes. This script combines several popular technical analysis tools into a single dashboard for faster decision-making.
Key Features:
WaveTrend Oscillator (WT1 and WT2): Tracks price momentum to help identify potential reversals or trend continuations.
RSI and BBWP : Measures relative strength and volatility compression/expansion.
VWAP-MACD and OBV : Includes volume-based momentum insights and higher timeframe confirmations.
Multi-Timeframe Confluence : Highlights if various oscillators align across multiple timeframes.
Dynamic Table : A dashboard that updates in real time, providing numeric values and playful narratives for easier reading.
Configurable Text Size : Customize the table’s text size for better visibility.
Anchor, Trigger, Snake Eye Labels : These markers appear when WT1 crosses significant thresholds:
Anchor (A): Marks a potential base or bottoming signal.
Trigger (T): Confirms a potential momentum reversal.
Snake Eyes: Indicates particularly strong or rare reversal conditions.
How to Use:
Load the indicator on your chart.
Adjust input parameters like RSI length, BBWP length, CMF length, and others to suit your market and timeframe.
Use the Decision Table: It updates automatically on the latest bar to show oscillator readings, trend state, and multi-timeframe confluence.
Monitor for alignment: Bullish or bearish signals are highlighted when all components agree.
Look for Anchor, Trigger, Snake Eye labels: These help identify key turning points.
Combine with your trading strategy: This indicator is a decision-support tool and should be used with other forms of analysis and risk management.
Important:
This script does not provide financial advice. It’s a technical analysis tool designed to aid traders in decision-making and should be used at your own risk.