Timed Trade Close AlertEnables you to set up alerts that can be used to close all trades when used in conjunction with web hooks.
Firstly, you can enable a daily alert at a regular time to avoid spread blow outs during roll overs. ie: This will alert at the same time each day
Additionally, you can enable and program up to 8 individual alerts to address news events or any other situations that you would want to halt your trading. The day, hour and minute can be adjusted according
สาธารณูปโภคไพน์
Previous Day High/Low/Close - Static Daily Lines (Custom Colors)previous day high low closing
statick line can be change with tihe time frame 5 to 15
TQQQ Live PnL TrackerTQQQ PnL Tracker by IceTrader Team - #MakeMyPortfolioGreatAgain
Once you add the script, modify this section of the code to match your exact TQQQ order and start tracking its Profit/Loss.
code block:
entryPrice = 86.65 (set the price at which you bought)
positionSize = 1155 (set the exact quantity of stocks you bought)
direction = "Long" (Change to "Short" if it's a short trade)
Custom EMA 9/21/50/200Chart Screenshots: Include a chart screenshot showing the EMAs with different colors and line styles (e.g., EMA 9 dashed, EMA 21 dotted, EMA 50 solid, EMA 200 solid) to demonstrate the visual output.
Backtest Results: If you want to add credibility, you can mention that the indicator is designed for visual analysis but can be integrated into strategies (though no trading logic is included here).
TradingView Guidelines: Ensure compliance with TradingView’s publishing rules (e.g., original content, no misleading claims).
This description is concise yet comprehensive, highlighting the indicator’s features and usability to attract traders on TradingView. Let me know if you need help with additional publishing steps or want to tweak the description further!
BookYourTradeHappy trade,
This is a semi-automated tool that allows you to define a trade setup in advance, including multiple exit levels. It incorporates a proven method for managing risk and reward. You specify a fixed entry price, an initial stop loss, two take profit levels, and a trailing stop loss for the remaining position—aiming to maximize gains from the trend. Alerts are included so you can step away from the screen and still be notified when any predefined price level is reached. The tool sends trade orders as market orders to your exchange or broker via webhooks. You provide the general webhook format, and the script automatically fills in the correct values.
How to Use
This tool is intended for manual day traders.
Define Entry Conditions:
Set your planned entry price and, optionally, a start and end time for trade activation. The script will not run unless the price reaches your specified level during this time window.
Set Stop Loss:
Define the stop loss as a fixed number of points from the entry price (above or below). This also determines whether the trade is long or short.
Configure Take Profits:
Specify the risk-reward ratio and position size for Take Profit 1.
Do the same for Take Profit 2.
Trailing Stop Loss:
For the remaining position after Take Profit 2, set a trailing stop loss. This is also defined in points, relative to the previous bar's closing price.
Time and Session Filters:
Set the earliest date to begin trading and the latest date by which all positions should be closed.
Optionally, define specific time windows (daily and or weekly) during which trading should be disabled. These off-times will be visually grayed out.
Define Capital and Fees:
Input the dollar amount you want to invest, along with any applicable percentage-based fees or fixed fees per trade. This is useful since different brokers, exchanges, or webhook service providers may charge in different ways (fixed, percentage, or both).
Configure Webhooks:
Enter your broker- or exchange-specific webhook for each trade event: entry, Take Profit 1, Take Profit 2, Stop Loss, and trailing exit. You’ll need to include placeholder strings in the webhook that the script will replace with actual trade values. The script provides a helper table to display these placeholders directly on the chart.
Some values you can deliver to the webhook service provider as an $ value or a deviation in percentage. For example the quantity of a trade or the take profit price. choose the correct replacement accordingly.
The script sends all orders as market orders.
Multiple Instances:
If you want to run multiple instances of this script, you must assign a unique name to each one. This ensures that the webhook service provider can correctly route trade signals to the appropriate bot.
Here is an evolution of one trade in images:
The trade setting are defined but the trade has not started
The trade has started
The price reached the first take profit level and a part of the investment was liquidated.
The trade reached it's end date and the remaining investment was liquidated.
cheers
GK Trend Reversal Buy/Sellspots reversals it only 98% hit rate on the 45min any other chart is a no go but 45min is brillent
BTCUSD Support-Resistence (by Mestre dos Traders 2025))BTCUSD Support-Resistence Trade Indicator (by Mestre dos Traders 2025)
Description of the "News Trade Zones Indicator (by Mestre dos Traders 2025)"
This advanced indicator was designed to assist traders in identifying strategic support and resistance zones during volatile market conditions, especially around major economic news events. It combines automated technical analysis with optional manual configuration for entry, take-profit, and stop-loss levels, providing robust visual guidance directly on the TradingView chart.
Key Features
Initial Alert Message
When the indicator is first added to the chart, a highlighted message appears for 30 seconds warning the user to adjust the values, date, and time in the settings panel. This ensures that lines and labels are accurately placed on the chart.
Strategic Zone Definition
Resistance Zone: A user-defined level that represents the breakout point for a potential upward move.
Support Zone: A user-defined level for potential downward breakouts.
Pre-News Price: A reference price before the news event, plotted as a continuous orange line for contextual analysis.
Manual Entry and Target Configuration
Traders can enable manual mode to define entry price, three Take Profit levels (TP1, TP2, TP3), and Stop Loss (SL). These are drawn on the chart with coloured lines and identifying labels for clear visual planning.
If manual mode is disabled, these levels are calculated automatically based on the current price and trend direction (determined using the 50 EMA).
Visual Plotting of Zones and Levels
The indicator draws horizontal lines with labels for:
Entry (blue line)
TP1, TP2, TP3 (green lines)
Stop Loss (red line)
These levels remain visible for the user-defined duration, helping traders clearly visualise the critical points of a potential trade setup.
Support and Resistance Lines Over Last 24 Hours
The indicator plots dynamic horizontal lines for the defined resistance (red) and support (green) zones, extending across the last 24 hours for quick market context.
Touch & Breakout Detection with Cooldown
Automatically detects when price touches or breaks the support or resistance zones.
Displays labels such as "POSSIBLE BUY AT THIS POINT" or "POSSIBLE SELL AT THIS POINT".
In the case of a confirmed breakout, stronger signals like "BREAKOUT BUY NOW" or "BREAKOUT SELL NOW" are shown.
A cooldown period of 10 minutes is enforced to prevent label spamming.
Fake Breakout Visual Warning
The chart background becomes lightly coloured (red or green) when price is extremely close to the support or resistance zone, alerting the trader to potential fake breakouts.
On-Chart Information Table
A data table appears in the bottom-right corner, showing:
Estimated success rate (fixed at 70%)
Risk of failure (30%)
Current trend direction (UP or DOWN), with mention of manual mode status.
Custom Alerts for Key Zone Events
The indicator includes built-in alert conditions, enabling users to set automatic TradingView alerts when the price touches the support or resistance levels — ideal for real-time notifications.
Summary
The News Trade Zones Indicator is a visual and interactive tool designed to help traders plan entries, exits, and risk management around key market levels, particularly during high-impact news events. Whether using automatic calculations or manual setups, this indicator equips traders with clear signals, visual guides, and structured information — all directly on their TradingView charts.
Contacts:
TG.: @mestredostradersoficial
TG Support: @suportedomestretraders
Tiktok Channel: @Mestredostraders
Whatsapp Sales: +55 61 991371216
✅ TrendSniper Pro✅ SPNIPER ENTRY – Precision Trend Reversal Signals
The SPNIPER ENTRY is a smart trend-following and reversal indicator designed for traders who want timely entries, clear trend confirmation, and clean visuals.
Key Features:
✅ Triple TEMA Trend Confirmation (21, 50, 200): Ensures you're entering only when all moving averages agree on direction.
🎯 Dip/Top Detection: Uses pivot analysis and ATR proximity to detect ideal pullback entries in the prevailing trend.
📉 Stop Loss & Take Profit Zones: ATR-based dynamic SL/TP levels plotted automatically.
📛 False Signal Filter: Avoids multiple entries by maintaining a position until an opposite signal occurs.
📊 Clean Chart Coloring: Candles turn green for confirmed uptrend and red for downtrend—easy to follow.
🔔 Built-in Alerts: Be notified when conditions align perfectly for a high-probability trade.
👁️ Optional TEMA Display: Toggle visibility of trend components for deeper insight.
How it Works:
A buy signal occurs only when:
All 3 TEMA slopes are positive
Price pulls back near a recent pivot low (dip)
A valid uptrend is in place
A sell signal occurs only when:
All 3 TEMA slopes are negative
Price nears a recent pivot high (top)
A confirmed downtrend is active
This indicator is ideal for swing traders, intraday traders, and scalpers who want precise entries based on structure, slope, and volatility.
PC–BC Trap Detector (Strict A+ Setup)TP/SL zones to be drawn as boxes
Multi-timeframe PC filtering
PC volume divergence check
PC–BC backtest system
My scriptMulti-Currency Converter
Purpose: A TradingView Pine Script indicator that creates a real-time currency conversion table on your chart.
Key Features:
Converts between 6 currencies: USD, EUR, GBP, Bitcoin (BTC), Ethereum (ETH), and Solana (SOL)
Live price feeds from Binance (crypto) and forex markets
Customizable table position and size
Macros, Sessions, and Quarters - psyploThis script was developed for my personal trading workflow, where I rely heavily on macro time windows and session-based timing to guide my strategy. I designed this tool to help visualize important time-based zones that are crucial in my trading approach, and I believe other traders might find it useful as well.
Features
Macro Time Window Boxes: Visual representation of price range within a configurable time window around the top of every hour.
Session Ribbon Boxes: Clearly marks the Asia, London, and New York trading sessions, labeled distinctly for better visual separation.
Session Quarters: Each session is automatically divided into four quarters, providing more granular time segmentation within sessions.
Time Zone: All session calculations are based on UTC +8 (Asia/Singapore) timezone.
This tool helps traders:
Identify volatility zones around hourly opens.
Track session-specific market dynamics.
Recognize shifts in momentum or liquidity during each session quarter.
I created this for my own strategies, but it can serve any trader who benefits from time-based market segmentation.
Feel free to adjust the colors and time window settings to suit your preferences!
HA 21-EMA Crossover • compute Heikin-Ashi values in the background,
• overlay the 21-EMA (orange line) on those HA closes,
• mark bar-close crossovers with green BUY / red SELL arrows, and
Apex Edge - RSI Trend LinesThe Apex Edge - RSI Trend Lines indicator is a precision tool that automatically draws real-time trendlines on the RSI oscillator using confirmed pivot highs and lows. These dynamic trendlines track RSI structure in motion, helping you anticipate breakout zones, reversals, and hidden divergences.
Every time a new pivot forms, the indicator automatically re-draws the RSI trendline between the two most recent pivots — giving you an always-current view of momentum structure. You’ll instantly see when RSI begins compressing or expanding, long before price reacts.
Key Features: • Dynamic RSI trendlines drawn from the last 2 pivots
• Auto re-draws in real-time as new pivots form
• Optional "Full Extend" or "Pivot Only" modes
• Slope color-coded: green = support, red = resistance
• Built-in dotted RSI levels (30/70 default)
• Alert conditions for RSI trendline breakout signals
• Ideal for spotting divergence, compression, and early SMC confluence
This is not your average RSI — it’s a fully reactive momentum edge overlay designed to give you clarity, structure, and timing from within the oscillator itself. Perfect for traders using Smart Money Concepts, divergence setups, or algorithmic trend tracking.
⚔️ Built for precision. Built for edge. Built for Apex.
Daily Gain/Loss Statistics by Day of WeekDaily Gain/Loss Statistics by Day of Week
Overview
This Pine Script indicator analyzes historical price data to provide comprehensive day-of-week performance statistics, helping traders identify patterns and optimize their trading strategies based on which days historically perform better or worse.
Key Features
📊 Day-of-Week Analysis
7-day breakdown showing Monday through Sunday statistics
Average Gain % - Average percentage gains on winning days for each day of the week
Average Loss % - Average percentage losses on losing days (displayed with minus sign)
Median High % - Typical percentage move from open to daily high
Median Low % - Typical percentage move from open to daily low
🎯 Visual Performance Indicators
🚀 Rocket symbol - Marks the best performing day (highest average gains)
🔻 Red triangle down - Marks the worst performing day (lowest average gains)
Current day highlighting - Today's row highlighted in yellow (#ffdd444b)
⚡ Real-Time Session Tracking
Current Session row - Shows today's performance percentage in real-time
Color-coded gains/losses - Green for positive, red for negative
🎨 Professional Themes
⚙️ Customization Options
Date range selection - Choose specific time periods for analysis
Table positioning - 9 different screen positions
Table sizing - 6 size options from tiny to huge
Timeframe protection - Works only on 1D timeframe with user-friendly warnings
How It Works
Data Collection - Analyzes daily OHLC data within your selected date range
Day Classification - Categorizes each trading day by day of the week
Statistical Calculation - Computes averages and medians for each day type
Performance Ranking - Identifies best and worst performing days
Real-Time Display - Shows current session performance vs historical patterns
Trading Applications
Entry/Exit Timing - Identify optimal days for opening/closing positions
Risk Management - Avoid trading on historically poor-performing days
Strategy Optimization - Align trading strategies with day-of-week patterns
Market Timing - Understand weekly market cycles and seasonality
This indicator transforms raw price data into actionable intelligence, helping traders make more informed decisions based on proven historical day-of-week performance patterns.
UniversalPositionCalculatorV5🚀 Universal Position Calculator v5 (with Margin-Check) 🚀
Stop using calculators and complicated Excel sheets! 🤯 With the Universal Position Calculator v5, you have the ultimate tool right on your TradingView chart to manage your position size perfectly. Whether it's Forex, Gold, or Indices – this indicator does all the work for you!
✨ What does this indicator do? ✨
This indicator is your personal risk manager. It calculates the exact lot size for your next trade based on your capital, your desired risk, and your leverage. The best part? It immediately checks if your trade is even possible with your margin and warns you if you're about to over-leverage your account! 🚦
🌟 Key Features at a Glance 🌟
Automatic Lot Calculation: Just enter your risk in percent, and the indicator calculates the perfect lot size.
Margin Check: Instantly detects if your desired position size is limited by your margin and adjusts it. No more margin calls due to oversized positions!
For All Asset Classes: Works perfectly for Forex pairs (e.g., EURUSD) and other assets like commodities (XAUUSD) or indices (GER30). 💹
Currency Conversion: Automatically converts between your account currency and the asset's currency. It doesn't matter if you trade in EUR, USD, CHF, or JPY. 💱
Interactive Lines: Simply drag and drop the Entry and Stop Loss lines directly on the chart to plan your trade. 🎯
Clear Info Panel: All important information (lot size, required margin, risk in €/$/...) is displayed cleanly and clearly on your chart.
🛠️ How to Use: It's This Easy! 🛠️
The setup is a piece of cake and done in two simple steps.
Step 1: Configure Your Setup
Go to the indicator settings and fill out the "1. Setup" section:
Asset Type: Choose Forex for currency pairs or Other for everything else (e.g., Gold, Oil, Indices).
Account Currency: Enter the currency of your trading account (e.g., USD).
Account Capital: Enter your current account capital.
Risk in % per Trade: How much of your capital do you want to risk per trade? (e.g., 1.0 for 1%).
Leverage: Enter your account's leverage (e.g., 30 for 30:1).
Contract Size for 'Other': IMPORTANT! Only for the Other type. For Gold (XAUUSD), this is often 100; for the DAX (GER30), it's often 1 or 25. Check your broker's specifications for this!
Step 2: Plan Your Trade
Now for the fun part in the "2. Trade Control" section:
Entry Line (Blue Line): Click on the blue line and drag it to your desired entry level. You can also enter the value manually in the settings.
Stop Loss Line (Red Line): Click on the red line and drag it to your stop-loss level.
Step 3: Read the Results
As soon as you've set your Entry and Stop Loss, the Info Panel in the top-right corner will instantly show you the results:
Correct Lot Size: This is the lot size you need to enter with your broker for this trade.
⚠️ Heads up: If it says "Lot Size (Margin Limited!)" in orange, it means your desired risk was too high for your leverage. The indicator has automatically reduced the lot size to the maximum possible to avoid a margin call.
Required Margin: This is how much capital will be blocked on your account as a security deposit (margin) for this trade.
Risk in : The exact amount of money you will lose if your stop loss is triggered.
With this tool, you can make disciplined and mathematically sound trading decisions. Good luck and Happy Trading! 📈💰
Apex Edge - VantageApex Edge – Vantage
Quarter-Wick Reversal System | Price Action Based | Non-Repainting | Visual Confirmation Tool
Overview:
Apex Edge – Vantage is a precision price action indicator built to assist traders in identifying high-probability reversal entries — not based on indicators, but on how candles behave at their extremes.
This tool implements a clean, repeatable framework that reflects how I personally trade:
Spot a candle that closes with strong directional intent,
Then wait for a controlled pullback into the outer quarter,
And strike — only if price respects that line.
There’s no magic here — just raw, tactical logic visualized clearly on your chart. It's not designed to predict the market — it's built to respond when price offers you Vantage.
Core Logic:
Dot Detection – Final Quarter Close Candles
A green dot prints below a bullish candle if it closes within the top 25% of its wick-to-wick range.
A red dot prints above a bearish candle if it closes within the bottom 25% of its range.
These dots signify candles that made a strong, deliberate move in one direction — where price was pushed to an extreme and held that extreme into the close. These candles often signal institutional intent or momentum imbalance.
Entry Confirmation – Controlled Wick Rebalance
On the very next candle only, price must wick into the prior dot candle's outer quarter — but must not pass beyond it.
For buy entries, the wick must enter the bottom 25% of the previous green dot candle, but not dip below it.
For sell entries, the wick must reach into the top 25% of the red dot candle, but not exceed it.
This wick into the quarter is seen as a controlled rebalancing — a tactical reaction back into the origin zone before potential continuation.
Arrow Printing – Visual Entry Signal
Once the entry criteria are confirmed, an arrow is printed after the candle closes.
This arrow continues to print on each new candle as long as price does not violate the original entry zone — giving visual confirmation that the trade thesis is still valid.
If price breaks above/below the quarter range, the arrow disappears.
This ongoing confirmation is useful for staying in trades, managing risk, or spotting failed setups early.
Automatic Stop Loss Level
A horizontal Stop Loss line is drawn from the extreme wick of the original dot candle.
For buy entries, SL is placed below the green dot candle's low.
For sell entries, SL is placed above the red dot candle's high.
This provides immediate risk context — perfect for traders using limit orders or looking to scale in.
Coding Logic:
This script uses plotshape() and plot() functions for all visual elements.
Dot candles are identified using quarter-range logic via:
pinescript
Copy
Edit
close >= high - (high - low) * 0.25 // for bullish
close <= low + (high - low) * 0.25 // for bearish
Entry validation logic triggers only on the next candle, using:
pinescript
Copy
Edit
low >= quarterLine and low <= high // for buy entries
high <= quarterLine and high >= low // for sell entries
Arrows and SL lines are plotted only on closed candles, ensuring non-repainting behavior.
alertcondition() is used for real-time alerts on valid buy/sell triggers.
How I Personally Use It:
I wait for a dot to print — this shows directional conviction.
On the next candle, I watch for a tap into the outer quarter.
If the wick meets the criteria and the candle closes, I’ll execute manually at the close of that candle.
As long as the arrow remains on the chart, I know the setup hasn’t been invalidated.
I combine this with market structure, session timing, and liquidity context to build confluence around each trade.
Alerts Included:
Buy Entry Alert: When a green arrow prints (entry confirmed)
Sell Entry Alert: When a red arrow prints (entry confirmed)
These fire once per confirmed signal, allowing you to react in real-time or automate if desired.
Who This Is For:
Manual traders who want clean price-based entries
Anyone who uses market structure, SMC, or liquidity concepts
Traders looking to replace indicators with pure candle logic
Discretionary or semi-systematic traders who want visual tools to guide their decisions
Final Word
Apex Edge – Vantage doesn’t predict price — it shows you where price is offering you control.
This is a surgical tool designed to help you act only when the market gives you a measurable edge — and to stay in the trade as long as that edge holds.
If you're ready to stop chasing trades and start striking from a position of Vantage, then this tool belongs on your chart.
MTF Trend Table - Manual InputMTF Trend Table - Manual Input
Description:
This indicator displays a simple and clear multi-timeframe (MTF) trend table in the upper right corner of your chart. You can manually set the current trend direction (Up, Down, or Neutral) for each timeframe: Monthly, Weekly, Daily, 4h, 1h, and 15min. The table shows the status of each timeframe with colored backgrounds—green for Up, red for Down, and gray for Neutral—making it easy to monitor trend alignment across different timeframes at a glance.
Features:
Manual selection of trend direction for each timeframe.
Color-coded status: green (Up), red (Down), gray (Neutral).
Quickly visualize trend alignment across Monthly, Weekly, Daily, 4h, 1h, and 15min.
Table is positioned in the top right corner of the chart for easy reference.
How to use:
Open the indicator settings and select the trend direction for each timeframe based on your own analysis. Use this tool as a visual aid to track and confirm trend bias in your trading system.
4444Add RSI if above 50 take Buy signal and if it was bellow 50 take Sell signal this is more safe for you it works on all markets but Im using it in stocks market.
Contact me +971588444455 to be a member.
You should pay to be member 1209371$
NEPALI DASHBOARD NEPALI DASHBORAD - All-In-One Sentiment Dashboard
Overview
The NEPALI DASHBORAD is a comprehensive, all-in-one dashboard designed to give day traders a quick yet powerful overview of market sentiment. Instead of cluttering your chart with dozens of individual indicators, this tool consolidates the signals from 11 different technical indicators into a single, easy-to-read table. It calculates an overall bull/bear sentiment score and provides a trading recommendation based on the confluence of these signals, helping you make more informed decisions at a glance.
The dashboard is fully customizable, allowing you to adjust indicator settings, change the table size, and move it to any corner of your chart.
Key Features
Multi-Indicator Analysis: Gathers data from 11 essential indicators covering trend, momentum, volume, and volatility.
Sentiment Score: Calculates a simple "Bull vs. Bear" score to instantly gauge market sentiment.
Actionable Recommendations: Provides a clear trading recommendation (Strong Buy, Buy, Sell, Strong Sell, Hold) based on the strength of the confluence.
Higher Timeframe (HTF) Context: Includes an HTF trend analysis to ensure your trades align with the bigger picture.
Customizable Dashboard: Easily change the size and position of the dashboard to fit your workspace.
How to Use
Check the Market Sentiment: Look at the "Bull vs. Bear" score first. A high score (e.g., 8 vs. 3) indicates strong confluence in one direction.
Verify the HTF Trend: Ensure your intended trade direction aligns with the higher timeframe trend for better probability. For example, be cautious about taking "SELL" signals if the HTF Trend is strongly "BULL."
Use the Recommendation as a Guide: The "Recommendation" and "Confidence" % give you a summary of the indicator signals. A "STRONG BUY" or "STRONG SELL" means that a significant majority of the indicators are in agreement.
Drill Down into Indicators: Use the individual indicator statuses in the table to understand why the market sentiment is bullish or bearish. For example, you might see that momentum indicators (RSI, Stoch) are bullish, but trend indicators (MA, MACD) are still lagging.
Combine with Your Strategy: This dashboard is a powerful confirmation tool. Use its signals to confirm entries and exits for your existing trading strategy. Do not use it as a standalone signal provider.
Disclaimer
In simple terms: This is a tool for analysis, not a signal to trade. Your money is your responsibility.
This script is for educational and informational purposes only. I am not a financial advisor; I am just a learner sharing my work. The information and tools provided are not, and should not be construed as, financial advice, an offer, or a solicitation to buy or sell any securities.
Trading and investing in financial markets involve substantial risk of loss and is not suitable for every investor. I do not guarantee the accuracy, completeness, or profitability of this script. All trading decisions you make are your own, and you are solely responsible for any resulting profits or losses.
Always conduct your own research and seek advice from a qualified financial advisor before making any investment decisions. By using this script, you agree that I am not liable for any and all losses you may incur.
Ticker Industry and Competitor LookupThe Ticker Industry and Competitor Lookup is a comprehensive indicator that provides instant access to industry classification data and competitive intelligence for any ticker symbol. Built using the advanced SIC_TICKER_DATA library, this tool delivers professional-grade sector analysis with enterprise-level performance. It's a simple yet great tool for competitor research, sector studies, portfolio diversification, and investment decision-making.
This indicator is a simple tool built on based on our SIC_TICKER_DATA library to demonstrate the use cases of the library. In this case, you enter a ticker and it displays the sector, SIC or Standard Industrial Classification which is a SEC identifier, and more importantly, the competitors that are listed to be in the exact same SIC by SEC.
There isn't much to say about the indicator itself but we strongly recommend checking out the SIC_TICKER_DATA library we just published to learn more about the types of indicators you can build using it.
Profitable Loser Model [MMT]Profitable Loser Model
Overview
The Profitable Loser Model is a powerful PineScript v6 indicator designed to enhance your trading by visualizing key price levels, session open zones, Fibonacci retracements, and premium/discount zones. This overlay indicator provides traders with a customizable toolkit to analyze market structure across any timeframe, making it ideal for intraday and swing trading strategies.
Features
Open Zone Visualization
- Plots a box based on the open and close of the first candle in a user-defined timeframe (default: 5-minute).
- Customizable box color, projection offset, and label size (Tiny, Small, Normal, Large).
- Displays a timeframe label (e.g., "5m Open Zone") for quick reference, toggleable on/off.
Session Open Lines
- Optionally draws horizontal lines at key session opens (8:30 AM, 9:30 AM, 1:30 PM, Midnight, New York time).
- Customize line color, style (Solid, Dashed, Dotted), width, and label size for each session.
- Perfect for identifying critical intraday price levels.
Premium and Discount Zones
- Highlights premium (above midpoint) and discount (below midpoint) zones based on session high/low.
- Toggleable with customizable colors and projection offsets.
- Helps traders spot overbought/oversold areas for potential mean-reversion trades.
Fibonacci Retracement Levels
- Plots user-defined Fibonacci levels (default: 0.23, 0.35, 0.5, 0.62, 0.705, 0.79, 0.886, 1, 1.1).
- Customizable line style, width, color, and labels (showing percentage and/or price).
- Dynamically adjusts based on price movement relative to the open zone.
Take Profit (TP) and Stop Loss (SL) Levels
- Highlights TP (default: 0.23) and SL (default: 1.1) Fibonacci levels with distinct colors.
- Fully customizable to align with your risk-reward strategy.
How It Works
- Session Detection : Resets daily (or per user-defined timeframe) to capture the first candle's open, high, low, and close.
- Open Zone : Draws a box between the open and close, extended forward by the projection offset.
- Session Lines : Plots lines at specified session opens with customizable styles and labels.
- Fibonacci Retracement : Adjusts levels dynamically based on session high/low and price action.
- Premium/Discount Zones : Calculated from the session range midpoint, updated in real-time.
Settings
- Open Zone :
- Timeframe (default: 5m), Calculate Timeframe (default: Daily).
- Toggle label, adjust size, box color, and projection offset.
- Session Open Lines :
- Enable/disable lines for 8:30 AM, 9:30 AM, 1:30 PM, Midnight.
- Customize color, style, width, label size, and vertical offset.
- Premium/Discount Zones :
- Toggle visibility, set colors, and adjust projection offset.
- Fibonacci Retracement :
- Toggle visibility, set custom levels, line style, width, color, and label options.
- Adjust projection offset.
- TP/SL :
- Set TP/SL Fibonacci levels and colors.
Use Cases
- Intraday Trading : Use session open lines and open zones to trade key market hours.
- Swing Trading : Leverage Fibonacci levels for potential reversal or continuation zones.
- Risk Management : Set precise TP/SL levels based on Fibonacci retracements.
- Market Structure : Identify overbought/oversold zones with premium/discount areas.
Notes
- Optimized with `dynamic_requests = true` for efficient real-time data handling.
- Visual elements (boxes, lines, labels) are cleaned up at the start of each new session.
- Session lines use New York time (`America/New_York`) for alignment with major markets.