Bitcoin Gold Fair Value Model | AlphaNattBitcoin Gold Fair Value Model | AlphaNatt
A quantitative regression-based projection model that estimates Bitcoin’s fair value using gold as a macro-monetary benchmark.
This model, inspired by RJAlpha, applies a lag-adjusted statistical regression between gold and Bitcoin to identify the time-shifted correlation that historically aligns Bitcoin’s market value with gold’s macro trends. It produces a forward-looking projection, statistical confidence intervals, and explanatory metrics that assess the reliability of the relationship.
---
🧠 Core Concept
Gold serves as a proxy for global liquidity and real monetary value, often leading risk assets during liquidity expansions and contractions.
Bitcoin’s long-term trend tends to react to these same liquidity cycles, but with a measurable lag.
This indicator models that lag statistically, estimating Bitcoin’s “fair value” as if its price were fully caught up to gold’s recent movements.
The regression captures both directional influence and proportional magnitude through slope and intercept coefficients.
---
⚙️ Model Features
Dynamic Lag Regression – Uses a configurable leadDays period to align gold’s prior movements with Bitcoin’s current pricing behavior.
Rolling Sample Window – Continuously recalibrates the regression coefficients using a user-defined lookback length, allowing the model to adapt to new market conditions.
Forward Projection – Extends Bitcoin’s fair value into the future, based on present gold levels and the established lag relationship.
Volatility-Adjusted Confidence Bands – Displays one standard deviation and 95% confidence intervals around the projected path to visualize expected uncertainty.
Model Fitness Metric – Includes an R² score that quantifies the strength and stability of the BTC–Gold relationship within the active window.
---
📈 Visualization Breakdown
Cyan Line: Historical gold-driven fair value of Bitcoin.
Magenta Lines: Future fair value projection and confidence bands (offset by leadDays).
Projection Label: Displays the 60-day projected price target.
Statistical Table: Shows live model output including the projected fair value, 1-SD range, 95% confidence interval, and R² score.
---
🔧 User Inputs
Show 1 SD Bands? – Toggles visibility of the standard deviation boundaries.
---
📊 Interpretation Guide
When Bitcoin trades below its projected fair value, the model suggests it is temporarily undervalued relative to gold’s macro trend.
When Bitcoin trades above its projected fair value, it may be overextended in relation to the model’s equilibrium estimate.
A higher R² implies greater reliability — periods where gold explains a large portion of Bitcoin’s price variance.
Confidence intervals represent uncertainty, not directional certainty; deviation beyond them often implies a structural shift in correlation or market regime.
---
⚠️ Disclaimer
This indicator is designed for quantitative research and macro correlation analysis. It does not constitute investment advice, price prediction, or trading signal generation. Always verify assumptions and cross-check results with independent analysis before using in a live environment.
Forecasting
PivotBoss Oscillator (PBOsc)PivotBoss Oscillator (PBOsc) – Description
The PivotBoss Oscillator (PBOsc) is a momentum-based indicator derived from the PivotBoss PEMA Method, designed to identify market bias, trend strength, and potential reversals across all timeframes and instruments.
Unlike traditional oscillators, PBOsc measures the differential among three pivot-based EMAs (fast, medium, and slow) relative to the pivot point (PP) of each bar, allowing it to self-adjust dynamically with current market volatility.
Calculation Logic
Pivot Point (PP):
𝑃
𝑃
=
(
𝐻
𝑖
𝑔
ℎ
+
𝐿
𝑜
𝑤
+
𝐶
𝑙
𝑜
𝑠
𝑒
)
/
3
PP=(High+Low+Close)/3
Pivot-Based EMAs:
Fast PEMA = EMA(PP, fast length)
Medium PEMA = EMA(PP, medium length)
Slow PEMA = EMA(PP, slow length)
Differentials:
Diff1 = Fast PEMA − Slow PEMA
Diff2 = Medium PEMA − Slow PEMA
Diff3 = Fast PEMA − Medium PEMA
Oscillator Value:
𝑃
𝐵
𝑂
𝑠
𝑐
=
(
𝐷
𝑖
𝑓
𝑓
1
+
𝐷
𝑖
𝑓
𝑓
2
+
𝐷
𝑖
𝑓
𝑓
3
)
/
𝑃
𝑃
PBOsc=(Diff1+Diff2+Diff3)/PP
Interpretation
Above Zero Line (0): Bullish bias; momentum favors the upside.
Below Zero Line (0): Bearish bias; momentum favors the downside.
Advancing Bars (Green): PBOsc rising → Strengthening trend or positive momentum.
Declining Bars (Red): PBOsc falling → Weakening trend or negative momentum.
Analytical Uses
Change of Bias: Detects short-term shifts in market sentiment.
Trending Markets: Measures pullbacks or continuations within ongoing trends.
Divergence: Divergence between price and PBOsc can signal potential reversals.
Default Settings
Default: (8, 13, 21)
Alternate Presets: (5, 8, 13), (13, 21, 34), (21, 34, 55)
NQ Manipulation/Distribution Projections + Average RangeThis is not your typical OHLC indicator :)
Overview:
The Manipulation/Distribution Projections (OHLC Stats) indicator is a powerful tool designed to forecast potential price levels for various timeframes. It operates on a simple yet profound principle: price action within a single candle can be broken down into "manipulation" and "distribution" phases. By analyzing over 17 years of historical data for major assets in Python, this script calculates the average (mean) and typical (median) extent of these movements.
These statistical insights are then used to project key levels on your chart based on the current period's opening price, providing a statistically-grounded framework for potential support, resistance, and price targets.
Key Concepts Explained
The indicator's logic is based on how price wicks and bodies form relative to the opening price.
• Manipulation: This refers to the initial move that goes against the candle's eventual direction. For a bullish candle, it's the lower wick (the move from the open down to the low before reversing higher). For a bearish candle, it's the upper wick (the move from the open up to the high before selling off). It represents a "fake out" or a stop hunt.
• Distribution: This is the primary, directional move of the candle from the opening price. For a bullish candle, it's the distance from the open to the high. For a bearish candle, it's the distance from the open to the low. It represents the "real" intended direction of price for that period.
How It Works
This indicator does not calculate these ratios in real-time. Instead, it leverages a comprehensive statistical analysis performed externally in Python on over 17 years of OHLC data. This analysis determined the mean and median ratios for both Manipulation and Distribution movements across different timeframes and, for intraday periods, different times of day.
These pre-computed, static ratios are embedded directly into the script. When a new period begins (e.g., a new day on the Daily timeframe), the indicator:
1. Takes the opening price for that period.
2. Retrieves the corresponding pre-calculated Manipulation and Distribution ratios.
3. Applies these ratios to the opening price to project eight potential price levels:
o + / - Mean Distribution
o + / - Median Distribution
o + / - Mean Manipulation
o + / - Median Manipulation
This approach provides a stable, forward-looking set of levels for the entire duration of the trading period.
________________________________________
Features
• Statistically-Derived Projections: Plots eight key price levels based on historical tendencies, providing clear potential zones for entries, exits, and stop placement.
• Selectable Timeframe: Choose to view projections for the 1H, 4H, 1D, or 1W periods directly from the settings.
• Dynamic Stats Table: A powerful, on-chart dashboard that provides real-time context. For all four timeframes (1H, 4H, 1D, 1W), it shows:
o Position: Where the current price is relative to the projected zones (e.g., "In +Manip Zone," "Below -Dist").
o Range Completed: The percentage of the historical average range that the current period has already covered.
o Current & Average Range: The current high-to-low range in points vs. the historical average.
• Historical Context: You can display levels for previous periods to see how price has interacted with them in the past.
• Full Customization: Control the color, style, and visibility of every line, label, and fill to match your chart's theme.
________________________________________
How to Use
This indicator is versatile and can be integrated into various trading strategies.
• Identifying Targets & Reversal Zones: The Distribution levels (especially the zone between the median and mean) can serve as logical take-profit targets, as they represent a historical point of extension. Conversely, Manipulation levels can indicate areas where price might form a wick and reverse.
• Gauging Volatility: Use the Stats Table's "Range Completed" column to assess market conditions. If the 1D range is only 30% complete by mid-day, there may be room for significant expansion. If it's already at 150%, the market might be overextended and due for consolidation.
• Multi-Timeframe Confluence: Use the Stats Table to quickly check if the price on a lower timeframe (e.g., 1H) is approaching a significant level on a higher timeframe (e.g., 1D), adding more weight to that level.
• Defining Bias: If the price opens and holds above the Manipulation zones, it can signal a strong directional bias for the rest of the period.
________________________________________
Settings
• Projection Timeframe: The primary timeframe for which to calculate and display the levels.
• Historical Periods to Show: Set to 1 for only the current period, or increase to see how levels from past periods held up.
• Timezone: Set the timezone for accurate hourly calculations (defaults to America/New_York).
• Visuals: Customize the appearance of the projection lines, labels, and the shaded zones between mean and median levels.
• Stats Table: Enable/disable the table and configure its position, size, and colors.
________________________________________
Disclaimer: This indicator is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. All trading involves risk, and past performance is not indicative of future results. Please do your own research and risk management.
Enjoy!
Seasonality Forecast 4H A seasonality indicator shows recurring patterns in data that occur at the same time each year, such as retail sales peaking during the holidays or demand for ice cream rising in the summer. These indicators are used in fields like business, economics, and finance to identify predictable, time-based fluctuations, allowing for better forecasting and strategic planning, like adjusting inventory or staffing levels. In trading, a seasonality indicator can show historical patterns, like an asset's tendency to rise or fall in a specific month, to provide additional context for decision-making.
Seasonality reasoning basically seasonality works most stably on the daily frame with the input parameter being trading day 254 or calendar day 365, ..
Use seasonal effects such as sell in May, buy Christmas season, or exploit factors such as sell on Friday, ... to track the price movement.
The lower the time frame, the more parameters need to be calculated and the more complicated. I have tried to code the version with 1 hour, 15 minutes and 4 hours time frames
On the statistical language R and Python, Pine script
Tradingview uses the exclusive and unique Pine language. There is a parameter limit, just need to change the number of forecast days or calculate shorter or only calculate the basic end time value, we seasonality still works
but the overall results are easily noisy and related to controlling the number of orders per week/month and risk management.
The 4-hour frame version works well because we exploit the seasonal factor according to the 4-hour trading session as a trading session
Every 4 hours we have an input value that corresponds to the Asian, European, and American trading sessions
4 hours - half a morning Asian session.4 hours - half an afternoon Asian session, 4 hours - half a morning European session, 4 hours - half an afternoon European session, similar to the US and repeat the cycle.
Input Parameter Declaration
Tradingview does not exist declaration form day_of_year = dayofyear(time) Pine Script v5:
Instead of using dayofyear, we manually calculate the number of days in a year from the time components.
// Extract year, month, day, hour
year_now = year(time)
month_now = month(time)
day_now = dayofmonth(time)
hour_now = hour(time)
// Precomputed cumulative days per month (non-leap year)
days_before_month = array.from(0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334)
// Calculate day-of-year
day_of_year = array.get(days_before_month, month_now - 1) + day_now
Input parameter customization window
Lookback period years default is 10, max - the number of historical bars we have, should only be 5 years, 10 years, 15 years, 20 years, 30 years.
Future project bar default is 180 bars - 1 month. We can adjust arbitrarily 6*24*254 - day/month/year
smoothingLength Smooth the data (1 = no smoothing)
offsetBars Move the forecast line left/right to check the past
How to use
Combine seasonality with Supply Demand, Footprint volume profile to find long-term trends or potential reversal points
day_of_year := day_of_year + ((is_leap and month_now > 2) ? 1 : 0)
// Compute bin index
binIndex = (day_of_year * sessionsPerDay) + math.floor(hour_now / 4)
binIndex := binIndex % binsPerYear // Keep within array bounds
The above is the manual code to replace day of year
NSR FVG High Time FramesIndicator Name : NSR FVG High Time Frames
Short Title : NSR FVGHTF
Description :The NSR FVG High Time Frames indicator identifies and visualizes Fair Value Gaps (FVGs) on higher timeframes (4-hour, Daily, and Weekly) directly on your chart. FVGs are price gaps formed between the high and low of non-consecutive candles, often indicating areas of market inefficiency that price may revisit. This indicator is designed for traders who incorporate multi-timeframe analysis into their strategies, providing a clear visual representation of bullish and bearish FVGs with customizable settings.
Unique Feature :Unlike traditional FVG indicators that mark a gap as closed when the current candle’s close crosses the gap’s boundaries, NSR FVG High Time Frames employs a distinctive closure logic. It allows an additional candle to determine whether the price re-enters the gap or continues beyond it. This approach provides a more nuanced assessment of gap closure, potentially reducing false signals by giving the market an extra candle to confirm its direction. This feature makes the indicator particularly suitable for traders seeking to validate FVG interactions with greater precision.
Key Features :
Multi-Timeframe Support : Detects FVGs on 4-hour, Daily, and Weekly timeframes, with options to enable or disable each timeframe.
Customizable Appearance : Users can adjust the visual style (Line, Dotted, Dashed) and colors for bullish and bearish FVGs, as well as enable/disable extension of FVG boxes to the right.
Flexible Lookback : Configurable lookback periods for entry (up to 10,000 candles) and FVG detection (up to 70 FVGs), allowing users to tailor the indicator to their trading style.
Minimum FVG Size : Set a minimum gap size (in ticks) to filter out insignificant FVGs, ensuring only meaningful gaps are displayed.
Closed FVG Removal : Option to automatically remove closed FVGs from the chart for a cleaner view.
Alert Integration : Generates alerts for new FVGs and changes in their status (e.g., verified, partial, closed), enabling traders to set up custom notifications.
How to Use :
Add to Chart : Apply the indicator to any chart. It works best on lower timeframes (e.g., 1H, 4H) to visualize higher-timeframe FVGs.
Configure Settings : Adjust the inputs in the settings panel:
Enable/disable 4-hour, Daily, or Weekly FVGs based on your analysis needs.
Set the lookback periods and minimum FVG size to match your trading strategy.
Customize colors and line styles for better chart readability.
Interpret FVGs :
Bullish FVGs (green boxes): Represent gaps where price may act as support, potentially attracting price back to the gap.
Bearish FVGs (red boxes): Represent gaps where price may act as resistance.
Boxes are drawn between the relevant high and low of the candles forming the FVG, with text labels indicating the timeframe (e.g., "4H", "D", "Weekly").
Monitor Closure : Watch for price interaction with FVGs. The indicator considers an FVG closed only after an additional candle confirms the price has moved beyond the gap or failed to re-enter it, unlike standard FVG indicators.
Set Alerts : Use the alert feature to receive notifications when new FVGs form or their status changes (e.g., "partial" or "closed").
Settings :
Entry Lookback (candles) : Number of candles to look back for FVG detection (default: 10,000).
Number of FVG to Lookback : Maximum number of FVGs to display (default: 70).
Minimum FVG Size : Minimum gap size in ticks (default: 5).
Remove Closed : Toggle to remove closed FVGs from the chart (default: true).
Show/Extend 4Hour/Daily/Weekly : Enable/disable FVGs for each timeframe and choose whether to extend boxes to the right.
Color and Style Options : Customize fill and border colors, and select line styles (Line, Dotted, Dashed) for each timeframe.
Use Cases :
Swing Trading : Identify potential support/resistance zones on higher timeframes for entry or exit points.
Price Action Analysis : Use FVGs to confirm market inefficiencies or reversal zones.
Multi-Timeframe Strategies : Combine with lower-timeframe indicators to align entries with higher-timeframe FVGs.
Notes :
The indicator is optimized for lower timeframes to display higher-timeframe FVGs. Avoid using it on Weekly or Monthly charts for Daily/Weekly FVGs to prevent overlap issues.
The unique closure logic may delay FVG closure signals compared to other indicators, which can help filter out premature closures but requires patience for confirmation.
Performance may vary on very low timeframes with large lookback periods due to the number of FVGs processed.
Disclaimer :This indicator is for informational purposes only and does not constitute financial advice. Always conduct your own analysis and test the indicator thoroughly before using it in live trading.
TIME Indicator – CET (hour-based) + Bias Forecast + Alerts [EN]TIME Indicator – CET + Bias Forecast + Alerts
What it does
Splits each day (CET/CEST) into 7 fixed time windows: 0–6, 6–9, 9–12, 12–15, 15–18, 18–22, 22–24.
Detects market regime (Bull/Bear/Neutral) automatically from an HTF EMA (configurable), or you can set the regime manually.
Maps each day-of-week × window to an expected behavior (Bull/Bear/Neutral/Chop) with strength 1–5 (your research schedule).
Backtests on-the-fly: logs each finished window’s return to compute:
Hit-rate (directional accuracy on Bull/Bear calls)
Average % move (log-return → %)
t-stat (significance)
Observation counts N
Visualizes results via:
Heatmap 7×7 (Days × Windows) with selectable metric (Hit-rate / Avg% / t-stat)
Day (paged) table
Split 2× (long) tables to fit small screens
Forecast panel: shows the next N windows (default 8) with labels and color tint based on category + strength. Uses CET midday anchoring to avoid day-shift bugs.
Regime logic
HTF EMA (length configurable) on a selectable timeframe (HTF for regime/tfStats).
“Bull” when price > EMA (optionally EMA slope > 0); “Bear” when price < EMA (slope < 0); else “Neutral”.
Tip: for 1h charts use tfStats=240 (4h) for a stable bias; for 2h charts consider 240–360; swing traders can go 360–720.
Color language
Green shades = Bull (strength 1–5)
Red shades = Bear (1–5)
Orange = Chop (1–5)
Gray = Neutral/Range (1–5)
Optional: neutral/chop can be tinted by current regime (setting).
Alerts (3 modes)
Every window (baseline) – fires at the start of each window, always (for manual verification).
Qualified window – fires at window start only if stats meet your thresholds: Min N, Min Hit-rate.
Hourly ping (CET) – optional every-hour reminder (also mid-window).
Alert message example
Monday 6–9 — Mild rise (strength 2) | Regime: Bull | Suggest: Long
Hit-rate: 87.4% (N=215) | Avg: 0.23%
Key implementation details
Uses CET/CEST consistently. “Today” is stabilized by CET midday to prevent DOW misalignment across session boundaries.
Windows are computed from CET hour, not exchange sessions, so it’s robust across assets/timezones as long as you want CET logic.
Statistics are maintained in arrays (7×7); each completed window updates N, sum of returns, sum of squares, directional hits, etc.
Heatmap cells compute metric + color strength dynamically; you can switch the displayed metric from the input.
Inputs (most useful)
Market regime: Auto (EMA) / Bull / Bear / Neutral
EMA length (Auto), HTF for regime (minutes), Require slope
Results view: Heatmap 7×7 / Day (paged) / Split 2× (long)
Heatmap metric: Hit-rate / Avg % / t-stat
Forecast: number of upcoming windows, color opacity, tint neutral by regime
Alerts: enable baseline/qualified/hourly, thresholds Min N, Min Hit-rate
How to use
Pick your chart TF (e.g., 1h). Set HTF for regime (e.g., 240) and EMA length (e.g., 100). Keep Require slope = ON for cleaner bias.
Start on Heatmap 7×7 to spot strong day×window pockets. Then use Forecast to see what’s next today/tomorrow.
Turn on ALERT: Every window to get a message at the start of every window; optionally add Qualified for filtered calls.
In TradingView Alerts dialog choose “Any alert() function call” to receive all alert types.
Limitations / notes
This is a statistical bias tool, not a signal generator. Combine with price action, liquidity zones, vol regime, news.
Hit-rates and averages depend on your symbol/timeframe history; results differ across assets and time ranges.
EMA-based regime is HTF-closed; bias flips only after the higher-timeframe bar confirms.
Changelog snapshot (current build)
Pine v6; fixed DOW alignment via CET midday; refactored forecast (next N windows), new baseline/qualified/hourly alerts, color-tinted neutral/chop, improved table layout and text sizing.
If you want, I can also write a short “How to request access” blurb for your private/hidden publication page.
Instructions to Traders
What this tool shows
Day split (CET/CEST): 0–6, 6–9, 9–12, 12–15, 15–18, 18–22, 22–24.
For each Day × Window it displays the expected behavior (Bull/Bear/Neutral/Chop) and strength 1–5 based on historical stats.
Heatmap metrics: Hit-rate, Avg % move, or t-stat.
Quick setup
Chart TF: start on 1h (works on 30m–2h too).
HTF for regime (EMA bias):
1h chart → 240 (4h) recommended
2h chart → 240–360
Swing (4h/1D) → 360–720
EMA length: 100 (default). Keep Require slope = ON for cleaner Bull/Bear bias.
View: start with Heatmap 7×7, then try Forecast to see the next windows.
Forecast panel
Shows the next N upcoming windows (default 8), with labels and color by category + strength.
Uses CET midday anchoring to keep weekdays correct (no “day shift” at midnight).
Alerts
Enable ALERT: Every window (no filters) to get a message at the start of every window.
Optionally enable ALERT: Only when N & Hit-rate ok (filtered alerts) and ALERT: Every hour (CET) ping (hourly reminder).
In TradingView’s Create Alert dialog, select “Any alert() function call” to receive all alert types.
Alert text includes: Day + Window, regime, suggestion (Long/Short/Wait), Hit-rate, N, Avg %.
How to use the bias
Treat it as a context/expectation map, not a blind signal.
Combine with structure (HH/HL, S/R), liquidity, volatility regime, and risk management.
Stronger shades (4–5) = stronger historical tendency; still validate with live price action.
Troubleshooting
Day names wrong? Ensure Timezone = Europe/Bratislava (CET/CEST) in inputs.
“No data / n/a”: load more chart history or switch to a symbol with longer data.
Regime feels too jumpy/laggy: adjust HTF for regime and/or EMA length.
Access / contact
If this script is private and you need access, send your TradingView username with the subject “TIMETrading access”.
For support/feedback: describe your symbol, chart TF, HTF setting, and a screenshot.
Disclaimer: Statistical tendencies ≠ certainty. This is educational research, not financial advice. Always use stops and size risk responsibly.
Trade-o-Scope: Plot Custom Data v2Meet — a major tool upgrade for plotting your own data on TradingView charts. Simple and intuitive input format, large volume limits, and robust plotting for your own datasets — forecasts, backtests, or external data and model outputs.
You can apply/overlay other indicators from the TradingView catalog (such as Bollinger Bands, RSI, etc.) on top of custom data charts. The indicator you want to overlay must support selecting an input data source — i.e., have a dropdown where you can choose as the source.
🧩 How to use
Simply select and copy two columns — with dates and values — from your spreadsheet (Excel, Google Sheets, etc.) and paste them into the indicator’s input field. The indicator will automatically process the input and plot your data on the chart.
Example data:
Date XYZ_value
2025-10-08 84.57
2025-10-01 80.66
2025-09-24 86.24
2025-09-17 84.76
📅 Supported date format
The indicator recognizes standard international date formats commonly used in spreadsheets and data exports.
• ISO 8601 — "YYYY-MM-DD" or "YYYY-MM-DDThh:mm:ss"
2025-10-13
2025-10-13 14:30
2025-10-13 14:30:00
2025-10-13T14:30
2025-10-13T14:30:00
• RFC 2822 — "DD MMM YYYY" or "DD MMM YYYY hh:mm:ss"
13 Oct 2025
13 Oct 2025 14:30
13 Oct 2025 14:30:00
The time part is optional — if omitted, midnight (00:00:00) is assumed.
By default, all date–time values are interpreted in the exchange timezone of the chart’s symbol, but you can select a different data timezone in the indicator settings if needed.
💡 Supported value format
Integers (e.g., 12345, -12345)
Decimals (e.g., 1234.56, -1234.56)
The decimal separator must be a dot (.)
Thousands separators are not supported
⚙️ Advanced Features
Value Multiplier — scale your values by a chosen factor.
Formatting Options — display values as price, percentage, or volume.
Conditional Coloring — automatically change plot color based on thresholds.
Plot Style Selection — choose from line, histogram, area, or column plots.
Additional Visual References — enable fixed horizontal lines for better visual interpretation.
📝 General Notes
Maximum input size: 40,960 characters (~1,500–3,000 rows depending on format). If an error occurs after pasting data, simply remove a few rows until it disappears.
January Barometer OverlayDescription:
The January Barometer Overlay is a dynamic Pine Script indicator that visualizes the classic "January Barometer" seasonal forecasting concept directly on your TradingView chart. This tool stretches the intra-month price action of January (relative to its opening close) proportionally across the entire year, creating a predictive projection line that overlays your price candles. It's perfect for spotting potential yearly trends based on January's performance—e.g., if January ends up 5%, the projection forecasts a similar relative gain by December. For multi-year views, it applies a separate stretched projection for each year's January, color-coded for easy distinction: even years in hot yellow, odd years in vibrant pink. Whether you're analyzing stocks like SPY, cryptos like ETHUSD, or forex, this overlay turns historical seasonality into an intuitive, forward-looking guide. Note: It's illustrative for strategy brainstorming, not financial advice—backtest and combine with other indicators for real trades!
Key Features:
Proportional Stretching: Maps January's daily ratios to the full ~365 days (leap years handled automatically).
Future Projection: Extends the line into unloaded future bars for "what-if" forecasting.
Multi-Year Support: Alternating colors (yellow for even years, pink for odd) make historical comparisons pop.
Smooth Interpolation: Linear blending between January points for a clean, non-stepped line.
Historical Edge (S&P 500 Context): The January Barometer has ~75% directional accuracy since 1950, with positive Januaries signaling an 89% chance of yearly gains averaging +21.6%. Use it as a seasonal bias booster!
Instructions to Add and Use on TradingView
1. Search in Indicators: On any chart, click the Indicators button (fx icon) at the top. Search for "January Barometer Overlay" (or your custom title if you rename it).
2. Add to Chart: Select it from the Public Library results—Boom, it's overlaid!
Tips & Limitations:
Works on any ticker, but shines on indices/crypto with clear seasonal patterns.
Requires full January data; projections update live as January progresses.
Not a guarantee—markets evolve! Test on historical data (e.g., 2020's wild January vs. actual crash). If errors pop up, ensure you're on daily bars.
Options Position Size CalculatorOptions Position Size Calculator
Automate your options position sizing directly on the chart.
This indicator calculates the optimal number of options contracts to buy based on your risk management parameters, entry price, stop loss, and expected options decay.
📋 What It Does
Eliminates the need for external calculators by computing your position size directly on TradingView. Simply set your entry and stop loss prices, configure your risk parameters, and the indicator instantly shows you how many contracts to buy.
✨ Key Features
Visual Price Lines: Set entry and stop loss prices with draggable horizontal lines
Custom Loss Table: Input your own options loss percentages for distances from 0.1% to 1.5% (with interpolation between values)
Automatic Calculations: Calculates distance to stop loss, expected options loss, dollar risk, and final contract quantity
Live Display: All calculations shown in a clean info box on your chart
Accounts for Contract Multiplier: Correctly factors in the standard 100x options multiplier
🎯 How to Use
1. Configure Settings First
Add the indicator to your chart (set any initial prices when prompted)
Open indicator Settings (gear icon)
Enter your Portfolio Size (e.g., $10,000)
Set Risk Percentage (e.g., 2%)
Enter the Contract Price (the premium per contract, e.g., $1.50)
2. Fill Your Options Loss Table
This is crucial - you must input your own data
For each distance (0.1%, 0.2%, up to 1.5%), enter the expected % loss your options will suffer
Base this on your strategy (calls/puts), strike selection, and expiration
Use historical data from your trades or an options calculator
Example: If underlying moves 0.5% to your stop, your option might lose 30%
3. Set Entry & Stop Loss on Chart
Go back to indicator settings
Adjust Entry Price and Stop Loss Price to match your trade setup
The indicator calculates your position size instantly
4. Read Results
The indicator displays:
Distance to stop loss (%)
Expected options loss (%)
Dollar risk amount
CONTRACTS TO BUY - your position size
📊 Example
Portfolio: $10,000 | Risk: 2% | Entry: $150 | Stop: $149 (0.67% distance)
Expected loss: 38% | Contract price: $2.00
→ Buy 2 contracts
⚠️ Important
Your loss table values depend on your specific options strategy, strike, DTE, and IV
Different strategies require different loss tables
This is for educational purposes - always verify calculations
Never risk more than you can afford to lose
Made by traders, for traders. Trade safe, size smart.
Sri - Daily & Weekly Candle Strength Sri - Daily & Weekly Candle Strength
Short Title: Sri-Candle
Overlay: Yes
Description:
The Sri - Daily & Weekly Candle Strength indicator is designed to visually display recent daily and weekly candle activity directly on your chart, highlighting buyer and seller dominance for each candle. It helps traders quickly assess the strength of bullish vs bearish pressure over recent periods and can be used with both Normal and Heikin Ashi candles. This tool is particularly useful for swing traders, position traders, and technical analysts who want a clear view of candle momentum without switching timeframes.
Features:
Multi-Timeframe Candles:
Displays the last several daily candles and weekly candles on your chart.
Supports Normal or Heikin Ashi candles for both daily and weekly views.
Candle Strength Analysis:
Calculates buyer strength and seller strength as percentages based on candle body relative to the total candle range.
Highlights the dominant strength (higher of buyer or seller) above each candle.
Option to round dominant strength percentages to whole numbers.
Customizable Colors:
Set separate bullish and bearish colors for daily and weekly candles.
Customize wick colors independently for daily and weekly candles.
Positioning and Layout Options:
Adjust horizontal offset, candle thickness, and gap between candles for both daily and weekly candles.
Choose label positions for date labels (Top, Bottom, Absolute level).
Flexible Text Display:
Choose label text size (Tiny, Small, Normal, Large, Huge).
Daily candles display the day of the month on the candle optionally.
Dynamic Candle Rendering:
Each candle is plotted as a box with wicks, accurately reflecting open, high, low, and close.
Dominant strength percentage label is colored green for bullish dominance and red for bearish dominance.
Inputs:
Daily Settings:
Show Daily Candles – Toggle daily candle visibility.
Daily Candle Type – Choose between Normal or Heikin Ashi.
Daily Timeframe – Select Daily (D), Weekly (W), or Monthly (M).
Bull Candle Color (D) – Color for bullish daily candles.
Bear Candle Color (D) – Color for bearish daily candles.
Wick Color (D) – Color for candle wicks.
Horizontal Offset (D) – Distance from current bar to start drawing.
Candle Thickness (D) – Width of candle boxes.
Gap Between Candles (D) – Space between consecutive candles.
Daily Label Position – Position for the date label.
Absolute Level – Y-axis level when using absolute label position.
Strength Label Text Size – Size of the dominant strength label.
Round Dominant % (No Decimals) – Round the displayed strength to whole numbers.
Weekly Settings:
Show Weekly Candles – Toggle weekly candle visibility.
Weekly Candle Type – Choose Normal or Heikin Ashi.
Weekly Timeframe – Select Daily (D), Weekly (W), or Monthly (M).
Bull Candle Color (W) – Color for bullish weekly candles.
Bear Candle Color (W) – Color for bearish weekly candles.
Wick Color (W) – Wick color for weekly candles.
Horizontal Offset (W) – Distance from current bar for weekly candles.
Candle Thickness (W) – Width of weekly candle boxes.
Gap Between Candles (W) – Space between consecutive weekly candles.
How It Works:
The script fetches candle data using the request.security() function for the selected timeframe and type (Normal or Heikin Ashi).
Each candle’s buyer and seller strength is calculated as:
Buyer Strength (%) = ((Close - Low) / (High - Low)) * 100
Seller Strength (%) = ((High - Close) / (High - Low)) * 100
Candles are drawn as boxes with wicks on the chart at the specified horizontal offset.
The dominant strength is displayed above each candle, colored green for bullish dominance or red for bearish dominance.
Daily candles can optionally show the day of the month as a label.
Use Cases:
Quickly identify recent bullish or bearish trends on daily and weekly timeframes.
Compare strength of buyers vs sellers across multiple periods.
Combine with other technical indicators for multi-timeframe analysis.
TIME-Trading Indicator + AlertsWhat it is
A Pine Script study that profiles intraday behavior by day+time windows in CET/CEST, verifies it on history, colors the chart by the expected bias & strength, shows tables/heatmaps with backtest stats, and can alert at the start of each window with a full trading summary.
Core ideas
Day is split into 7 CET windows: 0–6, 6–9, 9–12, 12–15, 15–18, 18–22, 22–24
(NYC is unified as 15–18 and 18–22 across the whole script.)
For each weekday & window we have an expectation (Bull/Bear/Neutral/Chop) with a strength 1–5 and a label (e.g., “Skokový rast”, “Výplach”…).
Script backtests those expectations on your chart’s history:
Computes return of each window (log-return from first bar open to last bar close of the window).
Counts Hit-rate (bull window = return>0; bear window = return<0; neutral/chop excluded).
Tracks Avg % drift, t-stat, and sample size N.
Trend regime (Auto/Manual)
Auto (EMA): price vs EMA(length) on a higher timeframe (configurable) + optional slope filter.
Manual override: Bull / Bear / Neutral.
Regime is read without look-ahead (uses previous bar’s regime when closing a window).
What you see
Background shading of the current window
– color family by category (green=bull, red=bear, gray=neutral, orange=chop), shade by strength 1–5.
Optional labels on window change with regime + label text (“Bull • Najsilnejší rast týždňa”).
Forecast panel (bottom-right) listing the next X windows with label & strength.
Results tables (three views):
Heatmap 7×7 (default): weekday × window grid, each cell shows one metric (toggle among Hit-rate / Avg % / t-stat).
Deň (stránkovanie): full stats for a single day (N, Hit-rate, Avg %, t, label).
Split 2× (dlhá): two stacked tables (Mon–Thu, Fri–Sun) to fit small screens.
Alerts (window start)
Optionally fire at the start of every window.
Message includes: weekday + window, expectation label, strength, current regime, recommended action (Long/Short/Wait), Hit-rate %, Avg %, and N.
Create alerts in TV with Condition → Any alert() function call (so the script’s dynamic text is used).
Optional filters (easy to add/adjust): min N, min Hit-rate, only Bull/Bear windows.
Inputs you control
Regime mode, EMA length, higher-TF for trend check, require EMA slope.
CET/CEST timezone (uses “Europe/Bratislava” by default).
Toggles: background, labels, forecast, results view, table text size, heatmap metric.
Alert enable; (we can add min-N / min-HR filters if you want them by default).
How stats are computed (important)
A window’s return is measured strictly inside the window (open of first bar → close of last bar).
The window is credited to the correct weekday even across midnight.
Hit-rate uses only directional windows (Bull/Bear). Neutral/Chop are excluded.
Best practices
Use chart TF that divides an hour (5/15/30/60m) so window boundaries align cleanly.
Read the heatmap primarily by Hit-rate (signal reliability) and cross-check with Avg % (effect size) and t-stat (significance).
Trade at the start of a strong window in the direction of the current regime, exit time-based (end of window) or on PT/SL.
If you want, I can also:
mask/show only cells with N ≥ threshold,
add NYC sub-split toggle off/on,
export stats to CSV,
or add webhooks-friendly compact alert strings.
kNN Trend Classifier (RSI, CCI, W%R, ADX, EMA)This Pine Script indicator, "kNN Trend Classifier," is a specialized tool for identifying market trends using a combination of classic technical indicators and a simple machine learning approach. The script is designed for traders who want to blend quantitative analysis with visual chart signals to improve decision-making.
At its core, the indicator utilizes six key features: RSI (14), RSI (9), CCI, Williams %R, ADX, and 9-period EMA. Each of these measures different dimensions of momentum, trend strength, and market positioning. These values are normalized to ensure they are fairly compared across different market conditions. For every bar close, the script stores a historical snapshot of these features and uses a k-Nearest Neighbor (kNN) technique to classify the current trend as bullish or bearish. The kNN algorithm works by calculating the Euclidean distance between the present market state and all stored historical states, then referencing the majority label among the closest neighbors to decide on the market regime.
The script also provides powerful customization. Users can adjust the number of neighbors (k) to make signals more reactive or more stable; increase the training window for a deeper historical perspective; and fine-tune the lookback window for feature normalization. Two optional filters—based on volume percentile and ATR volatility—help to screen out signals in low-liquidity or low-volatility periods, reducing false positives and improving reliability.
To modify the behavior, traders should experiment with the inputs: lower k for faster signal changes, raise k or the training window for smoother signals, and adjust normalization length for different levels of trend sensitivity. Activating the volume and volatility filters is highly recommended during choppy markets. Altogether, this script gives users a robust framework to catch bullish or bearish trends with a blend of proven technical analysis and adaptive pattern recognition.
[NBK] Cover Buy Sell Cover Buy Sell — Engulfing Reversals with EMA/ATR Trend & Quality Filters
What it does
This indicator flags high-quality bullish/bearish reversal candles only when they align with a short-term trend and pass several objective quality filters. It is not a simple mashup: each component serves a distinct role and they work together to keep early/low-quality signals out.
How it works (components & interaction)
Pattern engine (entry candidates)
Bullish side (Cover Buy):
Body Engulf: current green body fully covers the prior red body, or
Piercing (relaxed): prior red → current green closes above the prior body’s midpoint (not beyond prior open).
Bearish side (Cover Sell):
Full-candle Engulf: current red candle (body + wicks) covers the entire prior candle, or
Body Engulf: current red body fully covers the prior body, or
Dark-Cloud (relaxed): prior green → current red closes below the prior body’s midpoint.
Short-term trend gate (non-repainting)
Trend is defined by the EMA slope between bar-1 and bar-2, scaled by ATR to require minimum strength.
Slope < 0 → only bullish candidates pass. Slope > 0 → only bearish candidates pass.
Body-size filter (noise control)
Rejects tiny candles: each body is compared with the lookback average body size.
For bearish candidates an additional ratio check requires current body ≥ a fraction of the prior body (to avoid weak top-ticks).
Peak filters for bearish signals (late, cleaner tops)
Distance above EMA: the high must be at least X × ATR above EMA (avoids mid-range noise).
Near local high: the high of the current bar (or bar-1) must be close to the highest high in a recent window.
Break confirmation: close must break low by at least Y × ATR (filters shallow dark-clouds).
Only when a candidate satisfies the pattern ➝ trend ➝ size ➝ peak sequence is a signal printed/alerted.
Inputs (key parameters)
EMA length, Min EMA slope vs ATR, ATR length: trend strength.
Lookback for average body, Min body vs average, Bear body ratio: body-quality filters.
High distance above EMA (×ATR), Local high lookback, Tolerance to local high (×ATR), Min break of low (×ATR): bearish peak confirmation.
Alerts
Built-in alerts fire on bar close for both Cover Buy and Cover Sell.
How to use
Increase High distance above EMA / Local high lookback / Min break of low to reduce early Cover Sell in ranges.
If you miss good tops, ease those thresholds slightly.
Works across symbols/timeframes; evaluated on bar close; no repaint from the trend gate.
Notes
This tool is a signal screener, not financial advice. For best results, combine with your structure/SR zones, risk management, and execution rules.
Markov Chain Regime & Next‑Bar Probability Forecast✨ What it is
A regime-aware, math-driven panel that forecasts the odds for the very next candle. It shows:
• P(next r > 0)
• P(next r > +θ)
• P(next r < −θ)
• A 4-bucket split of next-bar outcomes (>+θ | 0..+θ | −θ..0 | <−θ)
• Next-regime probabilities: Calm | Neutral | Volatile
🧠 Why the math is strong
• Markov regimes: Markets cluster in volatility “moods.” We learn a 3-state regime S∈{Calm, Neutral, Volatile} with a transition matrix A, where A = P(Sₜ₊₁=j | Sₜ=i).
• Condition on the future state: We estimate event odds given the next regime j—
q_pos(j)=P(rₜ₊₁>0 | Sₜ₊₁=j), q_gt(j)=P(rₜ₊₁>+θ | Sₜ₊₁=j), q_lt(j)=P(rₜ₊₁<−θ | Sₜ₊₁=j)—
and mix them with transitions from the current (or frozen) state sNow:
P(event) = Σⱼ A · q(event | j).
This mixture-of-regimes view (HMM-style one-step prediction) ties next-bar outcomes to where volatility is likely headed.
• Statistical hygiene: Laplace/Beta smoothing, minimum-sample gating, and unconditional fallbacks keep estimates stable. Heavy computations run on confirmed bars; “Freeze at close” avoids intrabar flicker.
📊 What each value means
• Regime label & background: 🟩 Calm, 🟧 Neutral, 🟥 Volatile — quick read of market context.
• P(next r > 0): Directional tilt for the very next bar.
• P(next r > +θ): Odds of an outsized positive move beyond θ.
• P(next r < −θ): Odds of an outsized negative move beyond −θ.
• Partition row: Distributes next-bar probability across four intuitive buckets; they ≈ sum to 100%.
• Next Regime Probs: Likelihood of switching to Calm/Neutral/Volatile on the next bar (row of A for the current/frozen state).
• Samples row: How many next-bar samples support each next-state estimate (a confidence cue).
• Smoothing α: The Laplace prior used to stabilize binary event rates.
⚙️ Inputs you control
• Returns: Log (default) or %
• Include Volume (z-score) + lookback
• Include Range (HL/PrevClose)
• Rolling window N (transitions & estimates)
• θ as percent (e.g., 0.5%)
• Freeze forecast at last close (recommended)
• Display toggles (plots, partition, samples)
🎯 How to use it
• Volatility awareness & sizing: Rising P(next regime = Volatile) → consider smaller size, wider stops, or skipping marginal entries.
• Breakout preparation: Elevated P(next r > +θ) highlights environments where range expansion is more likely; pair with your setup/trigger.
• Defense for mean-reversion: If P(next r < −θ) lifts while you’re late long (or P(next r > +θ) lifts while late short), tighten risk or wait for better context.
• Calibration tip: Start θ near your market’s typical bar size; adjust until “>+θ” flags truly meaningful moves for your timeframe.
📝 Method notes & limits
Activity features (|r|, volume z, range) are standardized; only positive z’s feed the composite activity score. Estimates adapt to instrument/timeframe; rare regimes or small windows increase variance (hence smoothing, sample gating, fallbacks). This is a context/forecast tool, not a standalone signal—combine with your entry/exit rules and risk management.
🧩 Strategies too
We also develop full strategy versions that use these probabilities for entries, filters, and position sizing. Like this publication if you’d like us to release the strategy edition next.
⚠️ Disclaimer
Educational use only. Not financial advice. Markets involve risk. Past performance does not guarantee future results.
Darvas Box with alertsTitle: Darvas Box with Breakout Signals
This indicator implements the legendary Darvas Box trading strategy developed by Nicolas What is the Darvas Box?
The Darvas Box is a momentum-based trading method that identifies consolidation zones by drawing boxes around price ranges. When price breaks out of these boxes, it often signals the beginning of a new trend.
Features:
Automatic Darvas Box detection and drawing based on customizable box length parameter
Dynamic box coloring (Green when price is above, Red when below, Yellow when inside)
Visual breakout signalsAdjust the "Box Length" parameter to match your trading timeframe (default: 5)
Wait for a Darvas Box to form (consolidation period)
Look for breakout signals (triangles) indicating potential trading opportunities
Set up alerts to be notified when breakouts occur
Use the box levels as potential support/resistance zones
VIX Delta SentimentThis script uses the volatility index VIX and the two nearest futures VX1! and VX2! to calculate the market sentiment and trigger a crash alert before it happens.
VIX Delta SentimentThis script opens a new panel underneath the main panel.
It displays a table with the values of the CBOE volatility index VIX, which measures the last 30 days implied volatility of the S&P500 index, the VX1! and the VX2! values, which are the front month and the second month VIX futures.
To curves are plotted: the relative difference or delta of the two VIX futures as well as the relative delta between VIX and the first futures month. The dotted lines visualize the thresholds of these two relative deltas.
These values are needed to determine the market sentiment and to trigger a crash alert before it happens. It can be used to trade the major indices SPX, QQQ, etc. or to avoid catastrophic losses.
The market sentiment is annotated in the table and also visualized as background color.
EquiSense AI Signals🇸🇦 العربي
المتنبئ الذكي المتوازن (AI v7)
وصف قصير:
مؤشر تجميعي ذكي يوازن بين الاتجاه والزخم والحجم والتذبذب وأنماط الشموع، ويحوّلها إلى نظام نقاط ونجوم يولّد إشارات شراء/بيع مؤكَّدة بتقاطع MACD. بعد الإشارة، يعرض أهدافًا ذكية (TP1/TP2/TP3) ووقف خسارة مبنيَّيْن على ATR مع رسومات مستقبلية ولوحة معلومات لإدارة الصفقة.
الإعدادات (Inputs)
الحد الأدنى للنقاط (min_score): افتراضي 6.0 — كلما ارتفع قلّت الإشارات وزادت جودتها.
الحد الأدنى للنجوم (min_stars): افتراضي 2 — فلتر لقوة الإشارة.
عدد الشموع المستقبلية (future_bars): افتراضي 15 — مدى رسم الأهداف والوقف للأمام.
استخدام الأهداف الذكية (use_ai_targets): تفعيل/إيقاف مضاعِف الذكاء الاصطناعي للأهداف والوقف.
كيف يعمل؟
يحسب المؤشر buy_score/sell_score من مجموعة عوامل: EMA8/21/50/200، RSI + متوسطه، MACD + Histogram، Stochastic، ADX/DMI، VWAP، الحجم، MTF 15m، ROC/المومنتَم، Heikin Ashi، وأنماط (ابتلاع/مطرقة/شهاب).
يحوّل الدرجات إلى نجوم (⭐⭐ إلى ⭐⭐⭐⭐⭐) حسب القوة.
تولّد الإشارة فقط إذا توفّر: درجة ≥ الحد + نجوم ≥ الحد + تقاطع MACD (صعودًا للشراء، هبوطًا للبيع).
عند الإشارة يبدأ سيناريو صفقة واحدة فقط حتى تنتهي (TP3 أو SL).
الأهداف والوقف (ذكاء اصطناعي)
تُشتق من ATR ثم تُعدَّل عبر مضاعِف AI مبني على: ATR%، الزخم (ROC)، الحجم مقابل متوسطه، قوة الاتجاه (ADX)، وعدد النجوم.
تقريبيًا:
TP1 ≈ 1.5×ATR × AI
TP2 ≈ 2.5×ATR × AI
TP3 ≈ 4.0×ATR × AI
SL ≈ 1.0×ATR ÷ AI
ماذا سترى على الشارت؟
علامات “شراء/بيع”، نجوم قرب الإشارة، خط دخول (أزرق)، وقف (أحمر منقّط)، TP1/TP2 (أخضر)، TP3 (ذهبي) مع صناديق مناطق للأهداف وخط ربط نحو الهدف النهائي.
وسم AI يعرض نسبة المضاعِف والنجوم بصريًا.
لوحة معلومات تعرض الحالة، القوة، AI%، السعر، الدرجات، وأثناء الصفقة: الدخول، TP1/TP2/TP3، والربح اللحظي.
التنبيهات (Alerts)
شرطان جاهزان: شراء وبيع عند تحقق الإشارة.
أضِف تنبيه: Right click → Add alert → اختر المؤشر → الشرط المطلوب.
أفضل الممارسات
استخدم الإطار المناسب للأصل:
سكالبينغ 5–15m: min_score 8 وmin_stars 3–4.
تأرجحي H1–H4: min_score 7 وmin_stars 3.
يومي/أسهم: min_score 6–7 وmin_stars 2–3.
فضّل التداول مع EMA200 واتجاه MTF 15m.
خفّض المخاطرة وقت الأخبار العالية.
التزم بإدارة مخاطر ثابتة (مثلاً 1% لكل صفقة).
حدود مهمة
الأفضل انتظار إغلاق الشمعة لتأكيد التقاطعات وتجنّب تغيّرها.
صفقة واحدة في المرة بفضل حالة in_trade.
يستخدم request.security مع lookahead_off لإطار 15m؛ التزم بالتقييم عند الإغلاق.
أسئلة شائعة
هل يستخدم منفردًا؟ نعم، لكن مع مناطق سعرية/ترند وخطة مخاطر يصبح أقوى.
لماذا تختلف الأهداف؟ لأن مضاعِف AI يكيّف TP/SL مع ظروف السوق.
إخلاء مسؤولية
هذه أداة تحليلية تعليمية وليست نصيحة استثمارية. اختبر الإعدادات تاريخيًا والتزم بالمخاطرة المناسبة.
ملاحظة للمبرمجين
Pine Script v6، متغيرات var لحفظ الحالة، تنظيف الرسومات على الشمعة الأخيرة، مع حدود مرتفعة للرسوم لتجنّب الأخطاء.
🇬🇧 English
Balanced Smart Predictor (AI v7)
Short description:
A smart, ensemble-style indicator that blends trend, momentum, volume, volatility, and candle patterns into a score & star system that produces Buy/Sell signals confirmed by MACD crosses. After a signal, it projects smart targets (TP1/TP2/TP3) and a stop-loss derived from ATR, with forward drawings and a control panel for trade management.
Inputs
Minimum Score (min_score): default 6.0 — higher = fewer but stronger signals.
Minimum Stars (min_stars): default 2 — extra filter for strength.
Future Bars (future_bars): default 15 — how far targets/SL are drawn ahead.
Use AI Targets (use_ai_targets): toggle the AI multiplier for TP/SL.
How it works
Computes buy_score/sell_score from: EMA8/21/50/200, RSI & its MA, MACD & Histogram, Stochastic, ADX/DMI, VWAP, Volume, 15m MTF tilt, ROC/Momentum, Heikin Ashi, and candle patterns (engulfing/hammer/shooting star).
Converts scores into Stars (⭐⭐ to ⭐⭐⭐⭐⭐) via tiered thresholds.
Signals fire only when: Score ≥ minimum + Stars ≥ minimum + MACD cross (up = Buy, down = Sell).
On a signal, one active trade is managed until TP3 or SL is reached.
Targets & Stop (AI-driven)
Targets and SL are ATR-based, then adjusted by an AI multiplier derived from: ATR%, momentum (ROC), relative volume, trend strength (ADX), and star rating.
Approximate formulas:
TP1 ≈ 1.5×ATR × AI
TP2 ≈ 2.5×ATR × AI
TP3 ≈ 4.0×ATR × AI
SL ≈ 1.0×ATR ÷ AI
What you’ll see on chart
“Buy/Sell” markers with small Star labels, an Entry line (blue), SL (red dotted), TP1/TP2 (green), TP3 (gold) with shaded target boxes and a guide line towards the final target.
A central AI badge showing the multiplier % and star rating.
A top-right Panel showing status, strength, AI%, price, scores, and during trades: entry, TP1/TP2/TP3, and live P/L.
Alerts
Two ready-made conditions: Buy and Sell when the respective signal triggers.
Add alert: Right click → Add alert → choose the indicator → select condition.
Best practices
Match timeframe to instrument:
Scalping 5–15m: min_score 8, min_stars 3–4.
Swing H1–H4: min_score 7, min_stars 3.
Daily/Equities: min_score 6–7, min_stars 2–3.
Prefer trades with EMA200 and 15m MTF trend alignment.
De-risk around major news.
Use fixed risk per trade (e.g., 1%).
Important notes
Prefer bar close confirmation to avoid mid-bar MACD flips.
Single trade at a time via the in_trade state.
15m MTF uses request.security with lookahead_off; evaluate at close for consistency.
FAQ
Use it standalone? You can, but it’s stronger when combined with S/R zones/trendlines and solid risk management.
Why do targets vary? The AI multiplier adapts TP/SL to current market conditions.
Disclaimer
This is an analytical/educational tool, not financial advice. Always backtest and use appropriate risk management.
Developer note
Built in Pine Script v6, uses var for trade state, clears drawings on the last bar to keep the chart tidy, and raises drawing limits to avoid runtime errors.
Digital RPM HUD — 4 Feeds + Confidence + Timeline (v3)🏎️ Digital RPM HUD — 4 Feeds + Confidence + Timeline (v3)
A performance-style trading dashboard for momentum-driven traders.
The Digital RPM HUD gives you an instant visual readout of market “engine speed” — combining four customizable data feeds (Trend, Momentum, Volume, Volatility) into a single confidence score (0–100) and a color-coded timeline of regime changes.
Think of it as a racing-inspired control panel: you only “hit the throttle” when confidence is high and all systems agree.
🔧 Key Features
4 Data Feeds – assign your own logic (EMA, RSI, RVOL, ATR, etc.).
Confidence Meter – blends the four feeds into one smooth 0–100 reading.
Timeline Strip – shows recent bullish / bearish / neutral states at a glance.
Visual Trade Cues – optional on-chart LONG / SHORT / EXIT markers.
Fully Customizable – thresholds, weights, smoothing, colors, layout.
HUD Overlay – clean, minimal, and adjustable to any corner of your chart.
💡 How to Use
Configure each feed to reflect your preferred signals (e.g., trend EMA 200, momentum RSI 14, volume RVOL 20, volatility ATR 14).
Watch the Confidence gauge:
✅ Above Bull Threshold → Market acceleration / long bias.
❌ Below Bear Threshold → Momentum loss / short bias.
⚪ Between thresholds → Neutral zone; stay patient.
Use the Timeline to confirm trend consistency — more green = bullish regime, more red = bearish.
⚙️ Recommended Setups
Scalping: Trend EMA 50 + RSI 7 + RVOL 10 + ATR 7 → Fast response.
Intraday: EMA 200 + RSI 14 + RVOL 20 + ATR 14 → Balanced signal.
Swing: Multi-TF Trend + MACD + RVOL + ATR → Smooth and steady.
⚠️ Disclaimer
This script is not a trading strategy and does not execute trades.
All signals are visual aids — always confirm with your own analysis and risk management.
Rotation Flow Model v6 (BTC → ETH → ALTS) Ghost 2Confirm the flows after massive dip to confirm entry points
NQ → NAS100The NQ → NAS100 Converter is a practical utility designed for traders who trade both the Nasdaq futures (NQ) and Nasdaq CFD (NAS100) markets.
It calculates and displays the converted stop-loss distance and price level on the NAS100 chart, based on a chosen number of NQ points.
This helps traders align their risk and position management between futures and CFD markets with precision.
🧮 Core Features:
Real-time conversion between NQ (CME) and NAS100 (OANDA) prices.
Automatic stop calculation for both Long and Short trade setups.
Optional display of NQ price, NAS price, and converted stop price.
Flexible visualization modes:
Candle-attached label that moves with price.
Chart-fixed panel for a clean dashboard-style view.
Full customization of colors, text size, alignment, and display position.
⚙️ How It Works:
Enter your NQ stop distance (in points).
The script converts that distance into the equivalent NAS100 distance, using the current NQ/NAS ratio.
The final converted NAS100 stop price is automatically displayed.
⚠️ Important Note:
This script does not place or execute trades.
It is designed solely for analysis and educational use to assist with risk management and cross-market price mapping.
Always confirm levels independently before trading.
📊 Recommended For:
Traders managing correlated exposure between NQ Futures and NAS100 CFDs.
Prop firm traders using NAS100 as a futures-correlated proxy.
Anyone seeking a clear, visual way to match stop distances across the two markets.
Bitcoin Halving Cycle Strategy ProBitcoin Halving Cycle Strategy Pro - Advanced Market Cycle Analysis Tool
This professional indicator analyzes Bitcoin's 4-year halving cycles using precise mathematical calculations. It identifies bull and bear market phases based on 500 days before and 560 days after each halving event, providing traders with data-driven market cycle insights.
Key Features:
• Automatic Bull/Bear Market Zone Detection with color-coded areas
• Historical Halving Analysis (2012-2028) with future projections
• Live Performance Tracking during bull phases (returns, max drawdown)
• Customizable cycle parameters (days before/after halving)
• Interactive info table showing current cycle phase and metrics
• Visual timeline markers for halving dates and cycle boundaries
Perfect for long-term Bitcoin investors, cycle analysts, and traders who want to understand market psychology and timing based on historical halving patterns. Uses proven 1060-day cycle theory backed by empirical data.






















