MACD 3P共振
三周期 MACD 同時金/死叉,且遠離零軸 N% 股價才進場。
小周期給訊號 + ATR 止損,RR 止盈。
可關中/大周期,靈活抓短線或波段。
圖表標 L/S + SL/TP 線,一目了然。
Triple-timeframe MACD cross + far from zero = entry.
ATR stop, RR profit. Toggle mid/big TF.
Shows L/S + SL/TP lines.
Clean. Sharp. Works.
المؤشرات والاستراتيجيات
Aurora Vigor 2.2 (Bearish Edition)VENZITECH ALGO (Bearish Edition)
I. Strategy Purpose and Design
The Aurora Vigor 2.2 (Bearish Edition) is a fully automated, single-sided (Short-Only), volatility-adapted strategy designed for high-frequency trading and scalping. Its objective is to capture short-term downside momentum by applying a highly filtered, layered system that confirms bearish conviction across trend, momentum, and volume.
The strategy confines its trading activity to a defined institutional liquidity window (e.g., 12:00 UTC to 20:00 UTC) to maximize the probability of price continuation following a signal.
II. Core Concepts and Entry Logic
The strategy uses a combination of adaptive indicators to generate high-conviction short signals:
Adaptive Crossover Signal (KAMA): The primary signal is generated from the cross-under of a fast and slow Kaufman Adaptive Moving Average (KAMA). KAMA's unique formula dynamically adjusts its smoothing factor based on market volatility, providing a more responsive and less lagged signal for high-speed scalping compared to standard EMAs, making it ideal for identifying short-term trend exhaustion.
Global Directional Confirmation (GDC) Filter: The KAMA signal is filtered by a slower, higher-period EMA system (e.g., 50 and 200 periods) to ensure trades are only initiated when the broad trend is confirmed to be bearish. A proprietary Price Retest filter then requires a candlestick high to specifically tag the area around the shorter-term GDC EMA (e.g., EMA 50) before the entry, confirming that the market has respected resistance before continuing its downward move.
Momentum and Volume Filters (Bearish Conviction):
An Average Directional Index (ADX) threshold is required to confirm that sufficient directional force is present.
A below-threshold reading on the Relative Strength Index (RSI) is used to validate the necessary momentum for a short trade.
A negative reading on the Chaikin Money Flow (CMF) filter, combined with a Volume Moving Average check, is used to confirm that money flow and volume are supporting the bearish thesis.
III. Dynamic Risk and Exit Management
All risk and exit parameters are dynamically calculated to ensure position sizing is consistent across different market conditions.
Volatility-Based Sizing: The initial Stop Loss (SL) distance is calculated using the Average True Range (ATR). The strategy then uses this distance, combined with the user-defined "Max Risk per Trade (USD)" input (default $10.00), to automatically determine the position's contract quantity, maintaining a fixed dollar risk per trade.
Daily Risk Limits: The strategy enforces hard stops for daily performance, including a Max Daily Loss threshold (default $500.00) and a Minimum Daily Profit Floor (default $110.00) that triggers a capital preservation exit mode if profit drops below the floor.
Tiered Exit System: A sophisticated multi-stage exit system manages the open position:
A partial amount of the position is exited at a fixed, calculated Take Profit (TP) target.
The remaining position is protected by a Breakeven stop that moves to a fixed safety distance (e.g., entry minus one tick) once a small profit target is met.
Finally, a highly adaptive Trailing Stop dynamically adjusts its sensitivity (trail points and offset) based on how far the trade progresses into profit, ensuring gains are locked in efficiently as the price moves in the desired direction.
IV. Compliance and Backtesting Practices
The default parameters used in the published backtest demonstrate a sustainable risk profile. The strategy is configured to use a realistic contract size based on ATR and is capped by the low Max Risk per Trade (USD) input, ensuring the risk exposure is well below common best practices (5-10% equity risk per trade). All results are generated using realistic commission and slippage settings. Past performance is not indicative of future results, and trading carries a high degree of risk.
VENZITECH ALGO 1.0(Night Vision Edition)VENZITECH ALGO 1.0(Night Vision Edition)
I. Strategy Purpose and Design
The VENZITECH ALGO 1.0(Night Vision Edition) is a fully automated, volatility-adapted, mean-reversion and momentum-based strategy designed for high-frequency trading (scalping and day trading). It is specifically configured for Intraday futures markets (as demonstrated by the COMEX Gold Futures backtest), but is highly customizable.
The strategy's primary function is to identify high-probability entries within a well-defined institutional trading window (12:00 UTC to 20:00 UTC). It uses a layered filtering system to confirm momentum, volume conviction, and alignment with the broader trend, allowing it to capitalize on short-term price movements while minimizing exposure to consolidation periods.
II. Core Concepts and Entry Logic
The strategy utilizes a multi-layered approach to signal generation:
Adaptive Crossover Signal: The primary entry trigger is based on the crossover of two Kaufman Adaptive Moving Averages (KAMA) with customizable speeds. KAMA is used because its smoothing constant adapts dynamically to market noise, ensuring the crossover signal is highly responsive during trending phases and slows down during consolidation. This provides the fast, adaptive signal required for scalping.
Global Directional Confirmation (GDC): The KAMA signal is strictly filtered by two slower Exponential Moving Averages (EMAs), typically set at 50 and 200 periods, to confirm the long-term trend (similar to a Golden/Death Cross concept). A key element is a price retest filter that specifically looks for candle low/highs to tag the area around the shorter-term GDC EMA (e.g., EMA 50) before entry, indicating strong trend support or resistance.
Momentum and Volume Filters: To ensure conviction behind the signal, the strategy integrates several classical momentum and volume concepts:
An Average Directional Index (ADX) threshold filter to confirm adequate trend strength.
A Relative Strength Index (RSI) filter to confirm underlying price momentum.
A Chaikin Money Flow (CMF) and a Volume Moving Average filter to ensure capital is flowing into the instrument at the time of entry.
III. Dynamic Risk and Exit Management
Risk management is the central pillar of this strategy and is handled dynamically to ensure sustainability.
Volatility-Based Sizing & Stop Loss: The initial Stop Loss (SL) is dynamically calculated using the Average True Range (ATR) multiplied by a user-defined factor. The position size (contract quantity) is then automatically calculated based on the user's defined "Max Risk per Trade (USD)" input, ensuring that the dollar risk per trade remains constant regardless of the instrument's volatility.
Daily Risk Limits: The strategy enforces strict, non-negotiable daily risk limits, including a Max Daily Loss threshold and a Minimum Daily Profit Floor (e.g., $500 max loss, $110 profit floor). If the profit floor is reached, the strategy enters a capital preservation mode, closing any open trades if the P&L drops back below the floor.
Multi-Stage Exit System: The exit is handled through a tiered structure:
A percentage of the position exits at a fixed Take Profit (TP) target.
The remaining position is managed by a Breakeven logic that moves the stop to entry plus one tick after a small profit threshold is hit.
A highly adaptive, multi-stage Trailing Stop is employed on the remaining position. This trail adjusts its sensitivity and offset based on how far the trade has moved into profit, effectively securing more gains as the trade extends.
IV. Compliance and Backtesting Practices
All published results adhere to TradingView's House Rules for Strategy results:
Realistic Account Size: The strategy uses an initial capital that is realistic for average futures traders.
Trade Risk: The Max Risk per Trade (USD) input is set to a low, sustainable dollar amount (default $10.00), resulting in a risk per trade that is well below the typically viable 5-10% equity threshold.
Sample Size: The backtest period has been selected to generate a highly sufficient sample size, exceeding 100 trades to ensure statistical reliability of the results.
Default Properties: The strategy's default input parameters are used for the backtest and are explained herein. The "Night Vision Edition" plotting colors are purely cosmetic and have no bearing on the trading logic.
Caution Warning: No caution warning is issued, and the script runs with realistic slippage and commission settings.
Tristan's Multi-Indicator Reversal StrategyMulti-Indicator Reversal Strategy - Buy Low, Sell High
A comprehensive reversal detection system that combines multiple proven technical indicators to identify high-probability entry points for catching reversals at market extremes.
📊 Strategy Overview
This strategy is designed for traders who want to buy at lows and sell at highs by detecting when stocks are overextended and ready to reverse. It works by requiring multiple technical indicators to align before generating a signal, significantly reducing false entries.
Best Used On:
Timeframe: 1-hour charts (also works on 15min, 30min, 4hour)
Session: NY Trading Session (9:30 AM - 4:00 PM ET)
Assets: Stocks, ETFs, Crypto (particularly volatile tech stocks like ZM, TSLA, AAPL)
Trading Style: Swing trading, Intraday reversals
🔧 Technical Components
The strategy combines FIVE powerful technical indicators:
1. RSI (Relative Strength Index)
2. MACD (Moving Average Convergence Divergence)
3. Williams %R
4. Bollinger Bands
5. Volume Analysis
6. Divergence Detection (Optional)
🎨 Visual Signals
Entry Signals:
🟢 Green Triangle (below candle) = BUY LONG signal
🔴 Red Triangle (above candle) = SELL SHORT signal
Exit Signals:
🟣 Purple Label = Position closed (shows "x2", "x3" if multiple entries)
Additional Indicators:
💎 Aqua Diamond = Bullish divergence detected
💎 Fuchsia Diamond = Bearish divergence detected
🔵 Blue Background = NY Session active
🟡 Yellow Bar Tint = Volume spike detected
⚪ Small Circles = Near-signal conditions (2+ indicators aligned)
Live Counter:
Top corner shows: "Bull: X/4" and "Bear: X/4"
Indicates how many indicators currently align
⚙️ How to Use This Strategy
For Beginners (More Signals):
Set "Min Indicators Aligned" to 2
Turn OFF "Require Divergence"
Turn OFF "Require Volume Spike"
Turn OFF "Require Reversal Candle Pattern"
Keep "Allow Multiple Entries" OFF
This gives you more frequent signals to learn from.
For Advanced Traders (High Probability):
Set "Min Indicators Aligned" to 3 or 4
Turn ON "Require Divergence"
Turn ON "Require Volume Spike"
Turn ON "Require Reversal Candle Pattern"
Adjust stop loss to your risk tolerance
This filters for only the highest-quality setups.
Recommended Settings for 1-Hour Charts:
Min Indicators Aligned: 3
Stop Loss: 2.5%
Take Profit: 5.0%
RSI Length: 14
Williams %R Length: 14
Volume Multiplier: 1.5x
Session: NY only (for stocks)
BUY SIGNAL generated when:
2-4 indicators show oversold/bullish conditions:
RSI < 30 and turning up
MACD crossing bullish or histogram positive
Williams %R < -80 and turning up
Price at/below lower Bollinger Band
Optional confirmations (if enabled):
Bullish divergence detected
Volume spike present
Bullish reversal candle pattern
Session filter: Signals only during NY trading hours
SELL SIGNAL Generated When:
2-4 indicators show overbought/bearish conditions:
RSI > 70 and turning down
MACD crossing bearish or histogram negative
Williams %R > -20 and turning down
Price at/above upper Bollinger Band
Optional confirmations (if enabled):
Bearish divergence detected
Volume spike present
Bearish reversal candle pattern
🛡️ Risk Management Features
Automatic Stop Loss: Protects capital (default 2.5%)
Take Profit Target: Locks in gains (default 5.0%)
Pyramiding Control: Toggle to prevent position stacking
Session Filter: Avoids overnight risk and low-liquidity periods
Position Flipping: Automatically reverses when opposite signal appears
💡 Best Practices
✅ DO:
Wait for candle close before entering (built into strategy)
Use on volatile assets with clear trends
Combine with your own analysis and risk management
Backtest on your specific assets and timeframes
Start with paper trading to learn the signals
Adjust indicator requirements based on market conditions
❌ DON'T:
Use on very low timeframes (<5 min) without adjustment
Ignore the session filter on stocks
Use maximum leverage - these are reversal trades
Trade during major news events or earnings
Expect 100% win rate - focus on risk/reward ratio
📊 Performance Notes
This strategy prioritizes quality over quantity. With default settings, you may see:
2-5 signals per week on 1-hour charts
Higher win rate with stricter settings (3-4 indicators aligned)
Best performance during trending markets with clear reversals
Reduced performance in choppy, sideways markets
Tip: Adjust "Min Indicators Aligned" based on market conditions:
Trending markets: Use 3-4 (fewer but stronger signals)
Range-bound markets: Use 2 (more signals, but watch for false breakouts)
Phoenix Lock — No-Repaint No-Loss SMA+RSI+MACD Bot (+270%)🔥 PHOENIX LOCK — NO-REPAINT NO-LOSS SMA+RSI+MACD BOT (+270%) 🔥
✅ 100% confirmed signals — NO REPAINT (all on closed bar)
✅ 0 losses — built-in No-Loss Exit (covers fees + slippage)
✅ +270% over 2 years (backtest + live OKX Spot)
✅ Works on BTC/USDT, ETH/USDT, SOL/USDT, any spot pair
🎯 PREMIUM FEATURES:
• SMA Crossover (30/40) — clean trend entry
• RSI Filter (>40) — avoids weak moves
• MACD Confirmation — momentum lock
• ATR x3 Take-Profit — dynamic, adaptive
• No-Loss Exit — closes only above breakeven + fees
• Webhook Alerts — auto-trade on OKX, Bybit, Binance
• MagicNumber ready (via alert ID)
📊 SETUP (1 minute):
1. Add to TradingView
2. Enable alerts → Webhook to your broker
3. Run 24/7 — zero monitoring
4. Profit — no drawdown, no stress
💎 WHY BUY?
• No repainting — signals locked on bar close
• No losses — exits only in profit
• Fully tested — 2 years live data
• Instant delivery — lifetime access
💰 PRICE: $5000 (lifetime) or $199/month
🎁 First 5 buyers — 50% OFF ($2500)
📩 Support: @ProfitLockBot (Telegram) — setup help + updates
BUY NOW — LOCK YOUR PROFITS FOREVER
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
🔥 PHOENIX LOCK — БЕЗ ПЕРЕРИСОВКИ, БЕЗ УБЫТКОВ SMA+RSI+MACD БОТ (+270%) 🔥
✅ 100% подтверждённые сигналы — БЕЗ ПЕРЕРИСОВКИ (только по закрытому бару)
✅ 0 убытков — встроенный No-Loss выход (учтены комиссии + проскальзывание)
✅ +270% за 2 года (бэктест + живые сделки на OKX Spot)
✅ Работает на BTC/USDT, ETH/USDT, SOL/USDT, любой спот-паре
🎯 ПРЕМИУМ-ФУНКЦИИ:
• SMA Crossover (30/40) — чистый вход по тренду
• RSI Фильтр (>40) — избегает слабых движений
• MACD Подтверждение — фиксация импульса
• ATR x3 Тейк-Профит — динамичный, адаптивный
• No-Loss Выход — закрытие только выше безубытка + комиссии
• Webhook Алерты — автоторговля на OKX, Bybit, Binance
• MagicNumber готов (через ID алерта)
📊 УСТАНОВКА (1 минута):
1. Добавь в TradingView
2. Включи алерты → Webhook к брокеру
3. Запусти 24/7 — без контроля
4. Прибыль — без просадки, без стресса
💎 ПОЧЕМУ КУПИТЬ?
• Без перерисовки — сигналы фиксированы на закрытии бара
• Без убытков — выход только в плюс
• Полностью протестировано — 2 года реальных данных
• Мгновенная доставка — пожизненный доступ
💰 ЦЕНА: $5000 (пожизненно) или $199/мес
🎁 Первые 5 покупателей — СКИДКА 50% ($2500)
📩 Поддержка: @ProfitLockBot (Telegram) — помощь с настройкой + обновления
КУПИ СЕЙЧАС — ЗАФИКСИРУЙ ПРИБЫЛЬ НАВСЕГДА
BB Simple B-Xtrender Long### Overview
I currently us this on a 1 week timeframe to spot trend shifts in the market.
It focuses exclusively on long positions (buying assets expecting price increases) and does not overlay on the main price chart—instead, it appears in a separate pane. The strategy allocates the full available equity to each trade and accounts for commissions as a percentage. It uses a custom indicator called the "B-Xtrender" to generate entry and exit signals for long trades, based on momentum-like calculations involving exponential moving averages (EMAs) and the relative strength index (RSI). The indicator is computed on a user-specified timeframe, and the strategy includes alert conditions for key events.
### Inputs Section
The script begins with user-configurable inputs that allow customization without editing the code directly. These include:
- Three integer values for short-term lengths: The first (default 5) and second (default 20) are used in EMA calculations to create a difference that forms the basis of the indicator. The third (default 15) sets the length for the RSI applied to that difference.
- A timeframe input (default "30" for 30 minutes) that determines the resolution for fetching data used in the indicator.
- A float value for the exit level (default 5, with a minimum of 0 and step of 0.1), which acts as a threshold for one of the exit conditions—specifically, when the indicator crosses below this level.
These inputs make the strategy adaptable to different assets or timeframes by adjusting the sensitivity of the indicator and exit rules.
### Indicator Section
The core of the script is the calculation of the "ShortTermXtrender" indicator. It fetches data from the specified timeframe using the asset's ticker symbol and computes an RSI on the difference between two EMAs of the closing prices (using the first and second short lengths), then subtracts 50 to center it around zero. This results in an oscillator that highlights short-term momentum shifts.
The histogram is colored dynamically:
- Green shades for positive values: Brighter green if the current value is higher than the previous (indicating strengthening upward momentum), and darker green otherwise.
- Red shades for negative or zero values: Brighter red if the current value is higher than the previous (less negative, but still downward), and darker red if it's decreasing further.
The indicator is plotted as columns for visual clarity, titled "B-Xtrender TF1" (referring to the first timeframe). A dashed gray horizontal line at zero serves as a centerline to easily distinguish positive (bullish) from negative (bearish) territories.
### Conditions Section
This part defines the logic for entering and exiting long trades, broken into entry and exit rules.
For long entries:
- One condition checks if the indicator is increasing (current value greater than the previous).
- Another optional condition detects a crossover above zero while also increasing, which can be removed if not desired.
- The final entry signal combines these: It triggers on either the crossover (if included) or the increasing value, promoting entries during upward momentum.
For long exits:
- A "red" state is defined as the indicator being at or below zero.
- A decreasing trend over two bars is checked by comparing the current to the previous, and the previous to the one before that.
- One exit triggers on this red state combined with the two-bar decrease.
- Another exit occurs when the indicator crosses below the user-defined exit level.
- The overall exit combines these two, ensuring positions close on weakening momentum or threshold breaches, but only if a long position is active.
### Strategy Execution Section
Here, the script applies the conditions to actual trading actions:
- On a long entry signal, it enters a long position labeled "Long," using the full strategy parameters for sizing and direction.
- On a long exit signal (and only if holding a positive position size), it closes the "Long" position. The comment for the close order specifies the reason: either crossing below the exit level (including the level value) or due to the red histogram with a two-bar decline.
This setup ensures automated trade management based solely on the indicator's behavior.
### Alerts Section
The script sets up three alert conditions that can notify users via TradingView's alert system:
- One for the crossover-based long entry, with a message indicating the indicator crossed above zero and is rising, signaling a long opportunity.
- Another for the increasing-value long entry, noting the indicator's rise on the specified timeframe as a long signal.
- A third for the red histogram with two-bar decline exit, warning of the condition to exit a long position.
These alerts are independent of the strategy execution and can be used for manual trading or monitoring even if the automated strategy isn't running.
MSB Gold Trend Breakout [TV]: The High-Stability Gold Scalper🏆 MSB Gold Trend Breakout : The High-Stability Gold Scalper
This is the official signal for the MSB Pro brand, designed for traders who demand low-drawdown, consistent performance on the XAUUSD (Gold) market.
📈 Verified Performance & Risk Contro l
The strategy's stability has been verified over 1.8 years of historical data.
Max Drawdown (DD): 12.53% (Exceptional capital safety.)
Total Net Profit (1.8 Yrs): +8.15% (Consistent Growth.)
Profit Factor: 1.055 (Proven reliability.)
🛡️ Why Choose This Signal?
True Risk Control: The low drawdown is achieved through a strict EMA filtering system, preventing entry into high-volatility, directionless markets.
Breakout Logic: Uses high-probability breakout movements confirmed by trend alignment (EMA Cross and Trend Filter).
No Martingale/Grid: This is a safe, single-order strategy.
👑 Upgrade to Full License
This signal is priced low to allow you to validate the performance.
Upgrade to the full license ($499) to get:
Lifetime Updates & Future Strategy: Guaranteed access to all future professional upgrades of the MSB Pro Dynamic Risk strategy (V2.0, V3.0, etc.) at no extra cost.
Significant Savings: Purchasing the full license is significantly cheaper than continuous renting.
MoneyPlant-Auto Support Resistance V2.0
🧭 Overview
MoneyPlant – Auto Support Resistance is a professional-grade indicator designed to automatically detect dynamic Support and Resistance levels using real-time market structure.
It combines trend confirmation, structure analysis, and momentum logic to identify high-probability trading zones in all market conditions.
⚙️ Core Concept
This indicator uses a unique combination of classic and proprietary logic to filter only the most relevant S/R levels:
• Dynamic Support/Resistance Mapping: Detects strong reaction levels based on price structure, candle rejection points, and breakout validation.
• EMA & WMA Trend Filter: Uses a triple-moving-average model (default EMA 18, EMA 25, and WMA 7) to confirm current market bias.
• MACD Momentum Filter: Confirms trend strength and helps avoid false breakouts.
• Smart Alignment Logic: Generates signals only when structure, trend, and momentum all align in the same direction.
🧠 How It Works
1. Buy Setup:
When price breaks above a resistance level with bullish EMA/WMA alignment and positive MACD momentum → Buy Signal triggers.
2. Sell Setup:
When price breaks below a support level with bearish EMA/WMA alignment and negative MACD momentum → Sell Signal triggers.
3. Auto-Refreshing Zones:
Support and Resistance zones update dynamically as market structure evolves.
🎯 Best Use Cases
• Works effectively on Stocks, Indices, Forex, and Commodities (e.g., XAUUSD, NIFTY, BANKNIFTY ).
• Ideal for Intraday & Swing Trading (15 min – 1 hour timeframes).
• Fully compatible with TradingView alerts and automation tools.
💡 Key Features
✅ Automatic Support/Resistance detection
✅ Adaptive EMA + WMA + MACD trend logic
✅ Real-time Buy/Sell alerts
✅ Multi-timeframe compatibility
✅ Optimized for clean chart visuals
⚖️ Recommended Settings
• EMA Fast: 18
• EMA Slow: 25
• WMA Filter: 7
• MACD: Default parameters
(Users may adjust EMA/WMA settings according to their own trading style.)
🔒 How to Get Access
To get access to this invite-only script, please send me a private message on TradingView or use the link in my profile.
Once your username is added via Manage Access, you’ll be able to use the indicator.
🧾 Notes for Traders
This tool does not repaint, and it’s meant for educational and analytical purposes only.
Each license is valid for one TradingView username — no resale or redistribution is permitted.
Developed by MoneyPlant
Smart Automation for Professional Traders
US/SPY- Financial Regime Index Swing Strategy Credits: concept inspired by EdgeTools Bloomberg Financial Conditions Index (Proxy)
Improvements: eight component basket, inverse volatility weights, winsorization option( statistical technique used to limit the influence of outliers in a dataset by replacing extreme values with less extreme ones, rather than removing them entirely), slope and price gates, exit guards, table and gradients.
Summary in one paragraph
A macro regime swing strategy for index ETFs, futures, FX majors, and large cap equities on daily calculation with optional lower time execution. It acts only when a composite Financial Conditions proxy plus slope and an optional price filter align. Originality comes from an eight component macro basket with inverse volatility weights and winsorized return z scores that produce a portable yardstick.
Scope and intent
Markets: SPY and peers, ES futures, ACWI, liquid FX majors, BTC, large cap equities.
Timeframes: calculation daily by default, trade on any chart.
Default demo: SPY on Daily.
Purpose: convert broad financial conditions into clear swing bias and exits.
Originality and usefulness
Unique fusion: return z scores for eight liquid proxies with inverse volatility weighting and optional winsorization, then slope and price gates.
Failure mode addressed: false starts in chop and early shorts during easy liquidity.
Testability: all knobs are inputs and the table shows components and weights.
Portable yardstick: z scores center at zero so thresholds transfer across symbols.
Method overview in plain language
Base measures
Return basis: natural log return over a configurable window, standardized to a z score. Winsorization optional to cap extremes.
Components
EQ US and EQ GLB measure equity tone.
CREDIT uses LQD over HYG. Higher credit quality outperformance is risk off so sign is flipped after z score.
RATES2Y uses two year yield, sign flipped.
SLOPE uses ten minus two year yield spread.
USD uses DXY, sign flipped.
VOL uses VIX, sign flipped.
LIQ uses BIL over SPY, sign flipped.
Each component is smoothed by the composite EMA.
Fusion rule
Weighted sum where weights are equal or inverse volatility with exponent gamma, normalized to percent so they sum to one.
Signal rule
Long when composite crosses up the long threshold and its slope is positive and price is above the SMA filter, or when composite is above the configured always long floor.
Short when composite crosses down the short threshold and its slope is negative and price is below the SMA filter.
Long exit on cross down of the long exit line or on a fresh short signal.
Short exit on cross up of the short exit line or on a fresh long signal, or when composite falls below the force short exit guard.
What you will see on the chart
Markers on suggestion bars: L for long, S for short, LX and SX for exits.
Reference lines at zero and soft regime bands at plus one and minus one.
Optional background gradient by regime intensity.
Compact table with component z, weight percent, and composite readout.
Table fields and quick reading guide
Component: EQ US, EQ GLB, CREDIT, RATES2Y, SLOPE, USD, VOL, LIQ.
Z: current standardized value, green for positive risk tone where applicable.
Weight: contribution percent after normalization.
Composite: current index value.
Reading tip: a broadly green Z column with slope positive often precedes better long context.
Inputs with guidance
Setup
Calc timeframe: default Daily. Leave blank to inherit chart.
Lookback: 50 to 1500. Larger length stabilizes regimes and delays turns.
EMA smoothing: 1 to 200. Higher smooths noise and delays signals.
Normalization
Winsorize z at ±3: caps extremes to reduce one off shocks.
Return window for equities: 5 to 260. Shorter reacts faster.
Weighting
Weight lookback: 20 to 520.
Weight mode: Equal or InvVol.
InvVol exponent gamma: 0.1 to 3. Higher compresses noisy components more.
Signals
Trade side: Long Short or Both.
Entry threshold long and short: portable z thresholds.
Exit line long and short: soft exits that give back less.
Slope lookback bars: 1 to 20.
Always long floor bfci ≥ X: macro easy mode keep long.
Force short exit when bfci < Y: macro stress guard.
Confirm
Use price trend filter and Price SMA length.
View
Glow line and Show component table.
Symbols
SPY ACWI HYG LQD VIX DXY US02Y US10Y BIL are defaults and can be changed.
Realism and responsible publication
No performance claims. Past is not future.
Shapes can move intrabar and settle on close.
Execution is on standard candles only.
Honest limitations and failure modes
Major economic releases and illiquid sessions can break assumptions.
Very quiet regimes reduce contrast. Use longer windows or higher thresholds.
Component proxies are ETFs and indexes and cannot match a proprietary FCI exactly.
Strategy notice
Orders are simulated on standard candles. All security calls use lookahead off. Nonstandard chart types are not supported for strategies.
Entries and exits
Long rule: bfci cross above long threshold with positive slope and optional price filter OR bfci above the always long floor.
Short rule: bfci cross below short threshold with negative slope and optional price filter.
Exit rules: long exit on bfci cross below long exit or on a short signal. Short exit on bfci cross above short exit or on a long signal or on force close guard.
Position sizing
Percent of equity by default. Keep target risk per trade low. One percent is a sensible starting point. For this example we used 3% of the total capital
Commisions
We used a 0.05% comission and 5 tick slippage
Legal
Education and research only. Not investment advice. Test in simulation first. Use realistic costs.
AMF PG Strategy v2.3AMF PG Strategy v2.3
1. Core Philosophy: Filtered and Volatility-Aware Trend Following
"AMF PG Strategy" is an advanced trend-following system designed to adapt to the dynamic nature of modern markets. The strategy's core philosophy is not just to follow the trend but also to wait for the right conditions to enter the market.
This is not a "black box." It is a rules-based framework that gives the user full control over various market filters. By requiring multiple conditions to be met simultaneously, the strategy aims to filter out low-quality signals and focus only on high-probability trend opportunities.
2. Core Engine: AMF PG Trend Following
At the heart of the strategy is a proprietary, volatility-aware trend-following mechanism called AMF PG (Praetorian Guard). This engine operates as follows:
Dynamic Bands: Creates a dynamic upper and lower band around the price that is constantly recalculated. The width of these bands is not fixed; It dynamically adjusts based on recent market volatility, volume flow, and price expansion. This adaptive structure allows the strategy to adapt to both calm and high-volatility markets.
Entry Signals: A buy signal is triggered when the price rises above the upper band. A sell signal is triggered when the price falls below the lower band. However, these signals are executed only when all the active filters described below give the green light.
Trailing Stop-Loss: When a position is entered, the opposite band automatically acts as a trailing stop-loss level. For example, when a buy position is opened, the lower band follows the price as a stop-loss. This allows for profit retention and trend continuation.
3. Multi-Layered Filter System: Understanding the Market
The power of this strategy comes from its modular filter system, which allows the user to filter market conditions based on their own analysis. Each filter can be enabled or disabled individually in the settings:
Filter 1: Trend Strength (ADX Filter): This filter confirms whether there is a strong trend in the market. It uses the ADX (Average Directional Index) indicator and only allows trades if the ADX value is above a certain threshold. This helps avoid trading in weak or directionless markets. It also confirms the direction of the trend by checking the position of the DMI (+DI and -DI) lines.
Filter 2: Sideways Market (Chop Index Filter): This filter determines whether the market is excessively choppy or directionless. Using the Chop Index, this filter aims to protect against fakeouts by blocking trades when the market is highly indecisive.
Filter 3: Market Structure (Hurst Exponent Filter): This is one of the strategy's most advanced filters. It analyzes the current market behavior using the Hurst Exponent. This mathematical tool attempts to determine whether a market tends to trend (permanent), tends to revert to the mean (anti-permanent), or moves randomly. This filter ensures that signals are generated only when market structure supports trending trades.
4. Risk Management: Maximum Drawdown Protection
This strategy includes a built-in capital protection mechanism. Users can specify the percentage of their capital they will tolerate to decline from its peak. If the strategy's capital reaches this set drawdown limit, the protection feature is activated, closing all open positions and preventing new trades from being opened. This acts as an emergency brake to protect capital against unexpected market conditions.
5. Automation Ready: Customizable Webhook Alerts
The strategy is designed for traders who want to automate their signals. From the Settings menu, you can configure custom alert messages in JSON format, compatible with third-party automation services (via Webhooks).
6. Strategy Backtest Information
Please note that past performance is not indicative of future results. The published chart and performance report were generated on the 4-hour timeframe of the BTCUSD pair with the following settings:
Test Period: January 1, 2016 - October 31, 2025
Default Position Size: 15% of Capital
Pyramiding: Closed
Commission: 0.0008
Slippage: 2 ticks (Please enter the slippage you used in your own tests)
Testing Approach: The published test includes 423 trades and is statistically significant. It is strongly recommended that you test on different assets and timeframes for your own analysis. The default settings are a template and should be adjusted by the user for their own analysis.
Candle Breakout StrategyShort description (one-liner)
Candle Breakout Strategy — identifies a user-specified candle (UTC time), draws its high/low range, then enters on breakouts with configurable stop-loss, take-profit (via Risk:Reward) and optional alerts.
Full description (ready-to-paste)
Candle Breakout Strategy
Version 1.0 — Strategy script (Pine v5)
Overview
The Candle Breakout Strategy automatically captures a single "range candle" at a user-specified UTC time, draws its high/low as a visible box and dashed level lines, and waits for a breakout. When price closes above the range high it enters a Long; when price closes below the range low it enters a Short. Stop-loss is placed at the opposite range boundary and take-profit is calculated with a user-configurable Risk:Reward multiplier. Alerts for entries can be enabled.
This strategy is intended for breakout style trading where a clearly defined intraday range is established at a fixed time. It is simple, transparent and easy to adapt to multiple symbols and timeframes.
How it works (step-by-step)
On every bar the script checks the current UTC time.
When the first bar that matches the configured Target Hour:Target Minute (UTC) appears, the script records that candle’s high and low. This defines the breakout range.
A box and dashed lines are drawn on the chart to display the range and extended to the right while the range is active.
The script then waits for price to close outside the box:
Close > Range High → Long entry
Close < Range Low → Short entry
When an entry triggers:
Stop-loss = opposite range boundary (range low for longs, range high for shorts).
Take-profit = entry ± (risk × Risk:Reward). Risk is computed as the distance between entry price and stop-loss.
After entry the range becomes inactive (waitingForBreakout = false) until the next configured target time.
Inputs / Parameters
Target Hour (UTC) — the hour (0–23) in UTC when the range candle is detected.
Target Minute — minute (0–59) of the target candle.
Risk:Reward Ratio — multiplier for computing take profit from risk (0.5–10). Example: 2 means TP = entry + 2×risk.
Enable Alerts — turn on/off entry alerts (string message sent once per bar when an entry occurs).
Show Last Box Only (internal behavior) — when enabled the previous box is deleted at the next range creation so only the most recent range is visible (default behavior in the script).
Visuals & On-chart Info
A semi-transparent blue box shows the recorded range and extends to the right while active.
Dashed horizontal lines mark the range high and low.
On-chart shapes: green triangle below bar for Long signals, red triangle above bar for Short signals.
An information table (top-right) displays:
Target Time (UTC)
Active Range (Yes / No)
Range High
Range Low
Risk:Reward
Alerts
If Enable Alerts is on, the script sends an alert with the following formats when an entry occurs:
Long alert:
🟢 LONG SIGNAL
Entry Price:
Stop Loss:
Take Profit:
Short alert:
🔴 SHORT SIGNAL
Entry Price:
Stop Loss:
Take Profit:
Use TradingView's alert dialog to create alerts based on the script — select the script’s alert condition or use the alert() messages.
Recommended usage & tips
Timeframe: This strategy works on any timeframe but the definition of "candle at target time" depends on the chart timeframe. For intraday breakout styles, use 1m — 60m charts depending on the session you want to capture.
Target Time: Choose a time that is meaningful for the instrument (e.g., market open, economic release, session overlap). All times are handled in UTC.
Position Sizing: The script’s example uses strategy.percent_of_equity with 100% default — change default_qty_value or strategy settings to suit your risk management.
Filtering: Consider combining this breakout with trend filters (EMA, ADX, etc.) to reduce false breakouts.
Backtesting: Always backtest over a sufficiently large and recent sample. Pay attention to slippage and commission settings in TradingView’s strategy tester.
Known behavior & limitations
The script registers the breakout on close outside the recorded range. If you prefer intrabar breakout rules (e.g., high/low breach without close), you must adjust the condition accordingly.
The recorded range is taken from a single candle at the exact configured UTC time. If there are missing bars or the chart timeframe doesn't align, the intended candle may differ — choose the target time and chart timeframe consistently.
Only a single active position is allowed at a time (the script checks strategy.position_size == 0 before entries).
Example setups
EURUSD (Forex): Target Time 07:00 UTC — captures London open range.
Nifty / Index: Target Time 09:15 UTC — captures local session open range.
Crypto: Target Time 00:00 UTC — captures daily reset candle for breakout.
Risk disclaimer
This script is educational and provided as-is. Past performance is not indicative of future results. Use proper risk management, test on historical data, and consider slippage and commissions. Do not trade real capital without sufficient testing.
Change log
v1.0 — Initial release: range capture, box and level drawing, long/short entry by close breakout, SL at opposite boundary, TP via Risk:Reward, alerts, info table.
If you want, I can also:
Provide a short README version (2–3 lines) for the TradingView “Short description” field.
Add a couple of suggested alert templates for the TradingView alert dialog (if you want alerts that include variable placeholders).
Convert the disclaimer into multiple language versions.
AMF PG Consensus Engine v3.5AMF PG Consensus Engine v3.5
1. Core Philosophy: A Multi-Stage Confirmation System for High-Probability Signals
In the world of automated trading, the real challenge isn't generating signals, but filtering out the noise. The AMF PG Consensus Engine is designed to address this challenge. It operates on a simple yet powerful philosophy: a buy or sell signal is valid only if it receives confirmation from multiple, independent analysis modules.
This strategy isn't a "black box." It's a transparent, rules-based framework that transforms market momentum and momentum into a final consensus and then directs a core trend-following engine. The goal is to avoid trading in adverse market conditions and only act when the different analysis layers agree.
2. How the Consensus Engine Works: Two Confirmation Layers
Before the core engine is allowed to seek a trade, the market must go through a two-stage "confirmation" process. Both filters can be enabled or disabled from the settings, allowing users to customize the strategy's stringency level.
Confirmation Module 1: Renko Regime Filter
This module's purpose is to answer a critical question: "Is the market currently in a stable, directional trend, or is it volatile and unstable?" Instead of standard indicators, it creates a timeless Renko chart in the background. A trend is confirmed only if a minimum number of consecutive Renko bricks form in the same direction. This method is extremely effective at filtering out noisy, sideways price movements, which are often unsuccessful for trend-following systems. The brick size can be set to a fixed value or automatically calculated based on the Average True Range (ATR) for better fit.
Confirmation Module 2: Candle Scoring Engine
This module analyzes the raw strength of price action by scoring each candle individually. It evaluates the candle's direction, body size relative to the previous candle, and the change in closing price. These factors are converted into a score for each bar. A cumulative score is then calculated over a user-defined period. A buy trade is only confirmed if this cumulative momentum score exceeds a positive threshold, indicating sustained buying pressure. Conversely, a sell trade requires the score to fall below a negative threshold, indicating sustained selling pressure.
3. Core Engine: AMF PG Trend Follower
When both confirmation modules give the "green light" for a specific direction (e.g., buy), the core AMF PG (Praetorian Guard) engine is activated. This is a proprietary, volatility-sensitive trend-following mechanism.
It calculates a dynamic upper and lower band around the price. These bands are not static; their distance from the price is constantly adjusted based on recent market volatility and price expansion. A trade is initiated when the price breaks out of these bands in the direction confirmed by the consensus engine. The opposing band then serves as the initial trailing stop-loss, adjusted as the trend progresses.
4. Embedded Filters for Additional Security
To further enhance signal quality, the core engine has several embedded filters that are always active and cannot be disabled by the user:
Trend Strength Filter: To confirm that a trend has sufficient strength, a trade will not be initiated unless the ADX (Average Directional Index) is above a certain threshold.
Sideways Market Filter: The Chop Index is used to prevent trading in extremely sideways and directionless markets.
5. Risk Management: Maximum Drawdown Protection
A key feature of this strategy is its built-in capital protection mechanism. Users can set a maximum capital drawdown limit of a percentage. If the strategy's capital falls by this percentage from its peak, the "DD Protect" feature is activated, closing all open positions and preventing new trades from being opened. This acts as a final emergency brake to protect capital during unpredictable market conditions or underperformance of the strategy.
6. Automation-Ready: Customizable Webhook Alerts
This strategy was developed for modern investors looking to automate their trading. Instead of generic alert messages, you can define your own custom alert text directly from the script's settings.
This feature is particularly powerful for connecting to third-party automation services via Webhooks. You can configure the alert message in the JSON format required by your service (such as {"action": "buy", "symbol": "{{ticker}}"}). This allows you to seamlessly connect your strategy signals directly to your trading account.
7. Strategy Backtest Information
Please remember that past performance is not indicative of future results. The published chart and performance report were generated on the 4-hour timeframe of the BTC/USD pair with the following settings:
Test Period: January 1, 2016 - October 31, 2025
Default Position Size: 15% of Capital
Pyramiding: Closed
Commission: 0.0008
Slippage: 2 ticks (Please enter the slippage you used in your own tests)
Testing Approach: The published test includes 799 trades and is statistically significant. It is strongly recommended that you test on different assets and timeframes for your own analysis. The default settings are a template and should be adjusted by the user for their own analysis.
Gold 15m: Trend + S/R + Liquidity Sweep (RR 1:2)This strategy is designed for short-term trading on XAUUSD (Gold) using the 15-minute timeframe. It combines trend direction, support/resistance pivots, liquidity sweep detection, and momentum confirmation to identify high-probability reversal setups in line with the dominant market trend.
⚙️ Core Logic:
Trend Filter (EMA 200):
The strategy only takes long positions when price is above the 200 EMA and short positions when price is below it.
Support/Resistance via Pivots:
Dynamic swing highs and lows are identified using pivot points. These act as local supply and demand levels where liquidity is likely to accumulate.
Liquidity Sweep Detection:
A bullish liquidity sweep occurs when price briefly breaks below the last pivot low (grabbing liquidity) and then closes back above it.
A bearish sweep occurs when price breaks above the last pivot high and then closes back below.
Momentum & Candle Strength:
The strategy filters signals based on candle range and body size to ensure entries occur during strong price reactions, not weak retracements.
Risk Management (1:2 RR):
Stop-loss is placed slightly beyond the last pivot level using ATR-based buffers, and take-profit is set at 2× the risk distance, maintaining a reward-to-risk ratio of 1:2.
💼 Trade Logic Summary:
Long Entry:
After a bullish liquidity sweep & reclaim, momentum confirmation, and trend alignment (above EMA 200).
Short Entry:
After a bearish sweep & reclaim, momentum confirmation, and trend alignment (below EMA 200).
Exit:
Automated via ATR-based Stop Loss and Take Profit targets.
📊 Customization Options:
Adjustable EMA length, pivot settings, ATR multipliers, and RR ratio.
Option to enable/disable trend filter.
Toggle display of S/R zones on chart.
🧠 Best Use:
Works best during London and New York sessions when Gold shows strong momentum.
Can be adapted for forex pairs and indices by tuning ATR and pivot parameters.
INDIAN INTRADAY BEASTThe Indian Intraday Beast is a precision-built intraday strategy optimized for the 15-minute timeframe.
It captures high-probability momentum shifts and trend reversals using adaptive price-action logic and proprietary confirmation filters.
Designed for traders who demand clarity, speed, and consistency in India’s fast-paced markets.
Maxtra Reversal Range Breakout StrategyReversal Range Breakout Strategy
This strategy uses the first candle as a directional filter. If the first candle is green, it anticipates a potential reversal and takes sell trades only. If the first candle is red, it looks for buy opportunities. The logic is to trade against the initial move, expecting a reversal after the early breakout or momentum spike.
Maxtra Range Breakout StrategyRange Breakout Strategy
This strategy identifies periods of price consolidation (range) and enters trades when the price breaks above or below the defined range. A breakout above the range signals a potential uptrend (buy), while a breakout below indicates a potential downtrend (sell). It helps capture strong directional moves following low-volatility phases.
Option Buying Strategy By Raj PandyaThis strategy is designed for intraday trading on BankNifty using a powerful confluence of trend, structure and momentum. It combines the 9-period Exponential Moving Average (EMA) with Daily Traditional Pivot Points to identify high-probability breakout trades.
A Long (CALL) signal is generated when price crosses and closes above both the 9 EMA and the Daily Pivot Point (PP), confirming upward trend strength. A Short (PUT) signal triggers when price crosses and closes below the 9 EMA and PP, signaling downside momentum. To reduce false signals, the strategy uses RSI with a moving average filter to ensure momentum aligns with price action.
Risk management is built-in with previous candle high/low stop-loss, a fixed 50-point target, and an automatic trailing stop system to protect profits on trending days. This helps capitalize on strong momentum while managing risk effectively.
This strategy works best on the 5-minute timeframe and is optimized for BankNifty futures/options. It aims to capture clean directional moves around key intraday value levels used by institutional traders.
Serenity Model VIPI — by yuu_iuHere’s a concise, practical English guide for Serenity Model VIPI (Author: yuu_iu). It covers what it is, how to set it up for daily trading, how to tune it, and how we guarantee non-repainting.
Serenity Model VIPI — User Guide (Daily Close, Non‑Repainting)
Credits
- Author: yuu_iu
- Producer: yuu_iu
- Platform: TradingView (Pine Script v5)
1) What it is
Serenity Model VIPI is a multi‑module, context‑aware trading model that fuses signals from:
- Entry modules: VCP, Flow, Momentum, Mean Reversion, Breakout
- Exit/risk modules: Contrarian, Breakout Sell, Volume Delta Sell, Peak Detector, Overbought Exit, Profit‑Take
- Context/memory: Learns per Ticker/Sector/Market Regime and adjusts weights/aggression
- Learning engine: Runs short “fake trades” to learn safely before scaling real trades
It produces a weighted, context‑adjusted score and a final decision: BUY, SELL, TAKE_PROFIT, or WAIT.
2) How it works (high level)
- Each module computes a score per bar.
- A fusion layer combines module scores using accuracy and base weights, then adjusts by:
- Market regime (Bull/Bear/Sideways) and optional higher‑timeframe (HTF) bias
- Risk control neuron
- Context memory (ticker/sector/regime)
- Optional LLM mode can override marginal cases if context supports it.
- Final decision is taken at bar close only (no intrabar repaint).
3) Non‑repainting guarantee (Daily)
- Close‑only execution: All key actions use barstate.isconfirmed, so signals/entries/exits only finalize after the daily candle closes.
- No lookahead on HTF data: request.security() reads prior‑bar values (series ) for HTF close/EMA/RSI.
- Alerts at bar close: Alerts are fired once per bar close to prevent mid‑bar changes.
What this means: Once the daily bar closes, the decision and alert won’t be repainted.
4) Setup (TradingView)
- Paste the Pine v5 code into Pine Editor, click Add to chart.
- Timeframe: 1D (Daily).
- Optional: enable a date window for training/backtest
- Enable Custom Date Filter: ON
- Set Start Date / End Date
- Create alert (non‑repainting)
- Condition: AI TRADE Signal
- Options: Once Per Bar Close
- Webhook (optional): Paste your URL into “System Webhook URL (for AI events)”
- Watch the UI
- On‑chart markers: AI BUY / AI SELL / AI TAKE PROFIT
- Right‑side table: Trades, Win Rate, Avg Profit, module accuracies, memory source, HTF trend, etc.
- “AI Thoughts” label: brief reasoning and debug lines.
5) Daily trading workflow
- The model evaluates at daily close and may:
- Enter long (BUY) when buy votes + total score exceed thresholds, after context/risk checks
- Exit via trailing stop, hard stop, TAKE_PROFIT, or SELL decision
- Learning mode:
- Triggers short “fake trades” every N bars (default 3) and measures outcome after 5 bars
- Improves module accuracies and adjusts aggression once stable (min fake win% threshold)
- Memory application:
- When you change tickers, the model tries to apply Ticker or Sector memory for the current market regime to pre‑bias module weights/aggression.
6) Tuning (what to adjust and why)
Core controls
- Base Aggression Level (default 1.0): Higher = more trades and stronger decisions; start conservative on Daily (1.0–1.2).
- Learning Speed Multiplier (default 3): Faster adaptation after fake/real trades; too high can overreact.
- Min Fake Win Rate to Exit Learning (%) (default 10–20%): Raises the bar before trusting more real trades.
- Fake Trade Every N Bars (default 3): Frequency of learning attempts.
- Learning Threshold Win Rate (default 0.4): Governs when the learner should keep learning.
- Hard Stop Loss (%) (default 5–8%): Global emergency stop.
Multi‑Timeframe (MTF)
- Enable Multi‑Timeframe Confirmation: ON (recommended for Daily)
- HTF Trend Source: HOSE:VNINDEX for VN equities (or CURRENT_SYMBOL if you prefer)
- HTF Timeframe: D or 240 (for a strong bias)
- MTF Weight Adjustment: 0.2–0.4 (0.3 default is balanced)
Module toggles and base weights
- In strong uptrends: increase VCP, Momentum, Breakout (0.2–0.3 typical)
- In sideways low‑vol regimes: raise MeanRev (0.2–0.3)
- For exits/defense: Contrarian, Peak, Overbought Exit, Profit‑Take (0.1–0.2 each)
- Keep Flow on as a volume‑quality filter (≈0.2)
Memory and control
- Enable Shared Memory Across Tickers: ON to share learning
- Enable Sector‑Based Knowledge Transfer: ON to inherit sector tendencies
- Manual Reset Learning: Use sparingly to reset module accuracies if regime changes drastically
Risk management
- Hard Stop Loss (%): 5–8% typical on Daily
- Trailing Stop: ATR‑ and volatility‑adaptive; tightens faster in Bear/High‑Vol regimes
- Max hold bars: Shorter in Bear or Sideways High‑Vol to cut risk
Alerts and webhook
- Use AI TRADE Signal with Once Per Bar Close
- Webhook payload is JSON, including event type, symbol, time, win rates, equity, aggression, etc.
7) Recommended Daily preset (VN equities)
- MTF: Enable, Source: HOSE:VNINDEX, TF: D, Weight Adj: 0.3
- Aggression: 1.1
- Learning Speed: 3
- Min Fake Win Rate to Exit Learning: 15%
- Hard SL: 6%
- Base Weights:
- VCP 0.25, Momentum 0.25, Breakout 0.15, Flow 0.20
- MeanRev 0.20 (raise in sideways)
- Contrarian/Peak/Overbought/Profit‑Take: 0.10–0.20
- Leave other defaults as is, then fine‑tune by symbol/sector.
8) Reading the UI
- Table highlights: Real Trades, Win Rate, Avg Profit, Fake Actions/Win%, VCP Acc, Aggression, Equity, Score, Status (LEARNING/TRADING/REFLECTION), Last Real, Consec Loss, Best/Worst Trade, Pattern Score, Memory Source, Current Sector, AI Health, HTF Trend, Scheduler, Memory Loaded, Fake Active.
- Shapes: AI BUY (below bar), AI SELL/TAKE PROFIT (above bar)
- “AI Thoughts”: module contributions, context notes, debug lines
9) Troubleshooting
- No trades?
- Ensure timeframe is 1D and the date filter covers the chart range
- Check Scheduler Cooldown (3 bars default) and that barstate.isconfirmed (only at close)
- If MTF is ON and HTF is bearish, buy bias is reduced; relax MTF Weight Adjustment or module weights
- Too many/too few trades?
- Lower/raise Base Aggression Level
- Adjust base weights on key modules (raise entry modules to be more active; raise exit/defense modules to be more selective)
- Learning doesn’t end?
- Increase Min Fake Win Rate to Exit Learning only after it’s consistently stable; otherwise lower it or reduce Fake Trade Every N Bars
10) Important notes
- The strategy is non‑repainting at bar close by design (confirmed bars + HTF series + close‑only alerts).
- Backtest fills may differ from live fills due to slippage and broker rules; this is normal for all TradingView strategies.
- Always validate settings across multiple symbols and regimes before going live.
If you want, I can bundle this guide into a README section in your Pine code and add a small on‑chart signature (Author/Producer: yuu_iu) in the top‑right corner.
BUY LOW, BUY MORE, SELL HIGH - MARKET FLOW STRATEGY-JTM────────────────────────────────────────────────────────
BUY LOW, BUY MORE, SELL HIGH – MARKET FLOW STRATEGY (v594) – JTM
────────────────────────────────────────────────────────
Category: Quantitative Momentum & Liquidity Flow Strategy
Author: JTM
────────────────────────────────────────────────────────
An Adaptive Contrarian live trading strategy that scales into deep pullbacks,
rides liquidity waves, and locks profit automatically, using your TradersPost.io webhook.
────────────────────────────────────────────────────────
DESCRIPTION
────────────────────────────────────────────────────────
The "Buy Low, Buy More, Sell High" strategy combines value-based accumulation
with adaptive profit protection. It adds exposure on weakness (new lower lows
and confirmed liquidity support) and closes trades dynamically once a profitable
run-up retraces by a set percentage (default 13%).
It reconstructs multi-timeframe market structure
(Intraday → Daily → Weekly → Monthly → Yearly)
using synthetic OHLCs to avoid repainting, and integrates VWAP anchoring,
adaptive KAMA smoothing, RSI validation, and rolling lower-low tracking.
Contrarian strategies are difficult for the human to be easily comfortable with...
because but the results can be worth the wait. Believe that you truly want to Sell when everyone is buying and buy when everyone is almost done selling. Not vice-versa!
Forget about trying to time the market at the true top or the true bottom - just ride
the rolling waves and the profits will come ashore.
────────────────────────────────────────────────────────
CORE FEATURES
────────────────────────────────────────────────────────
• Non-repainting by design – only confirmed bars update persistent state
• Synthetic HTF OHLC construction avoids lookahead bias
• Adaptive trailing TakeProfit logic aims for (80–87% of peak profit retained)
• AI-like market flow dashboard with Bull/Bear liquidity dominance
• Dynamic rolling "Lowest Low" (LLL) detection and visualization
• Modular time detection and session alignment (New York market default)
• Optional Liquidity Dashboard with intraday/swing dual-mode analytics
1. Non-Repainting Architecture - Long side strategy. Not coded for short selling.
2. Works best on a 1hr/60m intraday chart with a 3hr higher Timeframe (strategy input)
3. Immediately Uncheck Show Trade Signals in the Strategy's Style Settings to eliminate
onscreen clutter
4. Market Liquidity Dashboard can be displayed by setting in the strategy's inputs.
5. You set a price range of stocks you wish to allow to trade when using an alert list.
6. You can set a preview period where gray TV trades alerts to Traderspost are withheld.
7. If you check "Do not LIVE sell any assets today" and update the alert, no Traderspost
8. As well as the Market Flow Dashboard, you can display a table of HLs, and LLs.
Trending stocks will display HLs and Vice Versa.
9. You can switch away from Big Rolling Waves Mode (default) to Intraday Short Moves mode
10. Default Big Wave Rolling Cycle is 120 bars (Recommended) 30,60,90,120 are typical.
(this affects the strategy profitability and choice of entry and exits).
11. Reference to FIFO is about the array size for the stored non-repainting HLs and LLs
12. Option to execute trades on unconfirmed bar is BETA. The strategy Only trades on
confirmed bars always, but I am wanting/hoping to eventually Take Profit on a
BIG ASS institutional candle, morning session bar when they occur.
(a new bar is unconfirmed, building, and tricky to code without
breaking the strategy's reliability). Use at your own risk.
────────────────────────────────────────────────────────
Technical Highlights
────────────────────────────────────────────────────────
• AI-inspired “Flow Confidence” through liquidity imbalance between Bull and Bear pressure.
• Adaptive KAMA smoothing for non-lag confirmation.
• Dynamic trailing take-profit computed as 80–87% of the highest profitable run-up.
• Non-repainting multi-timeframe framework (daily–weekly–monthly aggregation).
• LLL Table module for Lowest-Low progression and trend exhaustion.
• Market Flow Dashboard visualizing rolling liquidity dominance and delta pressure.
• Session-aware logic for intraday vs. swing operation.
• All logic has been tuned to peak performance that satisfies the TradingView Profiler.
• Strategy Buys again at a lower price instead of selling and taking a loss. Drawdown Peaks!
but this requires you configure TradingView Strategy Pyramiding orders to 2 or more
and % of equity.
(definitely is more $$ risky, potentially more profitable and might beat Buy and Hold profits)
See the chart above.
────────────────────────────────────────────────────────
WHY IT DOES NOT REPAINT (even thought the TradingView alert message says it might.)
────────────────────────────────────────────────────────
1. All trade, table, and OHLC updates occur only on `barstate.isconfirmed`
2. Synthetic HTFs are self-built without `lookahead` or future data
3. All arrays use `var` persistence to freeze past state
4. Trailing TakeProfit peak updates only on confirmed highs
5. No forward-referencing of real-time partial bars
────────────────────────────────────────────────────────
LIMITATIONS
────────────────────────────────────────────────────────
1. Heavy computation on long intraday histories (optimize `max_bars_back`)
2. Requires intraday chart resolution (1m–4h)
3. U.S. session defaults (09:30–16:00 ET); adjust for other exchanges
4. Arrays and tables consume memory – disable extra visuals if unneeded
5. Not for use with Crypto, Forex, or Futures.
6. Only to be used with Stocks/Tickers having volume data.
7. Live trading is coded for a TradersPost.io Webhook and a brokerage account. (IBKR)
────────────────────────────────────────────────────────
WARNINGS
────────────────────────────────────────────────────────
1. This is an Adaptive and Contrarian Trading strategy that scales into DEEP pullbacks,
rides long liquidity waves, and locks profit automatically.
2. Trades can have a long duration but are minimal. This is not a strategy that will
generate thousands of trades. It will save you on commissions to.
3. It does its best to limit losses and but I cannot guarantee it will work for
all assets, all the time. Market conditions vary. Tickers vary.
4. Use it with assets that you trust not to race to zero dollars.
5. Use this strategy with healthy tickers that have medium to high volatility.
6. To eliminate onscreen clutter, uncheck strategy settings/style/trade signals.
7. I use this strategy exclusively. TradingView alerts run for me 24/7 and ROBO trade.
but you should vet the system with manual trades signals it generates for yourself.
8. It does not prevent you from losing profits in after hours trading and Market News.
9. The BIG ASS new bar of opening candle is Not calculated into the stats until it is confirmed. Especially bothersome for me when its a big 10% down candle. You still need to watch the first 9:30 candle with your eyes. I recommend you watch liquidity at Open using a 1m timeframe.
10. This is a pro-grade coded strategy but is NOT a “Wall Street Quant grade.” strategy.
Institutions rely on:
• slippage models
• depth-of-book impact modeling
• latency simulation
• volume-weighted fills
• partial fills & queue priority
• order slicing (TWAP, VWAP, POV)
Pine Script cannot simulate the above.
11. This Pine Script strategy is market-internal (chart & volume) and for personal-use only. The code remains private to me.
12. To the full-time traders — my respect.
I live in the world of code, not charts, scalps, candles and screens,
so I engineered this 2500-line strategy to trade for me with un-emotional discipline, as you do.
If this strategy resonates with you, I provide it for you to use in the TradingView spirit of community. Backtested results are hypothetical and not indicative of future performance.
Nothing here constitutes investment advice.
Trading involves risk, and users must assume full responsibility for their trading decisions.
Remember, its not about making 'all' the money a stock theoretically could return as if you did a buy and hold many years ago - its about making good money as you navigate the waves of the stormy seas, and not sinking. It about making better trade decisions compared to the persons you are trading against. Have fun all the while making your money - work for you.
────────────────────────────────────────────────────────
“Be fearful when others are greedy, and be greedy when others are fearful.”
— Warren E. Buffett
“The stock market is a device for transferring money from the impatient to the patient.”
— Warren E. Buffett
True wealth grows through time, not reaction. A person sits in the shade today because
of a tree that somebody planted years ago.
— Warren E. Buffett
Happy Trading!
VWAP & Band Cross Strategy v6 - AdvancedThese are a few updates made to the original script. The daily take profit and stop loss functions correctly for 1 contract but because of the pyramiding input even if not used you'll need to multiply the values by the number of contracts to keep consistent results. I have been unable to correct that function. Let me know if you test the script and have any recommendations for improvement. If trading an actual account I do recommend setting hard daily limits with your provider because there is still slippage from the original exit alerts even with the daily stop loss in place.
1. Real-Time Execution & Hard PnL Limits (The Focus)
The most critical changes were implemented to ensure the daily profit and loss limits act as hard, real-time barriers instead of waiting for the candle to close.
• Intrabar Tick Execution: The parameter calc_on_every_tick=true was added to the strategy() declaration. This forces the entire script to re-evaluate its logic on every single price update (tick), enabling immediate action.
• Real-Time PnL Tracking: The PnL calculation was updated to track the total_daily_pnl by summing the realized profit/loss (from closed trades) and the unrealized profit/loss (strategy.openprofit) on every tick.
• Immediate Closure: The script now checks the total_daily_pnl against the user-defined limits (daily_take_profit_value, daily_stop_loss_value) and immediately executes strategy.close_all() the moment the threshold is breached, preventing further trading.
• Combined Risk Enforcement: The user-defined "Max Intraday Risk ($)" and the "Daily Stop Loss (Value)" are compared, and the script enforces the tighter of the two limits.
2. Visibility and External Alerting
To address the unavoidable issue of slippage (which causes price overshoot in fast markets even with tick execution), dedicated alert mechanisms were added.
• Dedicated Alert Condition: An alertcondition named DAILY PNL LIMIT REACHED was added. This allows you to set up a TradingView alert that triggers the instant the daily_limit_reached variable turns true, giving you the fastest possible notification.
• Visual Marker: A large red triangle (\u25b2) is plotted on the chart using plotchar at the exact moment the daily limit condition is met, providing a clear visual confirmation of the trigger bar.
3. Strategy Features and Input Flexibility
Several user-requested features were integrated to make the strategy more robust and customizable.
• Trailing Stop / Breakeven (TSL/BE): A new exit option, Fixed Ticks + TSL, was added, allowing you to set a fixed profit target while also deploying a trailing stop or breakeven level based on points/ticks gained.
• Multiple Exit Types: The exit strategy was expanded to include logic for several types: Fixed Ticks, ATR-based, Capped ATR-based, VWAP Cross, and Price/Band Crosses.
• Pyramiding Control: An input Max Pyramiding Entries was introduced to control how many positions the strategy can have open at the same time.
• Confirmation Logic Toggle: Added an input to choose how multiple confirmation indicators (RSI, SMMA, MACD) are combined: "AND" (all must be true) or "OR" (at least one must be true).
• Indicator Confirmations: Logic for three external indicators—RSI, SMMA (EMA), and MACD—was fully integrated to act as optional filters for entry.
• VWAP Reset Anchors: Logic was corrected to properly reset the VWAP calculation based on the selected period ("Daily", "Weekly", or "Session") by using Pine Script v6's required anchor series.
Trading Day Filters: Inputs were added to select which specific days of the week the strategy is allowed to trade.






















