ORB Breakout Strategy w/ Filters - Dynamic Sizing - MTFHere is a comprehensive description of the strategy, written in a clear and structured format. You can use this for your script's "how-to-use" guide or documentation.
---
## 📈 Opening Range Breakout (ORB) Strategy
This is a comprehensive, multi-timeframe strategy built for trading opening range breakouts. It is designed with a "filters-first" approach, allowing you to validate a breakout with trend, volume, and volatility.
The strategy's core power comes from its flexibility. You can trade on a low timeframe (like a 1-minute chart) while basing your breakout levels on a higher timeframe's opening bar (e.g., the first 15-minute bar). It includes dynamic position sizing based on risk and a wide array of advanced exit management options.
### Key Features
* **Multi-Timeframe Opening Range:** The core of the strategy. You can define the "Opening Range" timeframe (5, 10, 15, 30, or 60 min) *independently* of your chart timeframe.
* **Custom Trading Session:** Define the exact session (e.g., "0930-1600" in "America/New_York") you want to trade.
* **One Trade Per Session:** The strategy will only take the *first valid breakout* signal per day to avoid over-trading.
---
### 🚦 Entry Signals & Filters
A trade is only initiated when the price closes above the Session High or below the Session Low **AND** all active filters are passed.
* **Trend Filter:** (Optional) Requires price to be above a long-term MA (e.g., 100 EMA) for long trades and below it for short trades.
* **Volume Filter:** (Optional) Requires the breakout bar's volume to be a specified multiplier (e.g., 1.5x) of the recent average volume.
* **Volatility Filter:** (Optional) Requires the current ATR to be higher than its long-term average, ensuring you only trade during periods of expanding volatility.
* **Direction Filter:** Allows you to isolate the strategy to **Long Only**, **Short Only**, or **Both**.
---
### 💰 Dynamic Position Sizing
The strategy includes a robust "Risk %" sizing model.
* **Risk-Based Sizing:** Instead of fixed contracts, it calculates the position size based on your **Account Size**, **Risk % per Trade**, and the **Stop Loss distance**.
* **Auto-Detect Point Value:** It automatically detects the correct point value for popular futures contracts (ES, NQ, MES, MNQ) and provides a manual override for other assets.
---
### 📤 Exit & Risk Management
This strategy features a multi-layered exit system, giving you complete control over how trades are managed.
#### 1. Stop Loss (SL)
Your initial stop loss can be calculated using a fixed **Tick** offset or an **ATR** multiplier. It can be anchored from two different points:
* **Breakout Level:** The stop is placed relative to the `sessionHigh` or `sessionLow` level.
* **Entry Bar:** The stop is placed relative to the high/low of the bar that *triggered* the entry.
#### 2. Take Profit (TP)
A standard Take Profit can be set using a fixed **Tick** offset or an **ATR** multiplier.
#### 3. Advanced Exit Logic
These options override the standard Take Profit to allow for more dynamic trade management:
* **Trailing Take Profit (TTP):**
* **Fixed/ATR Trail:** A standard trailing stop that activates after price moves a certain amount in your favor.
* **MA Price Cross:** Exits the trade as soon as the price closes across a fast-moving average (e.g., 9-EMA).
* **MA Crossover:** Exits the trade as soon as a fast MA crosses below a slow MA (for longs) or above (for shorts).
* **Close on Reversal:** (Optional) Exits immediately if the **very next bar** after entry closes back *inside* the opening range (a "failed breakout" signal).
* **Close on Opposite Range Cross:** (Optional) Exits a long trade if the price ever closes below the `sessionLow` (and vice-versa for shorts).
* **End of Session Exit:** All open positions are automatically closed at the end of the defined trading session.
Indicators and strategies
Dynamic Momentum Scalper | Gold & Volatility Strategy V1.0This is a high-frequency trading strategy optimized for volatile instruments, specifically XAUUSD (Gold). It utilizes a proprietary blend of momentum, volume, and volatility metrics to identify minor market reversal points and trend exhaustion.
The system employs a sophisticated, dynamic stop-loss mechanism based on Average True Range (ATR) to adjust risk automatically to current market conditions. It manages trades via a two-tiered Take-Profit system to secure partial profits quickly and let the remaining position run to a secondary target, effectively locking in gains and achieving an optimal risk-reward balance.
Best suited for the 1-Minute (M1) timeframe.
Visibility: Invite-Only Script.
5-min Strat Strategy V2 (With Stop Loss)README: 5-min Strat Strategy V2 – $7,500 Stop Loss Version
✅ Description
This is a rules-based intraday trading strategy developed for use on futures contracts like MNQ (Micro Nasdaq) or MES (Micro S&P). It focuses on momentum-based breakout entries above pre-market highs, during regular trading hours, and uses EMAs to define trend alignment.
⚙️ Strategy Components
✅ Trade Type
Long-Only strategy
Entry and exit based on EMAs, price position, and time windows
✅ Time Frame
Built for 5-minute charts
✅ Symbols
Optimized for MNQ (Micro Nasdaq Futures)
Works on MES or other U.S. index futures with similar structure
📅 Time Windows
Pre-Market Hours (PMH/PML): 04:00 – 09:30 AM EST
Regular Trading Hours (RTH): 09:30 AM – 4:00 PM EST
Auto Exit Time: 4:59 PM EST (to comply with prop firm rules)
📌 Entry Conditions (Long)
48 EMA > 200 EMA (Bullish alignment)
Price > Locked Pre-Market High
Green Candle (close > open)
During RTH (9:30–16:00 EST)
Cooldown: Must wait 4 candles after last entry
Max Trades per Day: 3
💥 Exit Conditions
Primary Exit: Close below the 48 EMA
Max Loss Exit: Stop loss set to $7,500 per trade
EOD Exit: All positions are closed at 4:59 PM EST
💰 Risk Management
Contracts: 6 Micro contracts per trade
Stop Loss: Dynamic point-based SL calculated based on:
MNQ point value = $20/point per contract
30 contracts = $120/point
Max SL points = $7,500 / $120 = 62.5 points
📊 Key Variables for Logging
Parameter Value
Max Stop Loss $7,500
Position Size 30 Micro Contracts - ***Varies depending on account size***
Cooldown Bars 4 (20 min)
Max Daily Trades 3
Strategy Version V2 – $7.5K SL
BB SPY Mean Reversion Investment StrategySummary
Mean reversion first, continuation second. This strategy targets equities and ETFs on daily timeframes. It waits for price to revert from a Bollinger location with candle and EMA agreement, then manages risk with ATR based exits. Uniqueness comes from two elements working together. One, an adaptive band multiplier driven by volatility of volatility that expands or contracts the envelope as conditions change. Two, a bias memory that re arms the same direction after any stop, target, or time exit until a true opposite signal appears. Add it to a clean chart, use the markers and levels, and select on bar close for conservative alerts. Shapes can move while the bar is open and settle on close.
Scope and intent
• Markets. Currently adapted for SPY, needs to be optimized for other assets
• Timeframes. Daily primary. Other frames are possible but not the default
• Default demo. SPY on daily
• Purpose. Trade mean reversion entries that can chain into a longer swing by splitting holds into ATR or time segments
Originality and usefulness
• Novelty. Adaptive band width from volatility of volatility plus a persistent bias array that keeps the original direction alive across sequential entries until an opposite setup is confirmed
• Failure modes mitigated. False starts in chop are reduced by candle color and EMA location. Missed continuation after a take profit or stop is addressed by the re arm engine. Oversized envelopes during quiet regimes are avoided by the adaptive multiplier
• Testability. Every module has Inputs and visible levels so users can see why a suggestion appears
• Portable yardstick. All risk and targets are expressed in ATR units
Method overview in plain language
The engine measures where price sits relative to Bollinger bands, confirms with candle color and EMA location, requires ADX for shorts(in our case long close since we use it currently as long only), and optionally requires a trend or mean reversion regime using band width percent rank and basis slope. Risk uses ATR for stop, target, and optional breakeven. A small array stores the last confirmed direction. While flat, the engine keeps a pending order in that direction. The array flips only when a true opposite setup appears.
Base measures
• Range basis. True Range smoothed over a user defined ATR Length
• Return basis. Not required
Components
• Bollinger envelope. SMA length and standard deviation multiplier. Entry is based on cross of close through the band with location bias
• Candle and EMA filter. Close relative to open and close relative to EMA align direction
• ADX gate for shorts. Requires minimum trend strength for short trades
• Adaptive multiplier. Band width scales using volatility of volatility so envelopes breathe with conditions
• Regime gate optional. Band width percent rank and basis slope identify trend or mean reversion regimes
• Risk manager. ATR stop, ATR target, optional breakeven, optional time exit
• Bias memory. Array stores last confirmed direction and re arms entries while flat
Fusion rule
Minimum satisfied gates count style. All required gates must be true. Optional gates are controlled in Inputs. Bias memory never overrides an opposite confirmed setup.
Signal rule
• Long setup when close crosses up through the lower band, the bar closes green, and close is above the long EMA
• Short setup when close crosses down through the upper band, the bar closes red, close is below the short EMA, and ADX is above the minimum
• While flat the model keeps a pending order in the stored direction until a true opposite setup appears
• IN LONG or IN SHORT describes states between entry and exit
What you will see on the chart
• Markers for Long and Short setups
• Exit markers from ATR or time rules
• Reference levels for entry, stop, and target
• Bollinger bands and optional adaptive bands
Inputs with guidance
Setup
• Signal timeframe. Uses the chart timeframe
• Invert direction optional. Flips long and short
Logic
• BB Length. Typical 10 to 50. Higher smooths more
• BB Mult. Typical 1.0 to 2.5. Higher widens entries
• EMA Length long. Typical 10 to 50
• EMA Length short. Typical 5 to 30
• ADX Minimum for short. Typical 15 to 35
Filters
• Regime Type. none or trend or mean reversion
• Rank Lookback. Typical 100 to 300
• Basis Slope Length and Threshold. Larger values reduce false trends
Risk
• ATR Length. Typical 10 to 21
• ATR Stop Mult. Typical 1.0 to 3.0
• ATR Take Profit Mult. Typical 2.0 to 5.0
• Breakeven Trigger R. Move stop to entry after the chosen multiple
• Time Exit. Minimum bars and extension when profit exceeds a fraction of ATR
Bias and rearm
• Bias flips kept. Array depth
• Keep rearm when flat. Maintain a pending order while flat
UI
• Show markers and levels. Clean defaults
Usage recipes
Alerts update in real time and can change while the bar forms. Select on bar close for conservative workflows.
Properties visible in this publication
• Initial capital 25000
• Base currency USD
• If any higher timeframe calls are enabled, request.security uses lookahead off
• Commission 0.03 percent
• Slippage 3 ticks
• Default order size method Percent of equity with value 5
• Pyramiding 0
• Process orders on close On
• Bar magnifier Off
• Recalculate after order is filled Off
• Calc on every tick Off
Realism and responsible publication
No performance claims. Costs and fills vary by venue. Shapes can move intrabar and settle on close. Strategies use standard candles only.
Honest limitations and failure modes
High impact releases and thin liquidity can break assumptions. Gap heavy symbols may require larger ATR. Very quiet regimes can reduce contrast in the mean reversion signal. If stop and target can both be touched inside one bar, outcome follows the TradingView order model for that bar path.
Regimes with extreme one sided trend and very low volatility can reduce mean reversion edges. Results vary by symbol and venue. Past results never guarantee future outcomes.
Open source reuse and credits
None.
Backtest realism
Costs are realistic for liquid equities. Sizing does not exceed five percent per trade by default. Any departure should be justified by the user.
If you got any questions please le me know
RSI Mean-Reversion StrategyLong entry when RSI ≤ 30; exit at RSI ≥ 70. 100% equity per trade, 0.1% commission + 1 tick slippage. Optional 2% stop-loss. Visual buy/sell signals, dynamic SL line, and background highlight on oversold zones. Clean, backtest-ready Pine Script v5. Everything is easily adjustable to suit your liking.
PDHL Breakout SMA50 By Ajit TiwariThis indicator help you to find buy sell from previous day high low basis
FVG Strategy with One Trade Per Hour and Tick-based TP/SLThis strategy hunts for Fair Value Gaps (FVGs)—three-bar displacement gaps that mark imbalances where price moved so fast it left a “void.” It detects bullish (green) and bearish (red) FVGs on the chart timeframe or a higher timeframe you choose via the Timeframe input. Each detected zone is stored and optionally drawn as a box (static or “dynamic” that tightens with price). A simple threshold lets you filter out tiny gaps: either set a fixed percent (Threshold %) or let the script estimate it automatically. As price trades later, the engine watches for interaction with any stored zone.
Entries are taken on a touch/retest of the zone: buy when price intersects a green (bullish) FVG; short when it intersects a red (bearish) FVG. Risk management is manual and straightforward—your stop loss and take profit are set in ticks, placed off the signal bar’s close. To avoid over-trading, there’s a cap of one trade per hour (it resets when the clock hour changes). In short, it’s an intraday “gap fill / bounce” system: identify an imbalance, wait for price to revisit it, and take a directional trade with fixed tick targets and stops.
ULTIMATE COAIUSDT AUTOMATED STRATEGY# ULTIMATE COAIUSDT AUTOMATED STRATEGY
## 🚀 OVERVIEW
High-performance automated trading strategy for COAIUSDT.P perpetual contract achieving 5,962% returns in one month with 68.58% win rate across 611 trades.
## 📊 PERFORMANCE METRICS
• Net Profit: +5,962.87%
• Total Trades: 611
• Win Rate: 68.58% (419 wins)
• Profit Factor: 6.41
• Max Drawdown: -6.11%
• Timeframe: 5 minutes
• Backtest Period: Oct 2 - Nov 7, 2025
## 🎯 CORE TRADING LOGIC
Primary Indicator: ALMA (Arnaud Legoux Moving Average)
• Dual ALMA crossovers for precise entry signals
• Optimized parameters: Offset 0.85, Sigma 5, Period 2
• Reduces lag while maintaining signal accuracy
Multi-Timeframe Confirmation:
• HTF Filter: 15-minute timeframe validation
• HTF Multiplier: 8x for trend confirmation
• Eliminates false signals by requiring 5m + 15m alignment
Entry Signals:
• LONG: Fast ALMA crosses above slow ALMA (both timeframes)
• SHORT: Fast ALMA crosses below slow ALMA (both timeframes)
• EXIT: Opposite crossover triggers position close
## 💰 RISK MANAGEMENT
Take Profit: 13.5%
• Dynamically calculated from entry price
• Automatically locked when target reached
Stop Loss: 2.8%
• Tight stop to protect capital
• Optimized through extensive backtesting
Position Sizing:
• Pyramiding: Up to 12 positions
• Trade size: 20% of equity per trade
• Commission: 0.04% included in calculations
## 🤖 AUTOMATION FEATURES
Built-in Alert System:
• Webhook-ready
• Real-time signal transmission
• Pipe-delimited format for easy parsing
Alert Types:
• BUY: BUY|COAIUSDT.P|price=X|tp=Y|sl=Z
• SELL: SELL|COAIUSDT.P|price=X|tp=Y|sl=Z
• CLOSE LONG: CLOSE|COAIUSDT.P|side=LONG
• CLOSE SHORT: CLOSE|COAIUSDT.P|side=SHORT
## 📈 STRATEGY STRENGTHS
1. High Win Rate: 68.58% consistent edge
2. Excellent Profit Factor: 6.41 (profits 6.4x larger than losses)
3. Low Drawdown: Only -6.11% despite massive returns
4. Active Trading: 611 opportunities in 1 month
5. Automation Ready: Built-in webhook alerts
6. Optimized Risk/Reward: 4.8:1 ratio (13.5% TP / 2.8% SL)
## 🎨 VISUAL SIGNALS
• Green triangle + "BUY" label for long entries
• Red triangle + "SELL" label for short entries
• Clear exit markers for position closes
• Minimal chart clutter
## ⚠️ IMPORTANT DISCLAIMERS
• Strategy optimized specifically for COAIUSDT.P on 5-minute timeframe
• Past performance (5,962% returns) does not guarantee future results
• Use proper position sizing - never risk more than you can afford to lose
• Monitor strategy regularly, especially during high-impact news events
• Backtested results may differ from live trading due to slippage and execution
## 🔧 BEST PRACTICES
• Start with paper trading to verify signals
• Use stop-loss protection at all times
• Monitor drawdown levels regularly
• Adjust position size based on account risk tolerance
• Consider market conditions and volatility
The ULTIMATE COAIUSDT AUTOMATED STRATEGY combines sophisticated technical analysis with robust risk management and full automation capabilities - designed to capture consistent profits from COAI's price movements while maintaining strict capital protection.
1-Min Binary Strategy (EMA + RSI + BB Optimized)creat signal for binary trading using ema rsi ans bolinger band combination
Super Frog Power - Cluster Flip %Super Frog Power - Cluster Flip %
🔄 Trade Smarter, Not Harder: Let the Cluster Decide
Welcome to the "Super Frog Power - Cluster Flip %" strategy, a sophisticated multi-system confluence engine designed to filter out market noise and pinpoint high-probability trade setups. This isn't just another indicator; it's a comprehensive trading system that aggregates signals from eight distinct technical methodologies, waiting for them to align into a powerful "cluster" before you enter a trade.
🎯 Core Philosophy: The Power of Confluence
A single indicator can give false signals. A cluster of indicators from uncorrelated systems agreeing on a direction is a much stronger signal. This strategy continuously monitors multiple independent systems and only executes a trade when a significant number of them flip to a consensus, dramatically increasing the likelihood of a successful move.
✨ The 8 Systems of Super Frog Power
This strategy synthesizes signals from the following powerful components:
Bollinger Bands®: Identifies overbought and oversold conditions relative to recent volatility.
CMI (Cluster Momentum Index) System: A unique multi-period momentum oscillator that identifies convergence and breakout moments with custom "Lion" (SELL) and "Car" (BUY) signals.
SMI (Stochastic Momentum Index) System: A refined momentum indicator that generates "Mouse" (BUY) signals and combines with CMI for "Green Angel" and "Red Devil" super signals.
Lucky Balls (NVI/PVI): Utilizes Negative and Positive Volume Index to gauge smart money flow and identify accumulation/distribution zones.
Momentum System: A triple-threat combo of RSI, CCI, and PPO, scaled and combined to generate robust momentum-based entries and exits.
Lucky Table (Oscillator Overload): Counts the number of key oscillators (SMI, RSI, CCI) in overbought or oversold territory, triggering a signal when a threshold is met.
Apples & Pairs System: A complex system analyzing price swings, accumulation, mass index, and doji patterns with fun, emoji-based signals like "Apple Cross Up" 🍎 and "Pig Cross Down" 🐖.
ZBT (Zonal Breakout Trend) System: A multi-timeframe trend-following system using dynamic EMA channels and an ATR-based trailing stop to identify the primary trend and robust breakout points.
⚙️ How It Works: The Cluster Flip Logic
The magic happens in the signal aggregation. The strategy counts every single BUY and SELL signal from all active systems.
A "Strong Buy" is triggered when 6 or more independent BUY signals occur simultaneously.
A "Strong Sell" is triggered when 5 or more independent SELL signals occur simultaneously.
This "cluster flip" mechanism ensures you are only trading when there is broad-based technical agreement, keeping you out of choppy and uncertain market conditions.
🛡️ Integrated Risk Management
We believe a strategy is nothing without proper risk management. This system comes with built-in, percentage-based order management:
User-Defined Profit Target (%): Lock in profits automatically at your specified percentage gain.
User-Defined Stop Loss (%): Protect your capital with a hard stop loss.
Position Sizing: Control your risk per trade with a customizable position size.
Trades are also managed logically: a new strong signal in the opposite direction will automatically close any existing position, ensuring you're always on the right side of the cluster's consensus.
🎨 Visual Features & Customization
Fully Customizable: Don't like one system? Turn it off! Every system can be toggled on/off from the inputs.
Clear Visuals: Each system is plotted in a distinct color, making the chart a rich source of information without being cluttered.
Signal Markers: Strong Buy and Strong Sell clusters are clearly marked with large circles below and above the bars.
Alert Ready: Built-in alerts for Strong Buy and Strong Sell signals so you never miss a cluster setup.
🚀 How to Use
Add the script to your chart (1H, 4H, or Daily timeframes are recommended for swing trading).
Adjust the inputs to your liking, especially the Profit Target %, Stop Loss %, and Position Size under the "Strategy Parameters" section.
Observe the clusters. Wait for the "Strong Buy" or "Strong Sell" circle to appear.
Enter the trade. The strategy will automatically plot the profit target and stop loss levels on the chart for your reference.
Manage your trade. Let the logic handle the exits, or use your own discretion.
💡 Ideal For
Swing Traders looking for high-confidence set-and-forget setups.
Technical Analysts who appreciate the depth of multi-system confluence.
Traders who want to avoid the paralysis of analyzing too many indicators separately.
Unleash the power of cluster trading. Add the "Super Frog Power - Cluster Flip %" to your chart today!
INTRA DAY BEAST The Intraday Beast doesn’t follow trends… it detects them before they roar.
It watches the market’s rhythm, waits in silence, and strikes only when the odds are loaded in its favor.
This isn’t your average flashy indicator — it doesn’t bark at every candle.
When it moves, it means business.
Each signal is a calculated attack — clean, disciplined, and deadly precise.
But listen carefully…
⚠️ The Beast hates boredom.
If your stock has no volume, no volatility, no life — it won’t even wake up.
Feed it only the hottest stocks, the wildest moves, and the loudest markets.
Then, and only then, you’ll see what this creature can do.
💬 Trade smart. Stay patient. Wait for chaos — then let the Beast strike.
Momentum Swing 1–3 Weeks
✅ Entry (LONG) Conditions
Price above EMA9 and SMA20
SMA20 > SMA50 (trend confirmation)
MACD above the signal line
RSI between 50–65 (healthy momentum)
Volume at least 20% above the 20-day average
When all conditions align, a LONG signal is generated.
✅ Exit (SELL) Conditions
Price closes below EMA9
MACD gives a bearish crossover
Or TP/SL levels are hit
Position is closed.
✅ Multi-Stage Take Profit
TP1: ATR × 1.5 → closes 50% of the position
TP2: ATR × 3.0 → closes remaining 50%
✅ Stop Loss
ATR × 1.5 dynamic SL
✅ What This Strategy Aims For
Catching early trend continuation signals
Filtering weak / low-volume breakouts
Exiting when momentum fades
Eliminating emotional decision-making through rules
📌 Note
Backtest performance may vary by symbol and volatility. Proper risk management is strongly recommended.
Candlestick Combo Strategy - [CLEVER]📊 Strategy Name:
Candlestick Combo Strategy –
🧠 Purpose
This strategy is built to identify high-probability reversal or continuation setups based on a combination of classic Japanese candlestick patterns filtered through a trend indicator (50-period SMA) and volatility measure (ATR).
It automatically executes long or short trades when multiple conditions align — giving traders a rules-based, mechanical approach to using price action patterns.
⚙️ Core Components Explained
1. Trend & Volatility Filters
50-period SMA (Simple Moving Average):
Defines market direction.
If price > SMA → Uptrend (only long signals considered).
If price < SMA → Downtrend (only short signals considered).
ATR (Average True Range):
Used to measure volatility and define the size of candlestick patterns.
Helps distinguish strong candles from normal noise.
Also used to calculate stop-loss and target levels dynamically.
2. Candlestick Patterns Detected
The script detects 8 classical patterns, some bullish (for long entries) and some bearish (for short entries).
Each pattern has specific rules based on candle bodies, wicks, and relative positioning.
🟩 Bullish (Long) Patterns
Pattern Description
Mat Hold Strong bullish continuation: a long green candle, small consolidation, then another bullish breakout.
Tower Bottom Reversal setup: large bearish candle, several small neutral candles (base), followed by a large bullish candle.
Rising Window Gap-up pattern signaling bullish strength and momentum continuation.
Bullish Marubozu Full-body bullish candle with little to no wicks — represents aggressive buying pressure.
🟥 Bearish (Short) Patterns
Pattern Description
Matching High Two strong bullish candles with nearly identical highs — signals exhaustion and potential reversal.
Falling Window Gap-down continuation pattern — confirms bearish momentum.
Bearish Marubozu Full-body bearish candle with minimal wicks — represents strong selling pressure.
Long-Legged Doji High indecision after an uptrend — potential reversal warning when confirmed by trend filter.
3. Trade Signal Logic
Long Signal:
Generated when the market is in an uptrend and one of the bullish patterns forms.
Short Signal:
Generated when the market is in a downtrend and one of the bearish patterns appears.
This ensures that signals align with the overall market structure and aren’t triggered in the opposite direction of momentum.
4. Risk Management & Trade Execution
Each trade is managed with automatic stop-loss (SL) and take-profit (TP) levels based on recent price swings and risk-to-reward ratio.
Stop-Loss (SL):
For long trades → lowest low of the last 10 bars.
For short trades → highest high of the last 10 bars.
Target (TP):
Based on user-defined risk:reward ratio (RR), default is 2:1.
ATR Multiplier:
Ensures only strong patterns (larger than average candle size) trigger trades.
Trade Limiter:
The strategy includes maxOpenTrades, which restricts how many trades can be open at once (default = 1), preventing overexposure.
5. Visual Signals
Green Triangles (▲) → Long entry signals appear below candles.
Red Triangles (▼) → Short entry signals appear above candles.
These markers visually represent where the strategy detects valid setups.
💡 Trading Logic Summary
Condition Requirement
Trend Based on 50-SMA (uptrend = long, downtrend = short)
Pattern Strength Verified using ATR for realistic volatility filtering
Entry Triggered only when both trend and pattern align
Exit Stop and target auto-calculated (Risk:Reward = configurable)
Trade Control Limits number of concurrent open positions
🧩 Best Use Cases
Timeframes: Works best on 1H, 4H, or daily charts.
Markets: Suitable for Forex, indices, and commodities.
Trading Style: Ideal for swing traders and technical analysts who prefer price action confirmation.
✅ Summary Table
Feature Description
Strategy Type Price Action + Candlestick Pattern Recognition
Trend Filter 50-SMA
Volatility Filter ATR-based
Patterns Used 8 classic bullish/bearish candlestick formations
Trade Management Auto SL/TP via recent swing levels
Customization Adjustable ATR, SMA, Risk:Reward, and max trades
Objective Identify high-probability reversal or continuation setups with disciplined risk control TVC:DXY OANDA:XAUUSD OANDA:AUDJPY CITYINDEX:GBPMXN CRYPTO:BTCUSD TVC:USOIL OANDA:USDCHF WHSELFINVEST:NOKJPY IBKR:SEKJPY
Sniper StrategyThe Sniper Strategy is a clean and data-driven RSI-based system designed for precision entries and exits.
It combines multi-timeframe RSI analysis, automated labeling, and dynamic P/L tracking — perfect for traders who want clarity, visual feedback, and strict risk control in one tool.
🧩 Core Features
Dual RSI Framework:
Calculates both the current timeframe RSI and a higher timeframe RSI to confirm trend strength and avoid false signals.
Smart Entry Logic:
Long signals when RSI drops below oversold level.
Short signals when RSI exceeds overbought level.
Automatic Exit Management:
Configurable Stop Loss and Take Profit percentages.
Optional RSI-based exit for flexible trade closures.
All exits are visually labeled for transparency.
Real-Time Profit Tracking:
Displays a floating label above each bar showing current P/L (%), updated live while the position is open — giving you instant insight into trade performance.
Clean Visual Design:
Uses arrows and colored labels for entry/exit clarity.
Optional RSI line and higher timeframe RSI plot included.
Alerts Ready:
Built-in alert conditions for both Long and Short signals — ideal for automation or notifications.
⚙️ Inputs & Customization
Adjustable RSI lengths for both timeframes.
Selectable RSI source (Close, HL2, etc.).
Configurable stop loss and take profit levels.
Customizable leverage and precision for P/L display.
Optional wick-based calculation for sensitivity tuning.
💡 How to Use
Apply the strategy on your preferred symbol and timeframe.
Adjust RSI and risk settings to match your trading style.
Optionally enable higher timeframe RSI confirmation.
Set alerts for “Long Entry Signal” and “Short Entry Signal.”
Backtest and fine-tune before going live.
⚠️ Disclaimer
This script is for educational and research purposes only.
It is not financial advice. Always backtest thoroughly and manage your risk before using it in live trading.
Tape + Volume Footprint + Heatmap Strategy (CLEVER)📊 Strategy Name:
Tape + Volume Footprint + Heatmap Strategy (CLEVER) OANDA:AUDJPY OANDA:XAUUSD CRYPTO:BTCUSD CITYINDEX:GBPMXN OANDA:EURUSD TVC:USOIL OANDA:USDCHF OANDA:USDCNH WHSELFINVEST:NOKJPY
🧠 Purpose
This strategy is a multi-factor trading system that combines trend analysis, volume footprint detection, and heatmap-based liquidity zones to identify high-probability trade entries.
It is designed to detect aggressive price movements backed by strong volume activity (footprints) and trade in the direction of the prevailing trend, while visualizing high-volume price zones via a heatmap on the chart.
⚙️ Core Components Explained
1. Inputs
Parameter Description
Trend MA Length Number of bars used for the moving average trend filter.
Volume MA Length Used to determine average trading volume.
Range MA Length Calculates the average candle range (high-low).
Volume Spike Multiplier Defines how much greater than average volume must be to flag a “spike.”
Range Spike Multiplier Defines how much greater than average candle size must be to flag a “range spike.”
Heatmap Bins Number of bins (levels) for the volume heatmap.
Lookback Bars How many bars to use for calculating volume distribution in the heatmap.
ATR Multipliers Used to calculate stop-loss (SL) and take-profit (TP) distances.
ATR Length Period for the Average True Range indicator.
2. Trend Calculation
maTrend = Simple moving average of the close price over trendLength.
If price > maTrend → Bullish trend
If price < maTrend → Bearish trend
This ensures trades follow the dominant direction of the market.
3. Footprint Bar Detection
The script identifies “footprint bars” — candles showing both high volume and wide range:
volSpike → Volume > average volume × volSpikeMul
rangeSpike → Candle range > average range × rangeSpikeMul
footprintBar = both conditions true
These bars indicate institutional activity or smart money engagement — potential trade catalysts.
4. Volume Heatmap System
This is a custom-built volume profile that divides the last lookbackBins bars into heatBins price zones.
Steps:
Determine Range:
Finds the highest and lowest prices over the last lookbackBins.
Divide Range:
Splits that range into equal “bins” (price intervals).
Assign Volume:
Adds each candle’s volume to the bin matching its close price.
Threshold Calculation:
Calculates the 80th percentile of bin volume — zones above this are marked as “hot zones.”
Color Mapping:
The background color becomes red (semi-transparent) when the current price is in a hot zone, helping visualize high-volume liquidity areas where price tends to react.
5. Entry Logic
The system only trades when a footprint bar appears in the direction of the trend:
Condition Description
Long Entry Price is above trend MA and a footprint bar appears.
Short Entry Price is below trend MA and a footprint bar appears.
These conditions confirm momentum + volume alignment.
6. Exit Logic (Risk Management)
Uses ATR-based stop-loss and take-profit to dynamically adjust to market volatility:
Stop Loss (SL) = close - ATR × SL multiplier
Take Profit (TP) = close + ATR × TP multiplier
The same logic is mirrored for short trades.
This ensures consistent risk-to-reward management based on volatility.
7. Visuals
Blue Line → Trend MA (helps identify direction).
Green Triangles (BUY) → Long entry signals.
Red Triangles (SELL) → Short entry signals.
Red Heatmap Background → Indicates high-volume “hot zones” where significant trading activity occurred.
💡 How to Use
Trade only in the direction of the trend (blue MA).
Enter on footprint bars that meet the criteria.
Be cautious in red heatmap zones — these areas often cause reversals or consolidations.
Adjust ATR multipliers to fit your preferred risk/reward ratio.
✅ Summary Table
Feature Description
Indicator Type Strategy (auto backtestable)
Core Logic Trend + Volume Spike + Range Spike + Heatmap
Entry Confirmation Footprint bar aligned with trend
Risk Management ATR-based Stop Loss & Take Profit
Visualization Trend MA, Buy/Sell Triangles, Volume Heatmap
Best Suited For Intraday / Swing traders using volume and price action confirmation
tradingview_momentum_Hull-Suite-W-FVSO-NO-WeekendMomentum no weekend trades. It uses FVZO and Hull suite.
This strategy has low win rate but successfully catches trends. Works well on ETH in High Time Frame multi-year.
4 EMA Crossover Strategy (CLEVER MODE)This strategy — “4 EMA Crossover Strategy (CLEVER MODE)” — is a simple but structured trend-following system built in Pine Script v5.
It uses four Exponential Moving Averages (EMAs) to define trend direction and timing, with an optional RSI filter and built-in take profit / stop loss risk control.
Let’s describe it clearly step by step 👇
🧠 Core Idea
The strategy is based on the principle that when shorter EMAs are above longer EMAs, the market is in an uptrend, and when shorter EMAs are below longer EMAs, it’s in a downtrend.
It looks for EMA crossovers that confirm strength in the current trend direction and enters trades accordingly.
This makes it a momentum continuation system, not a reversal system.
⚙️ Indicators Used
1. Four EMAs
EMA 8 → Fast
EMA 0→ Medium-Fast
EMA 0 → Medium-Slow
EMA 200 → Slow (defines the dominant long-term trend)
These EMAs work together to detect both short-term and long-term momentum alignment.
2. RSI (Relative Strength Index)
Default period = 14
Used as a trend filter:
RSI > 50 confirms bullish momentum.
RSI < 50 confirms bearish momentum.
Can be turned on or off via settings.
📈 Trend Definition
Bullish Trend (Uptrend) →
EMA(8) > EMA(0) > EMA(0) > EMA(200)
Bearish Trend (Downtrend) →
EMA(8) < EMA(0) < EMA(0) < EMA(200)
This ensures trades are only taken when all EMAs align in one direction — preventing counter-trend entries.
🚀 Entry Rules
🔹 Buy (Long) Signal
Triggered when:
EMA(8) crosses above EMA(0) (momentum crossover)
All EMAs confirm bullish alignment
(Optional) RSI > 50 for extra confirmation
📤 The strategy opens a Long position and automatically sets:
Take Profit (TP) at +2% (configurable)
Stop Loss (SL) at −1% (configurable)
🔻 Sell (Short) Signal
Triggered when:
EMA(8) crosses below EMA(0)
All EMAs confirm bearish alignment
(Optional) RSI < 50 for confirmation
📤 Opens a Short position with:
Take Profit at +2%
Stop Loss at −1%
💰 Trade Management
Each trade uses 10% of account equity (default).
The system automatically closes the position once TP or SL is hit.
Only one position (long or short) can be active at a time.
🧭 Trading Philosophy
This strategy aims to ride strong trends — not to predict tops or bottoms.
By requiring all EMAs to align, it filters out sideways noise.
The RSI filter adds further validation, ensuring entries are supported by momentum strength.
It’s designed to:
Catch medium-term swings.
Stay out of choppy or ranging conditions.
Manage risk with simple percentage-based exits.
🎨 Visuals on Chart
Colored EMAs:
EMA(8): Yellow
EMA(0): Orange
EMA(0): Blue
EMA(200): Purple
BUY/SELL Markers:
Green “BUY” triangle below the candle
Red “SELL” triangle above the candle
These provide clear visual signals for entry points.
🧾 Summary Table
Feature Description
Indicator Type Trend-following momentum crossover
Core Logic 4 EMA alignment + crossover
Optional Filter RSI > 50 / < 50 for confirmation
Entries Long on EMA(8) > EMA(0 OANDA:XAUUSD CRYPTO:BTCUSD OANDA:EURUSD TVC:DXY TVC:USOIL ); Short on EMA(8) < EMA(0)
Exits Fixed Take-Profit / Stop-Loss in %
Strengths Clean structure, filters noise, great for trending markets
Weaknesses Lags in sideways markets (EMA systems are trend-dependent)
Best Use Swing trading or intraday trend capture
✅ In short:
The 4 EMA Crossover (CLEVER Mode) strategy is a disciplined trend-following system.
It waits for all EMAs to align, confirms momentum with RSI, and enters when the fastest EMA crosses the short-term EMA — capturing trend continuations with defined TP/SL control.
Sigma Trinity ModelAbstract
Sigma Trinity Model is an educational framework that studies how three layers of market behavior interact within the same trend: (1) structural momentum (Rasta), (2) internal strength (RSI), and (3) continuation/compounding structure (Pyramid). The model deliberately combines bar-close momentum logic with intrabar, wick-aware strength checks to help users see how reversals form, confirm, and extend. It is not a signal service or automation tool; it is a transparent learning instrument for chart study and backtesting.
Why this is not “just a mashup”
Many scripts merge indicators without explaining the purpose. Sigma Trinity is a coordinated, three-engine study designed for a specific learning goal:
Rasta (structure): defines when momentum actually flips using a dual-line EMA vs smoothed EMA. It gives the entry/exit framework on bar close for clean historical study.
RSI (energy): measures internal strength with wick-aware triggers. It uses RSI of LOW (for bottom touches/reclaims) and RSI of HIGH (for top touches/exhaustion) so users can see intrabar strength/weakness that the close can hide.
Pyramid (progression): demonstrates how continuation behaves once momentum and strength align. It shows the logic of adds (compounding) as a didactic layer, also on bar close to keep historical alignment consistent.
These three roles are complementary, not redundant: structure → strength → progression.
Architecture Overview
Execution model
Rasta & Pyramid: bar close only by default (historically stable, easy to audit).
RSI: per tick (realtime) with bar-close backup by default, using RSI of LOW for entries and RSI of HIGH for exits. This makes the module sensitive to intra-bar wicks while still giving a close-based safety net for backtests.
Stops (optional in strategy builds): wick-accurate: trail arms/ratchets on HIGH; stop hit checks with LOW (or Close if selected) with a small undershoot buffer to avoid micro-noise hits.
Visual model
Dual lines (EMA vs smoothed EMA) for Rasta + color fog to see direction and compression/expansion.
Rungs (small vertical lines) drawn between the two Rasta lines to visualize wave spacing and rhythm.
Clean labels for Entry/Exit/Pyramid Add/RSI events. Everything is state-locked to avoid spamming.
Module 1 — Rasta (Structural Momentum Layer)
Goal: Identify structural momentum reversals and maintain a consistent, replayable backbone for study.
Method:
Compute an EMA of a chosen price source (default Close), and a smoothed version (SMA/EMA/RMA/WMA/None selectable).
Flip points occur when the EMA line crosses the smoothed line.
Optional EMA 8/21 trend filter can gate entries (long-bias when EMA8 > EMA21). A small “adaptive on flip” option lets an entry fire when the filter itself flips to ON and the EMA is already above the smoothed line—useful for trend resumption.
Why bar close only?
Bar-close Rasta gives a stable, auditable timeline for the structure of the trend. It teaches users to separate “structure” (close-resolved) from “energy” (intrabar, via RSI).
Visuals:
Fog between the lines (green/red) to show regime.
Rungs between lines to show spread (compression vs expansion).
Optional plotting of EMA8/EMA21 so users can see the gating effect.
Module 2 — RSI (Internal Strength / Energy Layer)
Goal: Reveal the intrabar strength/weakness that often precedes or confirms structural flips.
Method:
Standard RSI with adjustable length and signal smoothing for the panel view.
Logic uses wick-aware sources:
Entry trigger: RSI of LOW (same RSI length) touching or below a lower band (default 15). Think of it as intraband reactivation from the bottom, using the candle’s deepest excursion.
Exit trigger: RSI of HIGH touching or above an upper band (default 85). Think of it as exhaustion at the top, using the candle’s highest excursion.
Realtime + Close Backup: fires intrabar on tick, but if the realtime event was missed, the close backup will note it at bar end.
Cooldown control: optional bars-between-signals to avoid rapid re-triggers on choppy sequences.
Why wick-aware RSI?
A close-only RSI can miss the true micro-extremes that cause reversals. Using LOW/HIGH for triggers captures the behavior that traders actually react to during the bar, while the bar-close backup preserves historical reproducibility.
Module 3 — Pyramid (Continuation / Compounding Layer)
Goal: Teach how continuation behaves once a trend is underway, and how adds can be structured.
Method:
Same dual-line logic as Rasta (EMA vs smoothed EMA), but only fires when already in a position (or after prior entry conditions).
Supports the same EMA 8/21 filter and optional adaptive-on-flip behavior.
Bar close only to maintain historical cohesion.
What it teaches:
Adds tend to cluster when momentum persists.
Students can experiment with add spacing and compare “one-shot entries” vs “laddered adds” during strong regimes.
How the Pieces Work Together
Rasta establishes the structural frame (when the wave flip is real enough to record at close).
RSI validates or challenges that structure by tracking intrabar energy at the extremes (low/high touches).
Pyramid shows what sustained continuation looks like once (1) and (2) align.
This produces a layered view: Structure → Energy → Progression. Users can see when all three line up (strongest phases) and when they diverge (riskier phases or transitions).
How to Use It (Step-by-Step)
Quick Start
Apply script to any symbol/timeframe.
In Strategy/Indicator Properties:
Enable On every tick (recommended).
If available, enable Using bar magnifier and choose a lower resolution (e.g., 1m) to simulate intrabar fills more realistically.
Keep On bar close unchecked if you want to observe realtime logic in live charts (strategies still place orders on close by platform design).
Default behavior: Rasta & Pyramid = bar close; RSI = per tick with close backup.
Reading the Chart
Watch for Rasta Entry/Exit labels: they define clean structural turns on close.
Watch RSI Entry (LOW touch at/below lower band) and RSI Exit (HIGH touch at/above upper band) to gauge internal energy extremes.
Pyramid Add labels reveal continuation phases once a move is already in progress.
Tuning
Rasta smoothing: choose SMA/EMA/RMA/WMA or None. Higher smoothing → later but cleaner flips; lower smoothing → earlier but choppier.
RSI bands: a common educational setting is 15/85 for strong extremes; 20/80 is a bit looser.
Cooldown: increase if you see too many RSI re-fires in chop.
EMA 8/21 filter: toggle ON to study “trend-gated” entries, OFF to study raw momentum flips.
Backtesting Notes (for Strategy Builds)
Stops (optional): trail is armed when price advances by a trigger (default D–F₀), ratchets only upward from HIGH, and hits from LOW (or Close if chosen) with a tiny undershoot buffer to avoid micro-wicks.
Order sequencing per bar (mirrors the script’s code comments):
Trail ratchet via HIGH
Intrabar stop hit via LOW/CLOSE → immediate close
If still in position at bar close: process exits (Rasta/RSI)
If still in position at bar close: process Pyramid Add
If flat at bar close: process entries (Rasta/RSI)
Platform reality: strategies place orders at bar close in historical testing; the intrabar logic improves realism for stops and event marking but final order timestamps are still close-resolved.
Inputs Reference (common)
Modules: enable/disable RSI and Pyramid learning layers.
Rasta: EMA length, smoothing type/length, EMA8/21 filter & adaptive flip, fog opacity, rungs on/off & limit.
RSI: RSI length, signal MA length (panel), Entry band (LOW), Exit band (HIGH), cooldown bars, labels.
Pyramid: EMA length, smoothing, EMA8/21 filter & adaptive adds.
Execution: toggle Bar Close Only for Rasta/Pyramid; toggle Realtime + Close Backup for RSI.
Stops (strategy): Fixed Stop % (first), Fixed Stop % (add), Trail Distance %, Trigger rule (auto D–F₀ or custom), undershoot buffer %, and hit source (LOW/CLOSE).
What to Study With It
Convergence: how often RSI-LOW entry touches precede the next Rasta flip.
Divergence: cases where RSI screams exhaustion (HIGH >= upper band) but Rasta hasn’t flipped yet—often transition zones.
Continuation: how Pyramid adds cluster in strong moves; how spacing changes with smoothing/filter choices.
Regime changes: use EMA8/21 filter toggles to see what happens at macro turns vs chop.
Limitations & Scope
This is a learning tool, not a trade copier. It does not provide financial advice or automated execution.
Intrabar results depend on data granularity; bar magnifier (when available) can help simulate lower-resolution ticks, but true tick-by-tick fills are a platform-level feature and not guaranteed across all symbols.
Suggested Publication Settings (Strategy)
Initial capital: 100
Order size: 100 USD (cash)
Pyramiding: 10
Commission: 0.25%
Slippage: 3 ticks
Recalculate: ✓ On every tick
Fill orders: ✓ Using bar magnifier (choose 1m or similar); leave On bar close unchecked for live viewing.
Educational License
Released under the Michael Culpepper Gratitude License (2025).
Use and modify freely for education and research with attribution. No resale. No promises of profitability. Purpose is understanding, not signals.
CLEVER v15CRYPTO:BTCUSD OANDA:EURUSD TVC:DXY TVC:USOIL The CLEVER v15 strategy is a highly modular and adaptive multi-setup trading system built in Pine Script v5. It’s designed for flexible use on TradingView and combines Renko and Heikin-Ashi logic, EMA cloud trends, ATR-based risk management, and a sophisticated multi-target take-profit system.
Here’s what it does in plain language 👇
🧠 1. Core Concept
CLEVER is a hybrid trading strategy that can generate buy/sell signals based on:
Heikin-Ashi Open/Close crossovers, or
Renko-based EMA crossovers
The trader chooses between “Open/Close” or “Renko” setups, defining how signals are generated.
⚙️ 2. Signal Generation
A. Open/Close Mode
A Buy signal triggers when the Heikin-Ashi Close crosses above its Open.
A Sell signal triggers when the Heikin-Ashi Close crosses below its Open.
This setup uses candle momentum and trend filtering logic.
B. Renko Mode
Uses two EMAs (default: 2-period and 10-period) applied to Renko prices.
Buy signal when EMA(2) crosses above EMA(10).
Sell signal when EMA(2) crosses below EMA(10).
Renko data smooths out noise and focuses on structure.
🧭 3. Trend Filtering
The strategy optionally filters trades using ATR and/or RSI logic:
ATR filter measures market volatility.
RSI filter checks overbought/oversold or sideways ranges.
You can combine them in several modes (e.g., “ATR or RSI”, “ATR and RSI”, “Sideways Only”).
Only trades that meet these market conditions are allowed.
🎯 4. Trade Execution Logic
The user selects a Trade Processing System (TPS) mode:
ATR-based – Full multi-level risk/reward management (main mode)
Trailing – Uses dynamic order exits with alerts
Options – Simpler entry/exit rules, used for external automation
Depending on the mode, the strategy:
Opens long/short positions when triggers occur.
Closes or reverses trades on opposite signals or exit conditions.
Can process signals only within a defined backtest date range.
📈 5. Risk Management (ATR-Based)
Uses the Average True Range (ATR) to calculate dynamic Take-Profit (TP) and Stop-Loss (SL) levels.
Default TP/SL factors:
TP1 = 2.5× ATR
TP2 = 5× ATR
TP3 = 7.5× ATR
SL = 2.5× ATR (in opposite direction)
Each level can close a percentage of the position (default: 50% / 30% / 20%).
Partial exits are handled by strategy.exit() with dynamic lines and alerts.
📊 6. Visual Features
The strategy displays:
Colored bars showing the trend (green for bullish, red for bearish).
EMA & Renko Clouds — visually shaded zones showing directional bias.
Dynamic lines for entry, SL, and each TP level.
Labels and fills showing profit/loss areas (TP area in blue, SL in red).
Performance dashboards:
Overall strategy performance (win rate, avg win/loss, profit factor, etc.).
Weekly and Monthly trade statistics tables.
🧩 7. Additional Components
Backtest Dashboard: Displays closed trades, win rate, max drawdown, and more.
Weekly & Monthly Performance Tables: Show profitability by day and month.
Alerts System: Sends alerts for all key events:
Entry (Long/Short)
Exit (Close, TP, SL)
Any Signal Trigger
Multi-timeframe EMA and ATR Clouds: Use higher-timeframe smoothing if enabled.
⚡ 8. Trade Flow Summary
Here’s how a typical trade works:
Market meets filter conditions (RSI/ATR logic passes).
Buy or Sell trigger fires (Renko EMA or HA crossover).
Entry is executed (strategy.entry()).
ATR determines three TP targets and one SL level.
When TP1, TP2, or TP3 is hit:
Partial profit is taken.
Chart marks the event (label + line).
If SL is hit, trade closes fully.
Dashboards update with results.
🎨 9. Customization
Everything — from colors, transparency, TP/SL ratios, date filters, and visualization — is customizable through inputs.
🧾 10. Summary
In short, the CLEVER v15 OANDA:XAUUSD OANDA:XAUUSD strategy is:
A full-featured multi-mode trading system combining Heikin-Ashi, Renko, EMA, and ATR logic with multi-target exits, trend filtering, and visual performance dashboards for professional backtesting and trade automation.
Quantura - Quantified Price Action StrategyIntroduction
“Quantura – Quantified Price Action Strategy” is an invite-only Pine Script strategy designed to combine multiple price action concepts into a single trading framework. It integrates supply and demand zones, liquidity sweeps and runs, fair value gaps (FVGs), RSI filters, and EMA trend confirmation. The strategy also provides a visual overlay with dynamic trend-colored candles for easier chart interpretation. It is intended for multi-market use across cryptocurrencies, Forex, equities, and indices.
Originality & Value
The strategy is original in how it unifies several institutional-style price action elements and validates trades only when they align. This reduces noise compared to using single indicators in isolation. Its unique value lies in the combination of:
Supply & Demand detection: Dynamic boxes identified through pivots, ATR, and volume sensitivity.
Liquidity sweeps and runs: Detects when swing highs/lows are broken and retested, distinguishing between liquidity grabs (sweeps) and directional runs.
RSI filter: Can be set to normal or aggressive, confirming momentum before trades.
Fair Value Gaps (FVGs): Optional detection and filtering of price inefficiencies.
EMA filter: Aligns trades with the broader market trend.
Trend candle visualization: Candles dynamically colored bullish, bearish, or neutral, based on strategy positions.
This layered confluence approach ensures that entries are not taken on a single condition but require agreement across several dimensions of market structure, momentum, and order flow.
Functionality & Indicators
Supply & Demand Zones: Zones are created when pivots, ATR sensitivity, and volume thresholds overlap.
Liquidity: Swing highs and lows are tracked, with options for sweep (fakeout/reversal) or run (continuation) detection.
RSI: Confirms long signals when oversold and shorts when overbought, with configurable aggressiveness.
FVG filter: Adds validation by requiring price interaction with inefficiency zones.
EMA filter: Ensures longs are above EMA and shorts below EMA.
Signals & Visualization: Trade entries are marked on the chart, while candles change color to reflect trade direction and status.
Parameters & Customization
Supply & Demand: Sensitivity (swing range, volume multiplier, ATR multiplier) and display options.
Liquidity filter: Mode (Run or Sweep), display, and swing length.
RSI: Enable/disable, length, and style (normal or aggressive).
Fair Value Gaps: Sensitivity via ATR factor, optional volume filter, and display toggles.
EMA: Length, enable/disable, and visualization.
Risk management: Up to three configurable take-profit levels, stop-loss, break-even logic, and capital-based position sizing.
Visualization: Custom candle coloring and optional overlay for better clarity.
Default Properties (Strategy Settings)
Initial Capital: 10,000 USD
Position Size: 100% of equity per trade (backtest default)
Commission: 0.1%
Slippage: 1
Pyramiding: 0 (only one position at a time)
Note: The default of 100% equity per trade is used for testing purposes only and would not be sustainable in real trading. A typical allocation in practice would be between 1–5% of account equity per trade, sometimes up to 10%.
Backtesting & Performance
Backtests on XPTUSD over 2.5 years with the default settings produced:
164 trades
67.68% win rate
Profit factor: 1.7
Maximum drawdown: 27.81%
These results show how the confluence of supply/demand, liquidity, and RSI filters can produce robust setups. However, past performance does not guarantee future results. While the trade count (164) is sufficient for statistical analysis, results may vary across markets and timeframes.
Risk Management
Three configurable take-profit levels with percentage allocation.
Initial stop-loss based on user-defined percentage.
Dynamic stop-loss that adjusts with market movement.
Break-even logic that shifts stops to entry after predefined gains.
Position sizing based on risk percentage of equity.
This framework allows both conservative and aggressive configurations, depending on user preference.
Limitations & Market Conditions
Works best in volatile and liquid markets such as crypto, metals, indices, and FX.
May produce false signals in low-volume or sideways environments.
Unexpected news or macro events can override technical conditions.
Default position sizing of 100% equity is highly aggressive and should be reduced before any practical use.
Usage Guide
Add “Quantura – Quantified Price Action Strategy” to your chart.
Select Supply & Demand, Liquidity, RSI, EMA, and FVG settings according to your market and timeframe.
Configure risk management: take-profits, stop-loss, and risk-per-trade percentage.
Use the Strategy Tester to analyze statistics, equity curve, and performance under different conditions.
Optimize parameters before applying the strategy to different markets.
Author & Access
Developed 100% by Quantura. Published as an Invite-Only script.
Important
This description complies with TradingView’s publishing rules. It clarifies originality, explains the underlying logic, discloses default properties, and presents backtest results with realistic disclaimers.
PSAR with ATR Trailing Stop + SMA Filter📈 Strategy Overview: PSAR + 6×ATR Trailing Stop with SMA Filter
This strategy is built around the principle of “Cut the losers, let the winners run” — a disciplined, trend-following approach that combines the Parabolic SAR indicator with dynamic risk management and a Simple Moving Average (SMA) trend filter.
🔍 Strategy Logic
Trend Filter Trades are only taken in the direction of the prevailing trend, defined by a user-selected SMA (default: 100).
✅ Long trades only when price is above the SMA
✅ Short trades only when price is below the SMA
Entry Signal: A trade is triggered when the Parabolic SAR flips to the opposite side of the price bars, signaling a potential trend reversal.
Stop Loss: The stop loss is dynamically set at 6×ATR from the entry price. This adapts to market volatility and is recalculated every bar — effectively acting as a trailing stop.
Exit Logic: There is no fixed take profit. The trade remains open until the trailing stop is hit — allowing winners to run and losers to be cut quickly.
Risk Management: Each trade risks 0.5% of total equity, ensuring consistent position sizing and capital preservation.
📊 Visual Elements
PSAR dots mark trend direction changes
SMA line shows the broader trend filter
Trailing stop crosses (with 50% opacity) indicate the current stop level without cluttering the chart
⚙️ Customizable Inputs
PSAR parameters: Start, Increment, Maximum
ATR length and multiplier
SMA length
Risk percentage per trade
This strategy is ideal for traders who want to stay aligned with the trend, automate disciplined exits, and avoid emotional decision-making. Clean, simple, and powerful.
Wishing you calm and successful trades!
celenni//@version=6
strategy("Cruce SMA 5/20 – v6 (const TF, gap en puntos SOLO cortos, next bar open, 1 trade/ventana, anti-flip)",
overlay = true,
initial_capital = 10000,
default_qty_type = strategy.percent_of_equity,
default_qty_value = 10,
pyramiding = 0)
// === CONSTANTES ===
const string TF = "15" // fija el timeframe de cálculo (ej. "5","15","30","60","120","240","D")
const string SYM_ALLOWED = "QQQ" // símbolo permitido
// === Inputs ===
confirmOnClose = input.bool(true, "Confirmar señal al cierre (evita repaint)")
maxGapPtsShort = input.float(0.50, "Máx gap permitido en CORTOS (puntos)", 0.0, 1e6)
lenFast = input.int(5, "SMA rápida", 1)
lenSlow = input.int(20, "SMA lenta", 2)
tpPts = input.float(20.0, "Take Profit (puntos)", 0.01)
slPts = input.float(5.0, "Stop Loss (puntos)", 0.01)
// Ventanas (NY)
useSessions = input.bool(true, "Usar ventanas NY")
sess1 = input.session("1000-1130", "Ventana 1 (NY)")
sess2 = input.session("1330-1600", "Ventana 2 (NY)")
flatOutside = input.bool(true, "Cerrar posición al salir de la ventana")
// === Utilidades ===
isAllowedSymbol() =>
(syminfo.ticker == SYM_ALLOWED) or str.contains(str.upper(syminfo.ticker), str.upper(SYM_ALLOWED))
// === Series MTF (cálculo en TF) ===
closeTF = request.security(syminfo.tickerid, TF, close, barmerge.gaps_off, barmerge.lookahead_off)
smaFast = ta.sma(closeTF, lenFast)
smaSlow = ta.sma(closeTF, lenSlow)
// Señales MTF sin repaint
longSignalTF = request.security(syminfo.tickerid, TF,
ta.crossover(ta.sma(close, lenFast), ta.sma(close, lenSlow)),
barmerge.gaps_off, barmerge.lookahead_off)
shortSignalTF = request.security(syminfo.tickerid, TF,
ta.crossunder(ta.sma(close, lenFast), ta.sma(close, lenSlow)),
barmerge.gaps_off, barmerge.lookahead_off)
// === Sesiones (evaluadas en el TF del gráfico, zona NY) ===
inSess1 = useSessions ? not na(time(timeframe.period, sess1, "America/New_York")) : true
inSess2 = useSessions ? not na(time(timeframe.period, sess2, "America/New_York")) : true
inSession = inSess1 or inSess2
// Inicio de ventanas y contadores (1 trade por ventana)
var bool wasIn1 = false, wasIn2 = false
win1Start = inSess1 and not wasIn1
win2Start = inSess2 and not wasIn2
wasIn1 := inSess1
wasIn2 := inSess2
var int tradesWin1 = 0, tradesWin2 = 0
if win1Start
tradesWin1 := 0
if win2Start
tradesWin2 := 0
justOpened = strategy.position_size != 0 and strategy.position_size == 0
if justOpened
if inSess1
tradesWin1 += 1
if inSess2
tradesWin2 += 1
canTakeMore =
(inSess1 and tradesWin1 < 1) or
(inSess2 and tradesWin2 < 1) or
(not useSessions)
// === Filtro NO-GAP SOLO para CORTOS (en PUNTOS) ===
// Compara OPEN actual vs CLOSE previo; se evalúa en la barra donde se EJECUTA (apertura actual).
gapPts = math.abs(open - close )
shortGapOK = maxGapPtsShort <= 0 ? true : (gapPts <= maxGapPtsShort)
// === Anti-flip y gating ===
isFlat = strategy.position_size == 0
canSignal = (not confirmOnClose or barstate.isconfirmed)
canTrade = isAllowedSymbol() and inSession and canTakeMore and canSignal
// === ENTRADAS (se colocan al cierre; se llenan en la apertura siguiente) ===
// Largos: sin filtro de gap
if canTrade and isFlat and longSignalTF
strategy.entry("Long", strategy.long)
// Cortos: requieren shortGapOK
if canTrade and isFlat and shortSignalTF and shortGapOK
strategy.entry("Short", strategy.short)
// === TP/SL en puntos ===
if strategy.position_size > 0
e = strategy.position_avg_price
strategy.exit("TP/SL Long", from_entry="Long", limit=e + tpPts, stop=e - slPts)
if strategy.position_size < 0
e = strategy.position_avg_price
strategy.exit("TP/SL Short", from_entry="Short", limit=e - tpPts, stop=e + slPts)
// === Cierre fuera de sesión ===
if flatOutside and not inSession and strategy.position_size != 0
strategy.close_all("Fuera de sesión")
// === Visual ===
plot(smaFast, color=color.new(color.teal, 0), title="SMA 5 ("+TF+")")
plot(smaSlow, color=color.new(color.orange, 0), title="SMA 20 ("+TF+")")
plotshape(longSignalTF and canTrade and isFlat, title="Compra", style=shape.triangleup,
location=location.belowbar, color=color.new(color.teal,0), size=size.tiny, text="Long")
plotshape(shortSignalTF and canTrade and isFlat and shortGapOK, title="Venta", style=shape.triangledown,
location=location.abovebar, color=color.new(color.red,0), size=size.tiny, text="Short")
Quantura - Quantitative AlgorythmIntroduction
“Quantura – Quantitative Algorithm” is an invite-only Pine Script strategy designed for multi-timeframe analysis, combining technical filters with user-adjustable fundamental sentiment. It was primarily developed for cryptocurrency markets but can also be applied across other assets such as Forex, stocks, and indices. The goal is to generate structured trade signals through a confluence of techniques rather than relying on a single indicator.
Originality & Value
Quantura is not a simple mashup of indicators. Its originality comes from how multiple layers of analysis are integrated into a single decision framework . Instead of showing indicators separately, the strategy only issues trades when several conditions align simultaneously:
RSI entry triggers confirm overbought/oversold reversals.
Market structure on a higher timeframe confirms trend direction.
Order block detection highlights zones of concentrated supply and demand.
Premium/Discount zones identify potential over- and undervaluation.
HTF EMA provides trend confirmation.
Optional candlestick patterns strengthen reversal or continuation signals.
An optional correlation filter compares the main asset to a reference instrument.
This design forces agreement between different methodologies (momentum, structure, value, volume, sentiment), which reduces noise compared to using them in isolation.
Functionality & Indicators
Entry trigger: RSI exits from extreme zones.
Filters: Only valid when all selected filters (HTF structure, EMA, order blocks, premium/discount, candlesticks, correlation, volume) confirm the direction.
Fundamental bias: User-defined sentiment and analysis settings (bullish, bearish, neutral) influence whether long or short trades are permitted.
Exits: ATR-based take profit and stop loss, with optional breakeven, opposite-signal exit, and session-end exit.
Visualization: Buy/Sell markers, trend-colored candles, and an optional dashboard summarizing indicator status.
Parameters & Customization
Timeframes: Independent HTF and LTF selection.
Trading direction: Long / Short / Both.
Session and weekday filters.
RSI length and thresholds.
Filters: HTF structure, order blocks, premium/discount, EMA, candlestick, ATR volatility, volume zones, correlation.
Exit rules: ATR multipliers for TP/SL, breakeven logic, session-end exit, opposite-signal exit.
Visuals: Toggle signals, candles, dashboard, custom colors.
Default Properties (Strategy Settings)
Initial Capital: 100,000 USD
Position Size: 15% of equity per trade
Commission: 0.25%
Slippage: enabled
Pyramiding: 0 (one position at a time)
Note: The position sizing of 15% equity per trade is intentionally set for backtesting demonstration. In real trading, risking this much is considered aggressive. Most traders prefer to risk 1-5% of equity, and rarely above 10%.
Backtesting & Performance
Backtests on BTCUSD (2 years) with the above defaults showed:
112 trades
Win rate: 40%
Profit factor: 1.4
Maximum drawdown: 34%
These results illustrate how the confluence model behaves, but they are not predictive of future performance . The trade sample size (72 trades) is below the 100+ usually recommended for statistical robustness. Users should re-test with their own preferred symbols, settings, and timeframes.
Risk Management
ATR-based stops and targets scale with volatility.
Commission and slippage are included by default for realistic modeling.
Opposite-signal exit helps capture trend reversals.
Session-end exit can close intraday positions before illiquid hours.
Breakeven option protects profits when available.
Although the default allocation uses 15% per trade for demonstration, this is not a recommendation. Users are encouraged to adjust risk sizing downwards to sustainable levels (commonly 1-5%).
Limitations & Market Conditions
Performs best in volatile, liquid markets (e.g., crypto).
May struggle in prolonged sideways markets with low volatility.
News events and fundamentals outside user inputs can override signals.
Backtests below 100 trades should be considered exploratory, not statistically conclusive.
Usage Guide
Add “Quantura – Quantitative Algorithm” to your chart in strategy mode.
Select HTF and LTF timeframes, trading direction, and session filters.
Configure confluence filters (structure, EMA, order blocks, premium/discount, candlestick, correlation, volume).
Set sentiment and analysis bias in fundamental settings.
Adjust ATR multipliers and exits.
Review buy/sell signals and analyze performance in the Strategy Tester.
Author & Access
Developed 100% by Quantura . Distributed as an Invite-Only script . Details are provided in the Author’s Instructions field.
Important: This description complies with TradingView’s Script Publishing Rules and House Rules. It does not guarantee profitability, avoids unrealistic claims, and explains how the strategy integrates multiple methods into a coherent decision framework.






















