Indikatoren und Strategien
MartinGale Average Simulator - By LowisOriginality and Utility
This script is not a traditional indicator nor a cosmetic variation of existing tools such as moving averages, oscillators, or common indicator combinations. It is a deterministic averaging and risk modeling engine, specifically designed to simulate, analyze, and validate multi-order averaging (DCA) structures under fully configurable conditions.
The originality of this script lies in the fact that it does not generate trade signals and does not attempt to predict market direction. Instead, it models the mathematical behavior of an entire chained order structure, allowing the user to quantitatively evaluate how an averaging strategy behaves as price evolves.
The script continuously computes and displays:
The dynamic average entry price after each additional order.
The progressive position size growth as orders are added.
The total capital committed, factoring in leverage.
The individual PnL per order and the aggregated PnL of the entire structure, both in absolute and percentage terms.
The real account usage percentage as the averaging sequence progresses.
The sensitivity of the structure to changes in the current or simulated price.
Unlike classic indicators that operate on historical price data to infer probabilities, this tool functions as a deterministic planning and risk-audit system. Its purpose is to help traders answer structural questions that standard indicators do not address, such as:
How much capital is actually committed by the time the Nth order is reached.
The exact resulting average price given a custom percentage distribution across orders.
The structural drawdown required before an averaging strategy becomes profitable.
How changes in leverage, number of orders, or percentage distribution affect overall risk exposure.
The script allows full user control over key parameters, including:
Number of averaging orders.
Custom percentage offsets per order.
Account capital and leverage.
Entry price and current/simulated price.
Decimal precision for price and asset quantity.
Clear visualization through tables and price-level graphics.
This makes the script a trade engineering and risk modeling tool, rather than a signal-based indicator. Its value lies in structural analysis and execution planning, a category not covered by standard open-source scripts in the public library.
The source code is intentionally kept private because the internal averaging, position-sizing, and risk-accumulation engine represents proprietary logic that can be directly reused for commercial products or automated systems. Disclosing this implementation would allow immediate replication without providing additional educational or functional value to the end user, who already has full operational control through exposed inputs.
For these reasons, the script is functionally original, technically useful, and fully justifies closed-source protection, in compliance with TradingView’s publication guidelines.
🔧 How the Indicator Works (Technical Overview)
This indicator implements a deterministic averaging (DCA) simulation engine designed to accurately model the mathematical, financial, and percentage-based behavior of a leveraged position composed of multiple sequential orders.
Unlike traditional indicators that only display static levels or visual signals, this script reconstructs the full internal structure of a position, order by order, allowing the user to analyze its complete evolution under different price scenarios.
📌 Entry Price Calculation per Order
Starting from an initial entry price, the user defines a set of percentage-based distances for each averaging order.
Each new entry price is calculated as:
A percentage deviation relative to the original entry price
Adjusted by trade direction (long or short)
Dynamically rounded according to user-defined price precision
As a result, each order has an independent, deterministic, and reproducible price, without relying on external data or real trade execution.
📌 Position Size and Capital Usage Calculation
For every order, the engine computes:
Asset quantity acquired based on allocated capital and leverage
Actual margin used considering leverage
Progressive accumulation of total deployed capital
Account capital usage percentage per order and in total
This allows the trader to clearly visualize how real account exposure grows as additional averaging orders are added — something that is not evident in standard DCA tools.
📌 Average Entry Price Recalculation
After each new order, the indicator recalculates the weighted average entry price of the entire position by combining:
The previous average price
The new entry price
The updated total asset quantity
This accurately reflects how the real break-even level evolves as the position is averaged, which is critical for aggressive averaging or martingale-style strategies.
📌 Individual and Cumulative PnL Computation
The script supports two evaluation modes:
Current market price
User-defined simulated price, intended for hypothetical or stress-test scenarios
Using the selected price, the indicator calculates:
Individual PnL per order
Total cumulative PnL of the position
PnL percentage relative to the capital used in each order
PnL percentage relative to total deployed capital
Each order maintains its own mathematical identity, avoiding common errors where PnL is diluted or calculated solely against the averaged price.
📌 Structured and Objective Visualization
All calculations are represented through:
Independent horizontal price lines per order
Informational labels anchored to their corresponding price levels
Tabular summaries displaying the exact state of each order, row by row
No classical indicators, predictive signals, or discretionary filters are used.
The system is 100% mathematical, deterministic, and reproducible.
📌 Purpose and Practical Utility
This indicator is designed to:
Evaluate the mathematical viability of averaging schemes
Analyze real leverage-based risk exposure
Compare price scenarios before execution
Understand how small price movements affect large accumulated positions
Identify points where capital usage becomes inefficient or dangerous
It does not execute trades and does not generate trading signals.
Its purpose is structural position analysis, not prediction.
🧭 How to Use the Indicator (Step-by-Step Guide)
This indicator does not require prior trading experience to be used.
It operates entirely through configurable parameters and updates automatically in real time.
1️⃣ Define the Initial Entry Parameters
Start by setting the initial entry price.
This value represents the price at which the first position entry is opened.
Next, define:
Account capital: the total available capital
Entry percentage: the percentage of the account used in the first order
The indicator automatically calculates:
Capital invested
Asset quantity acquired
Real position exposure
2️⃣ Select the Position Direction
Choose whether the position is:
Long (benefits from price increases), or
Short (benefits from price decreases)
This selection automatically adjusts:
Price movement direction
PnL calculations
Averaging percentage behavior
No additional configuration is required.
3️⃣ Configure Leverage and Number of Orders
Set the leverage used for the position.
This value is applied to calculate:
Required margin per order
Total exposure relative to account capital
Then, specify the number of averaging orders.
Each order represents an additional entry that would be placed if price moves against the position.
4️⃣ Define Averaging Percentages
Enter the percentage offsets for each averaging order, separated by commas.
Example:
4, 8, 13, 19, 39, 54
Each value represents how far (in percentage terms) price must move from the original entry before adding a new order.
The indicator automatically calculates:
Exact price level of each order
Updated average entry price
Capital deployed per order
Total capital usage
5️⃣ (Optional) Set a Simulated Price
Optionally, a simulated price can be defined.
This allows users to:
Evaluate hypothetical market scenarios
Analyze deep drawdowns
Simulate price recoveries
Study PnL behavior without waiting for live market movement
Any change to this value instantly recalculates all results.
6️⃣ Interpreting the Results
Once configured, the indicator displays in real time:
Individual order prices
Updated average entry price
Capital invested per order and in total
Individual and cumulative PnL
PnL percentage relative to deployed capital
No buttons or manual refresh are required.
Any parameter change updates the entire simulation automatically.
🎯 Important Notes
The indicator does not execute trades
No buy or sell signals are generated
All calculations are purely mathematical and deterministic
Its purpose is to visualize, analyze, and understand how a multi-entry averaging position behaves under different market conditions.
🔒 Closed-Source Justification
This script is published as closed-source because it implements a custom multi-order position simulation engine that goes beyond standard indicator calculations.
Internally, the script relies on a structured calculation framework that manages:
Order-to-order dependency
Cumulative capital usage across multiple entries
Dynamic average price recalculation
Individual and aggregated PnL modeling
State-aware recalculation logic tied to user-defined parameters
The value of the script resides not in isolated formulas, but in the overall architecture and calculation flow that coordinates these elements into a coherent position analysis model.
Exposing the full source code would effectively reveal the complete framework, making the script trivial to replicate and removing its practical uniqueness.
Despite being closed-source, the script provides full transparency at the output level, allowing users to verify all calculated values directly on the chart through tables, labels, and price-level visualizations.
For this reason, the script is shared as a closed-source publication while still offering complete analytical clarity and educational value to the end user.
⚠️ Disclaimer
This indicator does not provide trade signals, nor does it place or manage real orders.
It is intended strictly for educational, analytical, and risk evaluation purposes.
SMC Alpha Sentiment Pro [Binance Futures Data]The SMC Alpha Sentiment Pro is an advanced decision-support tool developed for the Crypto Trade community. Unlike traditional lagging indicators, this script focuses on Market Sentiment and Smart Money Concepts (SMC) by analyzing real-time data from Binance Futures.
🔍 Key Data Points:
Open Interest (OI): Tracks new capital entering the market to confirm trend strength.
Long/Short Ratio (LSR): Identifies retail positioning. We look for "Smart Money" opportunities when retail (LSR > 1) is trapped or providing liquidity for institutional moves.
RSI & ATR: Used to identify exhaustion levels and ensure sufficient volatility for the trade.
Volume Filter: A built-in security layer that validates signals only when current volume exceeds the 20-period average.
🚥 Signal Logic:
SMC LONG: Triggered when OI is rising, LSR is below 1 and falling (retail selling), RSI is showing extreme strength (>= 68), and volume is surging.
SMC SHORT: Triggered when OI is rising, LSR is above 1 and rising (retail buying), RSI is showing extreme weakness (<= 32), and volume is surging.
📈 Best Practices:
Timeframe: Optimized for 15-minute (15M) charts.
Exchange: Specifically designed to pull ticker data from Binance Futures.
Disclaimer: This script is for educational purposes only. Trading involves significant risk.
PivotStrike Pro 1M + Time-Anchored Pivots
# PivotStrike Pro 1M — Supertrend Style + Time-Anchored Pivots
**PivotStrike Pro 1M (PSP1M-ST)** blends a fast Supertrend-style trend engine with **time-anchored major S/R pivots** that stay locked to the candles as you scroll and zoom. It’s designed for **clear, one-shot Buy/Sell flips** on the 1-minute chart while keeping your chart readable and decisive during strong moves.
## What it does
* **Supertrend Rails (non-repainting on close)**
Green rail sits **below** price in uptrends; red rail sits **above** price in downtrends. When the regime flips, you get a **single Buy or Sell flag**—no re-printing on the same bar.
* **Time-Anchored S/R Pivots**
Confirms **major swing highs/lows** using left/right pivot windows and anchors each level to the bar’s timestamp. Lines extend to the right and **remain aligned with price** when you zoom.
* **Simple, production-ready alerts**
Built-in alerts for Buy/Sell flips so you can route to notifications or bots.
## Why it’s different
* **One-shot signals** you can trust at regime change (no clusters of duplicate arrows).
* **Locked pivots** using `xloc=bar_time`, so support/resistance doesn’t drift when you change the view.
* **HTF option** for the Supertrend engine if you want to smooth 1-minute noise.
## Inputs (quick guide)
* **Indicator Timeframe**: leave blank for chart timeframe (1M), or choose a higher TF to smooth (e.g., 3M/5M).
* **ATR Period / ATR Multiplier**: default **10 / 3.0** (same feel as classic Supertrend).
* **Source**: HL2 (default).
* **Change ATR Method**: RMA(TR) on; toggle off to use `ta.atr`.
* **Show Buy/Sell Signals / Highlighter**: visual preferences.
* **Major S/R (Pivots)**: enable, choose left/right bars (defaults 8/8), line count, style, and transparency.
## Recommended 1M presets
* **ATR Period 10**, **Multiplier 3.0**, **Source HL2**, **Highlighter ON**, **Signals ON**.
* If the rail feels too tight/loose: nudge Multiplier **2.5–3.5**.
* Live scalping? Keep timeframe on **Chart**. Want fewer flips? Try **3M/5M** engine via *Indicator Timeframe*.
## How to read it
* **Trend**: Follow the rail—green below = uptrend bias; red above = downtrend bias.
* **Buy/Sell**: Acts at the **confirmed regime flip**. Use pivots to assess nearby S/R for entries, partials, or stop placement.
* **Pivots**: Recent highs (red lines) and lows (green lines). Breaks/holds around these areas often mark continuation vs. fade zones.
## Alerts
* **PSP1M-ST: BUY / SELL** — triggers on confirmed flips.
Tip: Pair with a simple “rail touch/close beyond” rule in your strategy if you want automation.
## Repainting & HTF notes
* The rail and flags **do not repaint after bar close** on the chart timeframe.
* If you pick a **higher Indicator Timeframe**, the engine only finalizes when that **HTF bar closes** (normal behavior). For pure 1M confirmation, leave the timeframe blank.
## Best practices
* Use pivots to avoid chasing into resistance/support.
* Combine with volume or session filters (e.g., avoid lunch chop).
* Scale risk by distance to the rail; trail behind the rail for simple exits.
> **Disclaimer**: This script is for educational use only. Markets carry risk. Always test and manage risk before trading.
A-Share Broad-Based ETF Dual-Core Timing System1. Strategy Overview
The "A-Share Broad-Based ETF Dual-Core Timing System" is a quantitative trading strategy tailored for the Chinese A-share market (specifically for broad-based ETFs like CSI 300, CSI 500, STAR 50). Recognizing the market's characteristic of "short bulls, long bears, and sharp bottoms," this strategy employs a "Left-Side Latency + Right-Side Full Position" dual-core driver. It aims to safely bottom-fish during the late stages of a bear market and maximize profits during the main ascending waves of a bull market.
2. Core Logic
A. Left-Side Latency (Rebound/Bottom Fishing)
Capital Allocation: Defaults to 50% position.
Philosophy: "Buy when others fear." Seeks opportunities in extreme panic or momentum divergence.
Entry Signals (Triggered by any of the following):
Extreme Panic: RSI Oversold (<30) + Price below Bollinger Lower Band + Bullish Candle Close (Avoid catching falling knives).
Oversold Bias: Price deviates more than 15% from the 60-day MA (Life Line), betting on mean reversion.
MACD Bullish Divergence: Price makes a new low while MACD histogram does not, accompanied by strengthening momentum.
B. Right-Side Full Position (Trend Following)
Capital Allocation: Aggressively scales up to Full Position (~99%) upon signal trigger.
Philosophy: "Follow the trend." Strike heavily once the trend is confirmed.
Entry Signals (All must be met):
Upward Trend: MACD Golden Cross + Price above 20-day MA.
Breakout Confirmation: CCI indicator breaks above 100, confirming a main ascending wave.
Volume Support: Volume MACD Golden Cross, ensuring price increase is backed by volume.
C. Smart Risk Control
Bear Market Exhaustion Exit: In a bearish trend (MA20 < MA60), the strategy does not "hold and hope." It immediately liquidates left-side positions upon signs of rebound exhaustion (breaking below MA20, touching MA60 resistance, or RSI failure).
ATR Trailing Stop: Uses Average True Range (ATR) to calculate a dynamic stop-profit line that rises with the price to lock in profits.
Hard Stop Loss: Forces a stop-loss if the left-side bottom fishing fails and losses exceed a set ATR multiple, preventing deep drawdowns.
3. Recommendations
Target Assets: High liquidity broad-based ETFs such as CSI 300 ETF (510300), CSI 500 ETF (510500), ChiNext ETF (159915), STAR 50 ETF (588000).
Timeframe: Daily Chart.
[STRATEGY] Adaptive Multi Factor Trend Trading v1.1Daily Filters
Close vs. short/long daily SMAs (customizable) defines directional priority.
Use the daily Short Long MA spread (or ATR‑normalized) to filter out range‑bound conditions and reduce false breakouts.
30‑Minute Entry Logic
Buy
Daily bullish regime confirmed
High breaks above the trend
Protected by trailing take‑profit and fixed stop‑loss.
Sell #1
Daily bearish regime confirmed
Low breaks below the trend
Long MA slope must be strong (trend‑quality filter).
Sell #2
Day‑session only, limited to high‑probability hours
Triggered by an aggregated bear score (multi‑factor stack) + a downward linear‑regression slope
Friday uses special thresholds/intervals (event‑risk control).
Multi‑Factor Framework
MACD, RSI, Stoch (KD), Ichimoku, CCI, PSAR, Williams %R, Heikin Ashi, Bias, Force Index, plus regression‑slope.
Signals are stacked into bull/bear totals and used as filters or weights—no single indicator dominance.
Risk & Position Management
Fixed TP/SL + trailing TP across entry types
Position size adapts to recent performance (loss‑streak counter) and slope state
Auto pause when the loss streak hits the threshold (configurable duration).
Trading‑Day Controls
Optional pre‑holiday blackout list
Date‑range limiter for backtests or deployment windows.
Design Intent
The goal is to keep net P&L stable while lifting win rate.
In strong‑trend environments, the system leans into trend signals (Sell #1 / Buy).
In short‑term chop, Sell #2 timing and the slope filter reduce noise and avoid low‑quality entries.
MR Generic - 4H OptimizedThis indicator plots a Z-score based on linear regression over the last 80 bars (about 13–14 days on the 4-hour chart), showing how far the current price has deviated from its trend.
Blue line = Z-score
Red shading = Overbought (above 2.2)
Green shading = Oversold (below -2.2)
Darker red/green = Extreme levels (beyond ±2.8)
Small circles mark regular reversal signals when price starts turning back toward the mean. Tiny diamonds highlight rare, extreme exhaustion points.
Perfect for spotting potential mean reversion setups on stocks in the 4 hour
MAX TRADE ZONA MAX TRADE ZONA is a precision zone-based trading indicator designed to highlight potential Buy/Sell areas and key reaction levels. It helps traders spot structured entries with clear risk planning and cleaner chart visuals. Best used with proper risk management and confirmation (trend, structure, and volatility)
Strat Structure Engine + Trapped TradersStrat Structure Engine + Trapped Traders – Detailed Description
This script identifies high-probability market structure patterns known as “The Strat” setups, specifically focusing on 3-bar → Failed 2, 2-bar → Failed 2, and Failed 2 → Failed 2 (“Dragon’s Tail”) sequences. It is designed to help traders visualize potential reversals, trapped traders, and exhaustion points directly on the chart, combining price action, volatility, and volume metrics to grade signal strength.
Key Features:
3-Bar → Failed 2 (Tiered Scoring):
Detects a 3-bar structure followed immediately by a strict Failed 2 bar.
Evaluates the setup using four criteria:
3-bar range relative to ATR
Failed 2 close position relative to the 3-bar midpoint
Failed 2 body-to-range ratio
Volume relative to recent average
Assigns a tier (A+, A, B, or —) to indicate reliability, giving traders a graded view of signal strength.
2-Bar → Failed 2 (A+ Only):
Identifies strict 2-bar structures immediately followed by a Failed 2 bar.
Uses a similar evaluation system as 3→F2 but filters only for the strongest A+ setups.
Highlights signals where price shows strong directional rejection and high probability for reversal.
Dragon’s Tail – Failed 2 → Failed 2:
Captures consecutive Failed 2 bars in opposite directions, a classic trapped-trader scenario.
Signals both bullish and bearish sequences on bar close, helping traders spot potential quick reversals.
How It Works:
Uses ATR to contextualize bar ranges and volatility.
Incorporates volume averaging to detect unusually high trading activity that validates the strength of a Failed 2 setup.
Strict bar evaluation ensures only fully-formed, confirmed patterns are labeled, reducing noise and false signals.
Optional labels and alerts allow traders to track these structures in real-time or on bar close.
Practical Trading Use:
Ideal for spotting short-term exhaustion points, trapped traders, and reversal zones.
Can be used alongside liquidity zones, VWAP, and fair value gaps to refine entries and exits.
Traders can focus on high-tier signals (A+ / A) for higher probability trades, while lower-tier signals (B) indicate caution or context setups.
Customization Options:
Toggle visibility for each pattern type (3→F2, 2→F2, F2→F2).
Adjust ATR length and volume average period for different instruments or timeframes.
Alerts are available for all major setups, enabling integration with automated monitoring or manual execution strategies.
Summary:
The Strat Structure Engine + Trapped Traders script combines price action structure, volatility, and volume analysis to visualize high-probability reversal setups. By highlighting both strict pattern confirmations and tiered reliability, it provides traders with actionable insight into potential turning points, trapped trader scenarios, and high-conviction market moves without relying on external scripts or assumptions.
Strategy Scanner (H4 Trend + Clouds)Here is a trend-following strategy I coded for the H4: it first filters the overall direction via the EMA 200, waits for a precise price correction in the recharge zone (between EMA 13 and 32), and only validates the entry if the Stoch RSI confirms an extreme extension (< 10 or > 90) to maximize the chances of a rebound. With a comprehensive tool designed for Trend Following and Pullback traders. It combines Short-Term Momentum, Long-Term Structure, and Multi-Timeframe (MTF) analysis into a single, clean indicator.
aza
@aza 92i
Ocean's Smart Structure [Pro]Ocean's Smart Structure – Professional Market Architecture
Stop guessing where the liquidity is.
Ocean's Smart Structure is a next-generation technical analysis suite designed for precision traders. Unlike standard pivot indicators that clutter your chart with noise, it uses a Volatility-Adaptive Clustering Algorithm to merge, filter, and validate the levels that actually matter.
It doesn't just draw lines; it understands market behavior. It detects when support flips to resistance, identifies liquidity grabs (fakeouts), and visually indicates the strength of every zone.
🌊 Key Features
1. Volatility-Adaptive Clustering
Markets expand and contract. Standard indicators fail because they use static values. It calculates the Average True Range (ATR) in real-time to determine the effective width of a zone.
Result: Nearby pivots are intelligently merged into single, robust "Structural Clusters."
2. Advanced Role Reversal (Flip Logic)
Price rarely respects a level once. When a strong Support breaks, it often becomes Resistance.
The Logic: The indicator automatically flips lines from Support (Gold) to Resistance (Blue) upon a confirmed break, keeping the history of that price level alive on your chart.
3. Institutional Fakeout Protection
The unique selling point of this tool. Algorithms often push price past a level to trigger stop-losses before reversing.
Standard Indicators: Delete the level immediately upon a break.
This Tool: Enters a "Pending Break" state. If the next candle reclaims the level, the line is preserved and strengthened, marking it as a Liquidity Grab rather than a breakout.
4. Dynamic Strength Visualization
Not all levels are equal.
Visual Feedback: As a level is tested more times without breaking, the line automatically becomes thicker. This allows you to instantly identify "Concrete Walls" vs. "Glass Windows" at a glance.
5. Real-Time HUD (Heads-Up Display)
A clean, non-intrusive dashboard sits on your chart, providing instant context:
Nearest Resistance & Support: Exact price ticks.
Live Status: Tells you if price is "Ranging," "At Support," or "At Resistance" based on volatility proximity.
⚙️ Settings & Customization
Pivot Period: Adjust sensitivity to swing highs/lows.
Cluster Sensitivity: Controls how aggressive the merging algorithm is.
Role Reversal Limit: Limit how many times a level can flip (preventing infinite ping-pong lines).
Invalidation Action: Choose to delete broken lines or keep them as "Ghost Levels" (dotted history).
Visuals: Fully customizable branding colors (Default: Gold & Neon Blue).
new Relative Strength Index by weidalunThis indicator is a technical analysis tool designed for testing and internal research purposes.
It primarily utilizes price action and momentum shifts to assist in assessing market structure.
This script is intended solely for personal and small-scale internal testing.
Scaled SMAs + Bollinger BandsScales another symbol's SMAs to the price of the symbol on the chart you are trading.
9 HMA Direction Scalper (Pure Flip)new easier 9hma directional pure flip, it will help you with scalping short trends
IDAHL | QuantEdgeBIDAHL | QuantEdgeB
🔍 Overview
The IDAHL indicator builds adaptive, volatility-aware threshold bands from two separate ALMA lines—one smoothed from recent highs, the other from recent lows—then uses percentiles of those lines to define a dynamic “high/low” channel. Price crossing above or below that channel triggers clear long/short signals, with on-chart candle coloring, fills, optional labels and even a built-in backtest table.
✨ Key Features
• 📈 Dual ALMA Bands (with DEMA pre-smoothing)
o High ALMA: ALMA applied to DEMA-smoothed highs (high → DEMA(30) → ALMA).
o Low ALMA: ALMA applied to DEMA-smoothed lows (low → DEMA(30) → ALMA).
• 📊 Percentile Thresholds
o Computes a high threshold at the Xth percentile of the High ALMA over a lookback window.
o Computes a low threshold at the Yth percentile of the Low ALMA.
o Shifts each threshold forward by a small period to reduce repainting.
• ⚡ Dynamic Channel Logic
o When price closes above the high percentile line, the “final” threshold flips down to the low percentile line (and vice versa), creating an adaptive channel that only moves when the outer bound is violated.
o Inside the channel, the threshold holds its last value to avoid whipsaw.
• 🎨 Visual & Alerts
o Plots the two percentile lines and fills between them with a color that reflects the current regime (green for long, yellow for neutral, orange for short).
o Colors your candles to match the active signal.
o Optional “Long”/“Short” labels on confirmed flips.
o Alert conditions fire on each long/short crossover.
• 📊 On-Chart Backtest Metrics
o Toggle on a small performance table—complete with win-rate, net P/L, drawdown—from your chosen start date, without any extra code.
⚙️ How It Works
1. Adaptive Smoothing (ALMA)
o Uses ALMA (Arnaud Legoux Moving Average) for smooth, low-lag filtering. In this script, the inputs are additionally pre-smoothed with DEMA(30) to reduce noise before ALMA is applied—improving stability on highs/lows.
2. Percentile Lines
o The High ALMA series feeds a linear-interpolation percentile function to generate the upper bound; the Low ALMA produces the lower bound.
o These lines are offset by a small look-ahead (X bars) to reduce repaint behavior.
3. Channel Logic
o Breakout Flip: When the selected source (default: Close) closes above the upper bound, the active threshold “jumps” to the lower bound—locking in a new channel until price next crosses.
o Breakdown Flip: Conversely, a close below the lower bound flips the threshold to the upper bound.
4. Signal Generation
o Long while the source is above the current “final” threshold.
o Short while below.
o Neutral inside the channel before any flip.
5. Visualization & Alerts
o Dynamic fills between the two percentile lines change hue as the regime flips.
o Candles adopt the regime color.
o Optional pinned “Long”/“Short” labels at flip bars.
o Alerts on every signal crossover of the zero-based regime line.
6. Backtest Table
o From your chosen start date, a mini-table displays cumulative P/L, win rate and drawdown for this strategy—handy for quick in-chart validation.
🎯 Who Should Use It
• Breakout Traders hunting for adaptive channels that auto-recenter on new highs/lows.
• Volatility Traders who want thresholds that expand and contract with market turbulence.
• Trend-Chasers seeking a fresh take on high/low channels with built-in smoothing.
• Systematic Analysts who appreciate on-chart backtesting without leaving TradingView.
⚙️ Default Settings
• ALMA Length: 14
• Percentile Length: 35 bars
• Percentile Lookback Period (offset): 4 bars
• Upper Percentile: 92%
• Lower Percentile: 50%
• Threshold Source: Close
• Visuals: Candle coloring on, labels off by default, “Strategy” palette
• Backtest Table: on by default (toggleable)
• Start Date (Backtest): 09 Oct 2017
📌 Conclusion
IDAHL blends two smooth, low-lag ALMA filters (fed by DEMA-smoothed highs/lows) with percentile-based channel construction for a self-rewiring high/low envelope. It gives you robust breakout/breakdown signals, immediate visual context via colored fills and candles, optional labels, alerts, and even performance stats—everything you need to spot and confirm regime shifts in one compact script.
🔹 Disclaimer : Past performance is not indicative of future results. Always backtest and align settings with your risk tolerance and objectives before live trading.
🔹 Strategic Advice : Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
BTE/TSS - IB 2.0📊 BTE – IB 2.0 (Initial Balance Framework)
BTE – IB 2.0 is a professional Initial Balance (IB) indicator designed for intraday traders who focus on market structure, auction logic, and contextual decision-making — not signal chasing.
The indicator automatically calculates IB High, IB Low, and IB Mid from a user-defined session (default: NY open) and projects IB-based extensions derived from the actual IB range, not arbitrary multipliers.
This is not a predictive tool.
It is a structural framework for understanding market behavior.
📐 What the indicator displays
• IB High & IB Low – core auction boundaries
• IB Mid (50%) – balance point of the auction
• IB Extensions (1×, 2×, 3×) – range-based projections
• Intermediate 50% levels between all extensions
• Optional IB calculation area (boxed range)
• Clean, readable IB level labels directly on the chart
All elements are fully customizable: colors, line styles, extensions, labels, and visibility.
📊 IB Delta & NY Range Analytics
The indicator includes a 20-day statistical table showing:
• IB Range (IB Delta)
• NY Session Range
• Maximum / Mean / Minimum / Current day values
This helps traders:
• evaluate volatility context
• distinguish rotational vs. expansion days
• avoid trading breakouts when statistics do not support them
👤 Who this indicator is for
• Traders using auction market theory
• Traders working with Initial Balance structure
• Traders focused on context, behavior, and reaction
🚫 Who this indicator is NOT for
• Traders looking for buy/sell signals
• Traders expecting predictions
• Traders ignoring session context and structure
🕒 Recommended use
• ES / NQ / YM / RTY
• Futures & index markets
• NY RTH session
• Best combined with Market Profile, order flow, and price action
⚠️ Important note
This indicator does not predict direction.
It defines auction boundaries — execution and bias are the trader’s responsibility.
If you do not understand how to work with Initial Balance, the issue is not the tool.
📩 Contact
For questions, access, or professional use inquiries:
admin@tradingstrategystore.com
NQ Geometric Trading System NQ Geometric Trading System
Advanced confluence indicator for NQ futures implementing Michael S. Jenkins' geometric methodology.
Core Features:
Automatic spike detection (9:30-9:35) captures institutional footprint
Geometric levels from opening range using Jenkins ratios (R_50, R_25, R_67, extensions)
Rising zero angles provide dynamic time+price support/resistance
Fibonacci time windows highlight natural reversal periods
Weighted confluence algorithm (spike levels = 2x, others = 1x)
Real-time dashboard displays score 0-10 and signal strength
Customizable alerts for high-probability setups
How It Works:
System automatically detects opening spike extremes, calculates geometric ratios from 9:30-10:00 range, projects zero angles rising at 0.75 points/minute, and highlights Fibonacci time windows. When multiple factors align, dashboard shows confluence score with color-coded signals (Strong 5+, Trade 4, Watch 3).
Optimized For:
NQ/MNQ scalping and day trading on 1-5 minute timeframes. Works best during regular trading hours with timezone set to Exchange.
Customizable:
15+ parameters including angle rate, confluence threshold, price tolerance, time windows, and visual settings. Default optimized for NQ but adaptable.
Requirements:
Chart timezone must be "Exchange" or "America/New_York" for proper spike/range detection.
Perfect for traders seeking mechanical, objective signals based on proven geometric principles.
PIPSTA - Shot## 🔒 PIPSTA – SHOT (PRIVATE)
**PIPSTA – Shot** is a proprietary, rules-based execution engine designed for **high-liquidity instruments** including **Gold, commodities, indices, and major crypto pairs**.
The model is built for **precision entries, controlled risk, and statistical transparency**, and is distributed strictly on a **private / invite-only basis**.
This script is not a signal generator for discretionary trading. It is a **fully defined execution framework** intended for disciplined deployment and performance evaluation.
---
## ⚙️ CORE EXECUTION LOGIC
The system operates using a **dynamic moving-average anchor**, combined with **volatility expansion filters** derived from:
* Standard Deviation (price dispersion)
* ATR (true volatility)
* Instrument-specific normalization
Trades are triggered only when price expands beyond statistically significant thresholds relative to the selected MA structure.
---
## 🔄 ADAPTIVE MULTI-ASSET FRAMEWORK
Each supported instrument uses **custom-tuned parameters**, including:
* MA type and length
* Volatility coefficients
* Entry distance calibration
* Risk normalization factors
This allows the same core logic to adapt across **Gold, Oil, Crypto, and Indices** without curve-fitting a single market regime.
---
## 🎯 ENTRY & RISK MANAGEMENT
* **Stop-entry execution** (no market chasing)
* **Single position exposure** (no pyramiding)
* **Predefined stop-loss logic**
* **Multi-level profit expansion tracking**
Risk is controlled structurally through volatility normalization rather than discretionary adjustment.
---
## 📊 PERFORMANCE & STATISTICS
The script includes an **integrated statistical engine** that tracks:
* Peak favorable excursion (MFE)
* Peak adverse excursion (drawdown)
* Trade-level probability of reaching multiple profit thresholds
* Rolling statistics across configurable trade samples
This allows users to evaluate **probability, consistency, and efficiency**, not just net profit.
---
## 📋 PROBABILITY TABLES
Live probability tables display:
* Long vs Short performance
* Win probability across multiple TP levels
* Rolling statistics based on recent closed trades
These tables are intended for **decision validation and risk calibration**, not prediction.
---
## 🔐 ACCESS & DISCLAIMER
This script is **private and proprietary**.
All logic, structure, and parameterization are confidential and intended solely for authorized users.
* No redistribution
* No resale
* No reverse engineering
Usage implies acceptance of **PIPSTA private licensing terms**.
Account GuardianAccount Guardian: Dynamic Risk/Reward Overlay
Introduction
Account Guardian is an open-source indicator for TradingView designed to help traders evaluate trade setups before entering positions. It automatically calculates Risk-to-Reward ratios based on market structure, displays visual Stop Loss and Take Profit zones, and provides real-time position sizing recommendations.
The indicator addresses a fundamental question every trader should ask before entering a trade: "Does this setup make mathematical sense?" Account Guardian answers this question visually and numerically, helping traders avoid impulsive entries with poor risk profiles.
Core Functionality
Account Guardian performs four primary functions:
Detects swing highs and swing lows to identify logical stop loss placement levels
Calculates Risk-to-Reward ratios for both long and short setups in real-time
Displays visual SL/TP zones on the chart for immediate trade planning
Computes position sizing based on your account size and risk tolerance
The goal is to provide traders with instant feedback on whether a potential trade meets their minimum risk/reward criteria before committing capital.
How It Works
Swing Detection
The indicator uses pivot point detection to identify recent swing highs and swing lows on the chart. These swing points serve as logical areas for stop loss placement:
For Long Trades: The most recent swing low becomes the stop loss level. Price breaking below this level would invalidate the bullish thesis.
For Short Trades: The most recent swing high becomes the stop loss level. Price breaking above this level would invalidate the bearish thesis.
The swing detection lookback period is configurable, allowing you to adjust sensitivity based on your trading timeframe and style.
It automatically adjusts the tp and sl when it is applied to your chart so it is always moving up and down!
Risk/Reward Calculation
Once swing levels are identified, the indicator calculates:
Entry Price: Current close price (where you would enter)
Stop Loss: Recent swing low (for longs) or swing high (for shorts)
Risk: Distance from entry to stop loss
Take Profit: Entry plus (Risk × Target Multiplier)
R:R Ratio: Reward divided by Risk
The R:R ratio is then evaluated against your configured thresholds to determine if the setup is valid, marginal, or poor.
Visual Elements
SL/TP Zones
When enabled, the indicator draws colored boxes on the chart showing:
Red Zone: Stop Loss area - the region between your entry and stop loss
Green/Gold/Red Zone: Take Profit area - colored based on R:R quality
The color coding provides instant visual feedback:
Green: R:R meets or exceeds your "Good R:R" threshold (default 3:1)
Gold: R:R meets minimum threshold but below "Good" (between 2:1 and 3:1)
Red: R:R below minimum threshold - setup should be avoided
Swing Point Markers
Small circles mark detected swing points on the chart:
Green circles: Swing lows (potential support / long SL levels)
Red circles: Swing highs (potential resistance / short SL levels)
Dashboard Panel
The dashboard in the top-right corner displays comprehensive trade planning information:
R:R Row: Current Risk-to-Reward ratio for long and short setups
Status Row: VALID, OK, BAD, or N/A based on R:R thresholds
Stop Loss Row: Exact price level for stop loss placement
Take Profit Row: Exact price level for take profit placement
Pos Size Row: Recommended position size based on your risk parameters
Risk $ Row: Dollar amount at risk per trade
Position Sizing Logic
The indicator calculates position size using the formula:
Position Size = Risk Amount / Risk per Unit
Where:
Risk Amount = Account Size × (Risk Percentage / 100)
Risk per Unit = Entry Price - Stop Loss Price
For example, with a $10,000 account risking 1% per trade ($100), if your entry is at 100 and stop loss at 98 (risk of 2 per unit), your position size would be 50 units.
Input Parameters
Swing Detection:
Swing Lookback: Number of bars to look back for pivot detection (default: 10). Higher values find more significant swing points but may be slower to update.
Target Multiplier: Multiplier applied to risk to calculate take profit distance (default: 2). A value of 2 means TP is 2× the distance of SL from entry.
Risk/Reward Thresholds:
Minimum R:R: Minimum acceptable Risk-to-Reward ratio (default: 2.0). Setups below this show as "BAD" in red.
Good R:R: Threshold for excellent setups (default: 3.0). Setups at or above this show as "VALID" in green.
Account Settings:
Account Size ($): Your trading account size in dollars (default: 10,000). Used for position sizing calculations.
Risk Per Trade (%): Percentage of account to risk per trade (default: 1.0%). Professional traders typically risk 0.5-2% per trade.
Display:
Show SL/TP Zones: Toggle visibility of the colored zone boxes on chart (default: enabled)
Show Dashboard: Toggle visibility of the information panel (default: enabled)
Analyze Direction: Choose to analyze Long only, Short only, or Both directions (default: Both)
How to Use This Indicator
Basic Workflow:
Add the indicator to your chart
Configure your account size and risk percentage in the settings
Set your minimum and good R:R thresholds based on your trading rules
Look at the dashboard to see current R:R for potential long and short entries
Only consider trades where the status shows "VALID" or at minimum "OK"
Use the displayed SL and TP levels for your order placement
Use the position size recommendation to determine lot/contract size
Interpreting the Dashboard:
VALID (Green): Excellent setup - R:R meets your "Good" threshold. This is the ideal scenario for taking a trade.
OK (Gold): Acceptable setup - R:R meets minimum but isn't optimal. Consider taking if other confluence factors align.
BAD (Red): Poor setup - R:R below minimum threshold. Avoid this trade or wait for better entry.
N/A (Gray): Cannot calculate - usually means no valid swing point detected yet.
Best Practices:
Use this indicator as a filter, not a signal generator. It tells you IF a trade makes sense, not WHEN to enter.
Combine with your existing entry strategy - use Account Guardian to validate setups from other analysis.
Adjust the swing lookback based on your timeframe. Lower timeframes may need smaller lookback values.
Be honest with your account size input - accurate position sizing requires accurate inputs.
Consider the target multiplier carefully. Higher multipliers mean larger potential reward but lower probability of hitting TP.
Alerts
The indicator includes four alert conditions:
Good Long Setup: Triggers when long R:R reaches or exceeds your "Good R:R" threshold
Good Short Setup: Triggers when short R:R reaches or exceeds your "Good R:R" threshold
Bad Long Setup: Triggers when long R:R falls below your minimum threshold
Bad Short Setup: Triggers when short R:R falls below your minimum threshold
These alerts can help you monitor multiple charts and get notified when favorable setups appear.
Technical Implementation
The indicator is built using Pine Script v6 and includes:
Pivot-based swing detection using ta.pivothigh() and ta.pivotlow()
Dynamic box drawing for visual SL/TP zones
Table-based dashboard for clean information display
Color-coded visual feedback system
Persistent variable tracking for swing levels
Code Structure:
// Swing Detection
float swingHi = ta.pivothigh(high, swingLen, swingLen)
float swingLo = ta.pivotlow(low, swingLen, swingLen)
// R:R Calculation for Long
float longSL = recentSwingLo
float longRisk = entry - longSL
float longTP = entry + (longRisk * targetMult)
float longRR = (longTP - entry) / longRisk
// Position Sizing
float riskAmount = accountSize * (riskPct / 100)
float posSize = riskAmount / longRisk
Limitations
The indicator uses historical swing points which may not always represent optimal SL placement for your specific strategy
Position sizing assumes you can trade fractional units - adjust accordingly for instruments with minimum lot sizes
R:R calculations assume linear price movement and don't account for gaps or slippage
The indicator doesn't predict price direction - it only evaluates the mathematical viability of a setup
Swing detection has inherent lag due to the lookback period required for pivot confirmation
Recommended Settings by Trading Style
Scalping (1-5 minute charts):
Swing Lookback: 5-8
Target Multiplier: 1-2
Minimum R:R: 1.5
Good R:R: 2.0
Day Trading (15-60 minute charts):
Swing Lookback: 8-12
Target Multiplier: 2
Minimum R:R: 2.0
Good R:R: 3.0
Swing Trading (4H-Daily charts):
Swing Lookback: 10-20
Target Multiplier: 2-3
Minimum R:R: 2.5
Good R:R: 4.0
Why Risk/Reward Matters
Many traders focus solely on win rate, but profitability depends on the combination of win rate AND risk/reward ratio. Consider these scenarios:
50% win rate with 1:1 R:R = Breakeven (before costs)
50% win rate with 2:1 R:R = Profitable
40% win rate with 3:1 R:R = Profitable
60% win rate with 1:2 R:R = Losing money
Account Guardian helps ensure you only take trades where the math works in your favor, even if you're wrong more often than you're right.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation.
Trading involves substantial risk of loss and is not suitable for all investors. The calculations provided by this indicator are based on historical price data and mathematical formulas that may not accurately predict future price movements.
Position sizing recommendations are estimates based on user inputs and should be verified before placing actual trades. Always consider factors such as leverage, margin requirements, and broker-specific rules when determining actual position sizes.
The Risk-to-Reward ratios displayed are theoretical calculations based on swing point detection. Actual trade outcomes will vary based on market conditions, execution quality, and other factors not captured by this indicator.
Past performance does not guarantee future results. Users should thoroughly test any trading approach in a demo environment before risking real capital. The authors and publishers of this indicator are not responsible for any losses or damages arising from its use.
Always consult with a qualified financial advisor before making investment decisions.
PIPSTA - SNIPER - ADVANCE## 🔒 PIPSTA – SNIPER – ADVANCE (PRIVATE)
**PIPSTA – SNIPER – ADVANCE** is a proprietary, time-based execution model built for **New York Kill Zone precision trading**.
It is designed to align traders with **institutional liquidity behavior**, not indicators or lagging signals.
This private script is optimized for **Gold (XAUUSD), indices, futures, and high-liquidity instruments**.
---
## ⚙️ FRAMEWORK
The system operates on three institutional pillars:
* **Liquidity (London session sweeps)**
* **Time (NY Kill Zone: 9:35–9:55 AM ET)**
* **Execution (algorithmic reversal & expansion behavior)**
Trades are allowed **only when all conditions align**.
---
## 🌍 SESSION INTELLIGENCE
Automatically tracks and plots:
* Asian session range
* London session range
* Pre-Market range
* NY Kill Zone window
All calculations are locked to **New York time (ET)** with full DST handling.
---
## 💧 LIQUIDITY CONFIRMATION
The script confirms **valid London high / low sweeps** using a controlled threshold.
Directional bias is only unlocked **after liquidity is taken**.
No sweep → no trade.
---
## 🎯 EXECUTION WINDOWS
Signals are restricted to:
* **Early NY spike reversals**
* **Post-manipulation algorithmic expansions**
Each signal auto-defines:
* Entry
* Stop Loss
* Target
* Risk-Reward structure
Only **one active trade** is permitted at a time.
---
## 📊 PRIVATE DASHBOARD
A clean, non-intrusive dashboard displays:
* Live session status
* Sweep confirmation
* Active trade direction
* Entry / TP / SL
* Risk-Reward
Designed for **decision support, not noise**.
---
## 🔔 ALERTS (OPTIONAL)
Private alerts include:
* Liquidity sweep confirmation
* Entry signals
* Target hit
* Stop hit
* Session-based forced exit
Ideal for **manual execution or signal distribution**.
---
## ⚠️ IMPORTANT
This is **not** a mass-market indicator.
It is a **context-driven execution model** intended for traders who understand:
* Liquidity
* Time-based manipulation
* Risk control
---
## 🔐 ACCESS
This script is **private / invite-only**.
FL Core Signals Only 4AM 4PMFL Core – Signals Only is a confirmation-based trading indicator designed to highlight structured entry and exit points during active market hours.
This script is not predictive and does not generate trade recommendations. It provides visual confirmation only after conditions are met and candles are closed.
Core characteristics:
• Signals are limited to 4:00 AM – 4:00 PM (exchange time)
• Designed for lower timeframes (1–5 minute charts)
• No indicator clutter — entries, exits, and profit target references only
• Logic is based on trend alignment and momentum confirmation
• Customizable profit target distances for different instruments
This indicator is intended for experienced traders who already understand risk management and execution. Users are responsible for their own trade decisions.
This is not an indicator you trade into.
It is a confirmation system you wait for.
Past performance does not guarantee future results.






















