Indicators and strategies
RochitThe Rochit Singh Indicator is a technical analysis tool designed to help traders identify market trends, reversals, and potential entry or exit points. It combines multiple price action factors, momentum signals, and volatility metrics to provide a comprehensive view of market conditions. The indicator is tailored for various asset classes, including stocks, forex, and cryptocurrencies, making it a versatile addition to any trader’s toolkit.
Nasan Risk Score & Postion Size Estimator** THE RISK SCORE AND POSITION SIZE WILL ONLY BE CALCUTAED ON DIALY TIMEFRAME NOT IN OTHER TIMEFRAMES.
The typically accepted generic rule for risk management is not to risk more than 1% - 2 % of the capital in any given trade. It has its own basis however it does not take into account the stocks historic & current performance and does not consider the traders performance metrics (like win rate, profit ratio).
The Nasan Risk Score & Position size calculator takes into account all the listed parameters into account and estimates a Risk %. The position size is calculated using the estimated risk % , current ATR and a dynamically adjusted ATR multiple (ATR multiple is adjusted based on true range's volatility and stocks relative performance).
It follows a series of calculations:
Unadjusted Nasan Risk Score = (Min Risk)^a + b*
Min Risk = ( 5 year weighted avg Annual Stock Return - 5 year weighted avg Annual Bench Return) / 5 year weighted avg Annual Max ATR%
Max Risk = ( 5 year weighted avg Annual Stock Return - 5 year weighted avg Annual Bench Return) / 5 year weighted avg Annual Min ATR%
The min and max return is calculated based on stocks excess return in comparison to the Benchmark return and adjusted for volatility of the stock.
When a stock underperforms the benchmark, the default is, it does not calculate a position size , however if we opt it to calculate it will use 1% for Min Risk% and 2% for Max Risk% but all the other calculations and scaling remain the same.
Rationale:
Stocks outperforming their benchmark with lower volatility (ATR%) score higher.
A stock with high returns but excessive volatility gets penalized.
This ensures volatility-adjusted performance is emphasized rather than absolute returns.
Depending on the risk preference aggressive or conservative
Aggressive Risk Scaling: a = max (m, n) and b = min (m, n)
Conservative Scaling: a = min (m, n) and b = max (m, n)
where n = traders win % /100 and m = 1 - (1/ (1+ profit ratio))
A default of 50% is used for win factor and 1.5 for profit ratio.
Aggressive risk scaling increases exposure when the strategy's strongest factor is favorable.
Conservative risk scaling ensures more stable risk levels by focusing on the weaker factor.
The Unadjusted Nasan risk is score is further refined based on a tolerance factor which is based on the stocks maximum annual drawdown and the trader's maximum draw down tolerance.
Tolerance = /100
The correction factor (Tolerance) adjusts the risk score based on downside risk. Here's how it works conceptually:
The formula calculates how much the stock's actual drawdown exceeds your acceptable limit.
If stocks maximum Annual drawdown is smaller than Trader's maximum acceptable drawdown % , this results in a positive correction factor (indicating the drawdown is within your acceptable range and increases the unadjusted score.
If stocks maximum Annual drawdown exceeds Trader's maximum acceptable drawdown %, the correction factor will decrease (indicating that the downside risk is greater than what you are comfortable with, so it will adjust the risk exposure).
Once the Risk Score (numerically equal to Risk %) The position size is calculated based on the current market conditions.
Nasan Risk Score (Risk%) = Unadjusted Nasan Risk Score * Tolerance.
Position Size = (Capital * Risk% )/ ATR-Multiplier * ATR
The ATR Multiplier is dynamically adjusted based on the stocks recent relative performance and the variability of the true range itself. It would range between 1 - 3.5.
The multiplier widens when conditions are not favorable decreasing the position size and increases position size when conditions are favorable.
This Calculation /Estimate Does not give you a very different result than the arbitrary 1% - 2%. However it does fine tune the % based on sock performance, traders performance and tolerance level.
Rochit SinghThe Rochit Singh Indicator is a technical analysis tool designed to help traders identify market trends, reversals, and potential entry or exit points. It combines multiple price action factors, momentum signals, and volatility metrics to provide a comprehensive view of market conditions. The indicator is tailored for various asset classes, including stocks, forex, and cryptocurrencies, making it a versatile addition to any trader’s toolkit.
Fourier-Inspired Forex PredictorThis strategy aims to using a Fourier-inspired approach to transform non-repetitive forex price patterns into a repetitive signal for predicting future prices
ATR Stop BufferBelow is the modified version of your "ATR Stop Buffer" indicator with an option to toggle labels on or off. Since this indicator uses a table rather than plotted lines, I’ve adapted the labeling concept to add optional chart labels that display the ATR values (Daily ATR, 2% ATR, and 10% ATR) directly on the chart at the last bar’s price level. This complements the table while giving users flexibility.
Here’s the updated code:
pine
Collapse
Wrap
Copy
//@version=6
//@author FlyingSeaHorse
//@description Displays Daily ATR and percentage calculations in ticks in a table format, with optional chart labels
indicator("ATR Stop Buffer", overlay=true)
// Inputs
showTable = input.bool(true, title="Show ATR Table")
showLabels = input.bool(true, title="Show ATR Labels on Chart")
// Get Daily ATR
atr_period = 14
daily_atr = request.security(syminfo.tickerid, "D", ta.atr(atr_period))
// Convert ATR to ticks (assuming 1 tick = minimum price movement)
tick_size = syminfo.mintick
atr_ticks = daily_atr / tick_size
// Calculate percentages
atr_2percent = atr_ticks * 0.02
atr_10percent = atr_ticks * 0.10
// Round up values
atr_ticks_rounded = math.ceil(atr_ticks)
atr_2percent_rounded = math.ceil(atr_2percent)
atr_10percent_rounded = math.ceil(atr_10percent)
// Create table
var tbl = table.new(position.top_center, 2, 4, bgcolor=color.gray)
// Fill table headers and data on the last bar
if barstate.islast
if showTable
// Headers
table.cell(tbl, 0, 0, "Metric", text_color=color.white)
table.cell(tbl, 1, 0, "Ticks", text_color=color.white)
// Row 1: Daily ATR
table.cell(tbl, 0, 1, "Daily ATR", text_color=color.white)
table.cell(tbl, 1, 1, str.tostring(atr_ticks_rounded), text_color=color.white)
// Row 2: 2% ATR
table.cell(tbl, 0, 2, "2% ATR", text_color=color.white)
table.cell(tbl, 1, 2, str.tostring(atr_2percent_rounded), text_color=color.white)
// Row 3: 10% ATR
table.cell(tbl, 0, 3, "10% ATR", text_color=color.white)
table.cell(tbl, 1, 3, str.tostring(atr_10percent_rounded), text_color=color.white)
else
table.clear(tbl, 0, 0)
// Add optional labels on the chart at the last bar
if barstate.islast and showLabels
label.new(bar_index, close, "Daily ATR: " + str.tostring(atr_ticks_rounded) + " ticks", color=color.gray, textcolor=color.white, style=label.style_label_up)
label.new(bar_index, close + daily_atr * 0.5, "2% ATR: " + str.tostring(atr_2percent_rounded) + " ticks", color=color.gray, textcolor=color.white, style=label.style_label_up)
label.new(bar_index, close + daily_atr, "10% ATR: " + str.tostring(atr_10percent_rounded) + " ticks", color=color.gray, textcolor=color.white, style=label.style_label_up)
What’s New
Label Toggle: Added showLabels = input.bool(true, title="Show ATR Labels on Chart") to enable/disable chart labels. It’s true by default.
Label Logic: On the last bar, if showLabels is enabled, three labels are created using label.new():
Daily ATR: Placed at the closing price.
2% ATR: Offset slightly above the close (by half the ATR value in price terms).
10% ATR: Offset further above (by the full ATR value).
Labels are gray with white text, positioned above the price (label.style_label_up) for visibility.
Positioning: The offsets (close + daily_atr * 0.5 and close + daily_atr) use the ATR in price terms to space the labels dynamically based on volatility. You can tweak these if you prefer fixed offsets or different placements.
Updated Description for TradingView
Title: ATR Stop Buffer
Short Title: ATR Buffer
Description:
ATR Stop Buffer is a versatile tool that calculates the Daily Average True Range (ATR) and converts it into tick-based metrics for practical trading applications. Displayed in a clean table format at the top center of the chart, it shows the Daily ATR, 2% of ATR, and 10% of ATR, all rounded up to the nearest tick. A new optional feature adds these values as chart labels, making it easy to visualize stop buffer levels directly on price action.
This indicator is perfect for traders setting stop-losses, buffers, or risk targets based on volatility. The table can be toggled on/off, and now chart labels can be enabled to overlay the ATR metrics at the last bar’s price—ideal for quick reference without cluttering the screen. Built for any market where tick size matters (e.g., futures, forex, stocks), it uses a 14-period Daily ATR for consistency.
Key Features:
Displays Daily ATR, 2% ATR, and 10% ATR in ticks via a toggleable table.
Optional chart labels for all three metrics, toggleable independently.
Simple, rounded values for practical use in stop placement or risk management.
Lightweight and overlay-compatible with any timeframe.
How to Use:
Enable the table and/or labels in the inputs. Use the tick values to set stop-loss buffers (e.g., 2% ATR for tight stops, 10% ATR for wider ranges) or to gauge volatility-based entries/exits. Combine with price levels or trend indicators for a complete strategy.
Note: Assumes your chart’s tick size matches the asset’s minimum price movement (e.g., 0.25 for ES futures). Adjust the ATR period in the code if needed.
Opal Title: Opal Lines
Short Title: Opal Lines
Description:
Opal Lines is a dynamic overlay indicator that plots horizontal price levels at the open of key market sessions throughout the trading day, based on Eastern Time (ET). Designed for traders who rely on session-based price action, it marks significant intraday events such as the European Open (3:00 AM ET), Gold Open (8:20 AM ET), Regular Market Open (9:30 AM ET), and Globex Open (6:00 PM ET), among others. Each line is color-coded and toggleable via inputs, allowing users to customize which sessions they want to track.
Unlike generic time-based tools, Opal Lines captures the opening price at precise minute intervals and extends these levels across the chart until the daily reset at 5:00 PM ET (except for the Globex line, which persists into the next day). This makes it ideal for identifying support/resistance zones, breakout levels, or reference points tied to major market openings. Traders can use it across forex, futures, equities, or commodities to align their strategies with global session dynamics.
Key Features:
Seven toggleable session lines with distinct colors for easy identification.
Time-specific logic using ET, adaptable to any chart timeframe.
Persistent lines that reset daily, with Globex extending overnight.
Lightweight and overlay-friendly, preserving chart clarity.
How to Use:
Add the indicator to your chart and enable the sessions relevant to your trading style. Watch for price interactions with these levels—e.g., bounces, breaks, or retests—especially during high-volume periods. Combine with other tools like volume or oscillators for confirmation.
Note: Ensure your chart’s timezone is set to “America/New_York” (ET) for accurate alignment.
Small Range Stocks (ATR 7)This indicator identifies stocks with a small daily range relative to their ATR(7). It plots a small green tick below candles where the daily range is ≤ 0.9 × ATR(7), helping traders spot consolidation zones for potential breakouts.
MA Distance (% and ATR) + Threshold CountMA Distance (% & ATR) + Threshold Count
This script visualizes how far price is extended from key moving averages using both percentage and ATR-based distance. It includes a dynamic threshold system that tracks how unusually extended price is, based on historical volatility.
🔍 Features:
Calculates distance from:
10 EMA, 20 SMA, 50 SMA, 100 SMA, 200 SMA
Measures both:
% distance from each MA
ATR-multiple distance from each MA
Automatically calculates dynamic upper/lower thresholds using a rolling standard deviation
Plots a colored dot when distance exceeds these thresholds
Dots appear above or below the bar depending on direction
Color-coded summary table displays:
% distance
ATR distance
Threshold extremes
Total number of threshold hits
🎯 Customization:
Toggle which MAs to display in the table
Set your own lookback window and threshold sensitivity (via stdev multiplier)
Show/hide dots based on how many thresholds are hit
Use this tool to identify when price is overextended from its moving averages and approaching historically significant levels of deviation. Great for spotting mean reversion setups, parabolic runs, or deep pullbacks.
ProfitPivotProfitPivot dynamically shows the difference between unit cost and current market price of an asset, both in absolute term and in percentage. Traders can ascertain the profit level of a particular asset at a glance. Traders can input or change unit cost of the asset at any time directly through attribute settings. Previous bar close price will be used by default if the unit cost is not supplied.
ProfitPivot is developed by @isarab with the assistance of Copilot. It is licensed under Mozilla Public License Version 2.0.
Индикатор ЛиквидацииThis indicator allows you to set an entry price and leverage, and then calculates and displays the expected liquidation levels for long and short positions. Please note that the formulas are simplified and may not take into account commissions, financing, and other nuances of exchange liquidation mechanisms.
Global M2 Money SupplyAn indicator looking at the total money, of the largest economies, in circulation. I like to use it to analyze the lag between Bitcoin and liquidity. I think 109 days or a 16 week delay is the most accurate lag when contrasting both charts together (you can manually change the offset in the indicator's settings).
DAMA OSC - Directional Adaptive MA OscillatorOverview:
The DAMA OSC (Directional Adaptive MA Oscillator) is a highly customizable and versatile oscillator that analyzes the delta between two moving averages of your choice. It detects trend progression, regressions, rebound signals, MA cross and critical zone crossovers to provide highly contextual trading information.
Designed for trend-following, reversal timing, and volatility filtering, DAMA OSC adapts to market conditions and highlights actionable signals in real-time.
Features:
Support for 11 custom moving average types (EMA, DEMA, TEMA, ALMA, KAMA, etc.)
Customizable fast & slow MA periods and types
Histogram based on percentage delta between fast and slow MA
Trend direction coloring with “Green”, “Blue”, and “Red” zones
Rebound detection using close or shadow logic
Configurable thresholds: Overbought, Oversold, Underbought, Undersold
Optional filters: rebound validation by candle color or flat-zone filter
Full visual overlay: MA lines, crossover markers, rebound icons
Complete alert system with 16 preconfigured conditions
How It Works:
Histogram Logic:
The histogram measures the percentage difference between the fast and slow MA:
hist_value = ((FastMA - SlowMA) / SlowMA) * 100
Trend State Logic (Green / Blue / Red):
Green_Up = Bullish acceleration
Blue_Up (or Red_Up, depending the display settings) = Bullish deceleration
Blue_Down (or Green_Down, depending the display settings) = Bearish deceleration
Red_Down = Bearish acceleration
Rebound Logic:
A rebound is detected when price:
Crosses back over a selected MA (fast or slow)
After being away for X candles (rebound_backstep)
Optional: filtered by histogram zones or candle color
Inputs:
Display Options:
Show/hide MA lines
Show/hide MA crosses
Show/hide price rebounds
Enable/disable blue deceleration zones
DAMA Settings:
Fast/Slow MA type and length
Source input (close by default)
Overbought/Oversold levels
Underbought/Undersold levels
Rebound Settings:
Use Close and/or Shadow
Rebound MA (Fast/Slow)
Candle color validation
Flat zone filter rebounds (between UnderSold and UnderBought)
Available MA type:
SMA (Simple MA)
EMA (Exponential MA)
DEMA (Double EMA)
TEMA (Triple EMA)
WMA (Weighted MA)
HMA (Hull MA)
VWMA (Volume Weighted MA)
Kijun (Ichimoku Baseline)
ALMA (Arnaud Legoux MA)
KAMA (Kaufman Adaptive MA)
HULLMOD (Modified Hull MA, Same as HMA, tweaked for Pine v6 constraints)
Notes:
**DEMA/TEMA** reduce lag compared to EMA, useful for faster reaction in trending markets.
**KAMA/ALMA** are better suited to noisy or volatile environments (e.g., BTC).
**VWMA** reacts strongly to volume spikes.
**HMA/HULLMOD** are great for visual clarity in fast moves.
Alerts Included (Fully Configurable):
Golden Cross:
Fast MA crosses above Slow MA
Death Cross:
Fast MA crosses below Slow MA
Bullish Rebound:
Rebound from below MA in uptrend
Bearish Rebound:
Rebound from above MA in downtrend
Bull Progression:
Transition into Green_Up with positive delta
Bear Progression:
Transition into Red_Down with negative delta
Bull Regression:
Exit from Red_Down into Blue/Green with negative delta
Bear Regression:
Exit from Green_Up into Blue/Red with positive delta
Crossover Overbought:
Histogram crosses above Overbought
Crossunder Overbought:
Histogram crosses below Overbought
Crossover Oversold:
Histogram crosses above Oversold
Crossunder Oversold:
Histogram crosses below Oversold
Crossover Underbought:
Histogram crosses above Underbought
Crossunder Underbought:
Histogram crosses below Underbought
Crossover Undersold:
Histogram crosses above Undersold
Crossunder Undersold:
Histogram crosses below Undersold
Credits:
Created by Eff_Hash. This code is shared with the TradingView community and full free. do not hesitate to share your best settings and usage.
VOLD Ratio Histogram [Th16rry]How to Use the VOLD Ratio Histogram Indicator
The VOLD Ratio Histogram Indicator is a powerful tool for identifying buying and selling volume dominance over a selected period. It provides traders with visual cues about volume pressure in the market, helping them make more informed trading decisions.
How to Read the Indicator:
1. Green Bars (Positive Histogram):
- Indicates that buying volume is stronger than selling volume.
- Higher green bars suggest increasing bullish pressure.
- Useful for confirming uptrends or identifying potential accumulation phases.
2. Red Bars (Negative Histogram):
- Indicates that selling volume is stronger than buying volume.
- Lower red bars suggest increasing bearish pressure.
- Useful for confirming downtrends or identifying potential distribution phases.
3. Zero Line (Gray Line):
- Acts as a neutral reference point where buying and selling volumes are balanced.
- Crossing above zero suggests buying dominance; crossing below zero suggests selling dominance.
How to Use It:
1. Confirming Trends:
- A strong positive histogram during an uptrend supports bullish momentum.
- A strong negative histogram during a downtrend supports bearish momentum.
2. Detecting Reversals:
- Monitor for changes from positive (green) to negative (red) or vice versa as potential reversal signals.
- Divergences between price action and histogram direction can indicate weakening trends.
3. Identifying Volume Surges:
- Sharp spikes in the histogram may indicate strong buying or selling interest.
- Use these spikes to investigate potential breakout or breakdown scenarios.
4. Filtering Noise:
- Adjust the period length to control sensitivity:
- Shorter periods (e.g., 10) are more responsive but may produce more noise.
- Longer periods (e.g., 50) provide smoother signals, better for identifying broader trends.
Recommended Markets:
- Cryptocurrencies: Works effectively with real volume data from exchanges.
- Forex: Useful with tick volume, though interpretation may vary.
- Stocks & Commodities: Particularly effective for analyzing high-volume assets.
Best Practices:
- Combine the VOLD Ratio Histogram with other indicators like moving averages or RSI for confirmation.
- Use different period lengths depending on your trading style (scalping, swing trading, long-term investing).
- Observe volume spikes and divergences to anticipate potential market moves.
The VOLD Ratio Histogram Indicator is ideal for traders looking to enhance their volume analysis and gain a deeper understanding of market dynamics.
Killzones (UTC+3) by Roy באנגלית (Professional Style):
This script highlights the key Forex/Indices trading Killzones in Israel Time (UTC+3), including background colors and dynamic labels for:
Asian Session: 02:00–08:00
London Open: 10:00–12:00
New York Open: 14:00–17:00
London Close: 18:00–19:00
These are the hours with high institutional activity and increased market volatility – ideal for smart intraday setups.
✨ תיאור הסקריפט:
סקריפט זה מציג באופן ויזואלי את אזורי המסחר הפעילים ("Killzones") לפי שעון ישראל (UTC+3), כולל רקע צבעוני ותוויות טקסט לכל אזור חשוב:
🟤 Asian Killzone – בין השעות 02:00–08:00
🟢 London Killzone – בין השעות 10:00–12:00
🔵 New York Killzone – בין השעות 14:00–17:00
🔴 London Close – בין השעות 18:00–19:00
אידיאלי לסוחרים המחפשים לזהות מתי השוק נמצא בשיא התנודתיות והנפח.
Moving Average x5 (EMA/SMA) + ATR5 EMA/SMA lines at your disposal. Set your own timeframe. Made this by ChatGPT.
Plus ATR.
All things can be customized.
Multi EMA + VWAP LevelsThis script combines the power of Exponential Moving Averages (EMAs) and VWAPs to give you a clear view of market trends, momentum, and institutional value zones — all in one simple visual layout.
📈 What It Includes:
✅ 4 customizable EMAs:
EMA 20 (Green) – Short-term trend
EMA 50 (Orange) – Mid-term support/resistance
EMA 150 (Red) – Longer trend confirmation
EMA 200 (White) – Institutional level trend direction
✅ 3 VWAPs with toggle control:
Daily VWAP (Purple) – Intraday institutional average
Weekly VWAP (Teal) – Swing-trader reference
Monthly VWAP (Fuchsia) – Macro value zone
🎯 How to Use:
Follow the trend with EMAs — when aligned, trend strength is confirmed.
Use VWAPs as dynamic support/resistance and value areas.
Avoid chasing price — wait for retests near EMAs or VWAP zones.
Combine this with price action or volume signals for precision entries.
💡 Ideal For:
Day traders
Swing traders
Anyone looking to identify key dynamic levels for better entries/exits
ATR Daily ProgressCalculates the average APR for 30 days in points, and also shows how many points the price has passed today.
Candle Body % ChangeThis indicator shows the relative price change in candle bodies. I use this to track daily relative changes in markets like NYSE or NASDAQ where discontinued price action regularly happens.
Moving Average 50+200+365Moving Average 50+200+365
What Are the 50, 200, and 365 Moving Averages for CRYPTOCAP:BTC ?
A Moving Average (MA) smooths out price data over a specified number of periods to reveal trends by filtering out short-term noise. For Bitcoin, these periods (50, 200, and 365) are typically applied on a daily chart, meaning they represent 50 days, 200 days, and 365 days, respectively.
50-period MA: A medium-term indicator, covering about 1.5–2 months (50 trading days), used to identify shorter-term trends in Bitcoin’s price.
200-period MA: A long-term indicator, spanning roughly 9–10 months (200 trading days), widely used to gauge Bitcoin’s overall trend.
365-period MA: A very long-term indicator, covering a full year (365 days), often used to assess multi-year trends or significant support/resistance levels in Bitcoin’s market cycles.
Gold Futures vs Spot (Candlestick + Line Overlay)📝 Script Description: Gold Futures vs Spot
This script was developed to compare the price movements between Gold Futures and Spot Gold within a specific time frame. The primary goals of this script are:
To analyze the price spread between Gold Futures and Spot
To identify potential arbitrage opportunities caused by price discrepancies
To assist in decision-making and enhance the accuracy of gold market analysis
🔧 Key Features:
Fetches price data from both Spot and Futures markets (from APIs or chart sources)
Converts and aligns data for direct comparison
Calculates the price spread (Futures - Spot)
Visualizes the spread over time or exports the data for further analysis
📅 Date Created:
🧠 Additional Notes:
This script is ideal for investors, gold traders, or analysts who want to understand the relationship between the Futures and Spot markets—especially during periods of high volatility. Unusual spreads may signal shifts in market sentiment or the actions of institutional players.
DMI, RSI, ATR Combo// Usage:
// 1. Add this script to your TradingView chart.
// 2. The ADX line helps determine trend strength.
// 3. The +DI and -DI lines indicate bullish or bearish movements.
// 4. The RSI shows momentum and potential overbought/oversold conditions.
// 5. The ATR measures volatility, helping traders assess risk.
Prev days openLabels are offset to the right of Lines
You can adjust the number of opens back to display
If you want to change the format of the label please read the tool tip
Original FrizLabz