Grand Slam Risk ManagementGrand Slam Risk Management (GSRM) Indicator
OVERVIEW
The Grand Slam Risk Management Indicator transforms complex position sizing calculations into real-time, visual risk metrics—enabling disciplined trading decisions without the emotional guesswork that destroys accounts. This comprehensive tool is designed for active day traders and swing traders who want to automate critical risk management calculations directly on their TradingView charts. 🚀
THE GRAND SLAM RISK MANAGEMENT STRATEGY
Core Philosophy
The Grand Slam Risk Management Strategy (GSRM) gets its name from baseball's ultimate scoring play: a grand slam can only be hit when three runners are already on base, requiring at least three prior successful at-bats (hits or walks) to create the opportunity. This perfectly embodies the GSRM philosophy—consistent "base hits" in trading create the foundation for larger wins while protecting your account from devastating losses. Just as baseball teams win championships through disciplined, consistent play rather than swinging for the fences every at-bat, successful traders build wealth through reliable, repeatable profits rather than chasing home runs that often result in strikeouts. ⚾
Strategy Framework
Capital Allocation : 💰
• Working Balance: Account balance minus PDT requirement ($25,000 minimum for margin accounts)
• Allocated Buying Power: Working balance × leverage (4:1 for day trading, 2:1 for swing, 1:1 for cash)
• Daily Profit Target: 5% of allocated buying power (default)
The Base Hit System : 🎯
• Daily profit target divided into 4 "base hits"
• Each base hit represents 25% of daily goal
• Max risk per trade: 50% of base hit target (maintains 2:1 reward/risk minimum)
• Daily max loss: 2 base hits (recoverable with 2 winning trades)
Three-Tier Profit Structure : 🚀
• Tier 1 (5%): Minimum acceptable profit - "Why else take the trade?"
• Tier 2 (10%): Solid win - the target "base hit"
• Tier 3 (20%): Home run - when momentum is strongly in your favor 🏠🏃
Position Sizing Levels : 📊
• Quarter Position (25% of max): Testing the waters, lower conviction setups
• Half Position (50% of max): Standard confidence trades
• Max Position (100%): High conviction, ideal setup conditions
INDICATOR FEATURES
Real-Time Calculations ⚡
• Dynamic Position Sizing: Automatically calculates share quantities based on account balance and current price
• Profit & Loss Targets: Displays dollar amounts for profit targets and stop-losses across all position sizes
• Risk Metrics: Shows daily profit goals, max loss thresholds, and P&L ratios
Advanced Stop-Loss Methods 🛡️
1. Percentage-Based Stops : Fixed 50% of profit target (maintains 2:1 reward/risk)
2. ATR-Based Stops : Dynamic stops that adapt to market volatility using Average True Range (ATR)
• Tier 1: 0.5× ATR (tight/scalping)
• Tier 2: 1.0× ATR (standard)
• Tier 3: 1.5× ATR (wide/trending)
Cost Basis Options 📈
• Last Close: Uses previous bar's closing price for stable calculations
• VWMA: Volume-Weighted Moving Average (default: 9) estimate cost-basis from recent volume-weighted price action
• SMA/EMA: Use Simple or Exponential Moving Average (default: 9) useful for planning entries at SMA/EMA cross-overs and bounces.
• VWAP: Volume-Weighted Average Price (default: daily) for entry point planning at bounce or break of VWAP.
* Ask/Bid: Entry point calculations based on current Ask or Bid price (only available on 1T charts)
Visual Risk Management 🔑
• Color-Coded P&L Ratio :
- Green (≤0.5): Conservative, favorable risk ✅
- Yellow (0.5-1.0): Balanced risk ⚠️
- Red (>1.0): Aggressive, requires higher win rate 🛑
• Position Size Color Coding : Green (quarter) → Yellow (half) → Red (max) for quick risk assessment
HOW TO USE THE GSRM INDICATOR
Initial Setup (One-Time Configuration) ⚙️
1. Set Account Balance: Enter your total trading account value
2. Configure PDT Protection: Enable for margin accounts ≥$25,000 to protect required funds
3. Select Leverage: 4:1 (day trading), 2:1 (swing), or 1:1 (cash account)
4. Adjust Risk Percentage: Default 5% of allocated buying power; reduce for conservative approach
Trading Workflow
Pre-Market Preparation: 🌅
1. Review daily profit target and max loss displayed in green/red
2. Note your base hit target - this is your standard trade goal
3. Check P&L ratio - ensure it's sustainable for your win rate
Trade Execution: 🚀
1. Assess Setup Quality :
• Strong setup → Consider half or max position 💪
• Decent setup → Quarter or half position 👍
• Testing idea → Quarter position only 🧪
2. Select Profit Tier Based on Market Conditions :
• Choppy market → Target Tier 1 (5%) 🌊
• Normal conditions → Target Tier 2 (10%) ➡️
• Strong momentum → Target Tier 3 (20%) 🚀
3. Choose Stop Method :
• Percentage stops: Best for stocks with clear support/resistance
• ATR stops: Better for volatile stocks or news-driven trades. WARNING: this may result in tighter stops, negatively affecting your P&L. To offset this effect, try increasing the number of base hits to achieve your daily profit target and recover from a daily max loss. Be sure the resultant P&L ratio is in the conservative range ≤0.5. This will allow you to adjust your per-trade P&L targets without reducing your daily profit target or increasing your max risk.
4. Execute Using Table Values :
• 🔎 Find your position size group (🟢quarter/🟡half/🔴max)
• 🔎 Find your profit target row (5%/10%/20%) for your position size group
• ⚠️ Do not exceed the share count and stop-loss values displayed ⚠️
Risk Management Rules 🛡️
Daily Limits : 🚨
• Stop trading after hitting daily max loss (prevent tilt/revenge trading)
• Stop trading when a low-risk, minimum-loss trade would exceed your daily max loss (prevent exceeding max)
• Stop trading if you fall below the Daily Profit Target after having achieved it (prevent tilt/revenge trading)
• Cold Market: Stop trading after reaching daily profit target (preserve gains) ❄️
• Hot Market: Three Strikes - stop trading after 3 total max loss trades in a day (prevent tilt/revenge trading) 🔥
Position Management : 📏
• Never exceed max position size shown (protects from overleverage)
• Use quarter positions when daily P&L is negative or below first profit goal (40% of target)
• Use half positions only while daily P&L is above first profit goal (40% of target)
• Use full positions only while daily P&L is above profit goal (100% of target)
A/B Testing Features 🧪
Stop-Loss Methods :
• Week 1: Use percentage-based stops
• Week 2: Use ATR-based stops
• Compare win rates and average losses to optimize
Cost Basis Models :
Pick the highest probable cost-basis and keep your entry position below the share count shown to protect from overleveraging your buying power.
⚠️ IMPORTANT: COST BASIS ESTIMATIONS ARE FOR RISK MANAGEMENT CALCULATIONS ONLY - DO NOT USE THIS INFORMATION TO EXECUTE BUY OR SELL ORDERS.
• Fast movers: Use Last Close for stability 🏃or Bid/Ask for real-time price updates (Bid/Ask is only available on 1T charts).
• Liquid stocks: Try VWMA for better entry estimation 💧
• Reversals/Break of VWAP: Use VWAP when anticipating an entry at the Volume-Weighted Average Price 🔄
• Reversals/Break SMA 200: Use SMA when anticipating an entry at the SMA 📉
• Momentum/Trending: Use EMA when anticipating an entry at the EMA bounce 📈
• Price Offset: Plus/Minus $1.00 in $0.10 increments to compensate for slippage, market orders, etc.
Track which method provides better fill estimates. There is no right or wrong choice here because it depends on your style of trading. You can also use the Price Offset option if you find it helps with consistency.
BEST PRACTICES ⭐
1. Start Conservative : Use quarter positions and default settings until familiar with the system 🐣
2. Track Results : Document whether you hit Tier 1, 2, or 3 targets 📝
3. Respect the Math : The calculations assume a 50%+ win rate - if yours is lower, reduce position sizes 🧮
4. Daily Review : Compare actual P&L to base hit targets to calibrate expectations 🔍
5. Adapt to Conditions : Use ATR stops in volatile markets, percentage stops in stable conditions 🌡️
GLOSSARY 📚
• ATR (Average True Range) : A volatility indicator measuring the average range of price movement
• PDT (Pattern Day Trader) : SEC rule requiring $25,000 minimum for accounts making 4+ day trades in 5 business days
• VWAP (Volume-Weighted Average Price) : Average price weighted by volume for the trading session
• VWMA (Volume-Weighted Moving Average) : Moving average that gives more weight to periods with higher volume
• SMA (Simple Moving Average) : Unweighted moving average where each data point is of equal importance
• EMA (Exponential Moving Average) : Moving average that emphasizes the most recent data and information from the market
• P&L : Profit & Loss
IMPORTANT DISCLAIMERS ⚠️
• This indicator and any information provided is for educational and informational purposes only and should not be construed as investment advice, financial advice, trading advice, or any other type of advice. You should not make any investment decision based solely on this indicator.
• All investments and trading involve substantial risk of loss and are not suitable for every investor. You should carefully consider whether trading is suitable for you in light of your experience, objectives, financial resources, and other relevant circumstances. 📉
• Actual trade results may vary from calculated targets due to slippage, market gaps, and execution delays
• The creator of this indicator is not a registered investment advisor, broker-dealer, or financial advisor. Nothing contained herein constitutes a recommendation or solicitation to buy or sell any financial instrument.
• In no event shall the creator be liable for any direct, indirect, incidental, special, or consequential damages arising out of the use of this indicator.
• This indicator DOES NOT calculate support/resistance levels
• This indicator DOES NOT provide buy/sell signals
• This indicator DOES NOT calculate entry prices
• It is the trader's responsibility to determine an appropriate entry price for their chosen strategy
• This indicator provides calculations only - execution discipline remains the trader's responsibility
• Default settings assume PDT margin account rules; adjust for cash accounts
• P&L ratio colors are guidelines - your actual win rate determines sustainable ratios
• Always verify position sizes don't exceed account buying power before executing
SUPPORT AND FEEDBACK 💬
This indicator represents years of trading experience condensed into automated calculations. It's designed to remove emotional decision-making from position sizing while maintaining flexibility for different market conditions and trading styles.
For questions, suggestions, or to share your results using the GSRM strategy, please comment on the TradingView publication page. 🚀
---
Remember: The goal isn't to hit home runs - it's to get on base consistently while avoiding strikeouts. Small wins compound into large gains over time. ⚾💰
Version: 1.0
License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
- creativecommons.org
Compatibility: TradingView Pine Script v6
Educational
M2 + Fed Funds con anotaciones históricasThis TradingView indicator creates a separate panel that displays the historical evolution of M2 Money Stock (US) and the Federal Funds Rate, both normalized to a base of 100 for easier comparison. It highlights key historical events with annotations, including:
2000: Dotcom Bubble
2008: Global Financial Crisis
2020: COVID-19 Pandemic
The script allows users to visually analyze the relationship between monetary liquidity (M2) and interest rates, showing how changes in Fed policy correspond to major economic events and trends.
Zone Breakout TradingZone Breakout Trading is a Simple Strategy with accuracy of 60%. This is not Complete Buy & Sell indicator you have to learn from me to get 60% accuracy.
Penny Stock Short ScalpPenny Stock Short Scalp:
This Penny Stock Short Scalp Strategy is designed for traders aiming to capitalize on rapid, short-term price declines in penny stocks using TradingView. Focused on high-volatility periods, this strategy leverages quick entries and exits to capture small, consistent profits.
Strategy Overview
Timeframe: 1-minute or 2-minute charts for precise entries and exits.
Market: Penny stocks (low-priced, high-volatility stocks, typically under $5).
Trading Window: Best executed during the first 1-2 hours of market open (9:30 AM - 11:30 AM EST) when volatility is highest.
Position Type: Short positions only, targeting rapid price drops.
Key Indicators
Exponential Moving Average (EMA): 20-period EMA to identify short-term trends. A price below the EMA signals a potential short opportunity.
Relative Strength Index (RSI): 14-period RSI to detect overbought conditions (RSI > 70) for short entry signals.
Volume: High trading volume confirms momentum and liquidity for quick exits.
Bollinger Bands: Used to identify overextended price movements. A price touching or breaking above the upper band suggests a potential reversal for shorting.
Entry Rules
Price Action: Price breaks above the 20 EMA and touches or exceeds the upper Bollinger Band.
RSI Confirmation: RSI is above 70, indicating overbought conditions.
Volume Surge: A spike in volume supports the potential for a quick reversal.
Support/Resistance: Identify a nearby resistance level (intraday or daily) to confirm the short setup.
Exit Rules
Profit Target: Aim for a 2-5% price drop or a fixed profit target (e.g., $0.05-$0.10 per share, depending on stock price).
Stop Loss: Set a stop loss above the recent high or 2% above entry to limit risk.
Close Position: Exit if the price crosses back above the 20 EMA or RSI drops below 50, signaling a potential reversal.
Risk Management
Position Sizing: Risk no more than 1-2% of your account per trade.
Liquidity Check: Ensure the stock has sufficient volume to avoid slippage.
Time Limit: Exit trades within 5-10 minutes to avoid holding through unpredictable swings.
Notes
Market Conditions: Best suited for ranging or slightly bearish markets where pullbacks are frequent.
Caution: Penny stocks are highly volatile; use tight stops and avoid overleveraging.
Platform: Configure TradingView with the above indicators and use real-time data for accurate signals.
Disclaimer: This strategy involves significant risk due to the volatile nature of penny stocks. Always conduct your own research and consult a financial advisor before trading. Past performance is not indicative of future results.
Iani SMC Sniper XAU v2.2 (Long+Short + News Countdown, v6)Iani SMC Sniper v2.6 — Anytime • Auto Pip • FVG 50% • OB • News Panel
Smart-Money Concepts made simple for intraday XAU/USD (works on any symbol).
Finds BOS, 50% FVG “sniper” entries, optional Order Blocks, London H/L, news countdown, and a mini info panel.
What it does
BOS (Break of Structure): detects bullish/bearish BOS after London sweep logic.
FVG 50% entries: plots precise long/short entry dots at the midpoint of the gap.
Auto TP/SL: TP = RR × risk, SL below/above recent swing with a small buffer.
Order Blocks (optional): marks the last opposite candle after BOS and alerts on OB revisit.
London High/Low: tracks session range; session filter is optional.
News countdown: shows next event time and minutes left (user-selectable timezone).
Mini Panel: top-left table with Trend (last BOS), Next news, R:R, Pip size.
Inputs (key)
Auto pip size: uses syminfo.mintick. Manual override available.
Risk:Reward (RR): default 2.0.
Pivot length: swing sensitivity.
Sessions: enable if you want signals only 12:00–20:00 (symbol timezone). Off = anytime.
News timezone: pick your own (e.g., Europe/Brussels, America/New_York).
Absolute & daily times: add your events (strings like 2025-09-17 20:00 or 14:30,16:00…).
Show labels/levels/OBs: toggle on/off.
Alerts included
BOS Bullish / BOS Bearish
BUY Entry / SELL Entry (return to 50% FVG)
Bullish OB revisit / Bearish OB revisit
TP Long/Short reached, SL Long/Short hit
NEWS WARNING (warning window only; does not block signals)
To use: Add Alert → Condition: this indicator → choose any of the alertconditions.
Best use
Bias: H1 for structure.
Execution: M15 (standard) or M5 (aggressive).
Works great on XAUUSD, but is symbol-agnostic (auto pip adapts).
Notes
News times display in the timezone you pick in settings.
OBs are a simple implementation meant for quick visual guidance.
Labels: BUY/SELL near entries, TP/SL on set and when hit, BOS up/down.
Risk disclaimer
This tool is for education only. Not financial advice. Backtest and manage risk.
SMC Mapping 2.0“This script is a Smart Money Concepts (SMC) indicator that helps traders identify market structure shifts such as Break of Structure (BOS) and Change of Character (ChoCH). It also highlights Supply & Demand zones, Internal/External Liquidity sweeps, and IDM levels.
The tool is designed for price action traders who want a clean and visual way to track BOS, ChoCH, and liquidity points directly on their chart. It is fully customizable with options to show/hide different elements, change colors, and adjust sensitivity.”
🔹 Script Overview
This script is based on Smart Money Concepts (SMC).
It automatically identifies Break of Structure (BOS), Change of Character (ChoCH), Supply & Demand zones, and IDM zones on the chart.
🔹 Features
Market Structure Detection → plots HH (Higher Highs) and LL (Lower Lows)
BOS & ChoCH → quickly identify trend shifts
Auto Supply & Demand Zones → highlights potential reversal areas
IDM Zones → marks imbalance/inefficiency
Clear color-coded visuals for bullish/bearish context
🔹 How It Works
The script evaluates recent swing highs and lows (20-bar lookback by default)
When price breaks above the recent high → Bullish BOS
When price breaks below the recent low → Bearish BOS
Based on this structure, the script automatically generates labels and zones
🔹 How To Use
Add the script to your chart (works well on 15m, 1H, 4H timeframes)
Use HH/LL labels to read the market structure
Supply & Demand zones help in identifying possible entry/exit points
IDM zones confirm imbalance areas for trade validation
🔹 Note
While this script uses classic concepts (HH, LL, Supply/Demand, IDM), the calculations, visuals, and styling are customized to provide a fresh and unique tool for traders. It is designed to help traders clearly see market structure and plan trades accordingly.
Iani SMC Sniper XAU v2.2 (Long+Short + News Countdown, v6)Iani SMC Sniper XAU (v2.2) — smart-money logic for XAUUSD.
This indicator hunts “sniper entries” using a simple SMC sequence:
Sweep → BOS → 50% FVG entry
• After London session builds its range, we wait for a liquidity sweep (price dips below London Low for longs / wicks above London High for shorts).
• A BOS confirms direction (close breaks the last swing).
• First FVG that prints after BOS gives the entry at 50% (mid-gap).
• SL anchored to the protective swing (with a small safety buffer). TP is plotted using your Risk:Reward.
News countdown (non-blocking):
The script does not auto-fetch news; you set daily times (e.g., 14:30, 16:00) and/or specific dates (“YYYY-MM-DD HH:MM”). A countdown label shows “NEWS in Xm”. Signals are not blocked—this is just a safety heads-up for prop-firm rules.
Inputs: pivot length, RR, pip size (XAU default 0.10), session filter (after London), news times (recurring & absolute), show/hide levels & labels.
Plots & labels: London High/Low (daily), Entry/SL/TP lines, BOS/Sweep/BUY/SELL markers, news badge.
Alerts: BOS Bull/Bear, BUY/SELL Entry touch, TP/SL hit, NEWS WARNING.
Notes:
• Designed for XAUUSD intraday; works on other symbols if you adjust pip size.
• Uses symbol timezone; adjust your news times for DST if needed.
• Indicator only—no orders, no backtest. Manage risk and execution in MT5/your platform.
Changelog (v2.2): Pine v6, robust time parsing, one-line logical expressions (fixed EOL errors), mirrored short logic, cleaner London H/L reset, countdown label.
Disclaimer: Educational tool, not financial advice. Past performance ≠ future results.
Tags: SMC, ICT, XAUUSD, Gold, Liquidity Sweep, BOS, FVG, London Session, News, Intraday, Scalping, DayTrading.
MTF Supply and Demand Zones [MMT]Description
The MTF Supply and Demand Zones indicator is a powerful tool designed to identify and display supply and demand zones across multiple timeframes (MTF) on your TradingView chart. These zones highlight key areas where price is likely to react, based on significant price movements in higher timeframes. The indicator is highly customizable, allowing traders to adjust zone strength, timeframes, colors, and display settings to suit their trading style.
Key Features
Multi-Timeframe Analysis : Detects supply and demand zones from up to five user-defined timeframes (e.g., 30m, 1H, 4H, 1D, 1W).
Zone Strength Filter : Filters zones based on the strength of price movements, ensuring only significant zones are displayed.
Customizable Display : Toggle supply and demand zones on/off, adjust colors, border styles, and label settings for clarity.
Dynamic Zone Extension : Extends zones to the right of the chart for better visibility, with adjustable extension length.
Zone Cleanup : Automatically removes zones when price breaks through them, keeping the chart clean and relevant.
Labels : Displays timeframe labels on zones for easy identification, with customizable size, color, and alignment.
How It Works
Supply Zones : Identified when a strong bearish candle follows a bullish or neutral candle, indicating potential selling pressure.
Demand Zones : Identified when a strong bullish candle follows a bearish or neutral candle, indicating potential buying pressure.
Zones are drawn as boxes, with the top and bottom based on key price levels (e.g., highs/lows or open prices).
The indicator uses a strength filter to ensure only significant zones (based on candle size ratios) are plotted.
Zones are updated dynamically, extending to the right by a user-defined number of bars and removed when price breaks through them.
Settings
S&D Zones Settings
Zone Strength Filter : Adjust the minimum candle size ratio (default: 1.8) to filter weaker zones.
Show Supply/Demand : Enable or disable supply and/or demand zones.
Supply/Demand Colors : Customize the fill and border colors for supply (default: red) and demand (default: green) zones.
Timeframes : Enable up to five timeframes (e.g., 30m, 1H, 4H, 1D, 1W) to analyze zones. Only zones from timeframes higher than the chart’s timeframe are displayed.
Display Settings
Zone Extension : Set how far zones extend to the right (in bars, default: 15).
Show Label: Toggle timeframe labels on zones.
Label Style : Customize label color, size (tiny, small, normal, large, huge), and alignment (horizontal/vertical).
Usage Tips
Use higher timeframes (e.g., 4H, 1D) for stronger, more reliable zones.
Combine with other indicators (e.g., support/resistance, trendlines) to confirm trade setups.
Adjust the Zone Strength Filter to reduce noise in volatile markets.
Enable labels to quickly identify the timeframe of each zone.
Notes
The indicator is overlayed on the price chart and supports up to 500 zones.
Zones are removed when price breaks above (supply) or below (demand), ensuring only active zones remain.
Works best on markets with clear price action, such as futures, forex, stocks, or cryptocurrencies.
Happy trading! 🚀
Magic Phoenix By Azam JaniThe indicator is best used for swing entries on lower timeframes (e.g., 5m/1m charts with 15m HTF signals) and can trigger alerts for automation.
SP2L Pour Samadi Indicator [TradingFinder] Spike 2 Legs PA🔵 Introduction
The SP2L (Spike–2Leg) strategy, designed by Mohammad Ali Poursamadi, an international Iranian trader, is a simple yet powerful price action setup developed to identify precise entry points following sharp market movements.
A Spike refers to a sudden and rapid move in the market, usually triggered by a heavy flow of orders in one direction. This sharp movement creates an Imbalance between buyers and sellers. Since the market does not have time to trade evenly during such moves, it generates Inefficiency on the chart.
The direct result of a spike is usually the formation of a Fair Value Gap (FVG) — a space between candles indicating that trades were not distributed fairly. In simple terms, the spike is the cause, while Imbalance, Inefficiency, and FVG are its consequences.
🟣 How is a Spike formed?
Big Movement : A spike begins with a sharp and powerful move caused by heavy order flow in one direction.
Imbalance : This move disrupts the balance between buyers and sellers.
Inefficiency : Due to the speed of the move, the market fails to trade efficiently, leaving inefficiency on the chart.
Fair Value Gap (FVG) : The final outcome is a price gap between candles, highlighting unfair distribution of trades.
In SP2L, entries occur right after a spike. The entry logic is based on the structure of each candle’s Higher Lows (HLs) or Lower Highs (LHs).
When a spike occurs and candles consecutively form higher lows or lower highs :
In bullish conditions, each previous low becomes a potential Buy Entry.
In bearish conditions, each previous high becomes a potential Sell Entry.
🔵 How to Use
In the SP2L strategy, entries occur directly within the ongoing strong movement (the spike). A spike forms when heavy order flow pushes the market strongly in one direction, creating several large candles in sequence. This disrupts balance and leaves patterns such as Imbalance and FVG on the chart.
During such moves, the market does not necessarily retrace; instead, it continues strongly in the direction of the spike. The key principle in SP2L is that candles begin forming Higher Lows (HLs) in a bullish spike or Lower Highs (LHs) in a bearish spike. Each HL or LH acts as a potential entry level, but the actual entry only triggers once price returns to retest that level. This allows the trader to enter within a powerful wave while keeping stop-losses clear and risk controlled.
🟣 Bullish SP2L
When a bullish spike occurs, candles consecutively form Higher Lows. Each HL marks a potential entry. The entry is activated when price returns to that HL.
Stop-Loss (SL) : Placed below the candle where the spike originated, usually the lowest point before the sharp move.
Take-Profit (TP) : Defined based on classic risk-to-reward ratios, commonly TP1 = 1:1 and TP2 = 1:2. Stronger trends may allow extended targets.
🟣 Bearish SP2L
When a bearish spike occurs, candles consecutively form Lower Highs. Each LH marks a potential sell entry. The entry is triggered when price returns to retest that LH.
Stop-Loss (SL) : Placed above the candle where the bearish spike started, usually the highest point before the sharp drop.
Take-Profit (TP) : Similar to bullish setups, typically TP1 = 1:1 and TP2 = 1:2, with extended targets possible if bearish momentum continues.
🔵 Settings
🟣 Spike Filter | Movement
Minimum Spike Bars : Defines the minimum number of consecutive candles required for a valid spike.
Movement Power : Enables or disables the momentum-based spike filter.
Movement Power Level : Sets the strength threshold; higher values filter out weaker moves and only detect strong spikes.
🟣 Spike Filter | Gap
Gap Filter : Enables or disables the gap filter.
Gap Type : Selects which type of gap should be detected (All Gaps, Significant, Structural, Major).
🟣 Spike Filter | Doji
Doji Tolerance : Defines whether doji candles are allowed within a spike.
Max Doji Body Ratio : Maximum ratio of body-to-total candle size for classifying a candle as a doji.
Max Doji in Spike Ratio : Maximum percentage of doji candles allowed within a spike.
🟣 Trend Detection
Trend Detection : Enables or disables the trend detection module using dojis.
Max Doji Body Ratio : Maximum body-to-candle ratio used to classify a doji in trend calculations.
Candle Lookback : Number of candles used to calculate doji percentage for trend evaluation.
Max Doji in Trend Ratio : Maximum percentage of doji candles allowed within the lookback window for the trend to be valid.
🟣 Position Management
Stop-Loss Threshold : Enables or disables the stop-loss threshold feature.
Stop-Loss Threshold Value : Defines the value of the stop-loss threshold for risk management.
Risk-Reward Ratio : Sets the desired risk-to-reward ratio (e.g., 1:1 or 1:2).
Include SL Threshold in R:R : Determines whether the stop-loss threshold is included in risk-to-reward calculations.
🟣 Display Settings
Display Mode : Chooses between Setup (showing setups) or Signal (showing trade signals).
Only Display the Last Position : Displays only the most recent position on the chart when enabled.
🔵 Conclusion
The SP2L (Spike–2Leg) strategy, designed by Mohammad Ali Poursamadi, offers a simple yet effective framework for trading strong market flows. Built on the logic of spikes and candle structures (HLs and LHs), it identifies precise entry points directly within the main movement of the market, where risk is clear and reward is logical.
With transparent rules, defined stop-loss placement, and flexible risk management, SP2L proves especially effective in volatile markets such as forex, gold, and indices. Its simplicity makes it practical for both beginner traders and seasoned professionals.
In summary, SP2L helps traders avoid unnecessary complexity by focusing on spikes and consecutive HL/LH formations to capture accurate, low-risk entries.
Daily Todo TrackerA simple and effective todo list indicator for TradingView that helps traders organize their daily trading routine.
Key Features:
Customisable 1-10 todo items
Individual toggle switches for each task
Auto-reset at start of new trading day
Progress tracking with percentage
Customisable colors and table position
Shows current asset symbol
Swing RSI Panel//@version=6
indicator("Swing RSI Panel", overlay=false)
// RSI Settings
rsiLength = input.int(14, "RSI Length")
rsiOversold = input.int(40, "RSI Oversold")
rsiOverbought = input.int(60, "RSI Overbought")
// Calculate RSI
rsiValue = ta.rsi(close, rsiLength)
// Plot RSI
plot(rsiValue, "RSI", color=color.purple, linewidth=2)
hline(50, "Midline", color=color.gray, linestyle=hline.style_dotted)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted)
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted)
// Fill zones
bgcolor(rsiValue >= rsiOverbought ? color.new(color.red, 90) :
rsiValue <= rsiOversold ? color.new(color.green, 90) : na, title="RSI Zones")
EMA / WMA RibbonMomentum Flow Ribbon
Unlock a clear, visual edge in identifying short-term momentum shifts with the Momentum Flow Ribbon.
This indicator was born from a simple yet powerful concept: to visually represent the dynamic relationship between a fast-reacting Exponential Moving Average (EMA) and the smoother, more methodical Wilder's Moving Average (WMA). While both moving averages use the same length, their unique calculation methods cause them to separate and cross, creating a "ribbon" that provides an immediate and intuitive gauge of market momentum.
This tool is designed for the disciplined trader who values clean charts and actionable signals, helping you to execute your strategies with greater confidence and precision.
How It Works
The script plots an EMA and a Wilder's Moving Average (referred to as rma in Pine Script) of the same length. The space between these two lines is then filled with a colored ribbon:
Bullish Green/Teal: The ribbon turns bullish when the faster EMA crosses above the slower Wilder's MA, indicating that short-term momentum is strengthening to the upside.
Bearish Red: The ribbon turns bearish when the EMA crosses below the Wilder's MA, signaling that short-term momentum is shifting to the downside.
The inherent "lag" of the Wilder's MA, a feature designed by J. Welles Wilder Jr. himself, acts as a steady baseline against which the more sensitive EMA can be measured. The result is a simple, zero-lag visual that filters out insignificant noise and highlights meaningful changes in trend direction.
Key Features
Customizable Length and Source: Easily adjust the moving average length and price source (close, hl2, etc.) to fit your specific trading style and the instrument you are trading, from futures like MES and MNQ to cryptocurrencies and forex.
Customizable Colors: Tailor the ribbon's bullish and bearish colors to match your personal chart aesthetic.
Built-in Alerts: The script includes pre-configured alerts for both bullish (EMA crosses above WMA) and bearish (EMA crosses below WMA) signals. Never miss a potential momentum shift again.
Clean & Lightweight: No clutter. Just a simple, effective ribbon that integrates seamlessly into any trading system.
Practical Application for the Discerning Trader
For a futures trader, timing is everything. This ribbon is not just another indicator; it's a tool for confirmation.
Imagine you've identified a key level—a Volume Profile POC, the previous day's low, or a critical accumulation zone. As price approaches this level pre-London session, you're watching for a sign of institutional activity. A flip in the ribbon's color at that precise moment can provide the powerful confirmation you need to enter a trade, trusting that you are aligning with the building liquidity and momentum heading into the New York open.
This is a tool for those who aspire to greatness in their trading—who understand that the edge is found not in complexity, but in the flawless execution of a simple, well-defined plan.
Add the Momentum Flow Ribbon to your chart and start seeing momentum in a clearer light.
Auto Fibonacci - First Hour Lockedthis gives the accurate fibonnacci based on the day's first hour high/low values, and the extension values as well.
Daily + 4H MACD & RSI Screeneri used this script for my swing trading entry.
//@version=5
indicator("Daily + 4H MACD & RSI Screener", overlay=false)
// settings
rsiLength = input.int(14, "RSI Length")
rsiLevel = input.int(50, "RSI Threshold")
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
// ---- daily timeframe ----
dailyRsi = request.security(syminfo.tickerid, "D", ta.rsi(close, rsiLength))
= request.security(syminfo.tickerid, "D", ta.macd(close, macdFast, macdSlow, macdSignal))
dailyRsiPass = dailyRsi < rsiLevel
dailyMacdPass = dailyMacd < 0
dailyCondition = dailyRsiPass and dailyMacdPass
// ---- 4H timeframe ----
h4Rsi = request.security(syminfo.tickerid, "240", ta.rsi(close, rsiLength))
= request.security(syminfo.tickerid, "240", ta.macd(close, macdFast, macdSlow, macdSignal))
h4RsiPass = h4Rsi < rsiLevel
h4MacdPass = h4Macd < 0
h4Condition = h4RsiPass and h4MacdPass
// ---- combined condition ----
finalCondition = dailyCondition and h4Condition
// plot signals
plotshape(finalCondition, style=shape.triangledown, location=location.top, color=color.red, size=size.large, title="Signal")
bgcolor(finalCondition ? color.new(color.red, 85) : na)
// ---- table (3 columns x 4 rows) ----
var table statusTable = table.new(position=position.top_right, columns=3, rows=4, border_width=1)
// headers
table.cell(statusTable, 0, 0, "Timeframe", text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(statusTable, 1, 0, "RSI", text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(statusTable, 2, 0, "MACD", text_color=color.white, bgcolor=color.new(color.black, 0))
// daily row
table.cell(statusTable, 0, 1, "Daily", text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(statusTable, 1, 1, str.tostring(dailyRsi, "#.##"),
text_color=color.white, bgcolor=dailyRsiPass ? color.new(color.green, 60) : color.new(color.red, 60))
table.cell(statusTable, 2, 1, str.tostring(dailyMacd, "#.##"),
text_color=color.white, bgcolor=dailyMacdPass ? color.new(color.green, 60) : color.new(color.red, 60))
// 4H row
table.cell(statusTable, 0, 2, "4H", text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(statusTable, 1, 2, str.tostring(h4Rsi, "#.##"),
text_color=color.white, bgcolor=h4RsiPass ? color.new(color.green, 60) : color.new(color.red, 60))
table.cell(statusTable, 2, 2, str.tostring(h4Macd, "#.##"),
text_color=color.white, bgcolor=h4MacdPass ? color.new(color.green, 60) : color.new(color.red, 60))
// status row (simulate colspan by using two adjacent cells with the same bgcolor)
table.cell(statusTable, 0, 3, "Status", text_color=color.white, bgcolor=color.new(color.black, 0))
statusText = finalCondition ? "match" : "no match"
statusBg = finalCondition ? color.new(color.green, 0) : color.new(color.red, 0)
table.cell(statusTable, 1, 3, statusText, text_color=color.white, bgcolor=statusBg, text_size=size.large)
table.cell(statusTable, 2, 3, "", text_color=color.white, bgcolor=statusBg)
Ratios -> PROFABIGHI_CAPITAL🌟 Overview
This Ratios → PROFABIGHI_CAPITAL implements a comprehensive risk-adjusted performance analysis framework combining Sharpe, Sortino, and Omega ratios for superior portfolio evaluation and trading signal generation.
It provides Triple-ratio calculation engine with Sharpe volatility analysis, Sortino downside deviation measurement, and Omega probability-weighted performance assessment , Advanced smoothing system using EMA filtering for noise reduction and signal clarity , Dynamic threshold-based color coding with configurable strong and weak performance levels , and Configurable annualization framework supporting different market types and trading frequencies for institutional-grade risk management.
🔧 Advanced Risk-Adjusted Analysis Framework
Professional triple-ratio system integrating three distinct risk-adjusted performance methodologies for comprehensive portfolio evaluation
Source Selection Architecture enabling close, high, low, or other price inputs for flexible ratio calculation adaptation
Calculation Period Management with adjustable lookback periods balancing statistical significance versus market responsiveness
EMA Smoothing Integration reducing market noise while preserving important performance trends for enhanced decision-making accuracy
Grouped Parameter Organization separating general settings, Sharpe parameters, Sortino configuration, and Omega controls for streamlined optimization
Configurable Annualization Factor supporting different market types with customizable days-per-year calculation for accurate performance scaling
📊 Sharpe Ratio Implementation Engine
Risk-Free Rate Configuration providing adjustable annual risk-free rate for excess return calculation over benchmark performance
Volatility-Adjusted Performance measuring excess return per unit of total risk using standard deviation methodology
Strong/Weak Threshold Management offering configurable performance levels for signal generation and visual classification
Mathematical Precision Framework implementing proper annualization scaling with square root adjustment for volatility normalization
Zero-Division Protection ensuring continuous calculation through proper handling of zero volatility conditions
Periodic Return Calculation using bar-to-bar percentage changes for accurate return measurement across different timeframes
📈 Sortino Ratio Advanced Framework
Downside Deviation Focus measuring risk-adjusted performance using only negative deviations below risk-free threshold
Sophisticated Downside Calculation implementing loop-based accumulation of squared negative deviations for precise downside risk measurement
Risk-Free Rate Integration supporting independent risk-free rate configuration for Sortino-specific benchmark setting
Downside Risk Isolation excluding upward volatility from risk calculation for more accurate downside risk assessment
Mean Downside Deviation calculating average squared downside deviations with proper mathematical normalization
Square Root Scaling applying proper mathematical transformation for downside deviation with annualization adjustment
⚙️ Omega Ratio Probability Framework
Target Return Configuration enabling customizable annual target return threshold for gain-loss probability analysis
Cumulative Gain Calculation measuring total returns above target threshold through iterative accumulation methodology
Cumulative Loss Measurement calculating total shortfalls below target threshold for comprehensive downside assessment
Probability-Weighted Analysis implementing gains-to-losses ratio for probability-based performance evaluation
Target Return Conversion transforming annual target returns to periodic equivalents for accurate threshold comparison
Null Value Handling managing mathematical edge cases when no losses occur through proper validation logic
🔄 Advanced Smoothing Implementation
Triple-Ratio EMA Smoothing applying Exponential Moving Average filtering to all three ratios for enhanced signal clarity
Configurable Smoothing Period balancing signal responsiveness versus noise reduction through adjustable EMA length
Null Value Protection ensuring continuous smoothing through proper handling of undefined raw ratio values
Omega Ratio Special Handling using zero fallback for undefined Omega values to maintain continuous EMA calculation
Signal Persistence Enhancement reducing false signals while preserving important trend changes through mathematical smoothing
Real-Time Smoothing Updates providing current smoothed values for immediate performance assessment and signal generation
🎨 Dynamic Visualization Framework
Threshold-Based Color Coding using green for strong performance above threshold, red for weak performance below threshold, and gray for neutral zones
Sharpe Ratio Visualization displaying green/red/gray coloring based on smoothed values relative to strong and weak threshold lines
Sortino Ratio Display implementing blue for strong performance, yellow for weak performance, and gray for neutral conditions
Omega Ratio Presentation using orange for strong performance, purple for weak performance, and gray for intermediate levels
Multi-Line Plot System presenting all three smoothed ratios simultaneously with distinct colors and line weights
Reference Line Framework displaying horizontal dashed lines for strong and weak thresholds with color-coded identification
🔍 Mathematical Precision Implementation
Accurate Return Calculation using proper percentage change methodology for consistent return measurement
Annualization Scaling implementing correct mathematical formulations for time-period adjustment with square root factors
Statistical Validation ensuring mathematical accuracy through proper mean and standard deviation calculations
Loop-Based Calculations using efficient iteration for downside deviation and Omega ratio cumulative calculations
Error Prevention Framework incorporating comprehensive validation for zero division and undefined value conditions
Precision Maintenance preserving calculation accuracy across different smoothing periods and market conditions
📋 Performance Analysis Applications
Risk-Adjusted Signal Generation using threshold crossovers for entry and exit signal identification across all three ratios
Portfolio Performance Ranking comparing multiple assets or strategies using standardized risk-adjusted performance metrics
Market Regime Detection identifying favorable and unfavorable market conditions through ratio trend analysis
Strategy Optimization evaluating trading strategy performance using multiple risk-adjusted methodologies simultaneously
Drawdown Analysis Enhancement utilizing Sortino ratio focus on downside risk for better drawdown assessment
Probability-Based Decision Making leveraging Omega ratio gain-loss probability analysis for position sizing and risk management
✅ Key Takeaways
Comprehensive triple-ratio framework combining Sharpe volatility analysis, Sortino downside focus, and Omega probability-weighted assessment for complete risk-adjusted evaluation
Advanced smoothing implementation using EMA filtering for noise reduction while preserving important performance trends and signal clarity
Dynamic threshold-based visualization with color-coded performance states enabling immediate identification of strong, weak, and neutral conditions
Mathematical precision implementation using proper statistical formulations with comprehensive error handling and edge case management
Configurable parameter framework supporting different market types through adjustable annualization factors and independent threshold settings
Professional visualization system with multi-colored ratio lines and reference threshold displays for institutional-grade performance analysis
Flexible calculation periods enabling adaptation to different trading styles and market analysis requirements for versatile risk management applications
TPO Levels [VAH/POC/VAL] with Poor H/L, Single Prints & NPOCs### 🎯 Advanced Market Profile & Key Level Analysis
This script is a unique and comprehensive technical analysis tool designed to help traders understand market structure, value, and key liquidity levels using the principles of **Auction Market Theory** and **Market Profile**.
This script is unique (and shouldn't be censored) because :
It allows large history of levels to be displayed
Accurate as possible tick size
Doesn't draw a profile but only the actual levels
Supports multi-timeframe levels even on the daily mode giving macro context
There is no indicator out there that does it
While these concepts are universal, this indicator was built primarily for the dynamic, 24/7 nature of the **cryptocurrency market**. It helps you move beyond simple price action to understand *why* the market is moving, which is especially crucial in the volatile crypto space.
### ## 📊 The Concepts Behind the Calculations
To use this script effectively, it's important to understand the core concepts it is built upon. The entire script is self-contained and does not require other indicators.
* **What is Market Profile?**
Market Profile is a unique charting technique that organizes price and time data to reveal market structure. It's built from **Time Price Opportunities (TPOs)**, which are 30-minute periods of market activity. By stacking these TPOs, the script builds a distribution, showing which price levels were most accepted (heavily traded) and which were rejected (lightly traded) during a session.
* **What is the Value Area (VA)?**
The Value Area is the heart of the profile. It represents the price range where **70%** of the session's trading volume occurred. This is considered the "fair value" zone where both buyers and sellers were in general agreement.
* **Point of Control (POC):** The single price level with the most TPOs. This was the most accepted or "fairest" price of the session and acts as a gravitational line for price.
* **Value Area High (VAH):** The upper boundary of the 70% value zone.
* **Value Area Low (VAL):** The lower boundary of the 70% value zone.
VAH and VAL are dynamic support and resistance levels. Trading outside the previous session's value area can signal the start of a new trend.
***
### ## 📈 Key Features Explained
This script automatically calculates and displays the following critical market-generated information:
* **Multi-Timeframe Market Profile**
Automatically draws Daily, Weekly, and Monthly profiles, allowing you to analyze market structure across different time horizons. The script preserves up to 20 historical sessions to provide deep market context.
* **Naked Point of Control (nPOC)**
A "Naked" POC is a Point of Control from a previous session that has **not** been revisited by price. These levels often act as powerful magnets for price, representing areas of unfinished business that the market may seek to retest. The script tracks and displays Daily, Weekly, and Monthly nPOCs until they are touched.
* **Single Prints (Imbalance Zones)**
A Single Print is a price level where only one TPO traded during the session's development. This signifies a rapid, aggressive price move and an imbalanced market. These areas, like gaps in a traditional chart, are frequently revisited as the market seeks to "fill in" these thin parts of the profile.
* **Poor Structure (Unfinished Auctions)**
A **Poor High** or **Poor Low** occurs when the top or bottom of a profile is flat, with two or more TPOs at the extreme price. This suggests that the auction in that direction was weak and inconclusive. These weak structures often signal a high probability that price will eventually break that high or low.
***
### ## 💡 How to Use This Indicator
This tool is not a signal generator but an analytical framework to improve your trading decisions.
1. **Determine Market Context:** Start by asking: Is the current price trading *inside* or *outside* the previous session's Value Area?
* **Inside VA:** The market is in a state of balance or range-bound. Look for trades between the VAH and VAL.
* **Outside VA:** The market is in a state of imbalance and may be starting a trend. Look for continuation or acceptance of prices outside the prior value.
2. **Identify Key Levels:**
* Use historical **nPOCs** as potential profit targets or areas to watch for a price reaction.
* Treat historical **VAH** and **VAL** levels as significant support and resistance zones.
* Note where **Single Prints** are. These are often price magnets that may get "filled" in the future.
3. **Spot Weakness:**
* A **Poor High** suggests weak resistance that may be easily broken.
* A **Poor Low** suggests weak support, signaling a potential for a continued move lower if broken.
***
### ## ⚙️ Customization & Crypto Presets
The indicator is highly customizable, allowing you to change colors, transparency, the number of historical sessions, and more.
To help traders get started quickly, the indicator includes **built-in layout presets** specifically calibrated for major cryptocurrencies: ** BINANCE:BTCUSDT.P , BINANCE:ETHUSDT.P , and BINANCE:SOLUSDT.P **. These presets automatically adjust key visual parameters to better suit the unique price characteristics and volatility of each asset, providing an optimized view right out of the box.
***
### ## ⚠️ Disclaimer
This indicator is a tool for market analysis and should not be interpreted as direct buy or sell signals. It provides information based on historical price action, which does not guarantee future results. Trading involves significant risk, and you should always use proper risk management. This script is designed for use on standard chart types (e.g., Candlesticks, Bar) and may produce misleading information on non-standard charts.
RSI Divergence — BibhutiRSI Divergence with 30/70 filter. No repainting , but many false signals also. Still can be used in conjuction with other momentum indicators
CPR with EMA & VWAP ConfirmationIF this Indicator not properly alignment in chart.. just click indicator three dot more option and choose pine to scale (Pinned to A or right )
The Full CPR indicator is a complete intraday trading framework that combines Central Pivot Range (CPR) levels, Pivot Targets (R1/R2/R3, S1/S2/S3), and trend confirmations using EMA & VWAP. It is designed for traders who rely on CPR-based setups for intraday trend, breakout, and reversal opportunities.
Key Features
CPR Levels (Pivot, BC, TC): Auto-calculated daily from the previous day’s High, Low, and Close.
Target Zones: Standard targets (R1, R2, S1, S2) plus optional extensions (R3, S3).
EMA & VWAP Filters: Flexible entry confirmations with selectable buffer % and modes:
EMA only
VWAP only
Both
Any
Narrow/Wide CPR Detection: Identifies Narrow CPR (possible trending days) and Wide CPR (possible sideways/range days).
Previous Day High/Low (PDH/PDL): Plotted with shaded zones for support/resistance.
Auto Labels & Tags: Session labels for Pivot, BC, TC, targets, plus CPR Type (NARROW / WIDE / NORMAL).
Shaded Zones: CPR, bullish (R1–R2), bearish (S1–S2), and extension zones filled with transparency controls.
Entry Triggers:
Long entry when price closes above upper CPR band (or BC, depending on mode).
Short entry when price closes below lower CPR band (or TC, depending on mode).
Stoploss (SL): Opposite CPR band is marked as SL.
Target Tracking: Auto-marks T1/T2/T3 hits for both long and short trades.
Alerts: Built-in alerts for Long/Short entry, Target hits, and Stoploss triggers.
How to Use
Trend Days (Narrow CPR): Look for strong breakouts beyond CPR with EMA/VWAP confirmation.
Range Days (Wide CPR): Expect sideways movement; use CPR and PDH/PDL for quick scalps.
Entry & SL:
Go long when price breaks above CPR upper band (SL = lower band).
Go short when price breaks below CPR lower band (SL = upper band).
Targets: Use R1/R2/R3 (bullish) or S1/S2/S3 (bearish) as progressive booking levels.
Disclaimer
This script is for educational purposes only. It does not guarantee profits and should not be considered financial advice. Always backtest thoroughly and use proper risk management before live trading.
Big Player Buy/Sell SignalHow It Works:
Detects volume spikes over SMA of recent volume.
Signals a buy if there’s a green candle near a recent swing low on high volume (possible big player accumulation).
Signals a sell if there’s a red candle near a swing high on high volume (possible big player distribution).
This is a proxy, not a direct measure of institutional trades, but it often works surprisingly well in liquid markets like Nifty 50 or Bank Nifty.
If you want, I can make an advanced version that combines RSI, EMA, and first occurrence detection for higher accuracy in catching big player moves.