GC Scalping Plan - No Stop LossLevels for Gold...........................................................................................................................................................
지표 및 전략
MechArt Moving Average and % Above V1.1MechArt Moving Average and % Above V1.1
Unlock the power of custom analysis with this Adjustable Moving Average Indicator! Whether you're a day trader, swing trader, or long-term investor, this tool helps you track price action with precision and flexibility. Tailor your trading strategy to your needs by adjusting the type of moving average, price triggers, and percentage levels.
🔑 Key Features:
Choose Your Moving Average Type 🌀
Select from four popular moving averages:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
Find the one that best fits your trading style!
Adjustable Trigger Price
Choose between four price types to trigger signals:
Open
High
Low
Close
Pick the price type that makes the most sense for your strategy!
Percentage Above the Moving Average 📈🔽
Set a custom percentage above the moving average to generate alerts when the price reaches key levels.
Customizable Alerts 🔔
Get notified when the price is above the target price or below the moving average. Perfect for timely trades!
📉 Visual Alerts:
🔴 Red Background: When the selected price is above the target price (percentage above the moving average).
🟩 Green Background: When the selected price is below the moving average.
🚀 How This Indicator Helps You:
Precision 🎯: Visual signals with clear red and green backgrounds help you make quick decisions based on the price's relationship to your moving average.
Flexibility 🔄: Customize the type of moving average and the price used for triggers to fit your trading style.
📊 Perfect For:
Swing Traders 📈: Use the indicator to identify price trends and reversals based on moving averages.
Day Traders ⏳: Set short-term percentage levels to catch immediate price movements.
Long-Term Investors 💼: Track longer-term trends and set alerts when prices deviate significantly from your moving average.
Take control of your trading strategy with this Adjustable Moving Average Indicator and start making more informed decisions today! 🏅
Change from V1.0: Fixed Timeframe setting to match chart.
The Capture - Wargame v2.0- Visualizes historical wargame session data by drawing time-based boxes on the chart showing when Low of Day (LOD) and High of Day (HOD) typically occur
- Calculates price levels as percentage distributions from the daily Globex open (18:00 EST) and positions boxes using actual timestamps in America/New_York timezone
- Supports four session types (Long True/False, Short True/False) with customizable colors, transparency, labels, and includes a configurable data table overlay
Pannello Multi-Account con Spread e Dimensione Regolabile📘 Indicator Description: Multi-Account Execution Panel with Spread-Adjusted Risk
This indicator is designed for traders who manage multiple accounts with different capital sizes and execution models—such as a personal account and a prop firm account. It provides a visual panel that calculates and displays the ideal position size for each account, factoring in stop loss, spread, and risk preferences.
🔧 Key Features:
- Manual risk input in USD for the personal account (e.g., $2, $5, $10)
- Percentage-based risk for the prop firm account (e.g., 1% of €5,000)
- Spread-adjusted stop loss for each account, ensuring accurate risk calculation
- Real-time pip value calculation based on the current symbol
- Position size output:
- In units for the personal account
- In standard lots for the prop firm account
- Adjustable table size (Compact, Standard, Extended) to fit your screen and workflow
🧠 Ideal for:
- Traders who execute sequentially across multiple accounts
- Those who want precise, spread-aware sizing without manual calculations
- Discretionary strategies that require visual clarity and execution discipline
Italian
Panel Multi-Cuenta con Spread y Tamaño Ajustable📘 Indicator Description: Multi-Account Execution Panel with Spread-Adjusted Risk
This indicator is designed for traders who manage multiple accounts with different capital sizes and execution models—such as a personal account and a prop firm account. It provides a visual panel that calculates and displays the ideal position size for each account, factoring in stop loss, spread, and risk preferences.
🔧 Key Features:
- Manual risk input in USD for the personal account (e.g., $2, $5, $10)
- Percentage-based risk for the prop firm account (e.g., 1% of €5,000)
- Spread-adjusted stop loss for each account, ensuring accurate risk calculation
- Real-time pip value calculation based on the current symbol
- Position size output:
- In units for the personal account
- In standard lots for the prop firm account
- Adjustable table size (Compact, Standard, Extended) to fit your screen and workflow
🧠 Ideal for:
- Traders who execute sequentially across multiple accounts
- Those who want precise, spread-aware sizing without manual calculations
- Discretionary strategies that require visual clarity and execution discipline
Spanish
EPS Estimate Profile [SS]This is the EPS Estimate Profile indicator.
What it does
This indicator
Collects all EPS estimates over the course of a lookback and BINS them (sorts them into 10 equal sized categories).
Analyzes the returns from earnings releases based on the EPS estimate and the reaction.
Calculates the number of bullish vs bearish responses that transpired based on the EPS estimate profile.
Calculates the expected Open to High and Open to Low ATR based on the EPS estimate using regression.
Toggle to actual EPS release to compare once earnings results are released.
How to Use it
This indicator can be used to gain insight into whether an earnings release will be received bullishly or bearishly based on the company's EPS estimate.
The indicator allows you to see all historic estimates and how the market generally responded to those estimates, as well as a breakdown of how many times estimates in those ranges produced a bullish response or a bearish response to earnings.
Examples
Let's look at some examples:
Here is MSFT. MSFT's last EPS estimate was 3.672.
If we consult the table, we can see the average return associated with this estimate range is -4%.
Now let's flip to the Daily timeframe and take a look:
MSFT ended the day red and continued to sell into the coming days.
Let's look at another example:
MCDs. Last earnings estimate was 3.327, putting it at the top of the range with an average positive return of 4%.
Let's look on the daily:
We can see that the earnings had a huge, bullish effect on MCD, despite them coming in below their estimates.
If we toggle the indicator to "Actual" EPS release, to see the profile of Actual earnings releases vs response, we get this:
Since MCD under-performed, they were still at the top of the profile; but, we can see that the expected returns are more muted now, though still positive. And indeed, the reaction was still positive.
Distinguishing % Bullish/Bearish to Avg Returns
You will see the profile table displays both the average returns and the percent of bullish/bearish responses. In some cases, you will see that, despite a negative return, the profile reveals more bullish reactions than bearish.
What does this mean?
It means, despite there being more bullish responses, when bearish responses happen they tend to be more severe and profound, vs bullish responses likely are muted.
This can alert you to potential downside risk and help you manage risk accordingly should you elect to trade the earnings release.
ATR Prediction
You will notice in the bottom right corner of the screen a secondary table that lists the predicted open to high ATR and open to low ATR.
This is done using RAW EPS estimates (or raw ACTUAL estimates depending on which you select) and performing a regression to determine the expected ATR.
This is only for reference, the analysis should focus around the historic profile of return estimates and actual return values.
IMPORTANT NOTE: You MUST be on the Monthly timeframe to use this. Otherwise, you will get an error. If, on certain tickers with a huge history, such as MSFT and XOM or OXY, you get an error, you can simply reduce the lookback length to 80 and this will resolve the issue.
Conclusion
And that's the indicator!
A blend of some light math and fundamentals! A real joy honestly.
Hope you enjoy it!
MechArt Moving Average and % Above V1.0MechArt Moving Average and % Above V1.0
Unlock the power of custom analysis with this Adjustable Moving Average Indicator! Whether you're a day trader, swing trader, or long-term investor, this tool helps you track price action with precision and flexibility. Tailor your trading strategy to your needs by adjusting the type of moving average, price triggers, and percentage levels.
🔑 Key Features:
Choose Your Moving Average Type 🌀
Select from four popular moving averages:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
Find the one that best fits your trading style!
Adjustable Trigger Price
Choose between four price types to trigger signals:
Open
High
Low
Close
Pick the price type that makes the most sense for your strategy!
Percentage Above the Moving Average 📈🔽
Set a custom percentage above the moving average to generate alerts when the price reaches key levels.
Customizable Alerts 🔔
Get notified when the price is above the target price or below the moving average. Perfect for timely trades!
📉 Visual Alerts:
🔴 Red Background: When the selected price is above the target price (percentage above the moving average).
🟩 Green Background: When the selected price is below the moving average.
📅 Adjustable Timeframe:
Choose the timeframe that suits you! Whether you're trading on a 1-minute chart, 1-hour, 1-day, or 1-week, this indicator works for all timeframes.
🚀 How This Indicator Helps You:
Precision 🎯: Visual signals with clear red and green backgrounds help you make quick decisions based on the price's relationship to your moving average.
Flexibility 🔄: Customize the type of moving average and the price used for triggers to fit your trading style.
📊 Perfect For:
Swing Traders 📈: Use the indicator to identify price trends and reversals based on moving averages.
Day Traders ⏳: Set short-term percentage levels to catch immediate price movements.
Long-Term Investors 💼: Track longer-term trends and set alerts when prices deviate significantly from your moving average.
Take control of your trading strategy with this Adjustable Moving Average Indicator and start making more informed decisions today! 🏅
Checklist Discrezionale USdCHf 2025 Cesar Italiano📘 Indicator Description: Discretionary Checklist with Weighted Scoring and Visual Validation
This advanced Pine Script indicator is built for discretionary traders who want to structure their decision-making without sacrificing flexibility. It provides a customizable checklist that evaluates multiple technical, contextual, and macroeconomic criteria—each with its own weight in the overall score.
🔧 Key Features:
- On-screen visual checklist, with items triggered manually or by automated conditions
- Weighted scoring system, allowing you to prioritize high-impact criteria like market structure, confluence, or macro context
- Setup validation logic: displays a confidence bar or traffic light based on total score
- Optional integration with news zones, sentiment indicators, and risk management modules
- Conditional activation: can trigger alerts or unlock other tools only when the setup meets a minimum quality threshold
🧠 Ideal for:
- Traders who blend technical analysis, macro context, and discretionary judgment
- Prop firm evaluations or capital scaling workflows
- Strategies that require visual control, partial automation, and structured decision-making
Italian
Checklist Discrecional UsdChF 2025 PA📘 Indicator Description: Discretionary Checklist with Weighted Scoring and Visual Validation
This advanced Pine Script indicator is built for discretionary traders who want to structure their decision-making without sacrificing flexibility. It provides a customizable checklist that evaluates multiple technical, contextual, and macroeconomic criteria—each with its own weight in the overall score.
🔧 Key Features:
- On-screen visual checklist, with items triggered manually or by automated conditions
- Weighted scoring system, allowing you to prioritize high-impact criteria like market structure, confluence, or macro context
- Setup validation logic: displays a confidence bar or traffic light based on total score
- Optional integration with news zones, sentiment indicators, and risk management modules
- Conditional activation: can trigger alerts or unlock other tools only when the setup meets a minimum quality threshold
🧠 Ideal for:
- Traders who blend technical analysis, macro context, and discretionary judgment
- Prop firm evaluations or capital scaling workflows
- Strategies that require visual control, partial automation, and structured decision-making
Moving Average ProjectionDisplays 2-5 moving averages (solid lines) and projects their future trajectory (dashed lines) based on current trend momentum. This helps you anticipate where key MAs are heading and identify potential future support/resistance levels.
Important: Projections show where MAs would move IF the current trend continues—they're not predictions. Market conditions change, so use projections as planning tools, not trading signals.
General Settings
Number of MAs (2-5) controls how many moving averages display on your chart. Start with 2-3 to avoid clutter. Projection Bars (1-100) determines how far into the future to project—use 10-20 for intraday charts and 20-40 for daily charts. Lookback for Slope (2-100) sets the number of bars used to calculate trend slope, where shorter lookbacks are more responsive and longer ones are smoother. The default of 20 works well for most situations.
Individual MA Settings (MA 1-5)
Each MA has four settings: Length sets the period for the MA (common values are 9, 20, 50, 100, and 200), Type lets you choose between SMA, EMA, WMA, HMA, VWMA, or RMA (EMA is most popular), Color sets the historical MA line color, and Projection Color sets the projected line color (usually a lighter or transparent version of the main color).
MA Types Quick Reference: EMA is most popular and responsive to recent prices. SMA gives equal weight to all periods and is the smoothest. HMA is very responsive with low lag. VWMA incorporates volume data.
Quick Setup Examples
Day Trading: 3 MAs (9/21/50 EMA), 10-15 projection bars, 10-15 lookback
Swing Trading: 2 MAs (50/200 EMA), 20-30 projection bars, 20 lookback
Scalping: 2 MAs (9/20 EMA), 5-10 projection bars, 5-10 lookback
How to Use
Trend Identification: An uptrend shows price above rising MAs with projections pointing up. A downtrend shows price below falling MAs with projections pointing down. Consolidation appears as flat MAs with horizontal projections.
Support & Resistance: Rising MA projections act as future dynamic support levels, while falling MA projections act as future dynamic resistance levels.
Anticipating Changes: Watch for projected MA crossovers before they happen. When projections converge, expect volatility or consolidation. Steep projections suggest unsustainable trends, so be cautious. Flat projections indicate ranging markets.
Trade Planning: Check the current trend using MA alignment, then look at projections to gauge trend continuation likelihood. Use projected MA levels for potential targets or stop placement.
Important Tips
When Projections Work Best: Projections are most reliable in stable trending markets with consistent momentum, low volatility environments, and away from major news events.
When to Be Cautious: Use caution during high volatility or choppy price action, around major economic releases, when projections show extreme or parabolic angles, and during trend transitions.
Combine With Other Analysis: Don't trade projections alone. Use them alongside price action, volume, support and resistance levels, and other indicators for confirmation.
Best Practices
Start with 2-3 MAs to avoid chart clutter. Match your projection and lookback bars to your trading timeframe. Use consistent color schemes for quick interpretation. Adjust settings as market conditions change. Always use proper risk management—projections are planning tools, not guarantees.
Troubleshooting
Projections not showing: Check that Projection Bars > 0 and you're viewing the most recent bar
Chart too cluttered: Reduce number of MAs or increase projection color transparency
Projections too volatile: Increase lookback bars or switch to EMA/SMA from HMA
Can't see certain MAs: Verify "Number of MAs" setting includes them (MA 3 won't show if set to 2)
Gestore Visivo del Rischio AdattabileThis Pine Script indicator is a dynamic Risk Management Visual Tool designed for discretionary traders who want precise, real-time control over position sizing and trade planning. It automatically adapts to the currency pair you're trading and calculates key risk metrics based on your inputs.
🔧 Features:
- Auto-detects the active symbol and adjusts pip value calculations accordingly (including JPY pairs and USD as base or quote).
- Calculates:
- Pip value based on current price and pair structure
- Ideal position size (lots) based on account capital, risk %, and stop loss
- Risk in USD per trade
- Expected profit in USD
- Risk-to-Reward ratio (R/R)
- Displays all metrics in a clean, real-time on-chart table
- Fully customizable inputs: capital, risk %, stop loss, take profit, and lot size base
🧠 Ideal for:
- Traders who want to enforce consistent risk management
- Those preparing for prop firm challenges or scaling strategies
- Anyone trading multiple pairs and needing automatic pip value adaptation
Italian
Gestor de Riesgo Visual Adaptable📘 Script Description: Risk Management Visual Tool (Auto-Adaptive)
This Pine Script indicator is a dynamic Risk Management Visual Tool designed for discretionary traders who want precise, real-time control over position sizing and trade planning. It automatically adapts to the currency pair you're trading and calculates key risk metrics based on your inputs.
🔧 Features:
- Auto-detects the active symbol and adjusts pip value calculations accordingly (including JPY pairs and USD as base or quote).
- Calculates:
- Pip value based on current price and pair structure
- Ideal position size (lots) based on account capital, risk %, and stop loss
- Risk in USD per trade
- Expected profit in USD
- Risk-to-Reward ratio (R/R)
- Displays all metrics in a clean, real-time on-chart table
- Fully customizable inputs: capital, risk %, stop loss, take profit, and lot size base
🧠 Ideal for:
- Traders who want to enforce consistent risk management
- Those preparing for prop firm challenges or scaling strategies
- Anyone trading multiple pairs and needing automatic pip value adaptation
مستويات الاتزان السعري (Equilibrium Price Levels)Equilibrium Price Levels is an educational tool that helps traders quantify “fair value” and key extension zones based on a single reference swing.
The script uses two manual inputs (reference High and Low) to compute a structured set of equilibrium and extension levels, rather than scanning swings automatically. This gives full control over which range the calculations are based on.
Calculated levels include:
• Retracement / equilibrium band from the selected range: 38.2%, 50.0%, 61.8%
• Upside extension targets from the same range: 125%, 1.618, 1.80, 2.50, 3.10, 3.86, 4.236
Features:
• Separate toggles for supports, targets, and reference high/low
• Per-level visibility switches for each extension (e.g., only show 1.618 and 2.50)
• Customizable colors for supports, targets, and reference lines
• Optional labels with configurable size and offset to keep the chart clean
• Multiple line extension modes (left, both sides, or no extension)
Typical use cases:
• Marking an equilibrium zone inside a major swing to watch for reaction or trend continuation
• Building a consistent “price map” of where mean-reversion vs. extension behavior is likely
• Combining with other tools (price action, volume, order blocks, etc.) to refine trade plans
This script is for educational and analytical purposes only and does not constitute financial advice, trade signals, or performance guarantees.
مستويات الاتزان السعري هي أداة تعليمية تساعد المتداول على قياس “السعر العادل” ومناطق التمدد المحتملة اعتمادًا على نطاق سعري واحد يحدده بنفسه.
المؤشر لا يختار القمم والقيعان آليًا، بل يعتمد على إدخال قمّة وقاع مرجعيين يدويًا، مما يعطي تحكمًا كاملًا في النطاق المستخدم في الحسابات.
المؤشر يحسب ما يلي:
• نطاق الاتزان/التراجع من القمة إلى القاع: 38.2%، 50.0%، 61.8%
• أهداف وتمددات سعرية أعلى النطاق: 125%، 1.618، 1.80، 2.50، 3.10، 3.86، 4.236
المزايا:
• مفاتيح تشغيل/إخفاء مستقلة لمستويات الدعم، الأهداف، والقمة/القاع المرجعيين
• إمكانية تفعيل/إلغاء كل هدف بشكل منفصل (مثل إظهار 1.618 و 2.50 فقط)
• تخصيص ألوان خطوط الدعم، الأهداف، وخطوط القمة والقاع
• ملصقات توضيحية اختيارية مع تحكم في حجمها وموقعها على الشارت
• خيارات امتداد للخطوط: لليسار فقط، أو يمين ويسار، أو بدون امتداد
الاستخدامات الشائعة:
• تحديد منطقة الاتزان داخل موجة رئيسية لمراقبة احتمالات الارتداد أو استمرار الاتجاه
• بناء “خريطة سعرية” ثابتة لمناطق التوازن والتمدد على مدى زمني واسع
• دمج المستويات مع أدوات أخرى مثل السلوك السعري أو الحجم أو مناطق التجميع/التصريف لتحسين قرارات الدخول والخروج
هذا السكربت موجه لأغراض تعليمية وتحليلية فقط، ولا يُعتبر نصيحة استثمارية أو توصية بيع/شراء، ولا يضمن أي أداء مستقبلي للأسعار أو النتائج.
Asian & London Session Highs/LowsThis will help you spot session highs/lows to help you get draws on liq
Pulse RSI | Lyro RSPulse RSI | Lyro RS
The Pulse RSI is a momentum oscillator that enhances the traditional RSI by incorporating volume-weighted price and linear regression. It generates multiple trading signals, including trend shifts, overbought/oversold conditions, and custom threshold levels.
By integrating both price and volume into its calculation, Pulse RSI is more robust and responsive than the standard RSI. This helps you identify trends faster, spot potential reversals sooner, and set up custom alerts based on your own strategy.
Key Features
Four Signal Types:
Type 1 (Trend): Triggers when the indicator's current value crosses its previous value, highlighting short-term momentum shifts.
Type 2 (Midline Trend): The classic midline cross. A bullish bias is indicated above 50, while a bearish bias is indicated below 50.
Type 3 (Overbought/Oversold): Flags potential reversal zones, suggesting where buying or selling opportunities may emerge.
Type 4 (Custom Thresholds): This type lets you define your own threshold levels. Instead of following a trend, use it to mark your specific conditions for a reversal. For example, set a long reversal at a low level (e.g., 5) for an early buy signal, or a short reversal at a high level (e.g., 80) for an early sell signal.
Calculation Method:
The indicator uses a volume-weighted price (Close * High * Low) and applies linear regression to smooth the data. This creates a unique and more stable oscillator, avoiding the chaotic movement seen in others.
Color System:
Choose from multiple color themes like Classic, Mystic, Accented, and Royal, or create your own custom colors for bullish and bearish signals.
Visual Plotting:
Features a clear plot with a glow effect, a midline, adjustable threshold lines, and shapes/labels to mark long/short and overbought/oversold signals.
Alerts:
Instant alerts are available for every signal type, which you can quickly enable based on your trading conditions.
How It Works:
Core Calculation
The indicator calculates a volume-weighted price using (Close * High * Low) multiplied by the absolute volume. This value is then smoothed with linear regression and converted into an oscillator, normalized to a 0-100 scale.
Trading Logic:
Bullish Signals: Trigger when the main plot line crosses above a key level—be it the previous value, the 50 midline, or a custom threshold.
Bearish Signals: Trigger when the main plot line crosses below a key level.
Visual Logic:
The system displays a main plot line, colors candles, and plots signal shapes, all customizable through a variety of color schemes.
Practical Use
Trend Confirmation (Types 1 & 2): Use Type 1 for early momentum shifts and Type 2 to confirm the overall trend direction.
Reversals (Type 3): Consider long entries when oversold signals fire, suggesting an asset is undervalued. Look for exits at overbought signals, which suggest a potential downward reversal.
Custom Thresholds (Type 4): Set tight thresholds to catch early trends and reversals. Be aware that more sensitive settings may also increase false positives.
Customization:
Adjust the Length: A higher setting makes the indicator more suited for long-term trends, while a lower setting makes it more sensitive for short-term moves.
Enable/Disable Signals: Turn the four signal types on or off to match your trading style.
Set Your Levels: Fully adjustable thresholds for Type 4 long/short conditions.
Choose Your Colors: Select from a variety of color schemes for all bullish and bearish elements.
⚠️ Disclaimer
This indicator is a tool for technical analysis and does not guarantee results. It should be used alongside other analysis methods and solid risk management practices. The creators are not responsible for any financial decisions made based on its signals.
RSI(Min-Max)RSI (Min-Max) is an enhanced version of Welles Wilder's Relative Strength Index, designed to offer greater analytical precision and dynamic insight into the behavior of the RSI within each candlestick.In addition to displaying the traditional RSI value, this script calculates the possible extreme values — the minimum and maximum RSI — based on the low and high prices of the current candle. This allows you to estimate how the RSI would react if the price moved to the extremes of the bar, providing a predictive and refined reading of momentum.
BTC Bull/Bear marketThis indicator plots the 350-period Simple Moving Average (SMA) calculated on the Daily ("D") timeframe.
he color of the SMA line is determined by the closing price of the 2-Week ("2W") timeframe.
1. It fetches the 350-day SMA value (`sma350_daily`).
2. It checks where the *last closed* 2-Week candle finished relative to this SMA line.
3. If the 2W candle closed *above* the 350 SMA, the line is colored GREEN.
4. If the 2W candle closed *below* the 350 SMA, the line is colored RED.
This helps to visualize the long-term trend (350 SMA) confirmed by a higher (2W) timeframe bias, using non-repainting logic (`close `) for the color signal.
ORB LACORB breakout strategy based on the opening range and Fibonacci-style extensions.
Builds the ORB (5/15/30m or custom).
Uses ORB High/Low, mid 0.5 (stop), 1.1185 trigger and 1.5 target.
First break of 1.1185 above = LONG (SL mid, TP 1.5).
First break of 1.1185 below = SHORT (SL mid, TP 1.5).
Only one trade per day, intraday timeframes recommended.
For research & backtesting purposes only. Not financial advice.
Range Trading StrategyOVERVIEW
The Range Trading Strategy is a systematic trading approach that identifies price ranges
from higher timeframe candles or trading sessions, tracks pivot points, and generates
trading signals when range extremes are mitigated and confirmed by pivot levels.
CORE CONCEPT
The strategy is based on the principle that when a candle (or session) closes within the
range of the previous candle (or session), that previous candle becomes a "range" with
identifiable high and low extremes. When price breaks through these extremes, it creates
trading opportunities that are confirmed by pivot levels.
RANGE DETECTION MODES
1. HTF (Higher Timeframe) Mode:
Automatically selects a higher timeframe based on the current chart timeframe
Uses request.security() to fetch HTF candle data
Range is created when an HTF candle closes within the previous HTF candle's range
The previous HTF candle's high and low become the range extremes
2. Sessions Mode:
- Divides the trading day into 4 sessions (UTC):
* Session 1: 00:00 - 06:00 (6 hours)
* Session 2: 06:00 - 12:00 (6 hours)
* Session 3: 12:00 - 20:00 (8 hours)
* Session 4: 20:00 - 00:00 (4 hours, spans midnight)
- Tracks high, low, and close for each session
- Range is created when a session closes within the previous session's range
- The previous session's high and low become the range extremes
PIVOT DETECTION
Pivots are detected based on candle color changes (bullish/bearish transitions):
1. Pivot Low:
Created when a bullish candle appears after a bearish candle
Pivot low = minimum of the current candle's low and previous candle's low
The pivot bar is the actual bar where the low was formed (current or previous bar)
2. Pivot High:
Created when a bearish candle appears after a bullish candle
Pivot high = maximum of the current candle's high and previous candle's high
The pivot bar is the actual bar where the high was formed (current or previous bar)
IMPORTANT: There is always only ONE active pivot high and ONE active pivot low at any
given time. When a new pivot is created, it replaces the previous one.
RANGE CREATION
A range is created when:
(HTF Mode) An HTF candle closes within the previous HTF candle's range AND a new HTF
candle has just started
(Sessions Mode) A session closes within the previous session's range AND a new session
has just started
Or Range Can Be Created when the Extreme of Another Range Gets Mitigated and We Have a Pivot low Just Above the Range Low or Pivot High just Below the Range High
Range Properties:
rangeHigh: The high extreme of the range
rangeLow: The low extreme of the range
highStartTime: The timestamp when the range high was actually formed (found by looping
backwards through bars)
lowStartTime: The timestamp when the range low was actually formed (found by looping
backwards through bars)
highMitigated / lowMitigated: Flags tracking whether each extreme has been broken
isSpecial: Flag indicating if this is a "special range" (see Special Ranges section)
RANGE MITIGATION
A range extreme is considered "mitigated" when price interacts with it:
High is mitigated when: high >= rangeHigh (any interaction at or above the level)
Low is mitigated when: low <= rangeLow (any interaction at or below the level)
Mitigation can happen:
At the moment of range creation (if price is already beyond the extreme)
At any point after range creation when price touches the extreme
SIGNAL GENERATION
1. Pending Signals:
When a range extreme is mitigated, a pending signal is created:
a) BEARISH Pending Signal:
- Triggered when: rangeHigh is mitigated
- Confirmation Level: Current pivotLow
- Signal is confirmed when: close < pivotLow
- Stop Loss: Current pivotHigh (at time of confirmation)
- Entry: Short position
Signal Confirmation
b) BULLISH Pending Signal:
- Triggered when: rangeLow is mitigated
- Confirmation Level: Current pivotHigh
- Signal is confirmed when: close > pivotHigh
- Stop Loss: Current pivotLow (at time of confirmation)
- Entry: Long position
IMPORTANT: There is only ever ONE pending bearish signal and ONE pending bullish signal
at any given time. When a new pending signal is created, it replaces the previous one
of the same type.
2. Signal Confirmation:
- Bearish: Confirmed when price closes below the pivot low (confirmation level)
- Bullish: Confirmed when price closes above the pivot high (confirmation level)
- Upon confirmation, a trade is entered immediately
- The confirmation line is drawn from the pivot bar to the confirmation bar
TRADE EXECUTION
When a signal is confirmed:
1. Position Management:
- Any existing position in the opposite direction is closed first
- Then the new position is entered
2. Stop Loss:
- Bearish (Short): Stop at pivotHigh
- Bullish (Long): Stop at pivotLow
3. Take Profit:
- Calculated using Risk:Reward Ratio (default 2:1)
- Risk = Distance from entry to stop loss
- Target = Entry ± (Risk × R:R Ratio)
- Can be disabled with "Stop Loss Only" toggle
4. Trade Comments:
- "Range Bear" for short trades
- "Range Bull" for long trades
SPECIAL RANGES
Special ranges are created when:
- A range high is mitigated AND the current pivotHigh is below the range high
- A range low is mitigated AND the current pivotLow is above the range low
In these cases:
- The pivot value is stored in an array (storedPivotHighs or storedPivotLows)
- A "special range" is created with only ONE extreme:
* If pivotHigh < rangeHigh: Creates a range with rangeHigh = pivotLow, rangeLow = na
* If pivotLow > rangeLow: Creates a range with rangeLow = pivotHigh, rangeHigh = na
- Special ranges can generate signals just like normal ranges
- If a special range is mitigated on the creation bar or the next bar, it is removed
entirely without generating signals (prevents false signals)
Special Ranges
REVERSE ON STOP LOSS
When enabled, if a stop loss is hit, the strategy automatically opens a trade in the
opposite direction:
1. Long Stop Loss Hit:
- Detects when: position_size > 0 AND position_size <= 0 AND low <= longStopLoss
- Action: Opens a SHORT position
- Stop Loss: Current pivotHigh
- Trade Comment: "Reverse on Stop"
2. Short Stop Loss Hit:
- Detects when: position_size < 0 AND position_size >= 0 AND high >= shortStopLoss
- Action: Opens a LONG position
- Stop Loss: Current pivotLow
- Trade Comment: "Reverse on Stop"
The reverse trade uses the same R:R ratio and respects the "Stop Loss Only" setting.
VISUAL ELEMENTS
1. Range Lines:
- Drawn from the time when the extreme was formed to the mitigation point (or current
time if not mitigated)
- High lines: Blue (or mitigated color if mitigated)
- Low lines: Red (or mitigated color if mitigated)
- Style: SOLID
- Width: 1
2. Confirmation Lines:
- Drawn when a signal is confirmed
- Extends from the pivot bar to the confirmation bar
- Bearish: Red, solid line
- Bullish: Green, solid line
- Width: 1
- Can be toggled on/off
STRATEGY SETTINGS
1. Range Detection Mode:
- HTF: Uses higher timeframe candles
- Sessions: Uses trading session boundaries
2. Auto HTF:
- Automatically selects HTF based on current chart timeframe
- Can be disabled to use manual HTF selection
3. Risk:Reward Ratio:
- Default: 2.0 (2:1)
- Minimum: 0.5
- Step: 0.5
4. Stop Loss Only:
- When enabled: Trades only have stop loss (no take profit)
- Trades close on stop loss or when opposite signal confirms
5. Reverse on Stop Loss:
- When enabled: Hitting a stop loss opens opposite trade with stop at opposing pivot
6. Max Ranges to Display:
- Limits the number of ranges kept in memory
- Oldest ranges are purged when limit is exceeded
KEY FEATURES
1. Dynamic Pivot Tracking:
- Pivots update on every candle color change
- Always maintains one high and one low pivot
2. Range Lifecycle:
- Ranges are created when price closes within previous range
- Ranges are tracked until mitigated
- Mitigation creates pending signals
- Signals are confirmed by pivot levels
3. Signal Priority:
- Only one pending signal of each type at a time
- New signals replace old ones
- Confirmation happens on close of bar
4. Position Management:
- Closes opposite positions before entering new trades
- Tracks stop loss levels for reverse functionality
- Respects pyramiding = 1 (only one position per direction)
5. Time-Based Drawing:
- Uses time coordinates instead of bar indices for line drawing
- Prevents "too far from current bar" errors
- Lines can extend to any historical point
USAGE NOTES
- Best suited for trending and ranging markets
- Works on any timeframe, but HTF mode adapts automatically
- Sessions mode is ideal for intraday trading
- Pivot detection requires clear candle color changes
- Range detection requires price to close within previous range
- Signals are generated on bar close, not intra-bar
The strategy combines range identification, pivot tracking, and signal confirmation to
create a systematic approach to trading breakouts and reversals based on price structure, past performance does not in any way predict future performance
Bitcoin Macro Oscillator (Cuga)Bitcoin Macro Oscillator (BMO) — WooCharts-Style Composite Indicator
A single-number macro health check for Bitcoin, combining 4 key signals into one oscillator:
══════════════════════════════════════════════
HOW IT'S CALCULATED
══════════════════════════════════════════════
1. MVRV Z-Score
• Data: On-chain MVRV Ratio (INTOTHEBLOCK:BTC_MVRV)
• Z = (MVRV - μ_4yr) / σ_4yr
• Measures over/undervaluation vs. realized cost basis
2. VWAP Ratio Z-Score
• VWAP = Cumulative (Price × Volume) / Cumulative Volume
• Ratio = (Price / VWAP) - 1
• Z = (Ratio - μ_4yr) / σ_4yr
• Tracks deviation from volume-weighted fair value
3. CVDD Ratio Z-Score (Approximated)
• CVDD Proxy = 200-week SMA (long-term holder cost)
• Ratio = (Price / CVDD) - 1
• Z = (Ratio - μ_4yr) / σ_4yr
• Captures coin-age destruction & HODL cost basis
4. Sharpe Ratio Z-Score
• 90-day rolling Sharpe = (Daily Return) / σ_daily
• Z = (Sharpe - μ_4yr) / σ_4yr
• Measures risk-adjusted momentum quality
══════════════════════════════════════════════
FINAL BMO FORMULA
══════════════════════════════════════════════
BMO = 0.25 × (Z_MVRV + Z_VWAP + Z_CVDD + Z_Sharpe)
• Lookback: 1,460 days (~4 years) for mean & std dev
• Equal weighting → BMO oscillates ~ –2.5 to +2.5
• Optional 1-period SMA smoothing
══════════════════════════════════════════════
SIGNAL LEVELS
══════════════════════════════════════════════
< –1.5 → Deep Oversold (Macro Buy)
–1.5 to –0.8 → Oversold
–0.8 to +0.8 → Neutral
+0.8 to +1.5 → Overbought
> +1.5 → Deep Overbought (Macro Sell)






















