TP/SL Dynamic (FIB,ATR,MULTIPLE,PERCENT)TP/SL Dynamic (FIB, ATR, MULTIPLE, PERCENT)
This indicator provides a flexible framework for managing Take Profit (TP) and Stop Loss (SL) levels using multiple calculation schemes. It is designed for traders who want dynamic or rule-based levels that adapt to volatility, market type, and custom input.
The script supports four TP/SL methodologies:
Pro Standards (Auto-Select): Adapts method based on asset type and volatility.
R Multiples: Risk-based reward multiples from ATR-derived stop distance.
Fibonacci R: Fibonacci extension levels projected from recent pivots.
Percent: Fixed percentage distance from entry, adjusted by volatility.
ATR Multiples: ATR-based calculations with configurable multipliers.
Features:
Up to 3 manual entries, each with configurable time, price, and position size.
Weighted entry price calculation across multiple positions.
Single or multiple TP targets (up to 4) with automatic scaling.
Dynamic ATR option: updates SL/TP levels with live volatility or fixes them at entry.
Pivot-based logic for Fibonacci extensions.
Symbol Locking to prevent mismatches between intended pair and chart symbol.
Table display with optional R-multiples, TP/SL values, and entry details.
Visual chart elements: lines, labels, price-scale markers for SL/TP, and zebra-style info tables.
Entry markers (E1, E2, E3) for clarity.
Alerts for TP and SL triggers (both long and short).
How to Use:
Define entry prices, times, and position sizes (up to 3 entries).
Select a TP method (Pro Standards, R Multiples, Fibonacci R, Percent, or ATR Multiples).
Choose single or multiple TP mode.
Optionally enable Dynamic ATR to update levels in real time.
Check the on-chart table for all calculated levels and alerts.
Author & Credit:
Developed from the ground up by me (no external code used outside The Pine public library).
Stoploss
OrderVibe indicator (Invite-Only)What it is
OrderVibe is a closed-source tool that visualizes market structure and volatility. It does not generate trade calls or manage orders. It draws zones/levels and optional alerts so traders can build their own process.
How it works - technical overview (conceptual)
* Trend regime filter (optional). Uses a sloped moving-average baseline to qualify trend and can require higher-timeframe (HTF) agreement.
* Momentum gate. A smoothed, rate-of-change–style momentum must align with the trend and exceed a configurable strength threshold.
* Volatility filter. ATR-based bounds suppress setups when volatility is unusually low or high for the instrument.
* Order-block zones (SMC element). Marks candidate OB zones derived from pre-break structure and uses them for confluence; zones invalidate on decisive closes.
* Support/Resistance. Clusters recent pivots into zones using ATR-relative distance, keeping the most relevant areas by recency/proximity.
* Informational entry label. Prints on controlled retests of active zones when trend/momentum/volatility conditions are met. Labels are informational only.
* Baseline stop suggestion. Suggests a protective distance based on ATR or recent swing, whichever is more conservative.
* ATR TP ladder (TP1-TP10). Optional multi-level targets built from ATR multiples; per-level toggles and alerts.
* Cooldown. After a label, a short cooldown prevents duplicates; invalid zones are removed automatically.
* Alerts (optional). New S/R zone, new OB zone, TP reached, and related events.
Why it’s not a simple mashup
* Dual qualification (trend + momentum) with optional HTF agreement.
* Volatility-aware suppression and ATR-normalized zone clustering.
* Integrated ATR TP ladder with per-level controls and cooldown in one workflow.
* Provides clear value beyond classic MA/ATR combinations by combining HTF-aware gating, ATR-relative zone clustering, and structured multi-target management.
How to use
* Works on any symbol; defaults are calibrated for intraday XAUUSD.
* Adjust ATR lengths/ranges and TP multipliers to your instrument.
* Hide unused TP levels; forward-test before using live.
* Educational analytics only; no signals or advice.
Disclaimer
Analytical tool only. This is not financial advice and outcomes are not guaranteed. Use independent judgment and risk management.
Access
Access is invite-only and granted manually on TradingView. For contact details, see my Signature.
The Gain Anchor - Long/Short SignalsThe Gain Anchor – Long/Short Signals (WunderTrading Bot Ready)
Dual Anchored VWAP System Powered by Overbought & Oversold Signals
A high-precision AVWAP and Z-Score system designed to generate Long/Buy and Short/Sell signals.
This indicator is ideal for swing trades and can be used as a standard signal indicator or seamlessly integrated for automated trading with WunderTrading bots.
--------------------------------------------------
Inputs
--------------------------------------------------
• Master Symbol: Sets the symbol used to track market trend. When disabled, the chart’s symbol is used to track its own trend.
• Rolling AVWAP Length: Defines the AVWAP calculation lookback (the bar where calculation starts).
• Minimum Investment Amount ($): Minimum is $6. For WunderTrading, it should not be less than $12.
• Minimum Profit Target ($): Ensures returns are higher than the defined minimum profit.
• Z-Score Lookback: Sets the lookback length for the Z-Score calculation window.
• Z-Score Threshold: Defines the base threshold. (The code auto-adjusts thresholds as more data is processed.)
• Long/Short Strings Input: Enter the alert messages you want to receive. For WunderTrading bots, input your Long Entry, Long Exit, Short Entry, and Short Exit codes.
• Show Other Lines: Displays Rolling AVWAP plot, Take Profit, and Stop Loss lines.
• Table Position: Choose the dashboard placement on your chart.
--------------------------------------------------
Core Logic
--------------------------------------------------
• Z-Score: Detects price deviation from its mean. When the price overextends based on the lookback, AVWAPs are reset.
• Resetting AVWAP 1 / Fast AVWAP (White Line): Uses a weaker threshold.
• Resetting AVWAP 2 / Slow AVWAP (Blue Line): Uses stronger thresholds, confirming and filtering weaker crosses.
• When AVWAP 2 resets, it signals a possible trend change and may generate new signals.
• If AVWAP 2 detects excessively frequent trend changes (high volatility), new signals are automatically disabled.
• Stop Loss and Take Profit are derived from bar distance relative to the lowest AVWAP (longs) or highest AVWAP (shorts).
If this exceeds your minimum investment, the system auto-adjusts the size.
If stop loss is not positioned beyond the AVWAPs, no signal is generated.
--------------------------------------------------
Trade Signals Logic
--------------------------------------------------
The indicator’s signal mechanism is designed to prevent overtrading during
high volatility.
- Signals are disabled when a sudden surge in volatility is detected.
- Only one signal is generated per legitimate trend change.
- Example:
• When the trend switches to bullish, only one Long signal is given.
• Once that Long position is closed (profit or loss), no new signal will be issued until another valid trend change occurs.
• The same logic applies to bearish/Short positions.
This ensures that signals remain clean, infrequent, and aligned with real trend shifts rather than noise.
--------------------------------------------------
Take Profit & Stop Loss
--------------------------------------------------
• Take Profit has two levels:
1. First Level: Triggered when the trend changes and price is below the first TP level.
2. Second Level: Triggered if the price surges into the second TP level.
The position is closed on whichever condition is met first.
• On Scale:
- Take Profit (Gray Line): Rolling take profit value.
- Stop Loss (Maroon Line): Rolling stop loss value, auto-calculated as half the minimum profit.
- Gray Stop Loss and Take Profit: Rolling Stop Loss and Take Profit purpose is mainly for manual trading but when they are both gray it is not ideal to look for an entry.
• On Chart:
- Take Profit: Lime (Longs), Fuchsia (Shorts). Fixed from signal start until triggered.
- Stop Loss: Yellow (Longs), Maroon (Shorts). Fixed from signal start until triggered.
- You have to activate "Show Other Lines" in Input to see them
--------------------------------------------------
Signal Markers
--------------------------------------------------
• 👆 = Long Entry
• Green Dot = Long Exit (TP/SL)
• 👇 = Short Entry
• Fuchsia Dot = Short Exit (TP/SL)
• 💥 = Bullish Trend
• 🔥 = Bearish Trend
--------------------------------------------------
Backtest System
--------------------------------------------------
• Displays the number of days since the first trade/backtest.
• Shows trade count, win rate, net profit/loss.
• Useful for real-time analysis and alert validation.
--------------------------------------------------
Dashboard Overview
--------------------------------------------------
Row 1 (Per Symbol):
• Column 1: Win Rate + Total Trades / Wins / Losses
• Color Modes: Blue = Win rate rising and it's 50 or higher. Brown = Win rate falling and it's 50 or higher. Grey = Falling and less than 50
• Column 2: Backest - number of days since the first trade
• Column 3: Net Profit + Total Profit / Total Loss
• Color Modes: Red = Loss greater than Profit , Green = Net Profit exceeds minimum profit x Total Trade Won, Brown = Profit greater than Loss but high bad trades
• Column 4: Investment Amount + Minimum Profit | Gain % to Target
• Color Modes: Signal State: Lime = Long, Maroon = Short, Yellow = Both Active
--------------------------------------------------
Usage Notes
--------------------------------------------------
• Works for manual or automated execution.
• Fully compatible with WunderTrading’s JSON alert format (and any platform using the same format).
• Can also be used standalone with no dependencies.
• Dashboard and auto-calculated SL/TP make it flexible across all trading styles.
• Minimum Investment Amount affects SL/TP size and therefore win rate.
• Increasing Minimum Profit increases potential profit but also increases loss size.
• Loss-to-Win ratio is always 1:2+, meaning your wins are at least double your losses.
• Optimized for 1-minute timeframe. Other timeframes may also yield desirable results.
--------------------------------------------------
⚠️ Disclaimer
--------------------------------------------------
This indicator does not constitute financial advice or a trading recommendation.
All trading involves risk. Past performance does not guarantee future results.
TrendMaster Pro with Dynamic ATROverview
TrendMaster Pro with Dynamic ATR is a comprehensive trend-following indicator designed for traders seeking to identify entry and exit points in trending markets while incorporating volatility-based risk management. Built on a multi-timeframe Exponential Moving Average (EMA) system, it combines short-term momentum signals with long-term trend filters, enhanced by a Volatility-Adjusted Moving Average (VMA) for confirmation and Average True Range (ATR) for adaptive stop-loss and take-profit levels.
This indicator overlays directly on your chart, providing visual cues for buy/sell signals, dynamic stops/targets, and optional EMA lines. It's ideal for swing trading, day trading, or scalping across various assets like stocks, forex, cryptocurrencies, and commodities. The system emphasizes trend alignment to reduce false signals, with customizable options for trailing mechanisms and filters to suit different market conditions.
Key benefits:
Multi-Timeframe Analysis: Incorporates higher timeframe EMAs for robust trend detection without needing to switch charts.
Volatility Adaptation: Uses ATR for dynamic positioning of stops and targets, helping manage risk in volatile environments.
Flexible Customization: Toggles for displaying EMAs, using trailing stops/targets, and applying VMA filters for entries/exits.
Alert Integration: Built-in alerts for entries, exits, stop breaches, and target hits to automate notifications.
Core Components
The indicator revolves around four EMAs, a VMA, and ATR calculations:
Exponential Moving Averages (EMAs):
Fast EMA (Default: 12 periods): Captures short-term momentum and quick price changes.
Slow EMA (Default: 27 periods): Identifies medium-term trends, providing a smoother view than the Fast EMA.
Stop EMA (Default: 48 periods on 15-minute timeframe): Acts as dynamic support/resistance for risk management and exit signals.
Trend EMA (Default: 288 periods on 5-minute timeframe): Serves as a long-term trend filter to ensure trades align with the overall market direction.
Volatility-Adjusted Moving Average (VMA):
A dynamic moving average that adjusts its sensitivity based on market volatility (using a Directional Movement Index-inspired calculation).
Length: Default 6 periods.
Colored green (uptrend), red (downtrend), or blue (neutral/sideways).
Optionally filters entries and exits to confirm trend direction.
Average True Range (ATR):
Measures volatility over a specified period (Default: 14).
Used to set adaptive stop-loss and take-profit levels.
Multipliers allow customization: Stop (Default: 1.5x ATR), Fixed Target (Default: 3.0x ATR), Trailing Target (Default: 2.0x ATR).
Supports trailing options for stops (based on highest/lowest since entry) and targets (ratcheting with price movement).
Signal Generation
Entry Signals
Buy (Long) Signal: Triggered when the price is above the Trend EMA (bullish alignment) and one of the following occurs:
Price crosses above the Trend EMA.
Price crosses above the Fast EMA, with Fast EMA > Slow EMA > Trend EMA.
Price crosses above the Slow EMA, with Fast EMA > Slow EMA > Trend EMA.
Filtered optionally by VMA being green (uptrend confirmation).
Visual: Green "BUY" label below the bar.
Sell (Short) Signal: Triggered when the price is below the Trend EMA (bearish alignment) and one of the following occurs:
Price crosses below the Trend EMA.
Price crosses below the Fast EMA, with Fast EMA < Slow EMA < Trend EMA.
Price crosses below the Slow EMA, with Fast EMA < Slow EMA < Trend EMA.
Filtered optionally by VMA being red (downtrend confirmation).
Visual: Red "SELL" label above the bar.
Exit Signals
Exit Long: Occurs when the position is active and:
Price crosses below the Stop EMA, or
Price hits the ATR stop-loss (fixed or trailing), or
Price reaches the ATR take-profit (fixed or trailing).
Filtered optionally by VMA > Stop EMA and VMA red (downtrend shift).
Visual: Green "E" label (exit) or "TP" label (if target hit).
Exit Short: Occurs when the position is active and:
Price crosses above the Stop EMA, or
Price hits the ATR stop-loss (fixed or trailing), or
Price reaches the ATR take-profit (fixed or trailing).
Filtered optionally by VMA < Stop EMA and VMA green (uptrend shift).
Visual: Red "E" label (exit) or "TP" label (if target hit).
The indicator tracks only one active position at a time (long or short), resetting on exit. Trailing stops update based on the highest high (long) or lowest low (short) since entry.
Visual Elements
How to Use ?
Setup: Add to your chart and adjust inputs based on your timeframe (e.g., shorter lengths for intraday, longer for swings).
Trading Strategy:
Enter on "BUY" or "SELL" labels when aligned with your broader analysis.
Monitor ATR lines for risk/reward: Aim for targets at least 2x stop distance.
Use trailing options in trending markets to lock in profits; fixed in ranging ones.
Combine with volume or other indicators for confirmation.
Risk Management: Always respect ATR stops to limit losses. Position size based on stop distance (e.g., 1-2% account risk).
Backtesting: Test on historical data to optimize parameters for your asset.
Alerts: Set up notifications for signals via TradingView's alert system. Examples:
"BUY signal triggered"
"EXIT long trade"
"Long ATR target reached on close"
Notes and Limitations
This is not financial advice; use at your own risk and combine with personal analysis.
Performance varies by market conditions—best in trending environments; may whipsaw in sideways markets.
Multi-timeframe requests may cause slight repainting on live charts due to higher TF data.
No repainting on closed bars, but ensure your chart timeframe is compatible with input TFs.
Licensed under Mozilla Public License 2.0. For questions or feedback, contact @MudraMiner.
This indicator empowers traders with a balanced, adaptive system—happy trading! 🚀
HZ Key LevelsThe HZ Key Levels script is a powerful tool designed to help traders identify sharp and precise entry and take profit levels on their charts. Utilizing a unique proprietary formula, this indicator provides a clear visual guide for strategic trading decisions. The levels are plotted as solid lines with corresponding price values, ensuring they remain relevant across different timeframes. Ideal for traders seeking reliable reference points to enhance their market analysis and execution precision.
Double Fractal Entry📘 Double Fractal Entry – Original Structure-Based Entry System
Double Fractal Entry is a proprietary indicator that uses dynamic fractal structure to generate actionable buy/sell signals, with automatic Stop-Loss and Take-Profit placement. Unlike classic fractal tools or ZigZag-based visuals, this script constructs real-time structural channels from price extremes and offers precise entry points based on breakout or rejection behavior.
It is designed for traders who want a clear, structured approach to trading price action — without repainting, lagging indicators, or built-in oscillators.
🧠 Core Logic
This script combines three custom-built modules:
1. Fractal Detection and Channel Construction
- Fractals are detected using a configurable number of left/right bars (sensitivity).
- Confirmed upper/lower fractals are connected into two continuous channels.
- These channels represent real-time structure zones that evolve with price.
2. Entry Signal Logic
You can choose between two signal types:
- Breakout Mode – Triggers when price breaks above the upper fractal structure (for buys) or below the lower one (for sells).
- Rebound Mode – Triggers when price approaches a fractal channel and then rejects it (forms a reversal setup).
Each signal includes:
- Entry arrow on the chart
- Horizontal entry line
- Stop-Loss and Take-Profit lines
3. SL/TP Calculation
Unlike tools that use ATR or fixed values, SL and TP are dynamically set using the fractal range — the distance between the most recent upper and lower fractals. This makes the risk model adaptive to market volatility and structure.
📊 Visuals on the Chart
- 🔺 Green/Red triangle markers = confirmed fractals
- 📈 Lime/Red channel lines = evolving upper/lower structure
- 🔵 Blue arrow = signal direction (buy/sell)
- 📉 SL/TP lines = dynamically drawn based on fractal spacing
- 🔁 Signal history = optional, toggleable for backtesting
⚙️ Settings and Customization
- Fractal sensitivity (bars left/right)
- Entry mode: Breakout or Rebound
- SL and TP multiplier (based on fractal range)
- Visibility settings (signal history, lines, colors, etc.)
💡 What Makes It Unique
This is not just a variation of standard fractals or a ZigZag wrapper.
Double Fractal Entry was built entirely from scratch and includes:
- ✅ A dual-channel system that shows the live market structure
- ✅ Entry signals based on price behavior around key zones
- ✅ Volatility-adaptive SL/TP levels for realistic trade management
- ✅ Clean, non-repainting logic for both manual and automated use
The goal is to simplify structure trading and provide precise, repeatable entries in any market condition.
🧪 Use Cases
- Breakout mode – Ideal for trend continuation and momentum entries
- Rebound mode – Great for reversals, pullbacks, and range-bound markets
- Can be used standalone or combined with volume/trend filters
⚠️ Disclaimer
This tool is intended for technical analysis and educational use. It does not predict future market direction and should be used with proper risk management and strategy confirmation.
Bracket PreviewThe Bracket Preview indicator allows the user to set their intended bracket order distance (distance, in ticks, to take-profit and stop-loss) from the current live price so that a preview is generated and updated in real-time as price moves. This gives the trader a quick reference of where the bracket orders would be placed if a position were entered at that specific moment in time. This can be helpful by making it more obvious to the trader before a trade is placed exactly where these levels would be in relation to previous price action or if it would be better to wait for price to move to a more favorable level or accept a different Risk-Reward (RR) from this specific trade.
• “If I entered a long position now, would my target be in front of or beyond a recent consolidation area where it is likely to run into resistance and potentially reverse before hitting my take-profit?”
• “Would this bracket order place my stop-loss above or below a previous pivot or would I need to move it after entering the trade and potentially increase the risk on this trade to have it in a more logical level?”
• “If price is in a range and I enter now, would my stop be in the middle of the range while my target is outside the top of the range? Maybe I should wait for price to move to an area where my target would be inside but near the top of the range while my stop loss is below the range so that I’m not taking unnecessary risk or being forced to take an unfavorable RR.”
Double Fractal Entry📘 Double Fractal Entry – Original Structure-Based Entry System
Double Fractal Entry is a proprietary indicator that uses dynamic fractal structure to generate actionable buy/sell signals, with automatic Stop-Loss and Take-Profit placement. Unlike classic fractal tools or ZigZag-based visuals, this script constructs real-time structural channels from price extremes and offers precise entry points based on breakout or rejection behavior.
It is designed for traders who want a clear, structured approach to trading price action — without repainting, lagging indicators, or built-in oscillators.
🧠 Core Logic
This script combines three custom-built modules:
1. Fractal Detection and Channel Construction
- Fractals are detected using a configurable number of left/right bars (sensitivity).
- Confirmed upper/lower fractals are connected into two continuous channels.
- These channels represent real-time structure zones that evolve with price.
2. Entry Signal Logic
You can choose between two signal types:
- Breakout Mode – Triggers when price breaks above the upper fractal structure (for buys) or below the lower one (for sells).
- Rebound Mode – Triggers when price approaches a fractal channel and then rejects it (forms a reversal setup).
Each signal includes:
- Entry arrow on the chart
- Horizontal entry line
- Stop-Loss and Take-Profit lines
3. SL/TP Calculation
Unlike tools that use ATR or fixed values, SL and TP are dynamically set using the fractal range — the distance between the most recent upper and lower fractals. This makes the risk model adaptive to market volatility and structure.
📊 Visuals on the Chart
- 🔺 Green/Red triangle markers = confirmed fractals
- 📈 Lime/Red channel lines = evolving upper/lower structure
- 🔵 Blue arrow = signal direction (buy/sell)
- 📉 SL/TP lines = dynamically drawn based on fractal spacing
- 🔁 Signal history = optional, toggleable for backtesting
⚙️ Settings and Customization
- Fractal sensitivity (bars left/right)
- Entry mode: Breakout or Rebound
- SL and TP multiplier (based on fractal range)
- Visibility settings (signal history, lines, colors, etc.)
💡 What Makes It Unique
This is not just a variation of standard fractals or a ZigZag wrapper.
Double Fractal Entry was built entirely from scratch and includes:
- ✅ A dual-channel system that shows the live market structure
- ✅ Entry signals based on price behavior around key zones
- ✅ Volatility-adaptive SL/TP levels for realistic trade management
- ✅ Clean, non-repainting logic for both manual and automated use
The goal is to simplify structure trading and provide precise, repeatable entries in any market condition.
🧪 Use Cases
- Breakout mode – Ideal for trend continuation and momentum entries
- Rebound mode – Great for reversals, pullbacks, and range-bound markets
- Can be used standalone or combined with volume/trend filters
🔒 Invite-Only Notice
This is an invite-only script with a fully closed source.
All logic is original and developed by the author. It does not use or copy public open-source scripts, built-in indicators (RSI, MA, etc.), or repainting tricks. The entire entry and risk system is based on custom structural logic built from real-time price action.
⚠️ Disclaimer
This tool is intended for technical analysis and educational use. It does not predict future market direction and should be used with proper risk management and strategy confirmation.
ATR Dynamic Stop (Table + Plot + ATR %)📊 This script displays dynamic stop levels based on ATR, designed for active traders.
Features:
- Shows long and short stop levels (price ± ATR × multiplier).
- Displays values as a floating table on the top-right corner.
- Optional plot lines directly on the chart.
- Option to calculate based on realtime price or last close.
- Displays the ATR value both in price units and as a percentage of the selected price.
- Fully customizable table: text size, text color, background color.
Inputs:
- ATR Multiplier and Length.
- Show/hide stop lines on the chart.
- Select price source (realtime or last close).
- Table appearance options.
Ideal for:
- Traders who want a clear visual stop guide.
- Combining volatility with risk management.
ATR Stop-Loss with Fibonacci Take-Profit [jpkxyz]ATR Stop-Loss with Fibonacci Take-Profit Indicator
This comprehensive indicator combines Average True Range (ATR) volatility analysis with Fibonacci extensions to create dynamic stop-loss and take-profit levels. It's designed to help traders set precise risk management levels and profit targets based on market volatility and mathematical ratios.
Two Operating Modes
Default Mode (Rolling Levels)
In default mode, the indicator continuously plots evolving stop-loss and take-profit levels based on real-time price action. These levels update dynamically as new bars form, creating rolling horizontal lines across the chart. I use this mode primarily to plot the rolling ATR-Level which I use to trail my Stop-Loss into profit.
Characteristics:
Levels recalculate with each new bar
All selected Fibonacci levels display simultaneously
Uses plot() functions with trackprice=true for price tracking
Custom Anchor Mode (Fixed Levels)
This is the primary mode for precision trading. You select a specific timestamp (typically your entry bar), and the indicator locks all calculations to that exact moment, creating fixed horizontal lines that represent your actual trade levels.
Characteristics:
Entry line (blue) marks your anchor point
Stop-loss calculated using ATR from the anchor bar
Fibonacci levels projected from entry-to-stop distance
Lines terminate when price breaks through them
Includes comprehensive alert system
Core Calculation Logic
ATR Stop-Loss Calculation:
Stop Loss = Entry Price ± (ATR × Multiplier)
Long positions: SL = Entry - (ATR × Multiplier)
Short positions: SL = Entry + (ATR × Multiplier)
ATR uses your chosen smoothing method (RMA, SMA, EMA, or WMA)
Default multiplier is 1.5, adjustable to your risk tolerance
Fibonacci Take-Profit Projection:
The distance from entry to stop-loss becomes the base unit (1.0) for Fibonacci extensions:
TP Level = Entry + (Entry-to-SL Distance × Fibonacci Ratio)
Available Fibonacci Levels:
Conservative: 0.618, 1.0, 1.618
Extended: 2.618, 3.618, 4.618
Complete range: 0.0 to 4.764 (23 levels total)
Multi-Timeframe Functionality
One of the indicator's most powerful features is timeframe flexibility. You can analyze on one timeframe while using stop-loss and take-profit calculations from another.
Best Practices:
Identify your entry point on execution timeframe
Enable "Custom Anchor" mode
Set anchor timestamp to your entry bar
Select appropriate analysis timeframe
Choose relevant Fibonacci levels
Enable alerts for automated notifications
Example Scenario:
Analyse trend on 4-hour chart
Execute entry on 5-minute chart for precision
Set custom anchor to your 5-minute entry bar
Configure timeframe setting to "4h" for swing-level targets
Select appropriate Fibonacci Extension levels
Result: Precise entry with larger timeframe risk management
Visual Intelligence System
Line Behaviour in Custom Anchor Mode:
Active levels: Lines extend to the right edge
Hit levels: Lines terminate at the breaking bar
Entry line: Always visible in blue
Stop-loss: Red line, terminates when hit
Take-profits: Green lines (1.618 level in gold for emphasis)
Customisation Options:
Line width (1-4 pixels)
Show/hide individual Fibonacci levels
ATR length and smoothing method
ATR multiplier for stop-loss distance
Lot Size Calculator (SL Percentage) - Futures ⚠️ IMPORTANT DISCLAIMER
This indicator is provided for educational and informational purposes only. The author assumes no responsibility for any financial losses, code errors, calculation mistakes, or trading decisions based on this tool. Use at your own risk and responsibility. Always manually verify calculations before opening real positions.
Contract size calculations are based on standard full-size futures contracts, not micro contracts (even though micro contracts are supported for identification).
Description
Money management tool for automatic calculation of optimal contract size (lot size) in futures trading. Supports over 50 futures instruments with pre-configured tick sizes and pip values for CME and other exchanges.
Supported Instruments
Currency Futures: 6J, 6E, 6B, 6A, 6C, 6S, 6N
Index Futures: ES, NQ, YM, RTY, MES, MNQ, MYM, M2K, NKD
Energy: CL, NG, HO, RB, QM
Metals: GC, SI, HG, MGC, SIL
Agricultural: ZC, ZS, ZW, HE, LE, ZO, ZR, ZM, ZL
Interest Rates: ZN, ZB, ZT, ZF
Crypto: MBT, MET
Others: VX
Main Parameters
Equity : Total available capital
Risk : Maximum risk percentage per trade
Stop Loss : Percentage distance of stop loss
Risk/Reward Ratio: Ratio to calculate take profit
Entry Price: Entry price (0 = current price)
Stop Loss Modes
Percentage Stop Loss (Use SL in % = ON):
Automatically calculates SL level as percentage from entry price
Example: Entry 100, SL 2% → Long SL at 98, Short SL at 102
Manual Stop Loss (Use SL in % = OFF):
Enter exact stop loss price directly
Greater precision for specific technical levels (support/resistance)
Interactive feature: You can drag the red stop loss line directly on the chart to modify the level in real-time
How to Use
Set equity and risk % according to your trading plan
Choose direction (Long/Short) and stop loss (percentage or price)
Enter entry price (optional)
Read the CONTRACT SIZE in the green table
Verify levels Entry/SL/TP on the graphic lines
Output
Information table with all parameters and highlighted CONTRACT SIZE
Graphic lines: Entry (blue), Stop Loss (red), Take Profit (green)
Configurable alerts with calculated values
Advantages
✅ Automatic calculation of optimal size
✅ Precise tick sizes for each instrument
✅ Systematic risk management
✅ Clear visual interface
✅ Multi-asset support on futures
Warnings
⚠️ Always verify that the instrument is recognized (no orange warning)
⚠️ Manually check calculations before trading
⚠️ Test in demo before using with real money
⚠️ Update regularly for any contract modifications
⚠️ DISCLAIMER IMPORTANTE
Questo indicatore è fornito esclusivamente a scopo educativo e informativo. L'autore non si assume alcuna responsabilità per eventuali perdite finanziarie, errori nel codice, calcoli errati o decisioni di trading basate su questo strumento. L'utilizzo è a proprio rischio e responsabilità. Si raccomanda di verificare sempre manualmente i calcoli prima di aprire posizioni reali.
I calcoli della dimensione del contratto sono basati su contratti futures standard full-size, non micro contratti (anche se i micro contratti sono supportati per l'identificazione).
Descrizione
Strumento di money management per il calcolo automatico della dimensione ottimale del contratto (lot size) nel trading di futures. Supporta oltre 50 strumenti futures con tick size e pip value pre-configurati per mercati CME e altri exchange.
Strumenti Supportati
Currency Futures: 6J, 6E, 6B, 6A, 6C, 6S, 6N
Index Futures: ES, NQ, YM, RTY, MES, MNQ, MYM, M2K, NKD
Energy: CL, NG, HO, RB, QM
Metals: GC, SI, HG, MGC, SIL
Agricultural: ZC, ZS, ZW, HE, LE, ZO, ZR, ZM, ZL
Interest Rates: ZN, ZB, ZT, ZF
Crypto: MBT, MET
Altri: VX
Parametri Principali
Equity : Capitale totale disponibile
Risk : Percentuale massima di rischio per trade
Stop Loss : Distanza percentuale dello stop loss
Risk/Reward Ratio: Rapporto per calcolare il take profit
Entry Price: Prezzo di entrata (0 = prezzo corrente)
Modalità Stop Loss
Stop Loss Percentuale (Use SL in % = ON):
Calcola automaticamente il livello SL come percentuale dal prezzo di entrata
Esempio: Entry 100, SL 2% → SL Long a 98, SL Short a 102
Stop Loss Manuale (Use SL in % = OFF):
Inserisci direttamente il prezzo esatto dello stop loss
Maggiore precisione per livelli tecnici specifici (supporti/resistenze)
Funzione interattiva: Puoi trascinare direttamente la linea rossa dello stop loss sul grafico per modificare il livello in tempo reale
Come Usare
Imposta equity e risk % secondo il tuo piano di trading
Scegli direzione (Long/Short) e stop loss (percentuale o prezzo)
Inserisci entry price (opzionale)
Leggi il CONTRACT SIZE nella tabella verde
Verifica i livelli Entry/SL/TP sulle linee grafiche
Output
Tabella informativa con tutti i parametri e il CONTRACT SIZE evidenziato
Linee grafiche: Entry (blu), Stop Loss (rosso), Take Profit (verde)
Alert configurabile con i valori calcolati
Vantaggi
✅ Calcolo automatico della size ottimale
✅ Tick size precisi per ogni strumento
✅ Risk management sistematico
✅ Interfaccia visiva chiara
✅ Supporto multi-asset su futures
Avvertenze
⚠️ Verifica sempre che lo strumento sia riconosciuto (no warning arancione)
⚠️ Controlla manualmente i calcoli prima di tradare
⚠️ Testa in demo prima dell'uso con denaro reale
⚠️ Aggiorna regolarmente per eventuali modifiche ai contratti
Ultimate_Priceaction_Tool for INTRADAY by Chaitu50cUltimate_Priceaction_Tool for INTRADAY by Chaitu50c
This indicator is crafted for intraday traders who rely on raw price action. It identifies support and resistance zones based on engulfing candle structures and 2-bar breakout formations. These patterns often signal meaningful reversals or momentum-based breakouts.
Key features:
• Real-time support and resistance zone detection
Uses green-to-red and red-to-green candle transitions where open and close levels align within a defined buffer. Also includes logic to capture two-bar breakout patterns that confirm directional conviction.
• Dynamic line behavior
Line width increases as the level holds for more bars, visually representing zone strength. Breakout buffers also expand with time to reduce false signals.
• Session-based resets
At the start of each new session, all zones reset automatically. This ensures only current, relevant intraday structures are shown, reducing clutter and improving focus.
• Dashed zone detection
Within the main high-low range, additional price levels are plotted as dashed lines when qualifying patterns appear. These zones are suppressed if similar ones already exist nearby.
• Fully customizable
Includes adjustable buffer range, breakout margin, dash suppression distance, line width control, and visual styling for both resistance and support zones.
Recommended usage:
This tool is optimized for the 1-minute and 5-minute timeframes. It is best suited for scalpers and intraday traders who depend on breakout reactions, pullback validation, and session structure shifts.
Use it to identify areas of interest, react to price action, and refine intraday decision-making with high precision.
Simple Risk-to-Reward (R) Indicator (TP1–TP2)What this indicator does:
This tool helps traders clearly visualize their risk and reward on any trade by plotting their entry, stop loss, and take-profit (TP) levels directly on the chart. It’s designed to make manual trade planning more visual and systematic.
How it works:
You set your planned entry price, whether you want to plot a Long or Short setup, and your stop-loss distance (in ticks).
The indicator calculates your stop-loss level and automatically plots it on the chart.
It then draws take-profit levels at 1R and 2R (where “R” is your risk, the distance between entry and stop).
You can toggle the TP1 and TP2 lines on or off to suit your preference.
How to use it:
Open the settings and enter your intended entry price.
Select “Long Setup” for a buy trade, or turn it off for a sell/short trade.
Enter your desired stop loss in ticks.
Choose which take-profit levels to display by toggling TP1 and TP2.
The indicator will show entry, stop, and take-profit levels right on your chart so you can easily see your planned risk/reward.
What makes it unique and useful:
This indicator is designed for manual trade planning, giving you full control over your inputs and letting you instantly see your risk/reward on any instrument or timeframe. Unlike some built-in tools, it supports both long and short trades, lets you set all levels manually, and keeps your charts clean and easy to interpret.
Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c)Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c
This indicator provides intraday traders with BUY/SELL reversal signals and automated SL (Stoploss) tracking, based on a 3-candle reversal block logic — designed to work exclusively on the 5-min timeframe.
Key Features:
• 3-Candle Reversal Logic — Signals are generated when a defined 3-candle reversal pattern is detected (body-close breakout).
• Current Session Only — All signals and SL lines are valid only for the current session and automatically reset at session start.
• BUY/SELL Signal Labels — Visual ▲ and ▼ labels mark valid reversal signals on the chart.
• Dynamic Auto SL Lines — Plots dashed SL lines based on the reversal block's low/high.
• SL HIT Tracking — If SL is broken, the line stops extending and a ‘SL HIT’ label is displayed at the midpoint of the SL line.
• Adjustable Visual Settings — Customize signal label size, SL line width, colors, and more.
• Clean & Lightweight — Optimized for intraday use without cluttering the chart.
How to Use:
You can trade this indicator in two ways:
1. Direct Signal Entry — Take a BUY or SELL trade when a valid ▲/▼ reversal signal forms.
2. SL HIT Re-entry — If an existing SL line is broken and ‘SL HIT’ appears, you can optionally take an opposite side trade in the direction of the SL HIT.
Example:
A BUY signal is generated and an SL line is plotted below.
If price breaks the SL (SL HIT appears), you may consider entering a SELL trade at that point — as it indicates weakness.
Important Notes:
• Works only on 5-min timeframe — Set your chart to 5-min for correct behavior.
• Designed for intraday trading — all signals and SL levels reset at session start.
• Does not carry signals between sessions.
• SL lines and HIT labels provide a clear and simple visual aid for trade management.
---
Risk and Position Sizing📏 Why Position Size Should Be Based on Risk?
Let’s say you are ready to lose 1,000 in a trade. Based on your stop loss level, you can calculate how many shares (or quantity) to buy, so that if the stop hits, you only lose that ₹1,000.
This is called risk-based position sizing. It makes your trade size dynamic — small when SL is wide, bigger when SL is tight. No more random position sizes — just systematic.
Portfolio size is multiplied by the selected risk % to get money risk per trade.
This amount is then used to calculate how many shares can be bought for the given stop-loss.
So chose your portfolio size in settings. Default Portfolio size is 1,00,000 .
You can select your risk % per portfolio in the settings — for example:
0.25% for conservative style
0.5% to 1% for balanced traders
1.25% or 1.5% for aggressive ones (not recommended for beginners)
This script will automatically calculate how much quantity you should buy, for each stop-loss scenario.
📈 Progressive & Inverse-Progressive Risk Styles
Some traders follow progressive position sizing — they start with small risk when the trend is just starting, and increase the risk % as the trend confirms.
Others follow inverse-progressive sizing — they take high risk at early stages of a bull market, and reduce risk as the trend matures (when upside becomes limited).
📌 This script allows you to manually control the risk % in settings, so you can adjust it based on your trading phase and style.
📋 Three SL Scenarios – Choose What Matches Your Style
The table shows three different stop-loss conditions, and for each one it calculates:
Today’s Low – tightest stop loss
Yesterday’s Low – slightly safer, ideal for short-term swing trades
EMA Stop (configurable) – gives more breathing room.
You can visually compare all 3 in the table and choose whichever fits your strategy and comfort.
Also, you can customize:
Theme: dark or light
Font size
Table position (upper/lower corners)
🧠 Designed for traders who take risk management seriously.
Let this script handle the math. You focus on execution.
Happy Trading!
– LensOfChartist
TitanGrid L/S SuperEngineTitanGrid L/S SuperEngine
Experimental Trend-Aligned Grid Signal Engine for Long & Short Execution
🔹 Overview
TitanGrid is an advanced, real-time signal engine built around a tactical grid structure.
It manages Long and Short trades using trend-aligned entries, layered scaling, and partial exits.
Unlike traditional strategy() -based scripts, TitanGrid runs as an indicator() , but includes its own full internal simulation engine.
This allows it to track capital, equity, PnL, risk exposure, and trade performance bar-by-bar — effectively simulating a custom backtest, while remaining compatible with real-time alert-based execution systems.
The concept was born from the fusion of two prior systems:
Assassin’s Grid (grid-based execution and structure) + Super 8 (trend-filtering, smart capital logic), both developed under the AssassinsGrid framework.
🔹 Disclaimer
This is an experimental tool intended for research, testing, and educational use.
It does not provide guaranteed outcomes and should not be interpreted as financial advice.
Use with demo or simulated accounts before considering live deployment.
🔹 Execution Logic
Trend direction is filtered through a custom SuperTrend engine. Once confirmed:
• Long entries trigger on pullbacks, exiting progressively as price moves up
• Short entries trigger on rallies, exiting as price declines
Grid levels are spaced by configurable percentage width, and entries scale dynamically.
🔹 Stop Loss Mechanism
TitanGrid uses a dual-layer stop system:
• A static stop per entry, placed at a fixed percentage distance matching the grid width
• A trend reversal exit that closes the entire position if price crosses the SuperTrend in the opposite direction
Stops are triggered once per cycle, ensuring predictable and capital-aware behavior.
🔹 Key Features
• Dual-side grid logic (Long-only, Short-only, or Both)
• SuperTrend filtering to enforce directional bias
• Adjustable grid spacing, scaling, and sizing
• Static and dynamic stop-loss logic
• Partial exits and reset conditions
• Webhook-ready alerts (browser-based automation compatible)
• Internal simulation of equity, PnL, fees, and liquidation levels
• Real-time dashboard for full transparency
🔹 Best Use Cases
TitanGrid performs best in structured or mean-reverting environments.
It is especially well-suited to assets with the behavioral profile of ETH — reactive, trend-intraday, and prone to clean pullback formations.
While adaptable to multiple timeframes, it shows strongest performance on the 15-minute chart , offering a balance of signal frequency and directional clarity.
🔹 License
Published under the Mozilla Public License 2.0 .
You are free to study, adapt, and extend this script.
🔹 Panel Reference
The real-time dashboard displays performance metrics, capital state, and position behavior:
• Asset Type – Automatically detects the instrument class (e.g., Crypto, Stock, Forex) from symbol metadata
• Equity – Total simulated capital: realized PnL + floating PnL + remaining cash
• Available Cash – Capital not currently allocated to any position
• Used Margin – Capital locked in open trades, based on position size and leverage
• Net Profit – Realized gain/loss after commissions and fees
• Raw Net Profit – Gross result before trading costs
• Floating PnL – Unrealized profit or loss from active positions
• ROI – Return on initial capital, including realized and floating PnL. Leverage directly impacts this metric, amplifying both gains and losses relative to account size.
• Long/Short Size & Avg Price – Open position sizes and volume-weighted average entry prices
• Leverage & Liquidation – Simulated effective leverage and projected liquidation level
• Hold – Best-performing hold side (Long or Short) over the session
• Hold Efficiency – Performance efficiency during holding phases, relative to capital used
• Profit Factor – Ratio of gross profits to gross losses (realized)
• Payoff Ratio – Average profit per win / average loss per loss
• Win Rate – Percent of profitable closes (including partial exits)
• Expectancy – Net average result per closed trade
• Max Drawdown – Largest recorded drop in equity during the session
• Commission Paid – Simulated trading costs: maker, taker, funding
• Long / Short Trades – Count of entry signals per side
• Time Trading – Number of bars spent in active positions
• Volume / Month – Extrapolated 30-day trading volume estimate
• Min Capital – Lowest equity level recorded during the session
🔹 Reference Ranges by Strategy Type
Use the following metrics as reference depending on the trading style:
Grid / Mean Reversion
• Profit Factor: 1.2 – 2.0
• Payoff Ratio: 0.5 – 1.2
• Win Rate: 50% – 70% (based on partial exits)
• Expectancy: 0.05% – 0.25%
• Drawdown: Moderate to high
• Commission Impact: High
Trend-Following
• Profit Factor: 1.5 – 3.0
• Payoff Ratio: 1.5 – 3.5
• Win Rate: 30% – 50%
• Expectancy: 0.3% – 1.0%
• Drawdown: Low to moderate
Scalping / High-Frequency
• Profit Factor: 1.1 – 1.6
• Payoff Ratio: 0.3 – 0.8
• Win Rate: 80% – 95%
• Expectancy: 0.01% – 0.05%
• Volume / Month: Very high
Breakout Strategies
• Profit Factor: 1.4 – 2.2
• Payoff Ratio: 1.2 – 2.0
• Win Rate: 35% – 60%
• Expectancy: 0.2% – 0.6%
• Drawdown: Can be sharp after failed breakouts
🔹 Note on Performance Simulation
TitanGrid includes internal accounting of fees, slippage, and funding costs.
While its logic is designed for precision and capital efficiency, performance is naturally affected by exchange commissions.
In frictionless environments (e.g., zero-fee simulation), its high-frequency logic could — in theory — extract substantial micro-edges from the market.
However, real-world conditions introduce limits, and all results should be interpreted accordingly.
Stop Hunt Indicator ║ BullVision 🧠 Overview
The Stop Hunt Indicator (SmartTrap Radar) is an original tool designed to identify potential liquidity traps caused by institutional stop hunts. It visually maps out historically significant levels where price has repeatedly reversed or rejected — and dynamically detects real-time sweep patterns based on volume, structure, and candle rejection behavior.
This script does not repurpose existing public indicators, nor does it use default TradingView built-ins such as RSI, MACD, or MAs. Its core logic is fully proprietary and was developed from scratch to support discretionary and data-driven traders in visualizing volatility risks and manipulation zones.
🔍 What the Indicator Does
This indicator identifies and visualizes potential stop hunt zones using:
Historical structure analysis: Swing highs/lows are identified via a configurable lookback period.
Liquidity level tracking: Once detected, levels are monitored for touches, age, and volume strength.
Proprietary scoring model: Each level receives a real-time significance score based on:
Age (how long the level has held)
Number of rejections (touches)
Relative volume strength
Proximity to current price
The glow intensity of plotted levels is dynamically mapped based on this score. Bright glow = higher institutional interest probability.
⚙️ Stop Hunt Detection Logic
A stop hunt is flagged when all of the following are met:
Price sweeps through a high/low beyond a user-defined penetration threshold
Wick rejection occurs (i.e., candle closes back inside the level)
Volume spikes above the average in a recent window
The script automatically:
Detects bullish stop hunts (below support) and bearish ones (above resistance)
Marks detected sweeps on-chart with optional 🔰/🚨 signals
Adjusts glow visuals based on score even after the sweep occurs
These sweeps often precede local reversals or high-volatility zones — this is not predictive, but rather a reactive mapping of market manipulation behavior.
📌 Why This Is Not Just Another Liquidity Tool
Unlike typical liquidity heatmaps or S/R indicators, this script includes:
A proprietary significance score instead of fixed rules
Multi-layer glow rendering to reflect level importance visually
Real-time scoring updates as new volume and touches occur
Combined volume × rejection × structure logic to validate stop hunts
Fully customizable detection logic (lookback, wick %, volume filters, max bars, etc.)
This indicator provides a specialized view focused solely on visualizing trap setups — not generic trend signals.
🧪 Usage Recommendations
To get started:
Add the indicator to your chart (volume-enabled instruments only)
Customize detection:
Lookback Period for structure
Penetration % for how far price must sweep
Volume Spike Multiplier
Wick rejection strength
Enable/disable features:
Glow effects
Hunt markers
Score labels
Volume highlights
Watch for:
🔰 Bullish Sweeps (below support)
🚨 Bearish Sweeps (above resistance)
Bright glowing zones = high-liquidity targets
This tool can be used for both confluence and risk assessment, especially around high-impact sessions, liquidation events, or range extremes.
📊 Volume Dependency Notice
⚠️ This indicator requires real volume data to function correctly. On instruments without volume (e.g., synthetic pairs), certain features like spike detection and scoring will be disabled or inaccurate.
🔐 Closed-Source Disclosure
This script is published as invite-only to protect its proprietary scoring, glow mapping, and detection logic. While the full implementation remains confidential, this description outlines all key mechanics and configurable logic for user transparency.
Realtime ATR-Based Stop Loss Numerical OverlayRealtime ATR-Based Stop Loss Numerical Overlay
A simple, effective tool for dynamic risk management based on ATR (Average True Range) without adding cluttered and distracting lines all over your chart.
📌 Description
This script plots a real-time stop loss level using the Average True Range (ATR) on your chart, helping you set consistent, volatility-based stops. It supports both:
✅ Current chart timeframe
✅ Custom fixed timeframe inputs (1m, 5m, 15m, 1h, etc.)
The stop level is calculated as:
Stop = ATR × Multiplier
and updates in real-time. An overlay table displays on the bottom-right of your chart with the calculated stop value in a clean, simple way.
⚙️ Settings
ATR Timeframe Source:
Choose between using the current chart's timeframe or a fixed one (e.g. 5, 15, 60, D, etc).
ATR Length:
Period used to calculate the ATR (default is 14).
Stop Loss Multiplier:
Multiplies the ATR value to define your stop (e.g., 1.5 × ATR).
Wait for Timeframe Closes:
If enabled, the ATR value waits for the selected timeframe’s candle to close before updating. If unselected, it will update in real time.
🛠️ How to Use
Add this script to your chart from your indicators list.
Configure your desired timeframe, ATR length, and multiplier in the settings panel.
Use the value shown in the table overlay as your suggested stop loss distance from entry.
Adjust your position sizing accordingly to fit your risk tolerance.
This tool is especially useful for traders looking for adaptive risk management that evolves with market volatility — whether scalping intraday or swing trading.
💡 Pro Tip
The ATR stop can also be used to dynamically trail your stop behind price movement.
Risk ModuleRisk Module
This indicator provides a visual reference to determine position sizing and approximate stop placement. It is designed to support trade planning by calculating equalized risk per trade based on a stop distance derived from volatility. The tool offers supportive reference points that allow for quick evaluation of risk and position size consistency across varying markets.
Equalized Risk Per Trade
The indicator calculates the number of shares that can be traded to maintain consistent monetary risk. The formula is based on the distance between the current price and the visual stop reference, adjusting the position size proportionally.
Position Size = Dollar Risk / (Entry Price – Stop Price)
The risk is calculated as a percentage of account size; both of which can be set in the indicator’s settings tab. This creates a consistent risk exposure across trades regardless of volatility or structural stop distance.
Stop Placement Reference
The visual stop reference is derived from the Average True Range (ATR), providing a volatility-based anchor. The default value is set to 2 × ATR, but this can be customized.
Price Model: Uses the current price ± ATR × multiplier. This model reacts to price movement and is set as the default option.
EMA Model: Uses the 20-period EMA ± ATR × multiplier. This model is less reactive and can be an option when used in combination with an envelope indicator.
Chart Elements
Stop Levels: Plotted above and below either the current price or EMA, depending on the selected model. These serve as visual reference points for stop placement; the lower level a sell stop for long trades, the upper level a buy stop for short trades.
Information Table: Displays the number of shares to trade, stop level and percentage risk. A compact mode is available to reduce the table to essential information (H/L and Shares).
Settings Overview
Stop Model: Choose between “Price” or “EMA” stop calculation logic.
ATR Multiplier: Change the distance between price/EMA and the stop reference.
Account Size / Risk %: These risk parameters are used to calculate dollar risk per trade.
Visible Bars: Number of recent bars to show stop markers on.
Compact Mode: Minimal table view for reduced chart footprint.
Table Position / Size: Controls table placement and scale on the chart.
Position Size CalculatorPosition Size Calculator - User Guide
A simple tool to calculate optimal position size based on your risk preferences, visualize trade levels, and automatically determine trade direction.
Introduction
The Position Size Calculator is a TradingView indicator designed to help traders calculate the optimal position size for their trades based on account size and risk tolerance. This tool visually represents entry, stop loss, and take profit levels while automatically calculating the appropriate position size to maintain consistent risk management.
Getting Started
Setting Up Your Account Parameters
Setting Price Levels
Understanding the Visual Elements
Adjusting Your Trade on the Chart
Reading the Information Panel
1. Getting Started
After adding the indicator to your chart, you'll see three horizontal lines representing:
Yellow line: Entry price
Green line: Take profit price
Red line: Stop loss price
The indicator automatically detects whether you're planning a Long or Short trade based on the position of your take profit relative to your entry.
2. Setting Up Your Account Parameters
In the "Position Calculator" settings group:
Account Size : Enter your total account balance
Account Currency : Set your account currency (USD, EUR, etc.)
Risk (%) : Enter the percentage of your account you're willing to risk per trade (e.g., 2%)
Instrument Type : Select your trading instrument (Forex, Futures, Stocks, or Crypto)
Value per 0.01 lot per tick : Enter the value of 0.01 lots per tick (for most Forex pairs, this is $1 per pip for 0.01 lot)
Minimum Lot Size : Set the minimum lot size allowed by your broker (usually 0.01 for Forex)
3. Setting Price Levels
In the "Price Levels" section:
Entry Price : The price at which you plan to enter the trade
Stop Loss Price : Where you'll exit if the trade goes against you
Take Profit Price : Your target price where you'll take profits
If you set Entry Price to 0, it will default to the current price. If Stop Loss or Take Profit are set to 0, they'll default to 5% below or above entry price respectively.
4. Understanding the Visual Elements
Yellow line : Your entry price
Green line : Your take profit level
Red line : Your stop loss level
Green zone : The profit zone (between entry and take profit)
Red zone : The loss zone (between entry and stop loss)
Information panel : Shows all calculations and trade details
5. Adjusting Your Trade on the Chart
The beauty of this tool is its interactivity:
You can drag any of the lines directly on the chart to adjust entry, stop loss, or take profit
If you drag the take profit above the entry , the indicator automatically sets up for a Long trade
If you drag the take profit below the entry , it automatically configures for a Short trade
All calculations and visuals update in real-time as you adjust the lines
This means you can quickly test different scenarios and see how they affect your position size and potential profit/loss.
6. Reading the Information Panel
The information panel displays:
Account details : Your account size and currency
Risk information : Your percentage risk and the equivalent monetary amount
Position Size : The optimal lot size calculated based on your risk parameters
Price levels : Entry, Stop Loss, and Take Profit with distances in ticks
Risk/Reward ratio : Shown as 1:X (where X is the reward relative to 1 unit of risk)
Potential outcomes : The exact amount you stand to gain or lose on this trade
Trade direction : Whether this is a Long or Short trade
Visual Settings
You can customize the appearance in the "Visual" settings group:
Adjust colors for profit and loss zones
Change the transparency of colored zones
Toggle the filling of spaces between lines
Adjust how far the lines extend beyond the last candle
Practical Tips
Always double-check your "Value per 0.01 lot per tick" setting for the specific instrument you're trading
For Forex major pairs, the standard is usually $1 per pip for 0.01 lots
For other instruments, consult your broker's specifications
The indicator works best when you place your stop loss at a logical market level (support/resistance, swing high/low) rather than a fixed percentage
Final Thoughts
This Position Size Calculator helps remove emotion from your trading by objectively calculating your position size based on your predefined risk parameters. It ensures that you maintain consistent risk across all your trades, regardless of the stop loss distance, which is a key component of successful risk management.
Remember: The most important goal in trading is capital preservation. This tool helps you ensure that each trade risks only what you've decided is acceptable for your trading strategy.
Strong Trend Bars (ATR-based)This is a ChatGPT pinescript meant as an indicator for detecting strength in the market. The primary function I use it for is to decide which bars to trail a stop loss beneath.
💥 Explanation of adjustable inputs:
Bull Close Threshold (default 0.6):
If set to 0.6, bull bars must close above 60% of bar height → low + 0.6 * barHeight
Bear Close Threshold (default 0.6):
If set to 0.6, bear bars must close below 40% of bar height → high - 0.6 * barHeight
This lets you experiment with tighter or looser filters. For example:
0.7 → only bars closing near the extremes will light up
0.5 → about midpoint
0.8 → very demanding, “almost full body” bars
Breakout Patterns Detector: Triangle & Wedge [Splirus]This indicator identifies Breakout Patterns such as Ascending Triangles , Descending Triangles , Symmetric Triangles , Ascending Wedges , and Descending Wedges , using candlestick charts and Trendlines. It provides visual cues, stop-loss (SL), and take-profit (TP) levels, alongside a detailed dashboard to evaluate performance. The indicator supports two alert modes: Manual Mode for trader notifications and Bot Mode for automated trading signals.
To achieve optimal results, users are encouraged to experiment with indicator parameters and analyze the dashboard summary to find the perfect configuration for each timeframe, pair, and market condition.
Pattern Identification
The indicator detects the following breakout patterns based on pivot highs and lows:
Ascending Triangle : Flat upper trendline, rising lower trendline.
Descending Triangle : Flat lower trendline, declining upper trendline.
Symmetric Triangle : Converging trendlines with similar slopes (within a user-defined threshold).
Ascending Wedge : Both trendlines slope upward, converging.
Descending Wedge : Both trendlines slope downward, converging.
Patterns are identified using configurable left and right bars for small and big patterns, with slope thresholds normalized by ATR. A trend confirmation filter ensures breakouts align with market direction, and users can adjust breakout confirmation bars to validate signals.
The goal is to fine-tune these settings to suit specific timeframes and pairs, as each combination may require a unique setup for optimal performance.
Stop-Loss Calculation
Stop-loss levels are calculated dynamically based on pattern type and breakout direction:
Symmetric Triangle : SL is set at the first pivot of the opposite trendline, adjusted by a buffer percentage.
Ascending/Descending Triangle : SL is placed at the breakout trendline’s price, plus the buffer.
Ascending/Descending Wedge : SL is set at the second pivot of the opposite trendline, adjusted by the buffer.
The indicator calculates leverage based on a user-defined risk tolerance percentage. Users should adjust the SL buffer and risk tolerance to balance risk and reward, monitoring the dashboard to assess how these settings impact performance across different timeframes and pairs.
Take-Profit Calculation
Three take-profit levels ( TP1 , TP2 , TP3 ) are calculated using pattern height and user-defined multipliers:
For Ascending/Descending Triangles, height is the difference between the max and min prices within the pattern.
For Symmetric Triangles and Wedges, height is the vertical distance between trendlines at the pattern’s start.
TP levels are set as:
TP1 = Breakout price ± (Height × TP1 Multiplier).
TP2 = Breakout price ± (Height × TP2 Multiplier).
TP3 = Breakout price ± (Height × TP3 Multiplier, with a 1.5x adjustment for Wedges).
Experiment with TP multipliers to optimize the risk-reward ratio, using the dashboard to evaluate TP hit rates and overall profitability for each configuration.
Symmetric Triangle:
Ascending/Descending Wedge:
Ascending/Descending Triangles:
Finding the Perfect Configuration
The indicator’s dashboard provides a comprehensive summary of performance metrics, including total trades, TP1/TP2/TP3 hits, SL hits, profit/loss percentages, and win rates for bullish, bearish, and combined trades. These metrics are crucial for identifying the ideal parameter settings:
Timeframe and Pair Variability : Each timeframe (e.g., 15m, 30min, 1H, 4H, Daily) and pair (e.g., BTC/USD, EUR/USD) behaves differently. Adjust parameters like left/right bars, minimum pattern length, and breakout confirmation bars to match the volatility and trend characteristics of the chosen pair and timeframe.
Parameter Tuning : Modify slope thresholds, trend confirmation filters, and bars inside the pattern to filter out false breakouts. For example, a higher breakout confirmation bar setting may reduce signals but increase reliability on longer timeframes.
Dashboard Analysis : Focus on the dashboard’s win rate, profit/loss ratio, and TP/SL hit frequencies. A “Perfect” win rate (>66%) or high TP hit rate indicates a strong configuration. If the SL hit rate is high, consider tightening the trend confirmation filter or increasing the SL buffer.
Iterative Testing : Test different combinations of settings (e.g., small vs. big patterns, aggressive vs. conservative breakout confirmation) and compare dashboard results over time. The goal is to find a balance where the indicator consistently delivers high win rates and profitability for your specific trading setup.
Alert Modes
The indicator supports two alert modes to suit different trading styles:
Manual Mode : Generates alerts for breakouts with entry price, SL, TP1/TP2/TP3, and leverage, tailored for Crypto or Forex markets. Use this mode to manually evaluate signals while refining configurations.
Bot Mode : Sends automated trading signals. To avoid conflicts, Bot Mode ensures no short position alert is triggered while a long position is active, and vice versa. This mode is ideal once you’ve identified an optimal configuration via the dashboard.
Additional Features
Historical Patterns : Displays past trendlines with customizable transparency and extension, helping users analyze how patterns performed under different settings.
Customizable Settings : Adjust pattern size, breakout confirmation, trend filters, and visual preferences (colors, dashboard location) to match your trading style.
Market Compatibility : Supports Crypto and Forex markets across all timeframes, but requires careful tuning for each market type.
Usage Notes
Start with default settings and monitor the dashboard to establish a baseline performance for your chosen timeframe and pair.
Gradually adjust one parameter at a time (e.g., left/right bars, TP multipliers) and compare dashboard results to identify improvements.
Use historical pattern analysis to understand how past breakouts performed under different configurations, guiding your optimization process.
Once a high win rate and profitability are achieved, consider automating trades with Bot Mode for consistent execution.
Disclaimer
This indicator is intended for educational purposes only and should not be considered financial advice. Trading involves significant risk, and past performance is not indicative of future results. Users are strongly advised to thoroughly test and validate the indicator’s signals in a demo environment before using it in live trading. The author is not responsible for any financial losses incurred while using this indicator. Always conduct your own research and consult with a qualified financial advisor before making trading decisions.
ATR Stop-Loss & TargetsATR and Supertrend-based SL/TP & Trailing System
This indicator combines Average True Range (ATR) and Supertrend logic to help traders define precise stop-loss, first target, and trailing stop-loss (TSL) levels.
⚙️ Key Features:
📏 ATR-based Stop-Loss & Target Lines:
Uses ATR (default period: 5) based on the previous day's candle for more stable risk management.
Traders can choose the price source: Close, Open, or enter a manual price.
SL and first target are calculated using multipliers:
Multiplier 1 = Stop Loss
Multiplier 2 = First Target
📉 Supertrend for Trailing Stop:
Built-in Supertrend logic for trailing stop-loss management.
Uses ATR(10) with a multiplier of 2.1, based on HL2.
Supertrend can be toggled ON/OFF from the settings.