Max RR CalculatorAutomatically calculates the maximum RR reached during trade. Entry is at the candle close. There is an option available that takes another trade after getting stopped out on the next candle that is in same bias as first trade.
(If the first trade is a long and gets stopped out, then the second trade will wait until the next up candle to enter long again)
Statistics
TradeTrackerLibrary "TradeTracker"
Simple Library for tracking trades
method track(this)
tracks trade when called on every bar
Namespace types: Trade
Parameters:
this (Trade) : Trade object
Returns: current Trade object
Trade
Has the constituents to track trades generated by any method.
Fields:
id (series int)
direction (series int) : Trade direction. Positive values for long and negative values for short trades
initialEntry (series float) : Initial entry price. This value will not change even if the entry is changed in the lifecycle of the trade
entry (series float) : Updated entry price. Allows variations to initial calculated entry. Useful in cases of trailing entry.
initialStop (series float) : Initial stop. Similar to initial entry, this is the first calculated stop for the lifecycle of trade.
stop (series float) : Trailing Stop. If there is no trailing, the value will be same as that of initial trade
targets (array) : array of target values.
startBar (series int) : bar index of starting bar. Set by default when object is created. No need to alter this after that.
endBar (series int) : bar index of last bar in trade. Set by tracker on each execution
startTime (series int) : time of the start bar. Set by default when object is created. No need to alter this after that.
endTime (series int) : time of the ending bar. Updated by tracking method.
status (series int) : Integer parameter to track the status of the trade
retest (series bool) : Boolean parameter to notify if there was retest of the entry price
Quarterly Fundamentals Table by GauravThis Pine Script v3 overlay paints a compact, six‐column table in the top‐right of your chart that begins with your stock’s market capitalization and sector/industry, then lays out quarterly fundamentals—Sales, Sales QoQ%, PAT, PAT QoQ% and OPM%—across the most recent four fiscal quarters (dynamically labeled by month and year). It pulls data via request.financial(), formats large numbers into lakhs/crores, calculates quarter‐over‐quarter growth, and sizes text for clarity, giving swing traders an at‐a‐glance view of key fundamental trends alongside price action.
Global Liquidity Index with Dynamic TimeframeThis is the M2 Global Money supply indicator with added functionality of moving the graph sideways (increment of days) in order to find a potential price correlation with any chart
[Stop!Loss] ADR Signal ADR Signal - a technical indicator located in a separate window, which displays by default the 80%-level , as well as the 100%-level of the average daily range (ADR) for the last 10 days and compares it with the current intraday range. The indicator helps not only with the use of a mathematical-statistical method to identify a potential reversal at the moment during intraday trading, but can also serves as an effective assistant in risk management.
👉 Basic mechanics of the indicator
Firstly, this indicator tracks the performance of the standard ATR indicator on the daily chart, in other words, ADR (Average Daily Range).
Important ❗️The ATR (Average True Range) indicator was created by J. Welles Wilder Jr. He first introduced ATR in his book "New Concepts in Technical Trading Systems", published in 1978. Wilder developed this indicator to measure market volatility to help traders estimate the range of price movements. This indicator is built into TradingView, more details can be found by link: www.tradingview.com
Like ATR , ADR calculates the average true range for a specified period. In this case, the distance in points from the maximum of each day to its minimum is calculated, after which the arithmetic mean is calculated - this is ADR .
👉 Visualization
ADR Signal is located in a separate window on the chart and has 3 levels:
1) "ADR level" (green line) - the same parameter, the calculations of which are briefly described above. There is 100%-level of ATR on the daily chart (ADR).
2) "Current level" (red line) - this is the current price passage within the day, calculated in points. At the start of a new day, this parameter is reset. Therefore, in the indicator window, this line has sharp drops at the start of a new trading day: "A new trading day - the instrument's power reserve is renewed again".
3) "Signal level" (blue line) - this is an individually customized value that demonstrates a certain part of the ADR parameter.
👉 Inputs
1) - is responsible for the ATR indicator period, the value of which will always be calculated on the daily chart. The default value is "10", that is, ATR is calculated for the last 10 days (not including the current one).
2) - signal level (in %). The default value is "0.8", that is, 80%-level of the ADR parameter (set earlier) is calculated.
👉 Style
1) - by default, this level is colored "blue".
2) - by default, this level is colored "red".
3) - by default, this level is colored "green".
👉 How to use this indicator
Important❗️ The two methods of the use of the ADR Signal indicator described below will be most effective when trading intraday (which is highlighted quite well below), so it is more logical to use the indicator information on time periods H1 and below.
1) Identifying potential reversals during intraday trading:
The ADR Signal indicator can be used as a potential individual reversal strategy.
Important ❗️It should be noted that using it in it without additional confirming analysis tools will be a rather aggressive trading approach. Therefore, it is best to support the entry point in particular with other methods.
In this case, the crossing of the red line (the number of points passed within the current day, that is, from the minimum of the current day to its maximum) and the blue line (color of the Signal level based on the default settings), indicates that the trading instrument has passed 80% (based on the default settings for the "Signal level") of its average distance from the maximum to the minimum over the past 10 days (based on the default settings for the "ADR Length"). Such a situation in the context of the mathematical-statistical approach indicates a probable reversal, since the "power reserve" of this instrument is mostly exhausted, so one can expect with a higher probability, at least, a price stop and possibly a reversal. In case of crossing of the red line and the green one (ADR level), it says again that based on the mathematical-statistical approach, this trading instrument has completely exhausted its intraday "power reserve". In this situation, a stop or reversal of the price will be even more likely.
Of course, using the "Signal level" parameter, one can filter out even more reliable situations for potential price reversals within a day, namely, by specifying, for example, 1.5 in the field of this parameter. Under such conditions, in the case of crossing the red and blue lines (based on the default style settings), to say that the trading instrument has passed 150% of its average distance over the last 10 days (based on the default style settings "ADR length"). In this case, the probability of a stop or reversal of the price increases even more.
2) Use in risk management:
In terms of risk management, this indicator is more applicable to open trades. For example, if one had an open Buy-position (especially if it is an intraday trade) and the price has raised significantly during the day, then the crossing of the red line with the blue line , and especially the red line with the green line , may indicate that the price will most likely stop growing, since the "power reserve" is almost or completely exhausted for this instrument within the current day. In this case, one can, at a minimum, move the trade to breakeven or even partially fix the profit.
We will continue to discuss the methods of using this indicator and strategies based on it here. And we are always waiting for your reactions and feedback on this topic 💬.
Thank you for your support 🚀
NIG Probability TableNormal-Inverse Gaussian Probability Table
This indicator implements the Normal-Inverse Gaussian (NIG) distribution to estimate the likelihood of future price based on recent market behavior.
📊 Key Features:
- Estimates the parameters (α: tail heaviness, β: skewness, δ: scale, μ: location)
of the NIG distribution using a sliding window over log returns.
- Uses a numerically approximated version of the modified Bessel function (K₁)
to calculate the NIG probability density function (PDF).
- Normalizes the total probability across all bins to ensure the values are interpretable.
- Displays a dynamic probability table showing the chance of future returns falling into each bin.
⚠️ Notes:
- This is a real-time approximation. The Bessel function and posterior inference are simplified.
- Tail probabilities and shape parameters are sensitive to the window size and input settings.
- Useful for risk analysis, option overlays, and strategy filters.
HTF 4-Candle ViewerFractal Model for TTrades and Kane. This indicator allows you to see the previous 3 candles on a HTF aswell as the current one forming.
nik private indicatorlol eqx go brrr, this indicator helps mark out equal highs and lows, while alerting you, allowing for you to trade without watching the charts all session.
Crypto Scalper Combo (EMA/VWAP/Stoch/Vol/ST)Included Tools (Combo Strategy):
EMA 9 / 21 / 50 – for trend direction and momentum
VWAP – for intraday bias
Stochastic RSI – for overbought/oversold + reversals
Volume Spike Detector – for entry confirmation
SuperTrend – to simplify entry/exit decisions
You’ll see:
EMAs for trend
VWAP to confirm bias
SuperTrend trail
Buy/Sell signals based on momentum + volume + trend alignment
Gold Certificate vs Gram Gold – Price Difference📌 Gold Certificate vs Gram Gold – Price Deviation Indicator
✅ Overview
This indicator is designed to analyze and visualize the price discrepancy between the Turkish Gold Certificate (BIST:ALTIN) and the international Gram Gold price (FX_IDC:XAUTRYG).
It helps investors identify whether the certificate is overvalued (premium) or undervalued (discount) compared to its theoretical price.
📐 What Does It Calculate?
In theory:
1 BIST Gold Certificate = 1/100 of Gram Gold price
However, in practice, this parity is rarely exact due to:
Local supply & demand
Limited liquidity in BIST
Investor sentiment
Timezone differences and market hours
This indicator calculates:
The % difference between actual certificate price and its theoretical value
The 100-day average of that difference for baseline comparison
🔍 Why Is This Useful?
Understanding the premium/discount level is crucial for:
Gold investors in Turkey who want to avoid buying overpriced certificates
Arbitrage traders seeking deviation opportunities between spot gold and certificate price
Long-term holders who want to enter at fair value or during discounts
Fundamental analysts who evaluate local sentiment divergence from international price
📊 What Does It Display?
% Price Difference
How much the certificate is trading above or below its theoretical price
100-Day Moving Average of the Difference
Historical baseline to understand if the current gap is excessive
Status Tag (Color-coded):
🔶 Expensive → Current difference is higher than 100-day average
🟢 Cheap → Current difference is below 0%
🔸 Normal → Within average range
Market Warning
A reminder to switch to a 24-hour chart like XAUTRYG when BIST is closed, as stale data may lead to misleading signals.
Multi-language Support
All interface text can be displayed in either Turkish or English, based on user selection in the settings.
⚙️ How to Use
Add the indicator to any chart
For the most accurate readings, open it on a 24/7 active symbol (e.g., XAUTRYG)
Watch the table in the top-right corner to track:
Current % Difference
100-Day Average
Market Status (Expensive, Cheap, Normal)
Pay attention to overbought conditions (e.g. +10%) as a signal to avoid buying
💡 Practical Example:
If:
Gram Gold = 2000 TRY
Theoretical ALTIN = 2000 / 100 = 20 TRY
But BIST:ALTIN is trading at 22.50 TRY → +12.5% premium
This tool would mark the certificate as 🔶 Expensive, showing that local traders are paying significantly more than the real value of gold.
🚨 Note:
Values may temporarily distort when BIST is closed and global gold continues to move.
This is not a buy/sell signal tool, but a valuation tool to assist in decision-making and timing.
🙌 Final Words
This indicator is ideal for:
Retail traders
Portfolio managers
Gold ETF analysts
Long-term investors
Use it to avoid overpaying during high-premium periods and to detect favorable buying windows.
If you find it useful, please like, save, and share!
Feel free to leave feedback or suggestions in the comments.
LAOS Gold Price in LAK By LSENMany people in Laos are confused about the actual price of Gold in local currency.
This script provides a simple and live updating way to convert the international gold price (XAU/USD) into Lao Kip Currency in BAHT-weight gold (15.244g).
By default, it uses an exchnage rte of 21,000 KIP = 1 USD, But you can easily customize the rate to fit your needs.
-See things as they truly are. Suffering arises when you try to resist reality. Don't let greed and FOMO fuel the fire.
ຂໍໃຫ້ທຸກທ່ານໂຊກດີ
Calmar Ratio Custom RangeThis indicator works exactly like "CAGR Custom Range" from TradingView (), but instead of showing raw returns, it provides the risk-adjusted return, where return is measured as CAGR and risk is measured as Max Drawdown over the selected period (or since inception, as you prefer).
CAGR / Max Drawdown (over the period or since inception) = Calmar Ratio
30D Annualized Volatility30D Annualized Volatility for portfolio modelling.
This is for managing high-octane L/S portfolio.
30-Day Rolling Beta30 Day rolling beta for portfolio modelling purpose.
This is meant for high-octane L/S portfolio.
Log-Normal Price ForecastLog-Normal Price Forecast
This Pine Script creates a log-normal forecast model of future price movements on a TradingView chart, based on historical log returns. It plots expected price trajectories and bands representing different levels of statistical deviation.
Parameters
Model Length – Number of bars used to calculate average and standard deviation of log returns (default: 100).
Forecast Length – Number of bars into the future for which the forecast is projected (default: 100, max: 500).
Volatility SMA Length – The smoothing length for the standard deviation (default: 20).
Confidence Intervals – Confidence intervals for price bands (default: 95%, 99%, 99.9%).
Daily Levels & Stats Pro - [Aspect] v4.0# Description of the "Daily Levels & Stats Pro - v4.0" Indicator
This indicator is a powerful tool for market analysis through the lens of key daily levels and statistical price movement indicators. It allows you to display important trading session opening levels, daily statistical movements, and high volatility zones on the price chart.
## Main Indicator Functions:
### Key Time Levels:
- **Daily Open (DO)** - daily trading session opening level at 02:00
- **NY Midnight (NYM)** - New York session opening level at 06:00
- **Trade Open (TO)** - active trading opening level at 10:00
### Analysis Zones:
- **Previous Close Zone (PCZ)** - previous day's closing zone (displayed on M5 timeframe)
- **Open Day Zone (ODZ)** - current day's opening zone (displayed on M5 timeframe)
### Statistical Price Movement Levels:
- **Min** - minimum statistical movement from DO
- **Max** - maximum statistical movement from DO
- **Aver** - average statistical movement from DO
- **Dev-** - lower deviation of movement from DO
- **Dev+** - upper deviation of movement from DO
### TO Impulse Movement Statistical Levels:
- **Aver TO** - average statistical movement from TO
- **Dev+ TO** - upper deviation of movement from TO
- **Max TO** - maximum statistical movement from TO
## Indicator Features:
- Complete customization of colors, styles, and line widths for all levels
- Ability to select time for each main level
- Adjustment of the number of bars for level display
- Automatic calculation of level values relative to DO and TO
- Visual display of TO-levels starts 3 bars before the actual TO point, providing better visual perception
- Ability to enable/disable individual levels and zones
- Automatic updates and resets when the day changes
- Adaptive text labels to mark levels
This indicator is excellent for traders who use statistical data and daily support/resistance levels in their trading strategy. It is particularly useful for DAX40 and other highly liquid instruments where daily trading statistics are important for making trading decisions.
📊 Volume Split Buy/Sell | Copytrade TungdubaiThis Pine Script calculates the estimated buy and sell volume based on price action (relative position of the close within the price range of the candle) and plots the values on the chart. Additionally, it detects significant volume spikes by comparing the current volume to a 20-period moving average of volume.
Here’s a breakdown of what each section of the script does:
1. **Inputs and Variables:**
- `vol`: This variable holds the volume of the current candle.
- `body`: This calculates the absolute difference between the close and open prices (i.e., the body size of the candle).
- `price_range`: This is the range between the high and low of the candle.
- `buy_ratio`: This is the ratio of the candle's body above the close relative to the total range, representing buying pressure.
- `sell_ratio`: This is the inverse of `buy_ratio`, representing selling pressure.
2. **Volume Calculation:**
- `buy_volume`: The estimated buying volume is calculated as the total volume multiplied by the buying ratio.
- `sell_volume`: The estimated selling volume is calculated as the total volume multiplied by the selling ratio.
3. **Volume Plots:**
- The script plots the estimated selling volume in red below the baseline (`sell_volume`).
- The estimated buying volume is plotted in lime above the baseline (`buy_volume`).
4. **Volume Spike Detection:**
- `vol_ma`: This is the 20-period simple moving average of volume.
- `vol_spike`: This condition checks if the current volume is greater than 2.5 times the 20-period moving average of volume.
- If a volume spike is detected, a tiny purple circle is plotted at the bottom of the volume bar.
This script can be useful for visualizing the relative strength of buy and sell volumes, as well as detecting unusual volume spikes that might signal significant market activity.
Log-Normal Z-ScoreLog-Normal Z-Score
This Pine Script indicator calculates a modified Z-Score based on log-normal returns, aiming to identify statistically significant price deviations.
Indicator Parameters:
Model Length: The number of bars used to calculate the mean and standard deviation of log returns.
Lookback Length: The number of bars used to compute the lookback return and volatility. This is the main timeframe over which the Z-Score is calculated.
Volatility SMA Length: The smoothing length for the volatility, applying a simple moving average to the calculated volatility.
TDO & Hit Rates by Weekday (5 min)Purpose
Tracks how often the next NY session “hits” the previous day’s True Day Open (TDO) level, separately for sessions that open above vs. below TDO, and breaks the statistics down by weekday (Mon–Fri) plus an overall summary.
Key Features
True Day Open (TDO) Plot
Captures the prior day’s 23:00 CT close price as the TDO.
Plots it as a continuous yellow line across your chart.
Session Labeling
At the end of each NY session (08:30–15:00 CT), places a small “TDO” label at the TDO price to confirm visually where it lay during that day.
Hit‑Count Logic
For each 5 min bar in the NY session, checks if the bar’s high ≥ TDO ≥ low (i.e. the TDO level was “hit”).
Classifies each session by whether its opening price (first 5 min bar) was above or below the TDO.
Weekday Statistics Table
Displays in the bottom‑left of your main chart window.
Rows: Header, Mon, Tue, Wed, Thu, Fri, All.
Columns:
% Hit Above: % of “above‑TDO” sessions that saw at least one hit
% Hit Below: % of “below‑TDO” sessions that saw at least one hit
Automatically updates in real time as new sessions complete.
Inputs & Settings
Data Resolution: Default = 5 min; use any intraday timeframe you like (1, 3, 15 min, etc.).
Extended Hours: Make sure your chart’s Extended Session (overnight) is enabled so the 23:00 CT bar exists.
Overlay: Draws directly on your price chart (no separate pane).
How to Use
Add to Chart: Paste the Pine v5 code into TradingView’s editor and apply to your ES (or other) futures chart.
Enable Overnight Bars: In Chart Settings → Symbol/Session → include Extended Hours.
Select Timeframe: Set the chart (or the indicator’s “Data Resolution” input) to 5 min (or your preferred intraday).
Read the Table:
Each weekday row shows how reliable TDO touches have been historically, separately for “above” and “below” opens.
The bottom “All” row summarizes combined performance.
What You Learn
Edge Analysis: Do sessions opening above TDO tend to test that level more often than those opening below (or vice versa)?
Day‑of‑Week Bias: Are certain weekdays more prone to TDO retests?
Overall Confidence: The “All” row lets you see your full-sample hit‑rate on both sides.
Log-Normal Price DistributionThis Pine Script indicator plots a log-normal distribution model of future price projections on a TradingView chart. It visualizes the potential price ranges based on the statistical properties (mean and standard deviation) of log returns over a defined period. It's particularly useful for analyzing potential volatility and predicting future price ranges.
MACD Bullish Crossover (WORKING)📘 Indicator Description – MACD Bullish Cross Alert
This indicator is designed to detect bullish momentum shifts using the classic MACD (Moving Average Convergence Divergence) crossover strategy.
Key Features:
Calculates the MACD Line and Signal Line using customizable inputs (default: 12, 26, 9).
Triggers an alert when the MACD Line (blue) crosses above the Signal Line (orange).
Helps identify early bullish trend reversals or momentum entry points.
Ideal for swing traders, position traders, and crypto investors using the weekly timeframe.
How to Use:
Add to any chart and set the timeframe to 1W (weekly).
Create an alert using the built-in MACD Bullish Crossover condition.
Combine with price action, volume, or RSI for higher conviction entries.
Use Cases:
Spotting early entry points after long downtrends.
Confirming a trend reversal in high timeframes.
Generating high-probability entries in trend-following systems.
MACD Bullish Cross Alert📘 Indicator Description – MACD Bullish Cross Alert
This indicator is designed to detect bullish momentum shifts using the classic MACD (Moving Average Convergence Divergence) crossover strategy.
Key Features:
Calculates the MACD Line and Signal Line using customizable inputs (default: 12, 26, 9).
Triggers an alert when the MACD Line (blue) crosses above the Signal Line (orange).
Helps identify early bullish trend reversals or momentum entry points.
Ideal for swing traders, position traders, and crypto investors using the weekly timeframe.
How to Use:
Add to any chart and set the timeframe to 1W (weekly).
Create an alert using the built-in MACD Bullish Crossover condition.
Combine with price action, volume, or RSI for higher conviction entries.
Use Cases:
Spotting early entry points after long downtrends.
Confirming a trend reversal in high timeframes.
Generating high-probability entries in trend-following systems.
RUBX Индекс рубляThe ruble index, similar to the DXY, offsets the weakness or strength of the dollar in the USD/RUB
индекс рубля на подобии DXY, невелирует слабость или силу доллара в USD/RUB