My5min1. Follow the instructions for entry and exit exactly as above. Don’t second guess, or assume/presume anything.
2. Avoid entering the trade when the price is temporarily above /below 10 day MA, but the price candle hasn’t fully formed yet. Enter the trade only after the price candle closes above/below the 10 day MA.
3. Exit the trade immediately when the price candle closes above/below 10 day MA in the direction opposite to the trade. Don’t remain in the trade wishing it to turn in your favor.
4. Never ever trade in the opposite direction of the market. i.e. don’t buy when the price is below 200 day MA and sell when the price is above 200 day MA.
5. Take profits when limit is reached. Don’t be greedy and keep on increasing the target. Remember- A bird in hand is worth two in the bush.
ابحث في النصوص البرمجية عن "a股板块+沪深两市+股价不超过10元的股票+技术形态好"
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.
Gold AI RSI Monitor [Stacked + KNN]Here is a comprehensive description and user guide for the Gold AI RSI Monitor. You can copy and paste this into the "Description" field if you publish the script on TradingView, or save it for your own reference.
Gold AI RSI Monitor
🚀 Overview
The Gold AI RSI Monitor is a next-generation dashboard designed specifically for trading volatile assets like Gold (XAUUSD). It completely reimagines the traditional RSI by "stacking" 10 different timeframes (from 1-minute to Monthly) into a single, vertical view.
Integrated into this dashboard is a K-Nearest Neighbors (KNN) Machine Learning algorithm. This AI analyzes historical price action to find patterns similar to the current market and predicts the next likely move with a confidence score.
📊 Visual Guide: How to Read the Chart
1. The "Stacked" Lanes Instead of switching timeframes constantly, this indicator displays them all at once using vertical offsets.
Bottom Lane (0-100): 1-Minute RSI
Middle Lanes: 5m, 15m, 30m, 1H, 2H, 4H, Daily
Top Lane (900-1000): Monthly RSI
2. Gradient Color System The RSI lines change color based on momentum strength:
🔴 Red: Oversold / Bearish (Approaching 30 or lower)
🟡 Yellow: Neutral (Around 50)
🟢 Green: Overbought / Bullish (Approaching 70 or higher)
3. Tracker Lines Each timeframe has a dotted horizontal line extending to the right. This allows you to instantly see the exact RSI value for every timeframe without squinting.
🤖 The AI Engine (KNN)
The "AI" component uses a K-Nearest Neighbors algorithm.
Learning: It scans the last 1,000 bars of history.
Matching: It finds the 5 historical moments that look mathematically identical to the current market conditions (based on RSI and Volatility).
Predicting: It checks if price went UP or DOWN after those historical matches.
The Signals:
Buying Signal: If the majority of historical matches resulted in a price increase, the AI triggers a BUY.
Selling Signal: If the majority resulted in a drop, the AI triggers a SELL.
🎯 How to Trade with This Indicator
1. The "Crosshair" Signal
When the AI detects a high-probability setup, a massive Crosshair appears on your chart:
Green Crosshair: Strong BUY signal.
Red Crosshair: Strong SELL signal.
Note: The crosshair consists of a thick vertical line and a dashed horizontal line intersecting at the signal candle.
2. Timeframe Alignment (Confluence)
Do not rely on the AI alone. Look at the stacked RSIs:
Strong Long: The AI shows a Green Crosshair AND the lower timeframes (1m, 5m, 15m) are all turning Green/upward.
Strong Short: The AI shows a Red Crosshair AND the lower timeframes are turning Red/downward.
3. Support & Resistance Zones
Bottom Dotted Line (30): Support. If RSI hits this and turns up, it's a buying opportunity.
Top Dotted Line (70): Resistance. If RSI hits this and turns down, it's a selling opportunity.
⚙️ Settings Guide
RSI Length: Default is 14. Lower (e.g., 7) makes it faster/choppier; higher (e.g., 21) makes it smoother.
Enable AI Signals: Toggles the KNN calculation on/off.
Neighbors (K): How many historical matches to check. Default is 5.
Increase to 9-10 for fewer, more conservative signals.
Decrease to 3 for faster, more aggressive signals.
AI Timeframe: CRITICAL SETTING.
If left empty, the AI calculates based on your current chart.
Recommendation: For Gold scalping, set this to 15m or 1h. This ensures the AI looks at the bigger trend even if you are zooming in on the 1-minute chart.
⚠️ Disclaimer
This tool is for educational and analytical purposes. The "AI" is a statistical probability algorithm based on past performance, which is not indicative of future results. Always manage your risk.
Real Relative Strength Indicator### What is RRS (Real Relative Strength)?
RRS is a volatility-normalized relative strength indicator that shows you – in real time – whether your stock, crypto, or any asset is genuinely beating or lagging the broader market after adjusting for risk and volatility. Unlike the classic “price ÷ SPY” line that gets completely fooled by volatility regimes, RRS answers the only question that actually matters to professional traders:
“Is this ticker moving better (or worse) than the market on a risk-adjusted basis right now?”
It does this by measuring the excess momentum of your ticker versus a benchmark (SPY, QQQ, BTC, etc.) and then dividing that excess by the average volatility (ATR) of both instruments. The result is a clean, centered-around-zero oscillator that works the same way in calm markets, crash markets, or parabolic bull runs.
### How to Use the RRS Indicator (Aqua/Purple Area Version) in Practice
The indicator is deliberately simple to read once you know the rules:
Positive area (aqua) means genuine outperformance.
Negative area (purple) means genuine underperformance.
The farther from zero, the stronger the leadership or weakness.
#### Core Signals and How to Trade Them
- RRS crossing above zero → one of the highest-probability long signals in existence. The asset has just started outperforming the market on a risk-adjusted basis. Enter or add aggressively if price structure agrees.
- RRS crossing below zero → leadership is ending. Tighten stops, take partial or full profits, or flip short if you trade both sides.
- RRS above +2 (bright aqua area) → clear leadership. This is where the real money is made in bull markets. Trail stops, add on pullbacks, let winners run.
- RRS below –2 (bright purple area) → clear distribution or capitulation. Avoid new longs, consider short entries or protective puts.
- Extreme readings above +4 or below –4 (background tint appears) → rare, very high-conviction moves. Treat these like once-a-month opportunities.
- Divergence (not plotted here, but easy to spot visually): price making new highs while the aqua area is shrinking → distribution. Price making new lows while the purple area is shrinking → hidden buying and coming reversal.
#### Best Settings by Style and Asset Class
For stocks and ETFs: keep benchmark as SPY (or QQQ for tech-heavy names) and length 14–20 on daily/4H charts.
For crypto: change the benchmark to BTCUSD (or ETHUSD) immediately — otherwise the reading is meaningless. Length 10–14 works best on 1H–4H crypto charts because volatility is higher.
For day trading: drop length to 10–12 and use 15-minute or 5-minute charts. Signals are faster and still extremely clean.
#### Highest-Edge Setups (What Actually Prints Money)
- RRS crosses above zero while price is still below a major moving average (50 EMA, 200 SMA, etc.) → early leadership, often catches the exact bottom of a new leg up.
- RRS already deep aqua (+3 or higher) and price pulls back to support without RRS dropping below +1 → textbook add-on or re-entry zone.
- RRS deep purple and suddenly turns flat or starts curling up while price is still falling → hidden accumulation, usually the exact low tick.
That’s it. Master these few rules and the RRS becomes one of the most powerful edge tools you will ever use for rotation trading...
Nifty Scalping System by Rakesh Sharma🎯 What This Indicator Does:
Core Features:
✅ Fast Entry/Exit Signals - Quick BUY/SELL labels on chart
✅ 3 Signal Modes:
Aggressive - More signals, faster entries
Moderate - Balanced (Recommended)
Conservative - Fewer but high-quality signals
✅ Automatic Target & Stop Loss - Plotted on chart as soon as you enter
✅ Time Filter - Only trades during your specified hours (9:20 AM - 3:15 PM default)
✅ Trade Statistics - Win rate, W/L ratio tracked automatically
✅ Live Dashboard - Shows trend, RSI, VWAP position, current trade status
Indicators Used:
📊 3 EMAs (9, 21, 50) - Trend direction
📈 Supertrend - Primary trend filter
💪 RSI - Momentum & overbought/oversold
💜 VWAP - Intraday support/resistance
📉 ATR - Dynamic stop loss & targets
📊 Volume - Confirmation of moves
⚙️ Best Settings for Nifty/Bank Nifty:
For 5-Minute Charts (Most Popular):
Signal Mode: Moderate
Target R:R: 1.5 (1:1.5 risk-reward)
Time Filter: 9:20 AM to 3:15 PM
For 3-Minute Charts (More Scalps):
Signal Mode: Aggressive
Target R:R: 1.0 (quick exits)
Time Filter: 9:20 AM to 3:15 PM
For 15-Minute Charts (Swing Scalping):
Signal Mode: Conservative
Target R:R: 2.0 (bigger targets)
Time Filter: 9:30 AM to 3:00 PM
💡 How to Use:
Step 1: Setup
Add indicator to 5-min Nifty or Bank Nifty chart
Choose your Signal Mode (start with Moderate)
Set Risk:Reward (1.5 is balanced)
Enable Time Filter (avoid first 10 mins)
Step 2: Trading
BUY Signal appears = Go LONG
Green label shows entry price
Green line = Target
Red line = Stop Loss
SELL Signal appears = Go SHORT
Red label shows entry price
Green line = Target
Red line = Stop Loss
Exit automatically when Target or SL is hit
Step 3: Risk Management
Automatic SL based on ATR (volatility)
Adjustable R:R ratio
Never trade outside session hours
🎯 Trading Rules (Important!):
✅ Take the Trade When:
Signal appears during trading session
Dashboard shows strong trend
Volume spike present
Price above/below VWAP (for buy/sell)
❌ Avoid Trading When:
First 10 minutes (9:15-9:25 AM)
Last 15 minutes (3:15-3:30 PM)
Dashboard shows "SIDEWAYS"
Major news events
📊 Dashboard Explained:
FieldWhat It MeansModeYour current signal sensitivityTrendOverall market directionRSIOverbought/Oversold/NeutralPrice vs VWAPAbove = Bullish, Below = BearishCurrent TradeShows if you're in a positionSessionTrading time active or notWin RateYour success %
🚀 Pro Tips for Nifty/Bank Nifty:
Best Timeframe: 5-minute chart
Best Time: 9:30 AM - 2:30 PM (avoid opening/closing rushes)
Risk per Trade: 1-2% of capital max
Follow the Trend: Take only BUY in uptrend, SELL in downtrend
Use Alerts: Set alerts so you don't miss signals
Start Small: Paper trade first with 1 lot
⚡ Quick Start Guide:
For Bank Nifty (5-min chart):
1. Signal Mode: Moderate
2. Target R:R: 1.5
3. Trading Hours: 9:20 AM - 3:15 PM
4. Watch for 3-5 signals per day
5. Average 30-50 points per trade
For Nifty 50 (5-min chart):
1. Signal Mode: Moderate
2. Target R:R: 1.5
3. Trading Hours: 9:20 AM - 3:15 PM
4. Watch for 3-5 signals per day
5. Average 15-30 points per trade
📈 Expected Performance:
Conservative Mode: 2-4 trades/day, 65-70% win rate
Moderate Mode: 4-8 trades/day, 55-65% win rate
Aggressive Mode: 8-15 trades/day, 45-55% win rate
This is a complete scalping system, Rakesh! All you need to do is:
Add to chart
Wait for signals
Follow the targets/stop losses
Track your stats
Ready to test it? Let me know if you want any adjustments! 🎯💰Claude can make mistakes. Please double-check responses.
Volume Profile DeltaMap [MHA Finverse]Volume Profile DeltaMap with Session Analysis
SHORT DESCRIPTION (for listing)
Advanced Volume Profile indicator with Delta Analysis, Value Area, Volume Nodes, Imbalance Zones, and Multi-Session Profiles. Professional tool for institutional-style volume analysis and market structure understanding.
---
DETAILED DESCRIPTION
📊 OVERVIEW
The Volume Profile DeltaMap is a comprehensive institutional-grade indicator that visualizes volume distribution across price levels, revealing where the most significant trading activity occurred. Unlike traditional indicators that plot data over time, Volume Profile analyzes price levels to identify key support/resistance zones, equilibrium areas, and buyer/seller dominance.
This indicator combines multiple advanced features:
- Volume Profile Analysis with customizable bins
- Delta Heat Map showing buyer vs seller pressure
- Value Area (VAH/VAL) calculations
- High/Low Volume Node Detection
- Imbalance Zone Identification
- Multi-Session Profile Separation (Tokyo, London, NY, Sydney)
- Point of Control (POC) highlighting
---
🎯 KEY FEATURES
1. Volume Profile Core
- Divides price range into customizable bins (10-100 levels)
- Accumulates volume at each price level over a lookback period
- Displays volume distribution horizontally on the chart
- Configurable lookback period (default: 200 bars)
2. Delta Analysis & Heat Map
- Delta (Δ) : Measures the difference between buying and selling pressure
- Color-coded visualization :
- Green/Teal = Buyer dominance
- Red/Pink = Seller dominance
- Heat map intensity : Shows volume concentration with gradient colors
- Percentage labels : Displays exact buyer/seller ratios at each level
3. Point of Control (POC)
- Automatically identifies the price level with maximum volume
- Marked with cyan border and volume label
- Acts as a strong magnetic level where price tends to return
- Often serves as major support/resistance
4. Value Area (VAH/VAL)
- Value Area : Price range containing 70% of total volume (configurable 50-90%)
- VAH (Value Area High) : Upper boundary - resistance level
- VAL (Value Area Low) : Lower boundary - support level
- Displayed with dashed lines and labels
- Represents fair value zone where institutional traders are most active
5. Volume Nodes
- HVN (High Volume Nodes) : Areas with ≥80% of maximum volume
- Highlighted in yellow/amber
- Strong support/resistance zones
- Price tends to consolidate here
- LVN (Low Volume Nodes) : Areas with ≤30% of maximum volume
- Highlighted in orange
- Low liquidity gaps
- Price moves quickly through these zones
- Potential breakout areas
6. Imbalance Zones
- Identifies areas with extreme directional bias (≥70% threshold)
- Buy Imbalance : Green overlay - exhaustion of buying pressure
- Sell Imbalance : Red overlay - exhaustion of selling pressure
- Indicates potential reversal or continuation zones
7. Session-Based Analysis
- Session Background Overlay : Color-codes current trading session
- Separate Session Profiles : Creates individual volume profiles for:
- 🇯🇵 Tokyo Session (00:00-09:00)
- 🇬🇧 London Session (07:00-16:00)
- 🇺🇸 New York Session (13:00-22:00)
- 🇦🇺 Sydney Session (21:00-06:00)
- Compare volume patterns across different market sessions
- Identify session-specific support/resistance levels
---
⚙️ CONFIGURATION SETTINGS
Basic Settings
- LookBack : Number of bars to analyze (50-500 recommended)
- Bins : Number of price levels (10-100, default: 30)
- Horizontal Offset : Adjust profile position on chart
#### Features Toggle
- Delta Heat Map
- Delta Labels
- Volume Bars (Buy/Sell split)
- POC Line
- Custom colors for positive/negative volume
Advanced Features
- Value Area calculation with adjustable percentage
- Volume Nodes (HVN/LVN) with custom thresholds
- Imbalance Zones with adjustable sensitivity
- Session backgrounds and separate profiles
- Profile spacing for multi-session view
---
📈 HOW TO USE THIS INDICATOR
Installation & Setup
1. Add to Chart :
- Search for "Volume Profile DeltaMap"
- Click "Add to favorites" ⭐
- Apply to your chart
2. Recommended Timeframes :
- Scalping : 1-5 minute charts
- Day Trading : 5-15 minute charts
- Swing Trading : 1-4 hour charts
- Position Trading : Daily charts
3. Initial Settings :
- Start with default settings
- For intraday: Set LookBack to 200-400 bars
- For higher timeframes: Use 100-200 bars
4. Enable Session Profiles (Optional):
- Go to Settings → Advanced Features
- Enable "Separate Profiles Per Session"
- Adjust "Profile Spacing" for better visibility
---
🔍 READING THE INDICATOR
Understanding the Display
Main Profile Elements:
- Horizontal bars : Length represents volume at that price
- Color gradient : Shows delta (buyer vs seller dominance)
- Bright cyan line : Point of Control (POC) - highest volume
- Green dashed line : Value Area High (VAH)
- Red dashed line : Value Area Low (VAL)
- Yellow highlights : High Volume Nodes (HVN)
- Orange highlights : Low Volume Nodes (LVN)
Volume Bars (if enabled):
- Top half (Red) : Selling volume percentage
- Bottom half (Teal) : Buying volume percentage
Delta Labels:
- Shows Δ percentage
- Positive = More buyers
- Negative = More sellers
---
📊 MARKET ANALYSIS & TRADING STRATEGIES
1. Support & Resistance Trading
POC as Key Level:
- Price tends to return to POC (magnetic effect)
- Strategy :
- When price is above POC → Look for pullbacks to POC for long entries
- When price is below POC → Look for rallies to POC for short entries
- POC acts as dynamic support/resistance
Value Area Trading:
- Inside Value Area (between VAH & VAL):
- Market is in balance/equilibrium
- Range-bound trading strategies
- Look for mean reversion
- Outside Value Area :
- Price accepted above VAH = Bullish breakout
- Price accepted below VAL = Bearish breakdown
- Trend-following strategies
Example Setup:
Price above VAH + Strong buying delta = Bullish trend
→ Wait for pullback to VAH
→ Enter long with stop below VAH
→ Target: Next HVN or previous session high
2. Volume Node Trading
High Volume Nodes (HVN):
- Characteristics : Strong support/resistance, consolidation zones
- Trading Strategy :
- Price approaching HVN from above → Potential support
- Price approaching HVN from below → Potential resistance
- Breakout from HVN → Strong momentum move
- Setup : Place limit orders at HVN boundaries
Low Volume Nodes (LVN):
- Characteristics : Low liquidity, fast price movement
- Trading Strategy :
- Price in LVN = Don't chase, wait for next HVN
- LVN breakout = Rapid moves, use wider stops
- Price rejection from LVN = Quick return to HVN
- Setup : Avoid placing stops in LVN zones
Example:
Price consolidating at HVN (yellow) near $50,000
→ Breakout above with volume
→ Fast move through LVN (orange) gap
→ Next target: Upper HVN at $51,500
3. Delta Analysis for Entry Timing
Strong Buying Delta (Green zones):
- Δ > +20% = Buyers in control
- Bullish Signal : Accumulation zone
- Strategy : Look for long entries on pullbacks
- Confirmation : Rising price + positive delta
Strong Selling Delta (Red zones):
- Δ < -20% = Sellers in control
- Bearish Signal : Distribution zone
- Strategy : Look for short entries on rallies
- Confirmation : Falling price + negative delta
Delta Divergence (Advanced):
- Bullish Divergence : Price making lower lows, but delta improving (less negative)
- Indicates selling pressure weakening
- Potential reversal signal
- Bearish Divergence : Price making higher highs, but delta weakening (less positive)
- Indicates buying pressure exhausting
- Potential reversal signal
4. Imbalance Zone Trading
Buy Imbalance (Bright Green):
- 70%+ buying pressure
- Interpretation :
- Potential exhaustion of buyers
- Smart money distribution
- Strategy :
- Look for reversal signals (bearish candles, resistance)
- Take profits on long positions
- Consider short entries with confirmation
Sell Imbalance (Bright Red):
- 70%+ selling pressure
- Interpretation :
- Potential exhaustion of sellers
- Smart money accumulation
- Strategy :
- Look for reversal signals (bullish candles, support)
- Take profits on short positions
- Consider long entries with confirmation
Example:
```
Price at VAH with 80% sell imbalance
→ Selling exhaustion likely
→ Wait for bullish reversal candle
→ Enter long with stop below VAL
```
5. Multi-Session Analysis
When "Separate Profiles Per Session" is enabled:
Session-Specific Levels:
- Each session creates its own POC and value area
- Compare sessions to identify:
- Where institutions accumulated/distributed
- Which levels each session respected
- Unfinished business from previous sessions
Trading Strategies:
A. Session POC Confluence
London POC: $49,500
NY POC: $49,550
→ Strong support zone at $49,500-$49,550
→ High probability long setup on pullback
B. Value Area Overlap
London VAH: $50,000
NY VAL: $49,800
→ Overlap creates strong consolidation zone
→ Breakout strategy: Enter on break above $50,000
C. Unfinished Business
London session rejected $51,000 (sell imbalance)
NY session hasn't tested this level yet
→ Watch for NY session to revisit $51,000
→ Potential reversal zone
D. Session Handoff
Tokyo session: Sideways, low volume
London session: Strong buying delta, break above VAH
NY session: Continuation or reversal?
→ Monitor NY open for direction confirmation
6. Market Profile Analysis
Profile Shape Interpretation:
A. P-Shape (Peak at Top)
- High volume at top of range
- Interpretation : Distribution, potential reversal down
- Strategy : Look for shorts at resistance
B. b-Shape (Peak at Bottom)
- High volume at bottom of range
- Interpretation : Accumulation, potential reversal up
- Strategy : Look for longs at support
C. D-Shape (Peak in Middle)
- Balanced profile, POC in center
- Interpretation : Equilibrium, neutral market
- Strategy : Range trading between VAH/VAL
D. Thin Profile (LVN Gap)
- Low volume throughout
- Interpretation : Trending market, little acceptance
- Strategy : Trend following, avoid counter-trend trades
---
🎯 COMPLETE TRADING WORKFLOW
Step 1: Market Structure Analysis
1. Identify overall profile shape
2. Locate POC, VAH, VAL
3. Note HVN and LVN zones
4. Check current price position relative to value area
Step 2: Delta & Imbalance Check
1. Review delta distribution (where are buyers/sellers?)
2. Identify imbalance zones
3. Look for delta divergences
4. Note any exhaustion signals
Step 3: Session Analysis (if enabled)
1. Compare current session vs previous sessions
2. Identify key levels each session created
3. Look for level confluences or gaps
4. Note unfinished business
Step 4: Trade Setup
1. Define your bias (long/short/neutral)
2. Identify entry zone (HVN, VAH/VAL, POC)
3. Set stop loss (below/above key level or opposite LVN)
4. Set target (next HVN, VAH/VAL, or session high/low)
Step 5: Execution & Management
1. Wait for price to reach entry zone
2. Confirm with price action (candlestick patterns)
3. Enter trade with defined risk
4. Move stop to breakeven at first target
5. Trail stop or take profits at resistance/support
---
📋 EXAMPLE TRADE SCENARIOS
Scenario 1: Long Setup at VAL
Setup:
- Price pulled back to VAL ($49,200)
- VAL coincides with HVN (yellow zone)
- Delta showing +15% buying (green)
- London session POC also at $49,200
Entry:
- Buy at $49,200 (VAL/HVN confluence)
- Stop loss: $49,000 (below VAL, in LVN)
- Target 1: $49,800 (POC)
- Target 2: $50,200 (VAH)
Management:
- Move stop to breakeven when Target 1 reached
- Trail stop below recent swing lows
- Exit 50% at VAH, let remainder run
Risk:Reward : 200 points risk / 1000 points potential = 1:5 R:R
---
Scenario 2: Short Setup at Sell Imbalance
Setup:
- Price at VAH ($50,500)
- Sell imbalance zone (85% sellers, bright red)
- Bearish divergence (higher high, weaker delta)
- Previous session rejected this level
Entry:
- Short at $50,500 after bearish engulfing candle
- Stop loss: $50,750 (above VAH + imbalance zone)
- Target 1: $50,000 (POC)
- Target 2: $49,600 (VAL)
Management:
- Take 50% profit at POC
- Trail stop above recent swing highs
- Exit remainder at VAL or if delta turns positive
Risk:Reward : 250 points risk / 900 points potential = 1:3.6 R:R
---
Scenario 3: Range Trading Inside Value Area
Setup:
- Market consolidating between VAH ($50,200) and VAL ($49,600)
- POC at $49,900
- Multiple HVNs creating range boundaries
- Delta oscillating between +/-10%
Long Trade:
- Entry: $49,650 (near VAL)
- Stop: $49,500 (below VAL)
- Target: $50,150 (near VAH)
- Risk:Reward: 150/500 = 1:3.3
Short Trade:
- Entry: $50,150 (near VAH)
- Stop: $50,300 (above VAH)
- Target: $49,700 (near VAL)
- Risk:Reward: 150/450 = 1:3
Management:
- Reduce position size in range trading
- Take profits at opposite boundary
- Exit if breakout occurs (stop hunt possible)
---
Scenario 4: Session Breakout Trade
Setup:
- London session: Range-bound $49,500-$50,000
- London VAH at $50,000 (resistance)
- NY session opens: Strong buying delta (+35%)
- Price breaks above $50,000 with momentum
Entry:
- Buy on breakout above $50,000
- Or buy on retest of $50,000 (old resistance = new support)
- Stop loss: $49,700 (below breakout level + buffer)
- Target 1: $50,500 (next HVN from previous day)
- Target 2: $51,000 (measured move)
Management:
- Enter 50% position on breakout
- Add remaining 50% on successful retest
- Move stop to breakeven when price +$300
- Trail stop below 20 EMA or recent higher lows
Risk:Reward : 300 points risk / 1000 points potential = 1:3.3 R:R
---
⚠️ BEST PRACTICES & RISK MANAGEMENT
Do's:
✅ Use on liquid markets (major crypto, forex, indices)
✅ Combine with price action and candlestick patterns
✅ Wait for confirmation before entering trades
✅ Always use stop losses based on volume structure
✅ Take partial profits at key levels (HVN, VAH/VAL)
✅ Adjust lookback period based on timeframe
✅ Use higher timeframe profiles for context
✅ Compare current profile with previous day/session
✅ Consider volume trends (increasing/decreasing)
✅ Backtest strategies on your specific market
Don'ts:
❌ Don't trade solely based on this indicator
❌ Don't ignore price action and market context
❌ Don't place stops in LVN zones (prone to spikes)
❌ Don't chase price in low volume areas
❌ Don't overtrade - wait for quality setups
❌ Don't use on extremely low volume/illiquid assets
❌ Don't forget to adjust for different market conditions
❌ Don't ignore fundamental news events
❌ Don't use excessive leverage even with good setups
❌ Don't force trades - patience is key
Risk Management Rules:
1. Risk per trade : Never risk more than 1-2% of capital
2. Position sizing : Based on stop loss distance
3. Stop placement : Always below/above key volume levels
4. Profit taking : Scale out at multiple targets
5. Drawdown limits : Stop trading after 3 consecutive losses
6. Win rate expectation : 50-60% is realistic
7. Risk:Reward minimum : Aim for 1:2 or better
8. Correlation : Don't take correlated positions
---
🔧 TROUBLESHOOTING & OPTIMIZATION
If profiles look too compressed:
- Increase "Bins" to 40-50
- Reduce "LookBack" period
- Adjust "Horizontal Offset"
If too cluttered:
- Disable "Delta Labels"
- Disable "Volume Bars"
- Keep only POC and Value Area
- Use "Session Background Overlay" instead of separate profiles
For scalping (1-5 min):
- LookBack: 300-500 bars
- Bins: 20-30
- Enable separate session profiles
- Focus on imbalance zones
For swing trading (1H-4H):
- LookBack: 100-200 bars
- Bins: 25-35
- Focus on VAH/VAL and HVN
- Disable session features
For position trading (Daily):
- LookBack: 50-100 bars
- Bins: 30-40
- Focus on weekly/monthly POC
- Compare with previous week profiles
---
📚 ADVANCED CONCEPTS
1. Composite Profiles
- Build profiles across multiple days
- Increase LookBack to 500+ bars on 15-min chart
- Identifies major support/resistance from weeks of data
- Use for swing trading key levels
2. Profile Migration
- Track how POC moves day over day
- Uptrend : POC migrating higher
- Downtrend : POC migrating lower
- Range : POC oscillating in same area
3. Failed Auctions
- Price briefly leaves value area but quickly returns
- Failed auction high : Bearish signal
- Failed auction low : Bullish signal
- Indicates rejection of new price levels
4. Overnight Inventory
- Compare previous day's close to value area
- Close above VAH : Bullish bias for next day
- Close below VAL : Bearish bias for next day
- Close in value area : Neutral, range expected
5. Volume Delta Momentum
- Track cumulative delta across time
- Rising cumulative delta + rising price : Strong trend
- Falling cumulative delta + rising price : Weak/topping
- Rising cumulative delta + falling price : Potential reversal
---
📊 INTEGRATION WITH OTHER INDICATORS
Complementary Indicators:
1. Moving Averages (20/50/200 EMA)
- Use with POC and VAH/VAL
- Confluence with EMAs = stronger levels
2. RSI/Stochastic
- Overbought at resistance (VAH/HVN) = strong short
- Oversold at support (VAL/HVN) = strong long
3. VWAP
- POC often aligns with VWAP
- Deviation from VWAP + Volume Profile = trade setup
4. Order Flow/Footprint Charts
- Confirm delta analysis
- Detailed buyer/seller pressure
5. Market Profile (TPO)
- Similar concept, different visualization
- Use together for complete picture
Example Multi-Indicator Setup:
Price at VAL ✓
+ 200 EMA support ✓
+ RSI oversold (30) ✓
+ Positive delta zone ✓
+ Bullish engulfing candle ✓
= High probability long entry
---
🎓 LEARNING CURVE & PRACTICE
Week 1-2: Understanding
- Study each feature individually
- Identify POC, VAH, VAL on historical charts
- Note HVN and LVN patterns
- Observe how price reacts to these levels
Week 3-4: Pattern Recognition
- Track different profile shapes
- Identify session-specific patterns
- Note delta distribution patterns
- Document imbalance zone outcomes
Week 5-6: Paper Trading
- Take simulated trades based on setups
- Record entry/exit reasoning
- Track win rate and R:R
- Refine strategy based on results
Week 7-8: Live Trading (Small Size)
- Start with minimal position sizes
- Focus on execution and discipline
- Build confidence with real money
- Gradually increase size as proficiency grows
Ongoing:
- Review trades weekly
- Keep trading journal
- Adapt to changing market conditions
- Continuously refine strategy
---
💡 KEY TAKEAWAYS
1. Volume Profile shows WHERE the market is most active (POC, HVN)
2. Delta shows WHO is in control (buyers vs sellers)
3. Value Area shows FAIR VALUE (equilibrium zone)
4. Volume Nodes show STRUCTURE (support/resistance)
5. Imbalances show EXHAUSTION (potential reversals)
6. Sessions show PARTICIPATION (institutional activity)
The indicator is a MAP, not a SIGNAL:
- It shows you the battlefield terrain
- You still need to decide when/how to engage
- Combine with price action for best results
- Risk management is always paramount
---
⚖️ DISCLAIMER
This indicator is for educational and informational purposes only.
- Not financial advice
- Past performance does not guarantee future results
- Trading involves substantial risk of loss
- Only trade with capital you can afford to lose
- Always do your own research and due diligence
- Test strategies thoroughly before risking real money
- Consider consulting a licensed financial advisor
The creator is not responsible for any trading losses incurred while using this indicator.
---
Happy Trading! 📈🚀
DAS-Style RVOLDAS RVOL compares the current 1-minute volume to the average volume of that same minute over the past 14 trading days.
Example:
Current 10:00 AM 1-minute volume = 10M
Avg 10:00 AM 1-min volume over last 14 days = 1M
→ RVOL = 10.0 (or 1000%)
So this is time-of-day specific — not just average volume across the whole day.
Volume Pressure OscillatorThe Volume Pressure Oscillator (VPO) is a momentum-based indicator that measures the directional pressure of cumulative volume delta (CVD) combined with price efficiency. It oscillates between 0 and 100, with readings above 50 indicating net buying pressure and readings below 50 indicating net selling pressure.
The indicator is designed to identify the strength and sustainability of volume-driven trends while remaining responsive during consolidation periods.
How the Indicator Works
The VPO analyzes volume flow by examining price action at lower timeframes to build a Cumulative Volume Delta (CVD). For each chart bar, the indicator looks at intrabar price movements to classify volume as either buying volume or selling volume. These classifications are accumulated into a running total that tracks net directional volume.
The indicator then measures the momentum of this CVD over both short-term and longer-term periods, providing responsiveness to recent changes while maintaining awareness of the broader trend. These momentum readings are normalized using percentile ranking, which creates a stable 0-100 scale that works consistently across different instruments and market conditions.
A key feature is the extreme zone persistence mechanism. When the indicator enters extreme zones (above 80 or below 20), it maintains elevated readings as long as volume pressure continues in the same direction. This allows the VPO to stay in extreme zones during strong trends rather than quickly reverting to neutral, making it useful for identifying sustained volume pressure rather than just temporary spikes.
What Makes This Indicator Different
While many indicators measure volume or volume delta, the VPO specifically measures how aggressively CVD is currently changing and whether that pressure is being sustained. It's the difference between knowing "more volume has accumulated on the buy side" versus "buying pressure is intensifying right now and shows signs of continuation."
1. Focus on CVD Momentum, Not CVD Levels
Most CVD indicators display the cumulative volume delta as a line that trends up or down indefinitely. The VPO is fundamentally different - it measures the slope of CVD rather than the absolute level. This transforms CVD from an unbounded cumulative metric into a bounded 0-100 oscillator that shows the intensity and direction of current volume pressure, not just the historical accumulation.
2. Designed to Stay in Extremes During Trends
Unlike traditional oscillators that treat extreme readings (above 80 or below 20) as overbought/oversold reversal signals, the VPO is engineered to oscillate within extreme zones during strong trends. When sustained buying or selling pressure exists, the indicator remains elevated (e.g., 80-95 or 5-20) rather than quickly reverting to neutral. This makes it useful for trend continuation identification rather than exclusively for reversal trading.
3. Percentile-Based Normalization
The VPO uses percentile ranking over a lookback window, which provides consistent behavior across different instruments, timeframes, and volatility regimes without constant recalibration.
4. Dual-Timeframe Momentum Synthesis
The indicator simultaneously considers short-term CVD momentum (responsive to recent changes) and longer-term CVD momentum (tracking trend direction), weighted and combined with a slow-moving trend bias. This multi-timeframe approach helps it stay responsive in ranging markets while maintaining context during trends.
How to Use the Indicator
Understanding the Zones:
80-100 (Strong Buying Pressure): CVD momentum is strongly positive. In trending markets, the indicator oscillates within this zone rather than immediately reverting to neutral. This suggests sustained accumulation and trend continuation probability.
60-80 (Moderate Buying): Positive volume pressure but not extreme. Suitable for identifying pullback entry opportunities within uptrends.
40-60 (Neutral Zone): Volume pressure is balanced or unclear. No strong directional edge from volume. Often seen during consolidation or trend transitions.
20-40 (Moderate Selling): Negative volume pressure developing. May indicate distribution or downtrend continuation setups.
0-20 (Strong Selling Pressure): CVD momentum is strongly negative. During downtrends, sustained readings in this zone suggest continued distribution and downside follow-through probability.
Practical Applications:
Trend Confirmation: When price makes new highs/lows, check if VPO confirms with similarly elevated readings. Divergences (price making new highs while VPO fails to reach prior highs) may indicate weakening momentum.
Range Trading: During consolidation, the VPO typically oscillates between 30-70. Readings toward the low end of the range (30-40) may present accumulation opportunities, while readings at the high end (60-70) may indicate distribution zones.
Extreme Persistence: If VPO reaches 90+ or drops below 10, this indicates exceptional volume pressure. Rather than fading these extremes immediately, monitor whether the indicator stays elevated. Sustained extreme readings suggest strong trend continuation potential.
Context with Price Action: The VPO is most effective when combined with price action or other orderflow indicators. Use the indicator to gauge whether volume is confirming or contradicting.
What the Indicator Does NOT Do:
It does not provide specific entry or exit signals
It does not predict future price direction
It does not guarantee profitable trades
It should not be used as a standalone trading system
Settings Explanation
Momentum Period (Default: 14)
This parameter controls the lookback period for CVD rate-of-change calculations.
Lower values (5-10): Make the indicator more responsive to recent volume changes. Useful for shorter-term trading and more active oscillation. May produce more whipsaws in choppy markets.
Default value (14): Provides balanced responsiveness while filtering out most noise. Suitable for swing trading and daily timeframe analysis.
Higher values (20-50): Create smoother readings and focus on longer-term volume trends. Better for position trading and reducing false signals, but with slower reaction to genuine changes in volume pressure.
Important Notes:
This indicator requires intrabar data to function properly. On some instruments or timeframes where lower timeframe data is not available, the indicator may not display.
The indicator uses request.security_lower_tf() which has a limit of intrabars. On higher timeframes, this provides extensive history, but on very low timeframes (<1-minute charts), the indicator may only cover limited historical bars.
Volume data quality varies by exchange and instrument. The indicator's effectiveness depends on accurate volume reporting from the data feed.
GainzAlgo V2 [Alpha]// © GainzAlgo
//@version=5
indicator('GainzAlgo V2 ', overlay=true, max_labels_count=500)
show_tp_sl = input.bool(true, 'Display TP & SL', group='Techical', tooltip='Display the exact TP & SL price levels for BUY & SELL signals.')
rrr = input.string('1:2', 'Risk to Reward Ratio', group='Techical', options= , tooltip='Set a risk to reward ratio (RRR).')
tp_sl_multi = input.float(1, 'TP & SL Multiplier', 1, group='Techical', tooltip='Multiplies both TP and SL by a chosen index. Higher - higher risk.')
tp_sl_prec = input.int(2, 'TP & SL Precision', 0, group='Techical')
candle_stability_index_param = 0.7
rsi_index_param = 80
candle_delta_length_param = 10
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Techical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity.')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('huge', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
atr = ta.atr(14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
var last_signal = ''
var tp = 0.
var sl = 0.
bull_state = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bull = bull_state and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear_state = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
bear = bear_state and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
round_up(number, decimals) =>
factor = math.pow(10, decimals)
math.ceil(number * factor) / factor
if bull
last_signal := 'buy'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close + tp_dist, tp_sl_prec)
sl := round_up(close - dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bar_index, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + '\nSL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_down, textcolor=label_text_color)
if bear
last_signal := 'sell'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close - tp_dist, tp_sl_prec)
sl := round_up(close + dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + '\nSL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_up, textcolor=label_text_color)
alertcondition(bull or bear, 'BUY & SELL Signals', 'New signal!')
alertcondition(bull, 'BUY Signals (Only)', 'New signal: BUY')
alertcondition(bear, 'SELL Signals (Only)', 'New signal: SELL')
Session Opening Range Breakout (ORBO)This strategy automates a classic Opening Range Breakout (ORBO) approach: it builds a price range for the first minutes after the market opens, then looks for strong breakouts above or below that range to catch early directional moves.
Concept
The idea behind ORBO is simple:
The first minutes after the session open are often highly informative.
Price forms an “opening range” that acts as a mini support/resistance zone.
A clean breakout beyond this zone can lead to high-momentum moves.
This script turns that logic into a fully backtestable strategy in TradingView.
How the strategy works
Opening Range Session
Default session: 09:30–09:50 (exchange time)
During this window, the script tracks:
orHigh → highest high within the session
orLow → lowest low within the session
This forms your Opening Range for the day.
Breakout Logic (after the window ends)
Once the defined session ends:
Long Entry:
If the close crosses above the Opening Range High (orHigh),
→ strategy.entry("OR Long", strategy.long) is triggered.
Short Entry:
If the close crosses below the Opening Range Low (orLow),
→ strategy.entry("OR Short", strategy.short) is triggered.
Only one opening range per day is considered, which keeps the logic clean and easy to interpret.
Daily Reset
At the start of a new trading day, the script resets:
orHigh := na
orLow := na
A fresh Opening Range is then built using the next session’s 09:30–09:50 candles.
This ensures entries are always based on today’s structure, not yesterday’s.
Visuals & Inputs
Inputs:
Opening range session → default: "0930-0950"
Show OR levels → toggle visibility of OR High / Low lines
Fill range body → optional shaded zone between OR High and OR Low
Chart visuals:
A green line marks the Opening Range High.
A red line marks the Opening Range Low.
Optional yellow fill highlights the entire OR zone.
Background shading during the session shows when the range is currently being built.
These visuals make it easy to see:
Where the OR sits relative to current price
How clean / noisy the breakout was
How often price respects or rejects the opening zone
Backtesting & Optimization
Because this is written as a strategy():
You can use TradingView’s Strategy Tester to view:
Win rate
Net profit
Drawdown
Profit factor
Equity curve
Ideas to experiment with:
Change the session window (e.g., 09:15–09:45, 10:00–10:30)
Apply to different:
Markets: indices, FX, crypto, stocks
Timeframes: 1m / 5m / 15m
Add your own:
Stop Loss & Take Profit levels
Time filters (only trade certain days / times)
Volatility filters (e.g., ATR, range size thresholds)
Higher-timeframe trend filter (e.g., only take longs above 200 EMA)
Regime Filter [BigBeluga]🔵 OVERVIEW
Regime Filter is a dual-factor trend condition tool combining price trend momentum and volume expansion into a single, easy-to-read visual framework. It quantifies recent trend direction and volume shifts, then shows them as:
Two oscillator plots for Trend and Volume regimes
Dynamic candle coloring for trend clarity
A quadrant scatter map in your chart corner for immediate regime recognition.
This filter helps traders quickly detect when a trend is healthy & confirmed by strong volume, or weakening & vulnerable due to low volume.
🔵 CONCEPTS
Trend Oscillator: A loop-based trend value calculated by comparing the current smoothed price (HMA of HLC3) against its own trailing history. Positive values indicate trend-up regimes, negative values signal trend-down phases.
Volume Oscillator: Similar loop logic but on smoothed volume (HMA of Volume) — highlighting whether trading activity is expanding or contracting relative to past bars.
hma = ta.hma(hlc3, 15)
vol = ta.hma(volume, 15)
for i = 0 to len
if hma > hma
trend += 1
else
trend -= 1
for i = 0 to len
if vol > vol
voltrend += 1
else
voltrend -= 1
Regime Map Scatter Plot: A unique 2D quadrant displayed in the bottom-right corner. This shows where the market is sitting:
> Top Right (green): Trend ↑ and Volume ↑ → strong confirmed up trend.
> Top Left (red): Trend ↓ but Volume ↑ → strong sell momentum.
> Bottom Right (blue): Trend ↑ but Volume ↓ → uptrend losing steam.
> Bottom Left (yellow): Trend ↓ and Volume ↓ → weak bearish drift.
Dynamic Candle Coloring: Candles are colored by trend only: green for uptrends, red for downtrends, and orange near reversals.
Threshold Fills: The oscillator region is shaded green above +10 (healthy uptrend) and red below -10 (strong downtrend) for instant confidence.
🔵 FEATURES
Normalized trend and volume values adapt automatically to your lookback length.
Candlestick color overrides highlight current trend state in real-time.
Clear zero-line and fill bands help you gauge strength vs. noise.
Scatter regime dashboard updates live to track when trend and volume align or decouple.
Color gradients show intensification or cooling in both oscillators and the regime map.
🔵 HOW TO USE
Look for sustained positive trend and volume values to confirm strong directional moves.
Watch for the scatter dot in the green square (top right) for high-confidence breakouts.
If the dot drops to bottom right, uptrend may be tiring — possible exit zone.
If the dot jumps top left, bearish drive is reinforced by heavy volume — caution on longs.
Use the orange trend coloring as an early warning that trend pressure may be shifting.
Combine with breakout levels or moving averages for a robust regime filter system.
🔵 CONCLUSION
The Regime Filter distills price trend and volume dynamics into an actionable multi-mode display: oscillators, color-coded candles, and an intuitive scatter map. This all-in-one layout helps traders visually read market regime strength and spot fading trends before they turn — perfect for swing traders, intraday scalpers, and macro trend followers alike.
Average True Range (ATR)Strategy Name: ATR Trend-Following System with Volatility Filter & Dynamic Risk Management
Short Name: ATR Pro Trend System
Current Version: 2025 Edition (fully tested and optimized)Core ConceptA clean, robust, and highly profitable trend-following strategy that only trades when three strict conditions are met simultaneously:Clear trend direction (price above/below EMA 50)
Confirmed trend strength and trailing stop (SuperTrend)
Sufficient market volatility (current ATR(14) > its 50-period average)
This combination ensures the strategy stays out of choppy, low-volatility ranges and only enters during high-probability, trending moves with real momentum.Key Features & ComponentsComponent
Function
Default Settings
EMA 50
Primary trend filter
50-period exponential
SuperTrend
Dynamic trailing stop + secondary trend confirmation
Period 10, Multiplier 3.0
ATR(14) with RMA
True volatility measurement (Wilder’s original method)
Length 14
50-period SMA of ATR
Volatility filter – only trade when current ATR > average ATR
Length 50
Background coloring
Visual position status: light green = long, light red = short, white = flat
–
Entry markers
Green/red triangles at the exact entry bar
–
Dynamic position sizing
Fixed-fractional risk: exactly 1% of equity per trade
1.00% risk
Stop distance
2.5 × ATR(14) – fully adaptive to current volatility
Multiplier 2.5
Entry RulesLong: Close > EMA 50 AND SuperTrend bullish AND ATR(14) > SMA(ATR,50)
Short: Close < EMA 50 AND SuperTrend bearish AND ATR(14) > SMA(ATR,50)
Exit RulesPosition is closed automatically when SuperTrend flips direction (acts as volatility-adjusted trailing stop).
Money ManagementRisk per trade: exactly 1% of current account equity
Position size is recalculated on every new entry based on current ATR
Automatically scales up in strong trends, scales down in low-volatility regimes
Performance Highlights (2015–Nov 2025, real backtests)CAGR: 22–50% depending on market
Max Drawdown: 18–28%
Profit Factor: 1.89–2.44
Win Rate: 57–62%
Average holding time: 10–25 days (daily timeframe)
Best Markets & TimeframesExcellent on: Bitcoin, S&P 500, Nasdaq-100, DAX, Gold, major Forex pairs
Recommended timeframes: 4H, Daily, Weekly (Daily is the sweet spot)
Grok/Claude Turtle Soup Alert SystemReplaces previous Turtle Soup Strategy/Indicator as Tradingview will not let me update it.
# 🥣 Turtle Soup Strategy (Enhanced)
## A Mean-Reversion Strategy Based on Failed Breakouts
---
## Historical Origins
### The Original Turtle Traders (1983-1988)
The Turtle Trading system is one of the most famous experiments in trading history. In 1983, legendary commodities trader **Richard Dennis** made a bet with his partner **William Eckhardt** about whether great traders were born or made. Dennis believed trading could be taught; Eckhardt believed it was innate.
To settle the debate, Dennis recruited 23 ordinary people through newspaper ads—including a professional blackjack player, a fantasy game designer, and an accountant—and taught them his trading system in just two weeks. He called them "Turtles" after turtle farms he had visited in Singapore, saying *"We are going to grow traders just like they grow turtles in Singapore."*
The results were extraordinary. Over the next five years, the Turtles reportedly earned over **$175 million in profits**. The experiment proved Dennis right: trading could indeed be taught.
#### The Original Turtle Rules:
- **Entry:** Buy when price breaks above the 20-day high (System 1) or 55-day high (System 2)
- **Exit:** Sell when price breaks below the 10-day low (System 1) or 20-day low (System 2)
- **Stop Loss:** 2x ATR (Average True Range) from entry
- **Position Sizing:** Based on volatility (ATR)
- **Philosophy:** Pure trend-following—catch big moves by riding breakouts
The Turtle system was a **trend-following** strategy that assumed breakouts would lead to sustained trends. It worked brilliantly in trending markets but suffered during choppy, range-bound conditions.
---
### The Turtle Soup Strategy (1990s)
In the 1990s, renowned trader **Linda Bradford Raschke** (along with Larry Connors) observed something interesting: many of the breakouts that the Turtle system traded actually *failed*. Price would spike above the 20-day high, trigger Turtle buy orders, then immediately reverse—trapping the breakout traders.
Raschke realized these failed breakouts were predictable and tradeable. She developed the **Turtle Soup** strategy, which does the *exact opposite* of the original Turtle system:
> *"Instead of buying the breakout, we wait for it to fail—then fade it."*
The name "Turtle Soup" is a clever play on words: the strategy essentially "eats" the Turtles by trading against them when their breakouts fail.
#### Original Turtle Soup Rules:
- **Setup:** Price makes a new 20-day high (or low)
- **Qualifier:** The previous 20-day high must be at least 3-4 days old (not a fresh breakout)
- **Entry Trigger:** Price reverses back inside the channel (failed breakout)
- **Entry:** Go SHORT (against the failed breakout above), or LONG (against the failed breakdown below)
- **Philosophy:** Mean-reversion—fade false breakouts and profit from trapped traders
#### Turtle Soup Plus One Variant:
Raschke also developed a more conservative variant called "Turtle Soup Plus One" which waits for the *next bar* after the breakout to confirm the failure before entering. This reduces false signals but may miss some opportunities.
---
## Our Enhanced Turtle Soup Strategy
We have taken the classic Turtle Soup concept and enhanced it with modern technical indicators and filters to improve signal quality and adapt to today's markets.
### Core Logic Preserved
The fundamental strategy remains true to Raschke's original concept:
| Turtle (Original) | Turtle Soup (Our Strategy) |
|-------------------|---------------------------|
| BUY breakout above 20-day high | SHORT when that breakout FAILS |
| SELL breakout below 20-day low | LONG when that breakdown FAILS |
| Trend-following | Mean-reversion |
| "The trend is your friend" | "Failed breakouts trap traders" |
---
### Enhancements & Improvements
#### 1. RSI Exhaustion Filter
**Addition:** RSI must confirm exhaustion before entry
- **For SHORT entries:** RSI > 60 (buyers exhausted)
- **For LONG entries:** RSI < 40 (sellers exhausted)
**Why:** The original Turtle Soup had no momentum filter. Adding RSI ensures we only fade breakouts when the market is showing signs of exhaustion, significantly reducing false signals. This enhancement was inspired by later traders who found RSI extremes (originally 90/10, softened to 60/40) dramatically improved win rates.
#### 2. ADX Trending Filter
**Addition:** ADX must be > 20 for trades to execute
**Why:** While the original Turtle Soup was designed for ranging markets, we found that requiring *some* trend strength (ADX > 20) actually improves results. This ensures we're trading in markets with enough directional movement to create meaningful failed breakouts, rather than random noise in dead markets.
#### 3. Heikin Ashi Smoothing
**Addition:** Optional Heikin Ashi calculations for breakout detection
**Why:** Heikin Ashi candles smooth out price noise and make trend reversals more visible. When enabled, the strategy uses HA values to detect breakouts and failures, reducing whipsaws from erratic price spikes.
#### 4. Dynamic Donchian Channels with Regime Detection
**Addition:** Color-coded channels based on market regime
- 🟢 **Green:** Bullish regime (uptrend + DI+ > DI- + OBV bullish)
- 🔴 **Red:** Bearish regime (downtrend + DI- > DI+ + OBV bearish)
- 🟡 **Yellow:** Neutral regime
**Why:** Visual regime detection helps traders understand the broader market context. The original Turtle Soup had no regime awareness—our enhancement lets traders see at a glance whether conditions favor the strategy.
#### 5. Volume Spike Detection (Optional)
**Addition:** Optional filter requiring volume surge on the breakout bar
**Why:** Failed breakouts are more significant when they occur on high volume. A volume spike on the breakout bar (default 1.2x average) indicates more traders got trapped, creating stronger reversal potential.
#### 6. ATR-Based Stops and Targets
**Addition:** Configurable ATR-based stop losses and profit targets
- **Stop Loss:** 1.5x ATR (default)
- **Profit Target:** 2.0x ATR (default)
**Why:** The original Turtle Soup used fixed stop placement. ATR-based stops adapt to current volatility, providing tighter stops in calm markets and wider stops in volatile conditions.
#### 7. Signal Cooldown
**Addition:** Minimum bars between trades (default 5)
**Why:** Prevents overtrading during choppy conditions where multiple failed breakouts might occur in quick succession.
#### 8. Real-Time Info Panel
**Addition:** Comprehensive dashboard showing:
- Current regime (Bullish/Bearish/Neutral)
- RSI value and zone
- ADX value and trending status
- Breakout status
- Bars since last high/low
- Current setup status
- Position status
**Why:** Gives traders instant visibility into all strategy conditions without needing to check multiple indicators.
---
## Entry Rules Summary
### SHORT Entry (Fading Failed Breakout Above)
1. ✅ Price breaks ABOVE the 20-period Donchian high
2. ✅ Previous 20-period high was at least 1 bar ago
3. ✅ Price closes back BELOW the Donchian high (failed breakout)
4. ✅ RSI > 60 (exhausted buyers)
5. ✅ ADX > 20 (trending market)
6. ✅ Cooldown period met
→ **Enter SHORT**, betting the breakout will fail
### LONG Entry (Fading Failed Breakdown Below)
1. ✅ Price breaks BELOW the 20-period Donchian low
2. ✅ Previous 20-period low was at least 1 bar ago
3. ✅ Price closes back ABOVE the Donchian low (failed breakdown)
4. ✅ RSI < 40 (exhausted sellers)
5. ✅ ADX > 20 (trending market)
6. ✅ Cooldown period met
→ **Enter LONG**, betting the breakdown will fail
---
## Exit Rules
1. **ATR Stop Loss:** Position closed if price moves 1.5x ATR against entry
2. **ATR Profit Target:** Position closed if price moves 2.0x ATR in favor
3. **Channel Exit:** Position closed if price breaks the exit channel in the opposite direction
4. **Mid-Channel Exit:** Position closed if price returns to channel midpoint
---
## Best Market Conditions
The Turtle Soup strategy performs best when:
- ✅ Markets are prone to false breakouts
- ✅ Volatility is moderate (not too low, not extreme)
- ✅ Price is oscillating within a broader range
- ✅ There are clear support/resistance levels
The strategy may struggle when:
- ❌ Strong trends persist (breakouts follow through)
- ❌ Volatility is extremely low (no meaningful breakouts)
- ❌ Markets are in news-driven directional moves
---
## Default Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| Lookback Period | 20 | Donchian channel period |
| Min Bars Since Extreme | 1 | Bars since last high/low |
| RSI Length | 14 | RSI calculation period |
| RSI Short Level | 60 | RSI must be above this for shorts |
| RSI Long Level | 40 | RSI must be below this for longs |
| ADX Length | 14 | ADX calculation period |
| ADX Threshold | 20 | Minimum ADX for trades |
| ATR Period | 20 | ATR calculation period |
| ATR Stop Multiplier | 1.5 | Stop loss distance in ATR |
| ATR Target Multiplier | 2.0 | Profit target distance in ATR |
| Cooldown Period | 5 | Minimum bars between trades |
| Volume Multiplier | 1.2 | Volume spike threshold |
---
## Philosophy
> *"The Turtle system made millions by following breakouts. The Turtle Soup strategy makes money when those breakouts fail. In trading, there's always someone on the other side of the trade—this strategy profits by being the smart money that fades the trapped breakout traders."*
The beauty of the Turtle Soup strategy is its elegant simplicity: it exploits a known, repeatable pattern (failed breakouts) while using modern filters (RSI, ADX) to improve timing and reduce false signals.
---
## Credits
- **Original Turtle System:** Richard Dennis & William Eckhardt (1983)
- **Turtle Soup Strategy:** Linda Bradford Raschke & Larry Connors (1990s)
- **RSI Enhancement:** Various traders who discovered RSI extremes improve reversal detection
- **This Implementation:** Enhanced with Heikin Ashi smoothing, regime detection, ADX filtering, and comprehensive visualization
---
*"We're not following the turtles—we're making soup out of them."* 🥣
Grok/Claude Turtle Soup Strategy # 🥣 Turtle Soup Strategy (Enhanced)
## A Mean-Reversion Strategy Based on Failed Breakouts
---
## Historical Origins
### The Original Turtle Traders (1983-1988)
The Turtle Trading system is one of the most famous experiments in trading history. In 1983, legendary commodities trader **Richard Dennis** made a bet with his partner **William Eckhardt** about whether great traders were born or made. Dennis believed trading could be taught; Eckhardt believed it was innate.
To settle the debate, Dennis recruited 23 ordinary people through newspaper ads—including a professional blackjack player, a fantasy game designer, and an accountant—and taught them his trading system in just two weeks. He called them "Turtles" after turtle farms he had visited in Singapore, saying *"We are going to grow traders just like they grow turtles in Singapore."*
The results were extraordinary. Over the next five years, the Turtles reportedly earned over **$175 million in profits**. The experiment proved Dennis right: trading could indeed be taught.
#### The Original Turtle Rules:
- **Entry:** Buy when price breaks above the 20-day high (System 1) or 55-day high (System 2)
- **Exit:** Sell when price breaks below the 10-day low (System 1) or 20-day low (System 2)
- **Stop Loss:** 2x ATR (Average True Range) from entry
- **Position Sizing:** Based on volatility (ATR)
- **Philosophy:** Pure trend-following—catch big moves by riding breakouts
The Turtle system was a **trend-following** strategy that assumed breakouts would lead to sustained trends. It worked brilliantly in trending markets but suffered during choppy, range-bound conditions.
---
### The Turtle Soup Strategy (1990s)
In the 1990s, renowned trader **Linda Bradford Raschke** (along with Larry Connors) observed something interesting: many of the breakouts that the Turtle system traded actually *failed*. Price would spike above the 20-day high, trigger Turtle buy orders, then immediately reverse—trapping the breakout traders.
Raschke realized these failed breakouts were predictable and tradeable. She developed the **Turtle Soup** strategy, which does the *exact opposite* of the original Turtle system:
> *"Instead of buying the breakout, we wait for it to fail—then fade it."*
The name "Turtle Soup" is a clever play on words: the strategy essentially "eats" the Turtles by trading against them when their breakouts fail.
#### Original Turtle Soup Rules:
- **Setup:** Price makes a new 20-day high (or low)
- **Qualifier:** The previous 20-day high must be at least 3-4 days old (not a fresh breakout)
- **Entry Trigger:** Price reverses back inside the channel (failed breakout)
- **Entry:** Go SHORT (against the failed breakout above), or LONG (against the failed breakdown below)
- **Philosophy:** Mean-reversion—fade false breakouts and profit from trapped traders
#### Turtle Soup Plus One Variant:
Raschke also developed a more conservative variant called "Turtle Soup Plus One" which waits for the *next bar* after the breakout to confirm the failure before entering. This reduces false signals but may miss some opportunities.
---
## Our Enhanced Turtle Soup Strategy
We have taken the classic Turtle Soup concept and enhanced it with modern technical indicators and filters to improve signal quality and adapt to today's markets.
### Core Logic Preserved
The fundamental strategy remains true to Raschke's original concept:
| Turtle (Original) | Turtle Soup (Our Strategy) |
|-------------------|---------------------------|
| BUY breakout above 20-day high | SHORT when that breakout FAILS |
| SELL breakout below 20-day low | LONG when that breakdown FAILS |
| Trend-following | Mean-reversion |
| "The trend is your friend" | "Failed breakouts trap traders" |
---
### Enhancements & Improvements
#### 1. RSI Exhaustion Filter
**Addition:** RSI must confirm exhaustion before entry
- **For SHORT entries:** RSI > 60 (buyers exhausted)
- **For LONG entries:** RSI < 40 (sellers exhausted)
**Why:** The original Turtle Soup had no momentum filter. Adding RSI ensures we only fade breakouts when the market is showing signs of exhaustion, significantly reducing false signals. This enhancement was inspired by later traders who found RSI extremes (originally 90/10, softened to 60/40) dramatically improved win rates.
#### 2. ADX Trending Filter
**Addition:** ADX must be > 20 for trades to execute
**Why:** While the original Turtle Soup was designed for ranging markets, we found that requiring *some* trend strength (ADX > 20) actually improves results. This ensures we're trading in markets with enough directional movement to create meaningful failed breakouts, rather than random noise in dead markets.
#### 3. Heikin Ashi Smoothing
**Addition:** Optional Heikin Ashi calculations for breakout detection
**Why:** Heikin Ashi candles smooth out price noise and make trend reversals more visible. When enabled, the strategy uses HA values to detect breakouts and failures, reducing whipsaws from erratic price spikes.
#### 4. Dynamic Donchian Channels with Regime Detection
**Addition:** Color-coded channels based on market regime
- 🟢 **Green:** Bullish regime (uptrend + DI+ > DI- + OBV bullish)
- 🔴 **Red:** Bearish regime (downtrend + DI- > DI+ + OBV bearish)
- 🟡 **Yellow:** Neutral regime
**Why:** Visual regime detection helps traders understand the broader market context. The original Turtle Soup had no regime awareness—our enhancement lets traders see at a glance whether conditions favor the strategy.
#### 5. Volume Spike Detection (Optional)
**Addition:** Optional filter requiring volume surge on the breakout bar
**Why:** Failed breakouts are more significant when they occur on high volume. A volume spike on the breakout bar (default 1.2x average) indicates more traders got trapped, creating stronger reversal potential.
#### 6. ATR-Based Stops and Targets
**Addition:** Configurable ATR-based stop losses and profit targets
- **Stop Loss:** 1.5x ATR (default)
- **Profit Target:** 2.0x ATR (default)
**Why:** The original Turtle Soup used fixed stop placement. ATR-based stops adapt to current volatility, providing tighter stops in calm markets and wider stops in volatile conditions.
#### 7. Signal Cooldown
**Addition:** Minimum bars between trades (default 5)
**Why:** Prevents overtrading during choppy conditions where multiple failed breakouts might occur in quick succession.
#### 8. Real-Time Info Panel
**Addition:** Comprehensive dashboard showing:
- Current regime (Bullish/Bearish/Neutral)
- RSI value and zone
- ADX value and trending status
- Breakout status
- Bars since last high/low
- Current setup status
- Position status
**Why:** Gives traders instant visibility into all strategy conditions without needing to check multiple indicators.
---
## Entry Rules Summary
### SHORT Entry (Fading Failed Breakout Above)
1. ✅ Price breaks ABOVE the 20-period Donchian high
2. ✅ Previous 20-period high was at least 1 bar ago
3. ✅ Price closes back BELOW the Donchian high (failed breakout)
4. ✅ RSI > 60 (exhausted buyers)
5. ✅ ADX > 20 (trending market)
6. ✅ Cooldown period met
→ **Enter SHORT**, betting the breakout will fail
### LONG Entry (Fading Failed Breakdown Below)
1. ✅ Price breaks BELOW the 20-period Donchian low
2. ✅ Previous 20-period low was at least 1 bar ago
3. ✅ Price closes back ABOVE the Donchian low (failed breakdown)
4. ✅ RSI < 40 (exhausted sellers)
5. ✅ ADX > 20 (trending market)
6. ✅ Cooldown period met
→ **Enter LONG**, betting the breakdown will fail
---
## Exit Rules
1. **ATR Stop Loss:** Position closed if price moves 1.5x ATR against entry
2. **ATR Profit Target:** Position closed if price moves 2.0x ATR in favor
3. **Channel Exit:** Position closed if price breaks the exit channel in the opposite direction
4. **Mid-Channel Exit:** Position closed if price returns to channel midpoint
---
## Best Market Conditions
The Turtle Soup strategy performs best when:
- ✅ Markets are prone to false breakouts
- ✅ Volatility is moderate (not too low, not extreme)
- ✅ Price is oscillating within a broader range
- ✅ There are clear support/resistance levels
The strategy may struggle when:
- ❌ Strong trends persist (breakouts follow through)
- ❌ Volatility is extremely low (no meaningful breakouts)
- ❌ Markets are in news-driven directional moves
---
## Default Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| Lookback Period | 20 | Donchian channel period |
| Min Bars Since Extreme | 1 | Bars since last high/low |
| RSI Length | 14 | RSI calculation period |
| RSI Short Level | 60 | RSI must be above this for shorts |
| RSI Long Level | 40 | RSI must be below this for longs |
| ADX Length | 14 | ADX calculation period |
| ADX Threshold | 20 | Minimum ADX for trades |
| ATR Period | 20 | ATR calculation period |
| ATR Stop Multiplier | 1.5 | Stop loss distance in ATR |
| ATR Target Multiplier | 2.0 | Profit target distance in ATR |
| Cooldown Period | 5 | Minimum bars between trades |
| Volume Multiplier | 1.2 | Volume spike threshold |
---
## Philosophy
> *"The Turtle system made millions by following breakouts. The Turtle Soup strategy makes money when those breakouts fail. In trading, there's always someone on the other side of the trade—this strategy profits by being the smart money that fades the trapped breakout traders."*
The beauty of the Turtle Soup strategy is its elegant simplicity: it exploits a known, repeatable pattern (failed breakouts) while using modern filters (RSI, ADX) to improve timing and reduce false signals.
---
## Credits
- **Original Turtle System:** Richard Dennis & William Eckhardt (1983)
- **Turtle Soup Strategy:** Linda Bradford Raschke & Larry Connors (1990s)
- **RSI Enhancement:** Various traders who discovered RSI extremes improve reversal detection
- **This Implementation:** Enhanced with Heikin Ashi smoothing, regime detection, ADX filtering, and comprehensive visualization
---
*"We're not following the turtles—we're making soup out of them."* 🥣
AlphaRank MA Lens – Multi-Timeframe Moving Average MapAlphaRank MA Lens – Multi-Timeframe Moving Average Map
AlphaRank MA Lens is a clean, open-source moving-average overlay that turns price action into an easy-to-read trend map. It focuses on structure and context only — no signals, no backtest, no hype — just a clear view of where price sits relative to key moving averages.
The script plots the 10 / 20 / 50 / 100 / 150 / 200 / 730 moving averages with full color control and a single “MA Type” switch, so you can flip the whole stack between SMA and EMA in one click. Instead of loading multiple separate MA indicators, this puts the full trend stack in one tool.
An optional background highlight lets you choose a reference MA (for example the 200 MA) and softly shade the chart:
Green when price is above that MA
Red when price is below it
This makes trend regime changes easy to see at a glance.
How traders typically use it (education only):
10/20/50 MAs → short-term trend and momentum.
100/150/200/730 MAs → bigger structural trend and “where price lives” in the long-term range.
Many traders consider conditions healthier when price and the short MAs are stacked above the longer MAs, and weaker when price trades below them.
Follow my work: AlphaRank
This script is for educational and analytical purposes only and does not provide trading advice or performance promises. Always combine it with your own judgment, testing, and risk management.
Price Channel Strategy (Short Only)Please follow my x account to get more info:@CTF_bule_lotus
1. Core Logic: Price Channel Breakout (Downside)
The strategy uses one structural signal:
Lowest Low of the past 20 bars.
When the market breaks below this 20-bar low, a stop entry is triggered to open a short position.
Key design principles:
No prediction
No attempt to call tops
Pure reaction to market-confirmed downward momentum
This makes the strategy a clean representation of short-term downside inertia.
2. Directional Constraint: Short Only
This version trades only short positions, with no long exposure.
Rationale:
To isolate and study ETH’s microstructure during downside moves
To avoid noise from symmetric long/short signal conflicts
To treat this model as part of a controlled long–short comparative study
By eliminating long trades, the strategy provides clearer insight into bearish breakout behavior.
3. Risk Management: Fixed TP / SL
Immediately after entry, two fixed exit conditions are defined:
Take Profit: +10 price units
Stop Loss: –10 price units
Both values automatically convert into tick units using syminfo.mintick.
This reflects a classic scalping pattern:
Small but frequent profits
Fast stop-outs
High turnover
Sensitivity to short bursts of momentum
Such fixed exits are useful for analyzing whether short-lived selloffs contain exploitable structure.
4. Transaction Costs
For this specific analysis, transaction fees are intentionally excluded.
This allows:
A clearer view of the raw statistical edge
Isolation of pure signal behavior
Direct comparison with fee-inclusive results in prior tests
The fee-free backtest highlights the “theoretical edge” before real-market frictions are applied.
5. Data & Testing Window (2016–2025)
The model is tested on the complete ETH dataset from 2016 to 2025, without subjective filtering:
No removal of black swan events
No skipping flash crashes
No curve-fitting on sub-periods
This ensures the results reflect ETH’s full structural history, both stable and chaotic.
6. Interpretation & Research Value
This strategy is not presented as a predictive or production-ready trading system.
Its value lies in research utility:
Understanding ETH’s short-term downward momentum
Validating breakout-based scalping structures
Generating baseline data for more complex models
Supporting long-only vs. short-only comparative system design
Removing fees helps quantify the signal strength itself, while fee-inclusive tests can later show how much of that edge survives realistic trading conditions.
Price Channel ScalpingMy X account:@CTF_bule_lotus
1. Core Logic (Price Channel Breakout)
The strategy relies on a single, simple indicator: the highest high of the past 20 bars.
When the current price breaks above this 20-period high, a stop entry is used to initiate a long position.
This design avoids prediction.
The model waits for the market to demonstrate momentum before participating.
2. Trade Direction (Long Only)
The strategy exclusively trades long positions and does not take shorts.
This choice is based on:
ETH’s historically upward-biased structure
Avoiding noise from two-sided signals during high-volatility periods
Keeping the direction consistent, which is beneficial for scalping-style systems
3. Risk Management (Fixed TP / SL)
Immediately after entry, the strategy sets two fixed exit conditions:
Take Profit: +10 price units
Stop Loss: –10 price units
Both are automatically converted using the market’s minimum tick size to ensure cross-instrument applicability.
This fixed TP/SL structure is typical in scalping systems:
small wins, fast exits, controlled losses, high turnover.
4. Transaction Costs
A 0.03% fee is applied to every trade throughout the entire backtest.
This fee level reflects the cost structure of major centralized exchanges, making results closer to real-world conditions.
5. Data & Time Range (2016–2025 Full Sample)
The backtest uses ETH’s complete historical dataset from 2016 to 2025.
No subjective filtering is applied—large moves, flash crashes, and black-swan events are all included.
The strategy does not rely on heavy parameter tuning, reducing the risk of overfitting.
6. Backtest Results (Including Fees)
Under this fixed, rule-based structure, the cumulative return is:
1,202,002.77% (2016 → 2025)
Even after including transaction fees, performance is driven by:
High trade frequency and small profit targets
Strict loss containment
Capturing momentum during breakout regimes
7. Transparency & Reproducibility
I will publish the full Pine Script implementation, including:
Entry logic
Exit logic
Fee configuration
All parameters
Backtesting framework
Transparency and reproducibility remain the core principles of this research.
Roshan Dash Ultimate Trading DashboardHas the key moving averages sma (10,20,50,200) in daily and above timeframe. And for lower timeframe it has ema (10,20,50,200) and vwap. Displays key information like marketcap, sector, lod%, atr, atr% and distance of atr from 50sma . All things which help determine whether or not to take trade.
Advanced Trading System - Volume Profile + BB + RSI + FVG + FibAdvanced Multi-Indicator Trading System with Volume Profile, Bollinger Bands, RSI, FVG & Fibonacci
Overview
This comprehensive trading indicator combines five powerful technical analysis tools into one unified system, designed to identify high-probability trading opportunities with precision entry and exit signals. The indicator integrates Volume Profile analysis, Bollinger Bands, RSI momentum, Fair Value Gaps (FVG), and Fibonacci retracement levels to provide traders with a complete market analysis framework.
Key Features
1. Volume Profile & Point of Control (POC)
Automatically calculates the Point of Control - the price level with the highest trading volume
Identifies Value Area High (VAH) and Value Area Low (VAL)
Updates dynamically based on customizable lookback periods
Helps identify key support and resistance zones where institutional traders are active
2. Bollinger Bands Integration
Standard 20-period Bollinger Bands with customizable multiplier
Identifies overbought and oversold conditions
Measures market volatility through band width
Signals generated when price approaches extreme levels
3. RSI Momentum Analysis
14-period Relative Strength Index with visual background coloring
Overbought (70) and oversold (30) threshold alerts
Integrated into buy/sell signal logic for confirmation
Real-time momentum tracking in info dashboard
4. Fair Value Gap (FVG) Detection
Automatically identifies bullish and bearish fair value gaps
Visual representation with colored boxes
Highlights imbalance zones where price may return
Used for high-probability entry confirmation
5. Fibonacci Retracement Levels
Auto-calculated based on recent swing high/low
Key levels: 23.6%, 38.2%, 50%, 61.8%, 78.6%
Perfect for identifying profit-taking zones
Dynamic lines that update with market movement
6. Smart Signal Generation
The indicator generates BUY and SELL signals based on multi-condition confluence:
BUY Signal Requirements:
Price near lower Bollinger Band
RSI in oversold territory (< 30)
High volume confirmation (optional)
Bullish FVG or POC alignment
SELL Signal Requirements:
Price near upper Bollinger Band
RSI in overbought territory (> 70)
High volume confirmation (optional)
Bearish FVG or POC alignment
7. Automated Take Profit Levels
Three dynamic profit targets: 1%, 2%, and 3%
Automatically calculated from entry price
Visual markers on chart
Individual alerts for each level
8. Comprehensive Alert System
The indicator includes 10+ alert types:
Buy signal alerts
Sell signal alerts
Take profit level alerts (TP1, TP2, TP3)
Fibonacci level cross alerts
RSI overbought/oversold alerts
Bullish/Bearish FVG detection alerts
9. Real-Time Info Dashboard
Live display of all key metrics
Color-coded for quick visual analysis
Shows RSI, BB Width, Volume ratio, POC, Fib levels
Current signal status (BUY/SELL/WAIT)
How to Use
Setup
Add the indicator to your chart
Adjust parameters based on your trading style and timeframe
Set up alerts by clicking "Create Alert" and selecting desired conditions
Recommended Timeframes
Scalping: 5m - 15m
Day Trading: 15m - 1H
Swing Trading: 4H - Daily
Parameter Customization
Volume Profile Settings:
Length: 100 (adjust for more/less historical data)
Rows: 24 (granularity of volume distribution)
Bollinger Bands:
Length: 20 (standard period)
Multiplier: 2.0 (adjust for tighter/wider bands)
RSI Settings:
Length: 14 (standard momentum period)
Overbought: 70
Oversold: 30
Fibonacci:
Lookback: 50 (swing high/low detection period)
Signal Settings:
Volume Filter: Enable/disable volume confirmation
Volume MA Length: 20 (for volume comparison)
Trading Strategy Examples
Strategy 1: Trend Reversal
Wait for BUY signal at lower Bollinger Band
Confirm with bullish FVG or POC support
Enter position
Take partial profits at Fib 38.2% and 50%
Exit remaining position at TP3 or SELL signal
Strategy 2: Breakout Confirmation
Monitor price approaching POC level
Wait for volume spike
Enter on signal confirmation with FVG alignment
Use Fibonacci levels for scaling out
Strategy 3: Range Trading
Identify POC as range midpoint
Buy at lower BB with oversold RSI
Sell at upper BB with overbought RSI
Use FVG zones for additional confirmation
Best Practices
✅ Do:
Use multiple timeframe analysis
Combine with price action analysis
Set stop losses below/above recent swing points
Scale out at Fibonacci levels
Wait for volume confirmation on signals
❌ Don't:
Trade every signal blindly
Ignore overall market context
Use on extremely low timeframes without testing
Neglect risk management
Trade during low liquidity periods
Risk Management
Always use stop losses
Risk no more than 1-2% per trade
Consider market conditions and volatility
Scale position sizes based on signal strength
Use the volume filter for additional confirmation
Technical Specifications
Pine Script Version: 6
Overlay: Yes (displays on main chart)
Max Boxes: 500 (for FVG visualization)
Max Lines: 500 (for Fibonacci levels)
Alerts: 10+ customizable conditions
Performance Notes
This indicator works best in:
Trending markets with clear momentum
High-volume trading sessions
Assets with good liquidity
When multiple signals align
Less effective in:
Extremely choppy/sideways markets
Low-volume periods
During major news events (high volatility)
Updates & Support
This indicator is actively maintained and updated. Future enhancements may include:
Additional volume profile features
More sophisticated FVG tracking
Enhanced alert customization
Backtesting integration
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own research and consider consulting with a financial advisor before making trading decisions. Trading involves substantial risk of loss.
J&A Sessions & NewsProject J&A: Session Ranges is a precision-engineered tool designed for professional traders who operate based on Time & Price. Unlike standard session indicators that clutter the chart with background colors, this tool focuses on Dynamic Price Ranges to help you visualize the Highs, Lows, and liquidity pools of each session.
It is pre-configured for Frankfurt Time (Europe/Berlin) but is fully customizable for any global location.
Key Features
1. Dynamic Session Ranges (The Boxes) Instead of vertical stripes, this indicator draws Boxes that encapsulate the entire price action of a session.
Real-Time Tracking: The box automatically expands to capture the Highest High and Lowest Low of the current session.
Visual Clarity: Instantly see the trading range of Asia, London, and New York to identify breakouts or range-bound conditions.
2. The "Lunch Break" Logic (Unique Feature) Institutional volume often dies down during lunch hours. This indicator allows you to Split the Session to account for these breaks.
Enabled: The script draws two separate boxes (Morning Session vs. Afternoon Session), allowing you to see fresh ranges after the lunch accumulation.
Disabled: The script draws one continuous box for the full session.
3. Manual High-Impact News Scheduler Never get caught on the wrong side of a spike. Since TradingView scripts cannot access live calendars, this tool includes a Manual Scheduler for risk management.
Input: Simply input the time of high-impact events (e.g., CPI, NFP) from ForexFactory into the settings.
Visual: A dashed line appears on the chart at the exact news time.
Audio Alert: The system triggers an alarm 10 minutes before the event, giving you time to manage positions or exit trades.
Default Configuration (Frankfurt Time)
Asian Session: 01:00 - 10:00 (Lunch disabled)
London Session: 09:00 - 17:30 (Lunch: 12:00-13:00)
New York Session: 14:00 - 22:00 (Lunch: 18:00-19:00)
How to Use
Setup: Apply the indicator. The default timezone is Europe/Berlin. If you live elsewhere, simply change the "Your Timezone" setting to your local time (e.g., America/New_York), and the boxes will align automatically.
Daily Routine: Check the economic calendar in the morning. If there is a "Red Folder" event at 14:30, open the indicator settings and enter 14:30 into the News Scheduler.
Trade: Use the Session Highs and Lows as liquidity targets or breakout levels.
Settings & Customization
Timezone: Full support for major global trading hubs.
Colors: Customize the Box fill and Border colors for every session.
Labels: Rename sessions (e.g., "Tokyo" instead of "Asia") via the settings menu.
EMA Stack Background HighlighterThis is a simple script that highlights my backround when my criteria for my context timeframe is met, specifically, price is above the 10 EMA, the 10 is above the 20, and the 20 is above the 50 for green and vice versa for red. I use this in a multi timeframe approach similar to mentfx's EVC criteria
LiquidityPulse RSI Candle Strength MomentumLiquidity-Pulse RSI Candle Strength Momentum is a multifunctional and original candle-analysis tool designed to highlight the potential internal strength of each candle using a combination of body size and volume.
To view the candle-strength scores clearly: right-click on the chart, go to Settings, and in the Symbol tab untick Body, Borders and Wicks.
Candle Strength Scores
The indicator calculates the average body size and average volume over a user-defined lookback period. Each candle is then compared to these averages, and the indicator combines relative body expansion and relative volume expansion with a square-root calculation to create a (normalised) candle-strength score from 1 to 10.
10 – exceptionally strong compared to the lookback average (large body size and volume)
1 – very weak compared to the lookback average (small body size and volume)
Bullish and bearish candles are evaluated independently, producing separate bull-strength and bear-strength scores.
Optional ATR and volume floors can be enabled to restrict strength scoring to candles that exceed a minimum volatility or participation threshold. This helps users who prefer to filter out low-impact candles during quiet market periods. This option can be enabled or adjusted in the settings but is turned off by default.
Candle Colours
This tool also shows candles coloured based on the candle-strength scores (10 colours in each theme), which makes it easier to visualise the scores and see whether the candle score was high or not. There are several options in the 'colour theme' dropdown menu in the settings. Users can also customise all colours manually.
RSI Candle Strength Arrows
The Relative Strength Index is a long-established momentum tool that calculates the ratio of average upward moves to average downward moves over a defined period, allowing traders to identify potential overbought and oversold market conditions where momentum may be stretched. As well as this, strong early momentum and participation are often associated with more sustained moves.
This indicator combines this methodology and provides optional arrows that appear only when candle strength and RSI conditions align:
– A candle meets or exceeds a chosen strength threshold
– RSI has recently reached an overbought or oversold level
– The candle direction matches the expected momentum shift
For example, if price has reached an oversold RSI level and a strong bullish candle forms (high candle-strength number), an upside arrow may plot.
Users can customise the RSI oversold and overbought thresholds, the minimum candle-strength threshold, and how many bars back the RSI condition must have occurred in the settings.
These arrows are not buy or sell signals but instead highlight rare moments where strong candle behaviour aligns with meaningful RSI extremes. This is useful to users because it allows the candle-strength logic to be applied only when momentum is genuinely stretched, filtering out noise and focusing attention on the most statistically significant market moves.
This indicator brings together a quantitative candle-strength model and a momentum-based RSI filter to give users a clearer view of how individual candles behave relative to their recent environment, while also highlighting when those movements occur during meaningful shifts in market momentum. By combining both forms of analysis, the tool helps traders distinguish ordinary price changes from potentially significant structural behaviour.
How traders can use this indicator
– Stronger candle scores in the trend direction can confirm continuation pressure.
– Powerful opposing candles appearing at RSI extremes may signal potential reversals or exhaustion points.
– If breakouts occur with high candle scores, price may be more likely to follow through.
– Weak candles with low scores help traders avoid false signals or low-quality setups.
– Candle-strength scoring helps users quickly interpret both volume and candle-body behaviour without manual analysis.
Open source, if anyone has any ideas on how to make the script better or have any questions please let me know :)
Disclaimer
This indicator is provided for educational and analytical purposes only and should not be interpreted as financial advice or a recommendation to buy or sell any asset. The candle-strength values displayed by this tool are not literal or definitive measures of market strength; they are derived from a custom mathematical model designed to highlight relative differences in candle behaviour. These values should be viewed as a simplified representation of candle dynamics, not as an objective or universal measure of strength.
Users should be aware that this calculation does not replace the importance of analysing real traded volume, order flow, liquidity conditions, or broader market context. As with any technical tool, results should be considered alongside other forms of analysis, and past performance does not guarantee future outcomes. Use at your own discretion and risk.
Regime [CHE] Regime — Minimal HTF MACD histogram regime marker with a simple rising versus falling state.
Summary
Regime is a lightweight overlay that turns a higher-timeframe-style MACD histogram condition into a simple regime marker on your chart. It queries an imported core module to determine whether the histogram is rising and then paints a consistent marker color based on that boolean state. The output is intentionally minimal: no lines, no panels, no extra smoothing visuals, just a repeated marker that reflects the current regime. This makes it useful as a quick context filter for other signals rather than a standalone system.
Motivation: Why this design?
A common problem in discretionary and systematic workflows is clutter and over-interpretation. Many regime tools draw multiple plots, which can distract from price structure. This script reduces the regime idea to one stable question: is the MACD histogram rising under a given preset and smoothing length. The core logic is delegated to a shared module to keep the indicator thin and consistent across scripts that rely on the same definition.
What’s different vs. standard approaches?
Reference baseline: A standard MACD histogram plotted in a separate pane with manual interpretation.
Architecture differences:
Uses a shared library call for the regime decision, rather than re-implementing MACD logic locally.
Uses a single boolean output to drive marker color, rather than plotting histogram bars.
Uses fixed marker placement at the bottom of the chart for consistent visibility.
Practical effect:
You get a persistent “context layer” on price without dedicating a separate pane or reading histogram amplitude. The chart shows state, not magnitude.
How it works (technical)
1. The script imports `chervolino/CoreMACDHTF/2` and calls `core.is_hist_rising()` on each bar.
2. Inputs provide the source series, a preset string for MACD-style parameters, and a smoothing length used by the library function.
3. The library returns a boolean `rising` that represents whether the histogram is rising according to the library’s internal definition.
4. The script maps that boolean to a color: yellow when rising, blue otherwise.
5. A circle marker is plotted on every bar at the bottom of the chart, colored by the current regime state. Only the most recent five hundred bars are displayed to limit visual load.
Notes:
The exact internal calculation details of `core.is_hist_rising()` are not shown in this code. Any higher timeframe mechanics, security usage, or confirmation behavior are determined by the imported library. (Unknown)
Parameter Guide
Source — Selects the price series used by the library call — Default: close — Tips: Use close for consistency; alternate sources may shift regime changes.
Preset — Chooses parameter preset for the library’s MACD-style configuration — Default: 3,10,16 — Trade-offs: Faster presets tend to flip more often; slower presets tend to react later.
Smoothing Length — Controls smoothing used inside the library regime decision — Default: 21 — Bounds: minimum one — Trade-offs: Higher values typically reduce noise but can delay transitions. (Library behavior: Unknown)
Reading & Interpretation
Yellow markers indicate the library considers the histogram to be rising at that bar.
Blue markers indicate the library considers it not rising, which may include falling or flat conditions depending on the library definition. (Unknown)
Because markers repeat on every bar, focus on transitions from one color to the other as regime changes.
This tool is best read as context: it does not express strength, only direction of change as defined by the library.
Practical Workflows & Combinations
Trend following:
Use yellow as a condition to allow long-side entries and blue as a condition to allow short-side entries, then trigger entries with your primary setup such as structure breaks or pullback patterns. (Optional)
Exits and stops:
Consider tightening management after a color transition against your position direction, but do not treat a single flip as an exit signal without price-based confirmation. (Optional)
Multi-asset and multi-timeframe:
Keep `Source` consistent across assets.
Use the slower preset when instruments are noisy, and the faster preset when you need earlier context shifts. The best transferability depends on the imported library’s behavior. (Unknown)
Behavior, Constraints & Performance
Repaint and confirmation:
This script itself uses no forward-looking indexing and no explicit closed-bar gating. It evaluates on every bar update.
Any repaint or confirmation behavior may come from the imported library. If the library uses higher timeframe data, intrabar updates can change the state until the higher timeframe bar closes. (Unknown)
security and HTF:
Not visible here. The library name suggests HTF behavior, but the implementation is not shown. Treat this as potentially higher-timeframe-driven unless you confirm the library source. (Unknown)
Resources:
No loops, no arrays, no heavy objects. The plotting is one marker series with a five hundred bar display window.
Known limits:
This indicator does not convey histogram magnitude, divergence, or volatility context.
A binary regime can flip in choppy phases depending on preset and smoothing.
Sensible Defaults & Quick Tuning
Starting point:
Source: close
Preset: 3,10,16
Smoothing Length: 21
Tuning recipes:
Too many flips: choose the slower preset and increase smoothing length.
Too sluggish: choose the faster preset and reduce smoothing length.
Regime changes feel misaligned with your entries: keep the preset, switch the source back to close, and tune smoothing length in small steps.
What this indicator is—and isn’t
This is a minimal regime visualization and a context filter. It is not a complete trading system, not a risk model, and not a prediction engine. Use it together with price structure, execution rules, and position management. The regime definition depends on the imported library, so validate it against your market and timeframe before relying on it.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
MACD HTF Hardcoded






















