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.”
Göstergeler ve stratejiler
Universal Adaptive Psychological Levels 1.1This simple indicator is somewhat working around an inability to see big accumulations of limit orders in Tradingview.
It just marks the levels of round psychological prices (e.g. 1000, 1100, 1110) and adjusts to the range of prices of the current ticker.
These psychological levels work as resistance and support levels, especially if the price didn't visit it already lately.
openig price +- .13%This is opening price indicator with levels .13% .26 .50 .1 .1.5 .2 simillary for -ve sides .
it is easy to know levels from top to bottom
Multiple Ema's This indicator plots five customizable Exponential Moving Averages (EMAs) directly on your chart, helping you analyze price trends and identify potential support/resistance zones more effectively.
Features:
Five EMAs with adjustable lengths: Quickly set the periods for each EMA (default: 10, 20, 50, 100, 200).
Clear, color-coded lines: Each EMA is plotted with a distinct color for easy visualization:
EMA 1 (Green)
EMA 2 (Orange)
EMA 3 (Blue)
EMA 4 (Purple)
EMA 5 (Brown)
Overlay on price chart: All curves are shown directly on your main chart for seamless trend analysis.
How to Use:
Use this indicator to:
Identify short-, medium-, and long-term trends by observing the relationships and crossovers between the EMAs.
Spot momentum shifts and potential entry/exit opportunities when price crosses above or below multiple EMAs.
Fine-tune EMA periods to your own trading strategy using the input settings.
Ideal for:
Traders and investors seeking a flexible, multi-timeframe EMA solution for stocks, forex, crypto, or any market.
Tip: Experiment with EMA lengths to match your trading style or combine with other indicators for even stronger signals!
DXY ve US10Y Normalize Karşılaştırma (Zaman Aralığı Uyumu)Yes, it's possible to combine the US 10-year Treasury yield (TVC:US10Y) and DXY (TVC:DXY) data on TradingView and display it on the same chart. We can do this with Pine Script. Below is an example of Pine Script code that displays the percentage change, or normalized values, of the two assets on the same scale:
MACD H4 on M15 ChartThis script displays the MACD from the H4 (4-hour) timeframe while viewing the chart in M15 (15-minute). It shows the H4 MACD line, signal line, and histogram for multi-timeframe (MTF) analysis. Use it to anticipate trend shifts on lower timeframes with confirmation from the higher timeframe MACD structure.
BTC vs MSTR PerformanceBTC vs MSTR Performance - BULL
• Green: MSTR has outperformed BTC over the selected time period.
• Red: BTC has outperformed MSTR during the same time period.
• Horizontal line at 0: Separates positive from negative outperformance.
Combo 2/20 EMA & Bandpass Filter by TamarokDescription:
This strategy combines a 2/20 exponential moving average (EMA) crossover with a custom bandpass filter to generate buy and sell signals.
Use the Fast EMA and Slow EMA inputs to adjust trend sensitivity, and the Bandpass Filter Length, Delta, and Zones to fine-tune momentum turns.
Signals occur when both EMA and BPF agree in direction, with optional reversal and time filters.
How to use:
1. Add the script to your chart in TradingView.
2. Adjust the EMA and BP Filter parameters to match your asset’s volatility.
3. Enable ‘Reverse Signals’ to trade counter-trend, or use the time filter to limit sessions.
4. Set alerts on Long Alert and Short Alert for automated notifications.
Inspiration:
Based on HPotter’s original combo strategy (Stocks & Commodities Mar 2010).
Updated to Pine Script v6 with streamlined code and alerts.
WARNING:
For purpose educate only
Double MACD StrategyDouble MACD Strategy (Default Settings)
This automated strategy uses two independent MACD indicators to flip between long and short positions.
How It Works
• Fast MACD (MACD 1) captures rapid micro-trends
• Slow MACD (MACD 2) confirms broader momentum
• Long Entry when both MACD lines cross above their signal lines
• Short Entry when both MACD lines cross below their signal lines
• Existing opposing trades are closed before opening new ones
Default Input Settings
• Fast MACD (MACD 1)
• Fast Length 1: 12
• Slow Length 1: 26
• Signal Length 1: 9
• MA Type 1: EMA
• Slow MACD (MACD 2)
• Fast Length 2: 24
• Slow Length 2: 52
• Signal Length 2: 9
• MA Type 2: EMA
• Position Sizing: 100 % of equity
• Pyramiding: 1 concurrent entry per direction
Usage
1. Apply to any chart on your desired timeframe.
2. Monitor background shading (green for bullish, red for bearish bias).
3. Manage risk with your own stop loss, take profit, and position-sizing rules.
Disclaimer
This script is provided for educational purposes only. It is not financial advice or a recommendation to buy or sell any instrument. All trading involves risk, and any losses incurred are the sole responsibility of the trader.
ADR Plots + OverlayADR Plots + Overlay
This tool calculates and displays Average Daily Range (ADR) levels on your chart, giving traders a quick visual reference for expected daily price movement. It plots guide levels above and below the daily open and shows how much of the day's typical range has already been covered—all in one interactive table and on-chart overlay.
What It Does
ADR Calculation:
Uses daily high-low differences over a user-defined period (default 14 days), smoothed via RMA, SMA, EMA, or WMA to calculate the average daily range.
Projected Levels:
Plots four reference levels relative to the current day's open price:
+100% ADR: Open + ADR
+50% ADR: Open + 50% of ADR
−50% ADR: Open − 50% of ADR
−100% ADR: Open − ADR
Coverage %:
Tracks intraday high and low prices to calculate what percentage of the ADR has already been covered for the current session:
Coverage % = (High − Low) ÷ ADR × 100
Interactive Table:
Shows the ADR value and today's ADR coverage percentage in a customizable table overlay. The table position, colors, border, transparency, and an optional empty top row can all be adjusted via settings.
Customization Options
Table Settings:
Position the table (top/bottom × left/right).
Change background color, text color, border color and thickness.
Toggle an empty top row for spacing.
Line Settings:
Choose color, line style (solid/dotted/dashed), and width.
Lines automatically reposition each day based on that day's open price and ADR calculation.
General Inputs:
ADR length (number of days).
Smoothing method (RMA, SMA, EMA, WMA).
How to Use It for Trading
Measure Daily Movement: Instantly know the expected daily price range based on historical volatility.
Identify Overextension: Use the coverage % to see if the market has already moved close to or beyond its typical daily range.
Plan Entries & Exits: Align trade targets and stops with ADR levels for more objective intraday planning.
Visual Reference: Horizontal guide lines and table update automatically as new data comes in, helping traders stay informed without manual calculations.
Ideal For
Intraday traders tracking daily volatility limits.
Swing traders wanting a quick reference for expected price movement per day.
Anyone seeking a volatility-based framework for planning targets, stops, or identifying extended market conditions.
Previous Close LabelSee the previous close price label. Combine it with Multi Timeframe Bar Replay Fix indicator in the Bar Replay mode.
QQQ Bullish Order Block - July 2, 2025//@version=6
indicator("QQQ Bullish Order Block - July 2, 2025", overlay=true)
// Define the OB candle manually (July 2, 2025)
ob_date = timestamp("2025-07-02T00:00:00")
// Conditions: Bullish order block from last bearish candle before rally
is_ob_candle = time == ob_date
// Get OB candle open and close
ob_open = request.security(syminfo.tickerid, "D", open, lookahead=barmerge.lookahead_on)
ob_close = request.security(syminfo.tickerid, "D", close, lookahead=barmerge.lookahead_on)
// Use min/max to draw OB zone correctly (in case of red candle)
ob_high = math.max(ob_open, ob_close)
ob_low = math.min(ob_open, ob_close)
// Only show zone if price is at or above it (optional filter)
show_zone = close >= ob_high
// Draw the OB zone as a filled box
if is_ob_candle and show_zone
var box ob_box = box.new(left = bar_index, right = bar_index + 30, top = ob_high, bottom = ob_low,
border_color = color.green, bgcolor = color.new(color.green, 85))
box.set_extend(ob_box, extend = extend.right)
Current Price Horizonal LineDisplays a horizonal line across the chart of the current price.
For some reason the screenshot does not capture the indicator horizonal line.
Adjustable Percentage Range Moving Average - Add'l LinesThe Adjustable Percentage Range Moving Average (APRMA), originally developed by @ReallyWendy, is a versatile PineScript indicator designed for traders and market analysts to analyze market volatility and identify trends dynamically. Building on the original concept, this updated version plots a central moving average (MA) with four customizable percentage-based range bands around it. Users can select the MA type (SMA, EMA, HMA, RMA, SWMA, TMA, WMA, VWMA), timeframe, and length, tailoring the indicator to their trading style. Each range band (upper and lower) is calculated as a percentage offset from the MA, with adjustable colors and transparency settings for enhanced visual clarity. Extension lines project the latest values forward, with customizable styles (solid, dashed, dotted). The indicator includes toggleable display options for the MA and each range pair, making it an effective tool for identifying price ranges, support/resistance levels, and trend dynamics.
Credit to @ReallyWendy for the foundational concept.
Position Sizing Based on 42-Day Volatility (30 Holdings)30 stocks portfolio sizing based on 2x leverage. Vol targeting.
Session Prep (RTH only, UTC-4)corrected Session Prep (RTH only, UTC-4) now its working properly. hope it helps! :)
EUR/USD Multi-Layer Statistical Regression StrategyStrategy Overview
This advanced EUR/USD trading system employs a triple-layer linear regression framework with statistical validation and ensemble weighting. It combines short, medium, and long-term regression analyses to generate high-confidence directional signals while enforcing strict risk controls.
Core Components
Multi-Layer Regression Engine:
Parallel regression analysis across 3 customizable timeframes (short/medium/long)
Projects future price values using prediction horizons
Statistical significance filters (R-squared, correlation, slope thresholds)
Signal Validation System:
Lookback validation tests historical prediction accuracy
Ensemble weighting of layer signals (adjustable influence per timeframe)
Confidence scoring combining statistical strength, layer agreement, and validation accuracy
Risk Management:
Position sizing scaled by signal confidence (1%-100% of equity)
Daily loss circuit breaker (halts trading at user-defined threshold)
Forex-tailored execution (pip slippage, percentage-based commissions)
Visual Intelligence:
Real-time regression line plots (3 layered colors)
Projection markers for short-term forecasts
Background coloring for market bias indication
Comprehensive statistics dashboard (R-squared metrics, validation scores, P&L)
Key Parameters
Category Settings
Regression Short/Med/Long lengths (20/50/100 bars)
Statistics Min R² (0.65), Correlation (0.7), Slope (0.0001)
Validation 30-bar lookback, 10-bar projection
Risk Controls 50% position size, 12% daily loss limit, 75% confidence threshold
Trading Logic
Entries require:
Ensemble score > |0.5|
Confidence > threshold
Short & medium-term significance
Active daily loss limit not breached
Exits triggered by:
Opposite high-confidence signals
Daily loss limit violation (emergency exit)
The strategy blends quantitative finance techniques with practical trading safeguards, featuring a self-optimizing design where signal quality directly impacts position sizing. The visual dashboard provides real-time feedback on model performance and market conditions.
Internal Pivot Pattern [LuxAlgo]The Internal Pivot Pattern indicator is a novel method allowing traders to detect pivots without excessive delay on the chart timeframe, by using the lower timeframe data from a candle.
It features custom colors for candles and zigzag lines to help identify trends. A dashboard showing the accuracy of the pattern is also included.
🔶 USAGE
We define a pivot as the occurrence where the middle candle over a specific interval (for example, the most recent 21 bars) is the highest (pivot high) or the lowest (pivot low). This method commonly allows for identifying swing highs/lows on a trader's chart; however, this pattern can only be identified after a specific number of bars has been formed, rendering this pattern useless for real-time detection of swing highs/lows.
This indicator uses a different approach, removing the need to wait for candles to form on the user chart; instead, we check the lower timeframe data of the current candle and evaluate for the presence of a pivot given the internal data, effectively providing pivot confirmation at the candle close.
An internal pivot low pattern is indicative of a potential uptrend, while an internal pivot high is indicative of a potential downtrend.
Candles are colored based on the last internal pivot detected, with blue candle colors indicating that the most recent internal pivot is a pivot low, indicating an uptrend, while an orange candle color indicates that the most recent internal pivot is a pivot high, indicating a downtrend.
🔹 Timeframes
The timeframe setting allows controlling the amount of lower timeframe data to consider for the internal pivot detection. This setting must be lower than the user's chart timeframe.
Using a timeframe significantly lower than the user chart timeframe will evaluate a larger amount of data for the pivot detection, making it less frequent, while using a timeframe closer to the chart timeframe can make the internal pivot detection more frequent, and more prone to false positives.
🔹 Accuracy Dashboard
The Accuracy Dashboard allows evaluating how accurate the detected patterns are as a percentage, with a pattern being judged accurate if subsequent patterns are detected higher or lower than a previous one.
For example, an internal pivot low is judged accurate if the following internal pivot is higher than it, indicating that higher highs have been made.
This dashboard can be useful to determine the timeframe setting to maximize the respective internal pivot accuracy.
🔶 SETTINGS
Timeframe: Timeframe for detecting internal swings
Accuracy Dashboard: Enable or disable the Accuracy Dashboard.
🔹 Style
Internal Pivot High: Color of the dot displayed upon the detection of an internal pivot high
Internal Pivot Low: Color of the dot displayed upon the detection of an internal pivot low
Zig-Zag: Color of the zig-zag segments connecting each internal pivot
Candles: Enable candle coloring, with control over the color of the candles highlighting the detected trend
Trading Report Generator from CSVMany people use the Trading Panel. Unfortunately, it doesn't have a Performance Report. However, TradingView has strategies, and they have a Performance Report :-D
What if we combine the first and second? It's easy!
This script is a special strategy that parses transactions in csv format from Paper Trading (and it will also work for other brokers) and “plays” them. As a result, we get a Performance Report for a specific instrument based on our real trades in Paper or another broker.
How to use it :
First, we need to get a CSV file with transactions. To do this, go to the Trading Panel and connect the desired broker. Select the History tab, then the Filled sub-tab, and configure the columns there, leaving only: Side, Qty, Fill Price, Closing Time. After that, open the Export data dialog, select History, and click Export. Open the downloaded CSV file in a regular text editor (Notepad or similar). It will contain a text like this:
Symbol,Side,Qty,Fill Price,Closing Time
FX:EURUSD,Buy,1000,1.0938700000000001,2023-04-05 14:29:23
COINBASE:ETHUSD,Sell,1,1332.05,2023-01-11 17:41:33
CME_MINI:ESH2023,Sell,1,3961.75,2023-01-11 17:30:40
CME_MINI:ESH2023,Buy,1,3956.75,2023-01-11 17:08:53
Next select all the text (Ctrl+A) and copy it to the clipboard.
Now apply the "Trading Report Generator from CSV" strategy to the chart with the desired symbol and TF, open the settings/input dialog, paste the contents of the clipboard into the single text input field of the strategy, and click Ok.
That's it.
In the Strategy Tester, we see a detailed Performance Report based on our real transactions.
P.S. The CSV file may contain transactions for different instruments, for example, you may have transactions for CRYPTO:BTCUSD and NASDAQ:AAPL. To view the report is based on CRYPTO:BTCUSD trades, simply change the symbol on the chart to CRYPTO:BTCUSD. To view the report is based on NASDAQ:AAPL trades, simply change the symbol on the chart to NASDAQ:AAPL. No changes to the strategy are required.
How it works :
At the beginning of the calculation, we parse the csv once, create trade objects (Trade) and sort them in chronological order. Next, on each bar, we check whether we have trades for the time period of the next bar. If there are, we place a limit order for each trade, with limit price == Fill Price of the trade. Here, we assume that if the trade is real, its execution price will be within the bar range, and the Pine strategy engine will execute this order at the specified limit price.
Position Sizing Based on 42-Day Volatility (20 Holdings)200% position sizing for 20 holdings. Just go up 100% until all spots are taken may be less then 20 stocks.
Position Sizing Based on 42-Day Volatility (20 Holdings, 1x Cap)Position sizing based on 20 stocks with 1x cap. Fully invested no leverage.
Premarket High/Low LabelThis is the premarket high low label that will persist through current trading session. hope it helps :)