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.
Chỉ báo và chiến lược
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.
Vandan V2Vandan V2 is an automated trend-following strategy for NASDAQ E-mini Futures (NQ1!).
It uses multi-timeframe momentum and volatility filters to identify high-probability entries.
Includes dynamic risk management and trailing logic optimized for intraday trading.
Aurora Vigor 2.2 — Night Vision Edition🧠 Aurora Vigor 2.2 — Night Vision Edition ⚡
Aurora Vigor is a precision-engineered intra-day trading strategy built for futures and prop-firm evaluations.
It blends adaptive moving averages, volatility-adjusted risk control, and session-based logic to capture structured micro-trend moves with disciplined execution.
⚙️ Core Concepts
Dual adaptive moving-average framework (KAMA + EMA) identifies short-term trend alignment.
ATR-based dynamic stop and position sizing maintain consistent risk per trade.
Smart breakeven and progressive trailing secure profit automatically.
Session lock (8 AM–4 PM ET) filters out low-liquidity periods.
Daily profit/loss guardrails stop new entries beyond preset limits.
📊 Recommended Settings
Timeframe : 1 – 5 minutes
Markets : NQ | ES | MNQ | MES | MGC | MCL
Risk per trade : $10 (default)
ATR Multiplier : 0.5
Take Profit : 12 ticks
🌫️ Visual Design
The Aurora Cloud dynamically shifts brightness with volatility—subtle in chop, vivid in momentum—creating a professional, low-glare “night-vision” chart aesthetic.
⚠️ Disclaimer
For educational and research purposes only.
No guarantee of profit or future performance. Always test thoroughly before live use.
Author’s Note: Built for disciplined traders who value structure, consistency, and precision in execution.
ORBSMMAATRVOLREENTRY2Contracts📈 Opening Range Fibonacci Breakout (TradingView Strategy)
Overview:
The Opening Range Fibonacci Breakout strategy is designed to capture high-probability intraday moves by combining the power of the 15-minute opening range, trend confirmation via SMMA, and volume-based momentum filtering.
At the start of each trading session, the script automatically plots the Opening Range Box based on the first 15 minutes of price action — highlighting key intraday support and resistance levels.
How It Works:
Opening Range Setup
The first 15 minutes of the session define the range high and low.
A visual box marks this zone on the chart for easy reference.
Signal Generation
A Smoothed Moving Average (SMMA) with a user-defined period determines overall trend bias.
Candle volume is analyzed to confirm momentum strength.
Long Signal: Price breaks above the opening range high, SMMA trending up, and volume supports the move.
Short Signal: Price breaks below the opening range low, SMMA trending down, and volume supports the move.
Take Profit & Targets
Fibonacci extension levels are automatically plotted from the opening range.
These dynamic levels serve as structured Take Profit (TP) zones for partial or full exits.
Features:
✅ 15-Minute Opening Range Box
✅ Adjustable SMMA period
✅ Volume-based confirmation filter
✅ Automatic Fibonacci profit targets
✅ Visual Long/Short alerts & signals
Ideal For:
Scalpers and intraday traders who rely on early-session momentum, breakout confirmation, and precision exit targets.
Backtested for MNQ/NQ futures trading
BH BTC LS Atopetrader Bitcoin 15M Advanced Trading Strategy
This strategy is designed to trade Bitcoin on the 15-minute timeframe for long and short positions. It uses an advanced system adapted to price action, combined with automated risk management through stop loss and take profit. It is optimized to adapt to the high volatility and speculative nature of BTC, seeking out trend-driven momentum opportunities and avoiding low-probability periods detected through historical analysis.
Timeframe Compatibility
While the strategy is specifically adapted and optimized for the 15-minute timeframe (15M), it has been engineered to perform across multiple timeframes ranging from 5-minute to 4-hour intervals. This multi-timeframe versatility allows traders to adjust the strategy parameters according to their preferred trading style and market conditions.
This adaptability across different timeframes significantly enhances the strategy's robustness, making it more resilient to varying market regimes and reducing over-optimization to a single timeframe. By testing and validating across 5-minute to 4-hour intervals, the strategy demonstrates consistent edge across diverse trading environments, which strengthens confidence in its performance across broader market conditions.
Cross-Asset Testing
Beyond Bitcoin, this strategy could be tested and adapted for trading other cryptocurrencies, making it a flexible framework for exploring momentum-based opportunities across different digital assets with varying volatility profiles.
Performance Summary
This strategy has significantly outperformed a simple buy-and-hold approach over the 6-year backtest period. Here are the standout metrics:
Total P&L: +$41,277.80 USDT (+2,063.89%)
Net Profit: +$41,277.80 USDT with only 18.35% max drawdown
Total Trades: 2,169 with 44.63% win rate
Profit Factor: 2.17x (strong edge)
Key Advantage Over Buy & Hold
The Buy & Hold return was +$16,576.63 USDT (+828.83%), meaning this strategy more than doubled Buy & Hold returns over the same period. The active trading approach consistently captured momentum while the 2.17x profit factor demonstrates edge-based entries.
Commission Structure: A 0.1% commission per trade has been factored into the backtesting analysis, which is more than sufficient to cover typical exchange trading fees on major platforms. This conservative fee structure ensures the reported results account for real-world trading costs while still demonstrating substantial profitability.
Important Disclaimer
This strategy does not guarantee future profits and should be used after testing and analyzing in a simulated environment. A disciplined approach and appropriate risk management are recommended for the cryptocurrency market. Past performance is not indicative of future results, and actual trading may differ from backtested scenarios due to market slippage, liquidity conditions, and changing market dynamics.
Gold H1 Breakout Failure (V11.0)This strategy is designed for trading XAU/USD (Gold) on the 1-hour timeframe. It identifies and trades fake breakouts of the Asian session range.
The logic is simple yet effective:
The script first marks the Asian session high and low.
Once price breaks out of this range and closes outside, it waits for confirmation by watching for price to close back inside the range.
When this re-entry occurs, the strategy takes a position in the opposite direction of the initial breakout, anticipating a false breakout or liquidity trap setup.
By focusing on these fakeouts, the strategy aims to capture reversal momentum after liquidity sweeps, making it especially effective during sessions when volatility transitions from Asia to London or New York.
XAUUSD 9-Grid Scalper (9-levels, 3pt TP)📈 Overview
The XAUUSD 9-Grid Scalper is a precision-based intraday strategy designed for gold scalping around key 9-based price zones. Gold (XAUUSD) often reacts strongly to levels that are multiples of 9, and this script builds a dynamic grid of 18 levels around the current price to capture short-term momentum moves.
This strategy uses 9-point take profits (TP) and configurable stop-loss levels, allowing for fast in-and-out scalps within volatile gold sessions. It’s optimized for short-term traders who focus on 1M–5M charts.
⚙️ Core Logic
Dynamic 9-Multiples Grid: Automatically plots 18 nearby levels spaced by multiples of 9.
Entry Signals:
Long when price breaks above a 9-level.
Short when price breaks below a 9-level.
Take Profit: Fixed at 9 points (configurable).
Stop Loss: Adjustable for flexible risk management.
Backtest-Ready: Uses strategy() for full performance analytics (win rate, profit factor, drawdown).
💡 Best Use Cases
Ideal for gold scalpers during London and New York sessions.
Works best on 1M–5M timeframes with high volatility.
Combine with volume or trend filters (e.g., RSI, MA slope) for improved accuracy.
🧠 Customization Options
Number of grid levels (default: 18)
Take profit & stop loss distance (default: 9pt TP)
Display toggle for 9-grid visualization
Optional filters for session time or volatility
⚠️ Disclaimer
This strategy is for educational and research purposes only.
Past performance does not guarantee future results. Always test on demo before trading live.
PriceAction & Economic StrategyThis indicator combines price-action logic with macroeconomic data to generate trading signals.
Features:
- Price-action signals: A bullish signal occurs when a candle closes above its open; a bearish signal occurs when a candle closes below its open.
- Signal gap: The indicator includes an input called "Signal Gap (bars)" that defines the minimum number of bars between signals. By default the gap is set to 3, but you can adjust this between 1 and 10 to control signal frequency.
- Alerts: The script defines alert conditions for long and short signals, allowing you to create TradingView alerts that notify you when a new signal occurs.
- Economic data: The script uses TradingView's built-in `request.economic()` function to request U.S. GDP data. The GDP series is plotted in the Data Window for additional macroeconomic context.
How to use:
1. Add the indicator to a chart.
2. Open the indicator's settings and adjust the "Signal Gap (bars)" input to set the minimum bar gap between signals.
3. Look for green triangles plotted below the bars (bullish signals) and red triangles plotted above the bars (bearish signals). These appear only when the gap criterion is met.
4. If you want alerts, click the Alert button in TradingView, select this indicator, and choose either the Long or Short alert conditions.
5. To view the GDP data, open the Data Window; the GDP value will be shown alongside other series for each bar.
6. Use these signals in combination with your own analysis; this indicator is for educational purposes and does not constitute financial advice.
【MasterHSC】CCI Mean Derivative Smart Strategy🧾 Strategy Description (English)
CCI Mean Slope Smart Strategy
This strategy is built on the derivative slope behavior of the Commodity Channel Index (CCI) mean line.
It identifies key turning points or trend continuations based on how the smoothed CCI (mean value) changes direction after reaching overbought or oversold zones.
Core Idea:
When the CCI mean reverses slope after exceeding ±100, it signals a potential mean reversion (range-trading opportunity).
When the CCI mean remains above +100 or below −100 with a consistent slope, it indicates a strong trending phase (momentum continuation).
The strategy dynamically adapts between these two behaviors depending on market conditions.
Modes:
🌀 Range Reversal Mode — Focuses on slope reversals after overbought/oversold conditions.
🚀 Trend Following Mode — Captures strong momentum when the CCI mean stays extended.
🧠 Auto Mode — Automatically switches between Range and Trend logic based on CCI mean volatility.
Key Features:
Dual-direction toggle: Enable or disable long/short entries independently.
Adjustable tolerance: Choose fixed or dynamic thresholds for flexibility.
Automatic mode label and visual buy/sell markers on the chart.
Pure CCI-based system — no external filters or indicators required.
Purpose:
This system is designed to reduce false signals in sideways markets while preventing missed opportunities during strong directional trends, offering a clean balance between precision and adaptability.
RSI potente 2.0rsi mas refinado e indicadores correctos a corto ,mediano y largo plazo .. el mejor indicador






















