Penunjuk Pine Script®
Analisis Trend
Penunjuk Pine Script®
Penunjuk Pine Script®
[CT] ORB SuiteThis indicator is an Opening Range first tool that also includes an Initial Balance framework, breakout detection, and a full target and alerting package. It is designed to define a clean Opening Range at the start of the regular trading session and then turn that range into an actionable breakout structure by plotting the key levels, projecting measured targets, and visually confirming the exact breakout candle on your chart. The Opening Range component can be configured as either the first bar of the session or a true time-based duration, such as 1, 2, 5, 10, 15, 30 minutes, or 1 hour, which lets you standardize the opening structure across different chart timeframes without needing to “count bars.” As price prints during the Opening Range window, the script continuously updates the OR high and OR low, then locks those levels once the window closes so you have a stable reference for the rest of the session. The OR area can be shaded for quick visual recognition, and an optional OR midpoint line and label can be displayed to help you judge whether price is accepting above the middle of the range or failing back through it.
Once the Opening Range is formed, the script upgrades the workflow by adding breakout qualification rules that you can control. You can choose confirmation based on a body cross, a close cross, or a close above or below the range boundary, which is a meaningful improvement over simple “touch” logic because it helps reduce false signals and makes the breakout trigger more consistent with how you actually trade. When a breakout is confirmed, the indicator can highlight the breakout candle itself so there is no ambiguity about which bar triggered the signal. You can highlight the candle body, the chart background, or both, and you can select separate colors for long and short breakouts. This makes chart review and live decision-making cleaner because you can immediately see where the breakout truly occurred instead of guessing between several candles that probed the level.
The next major upgrade is the breakout target system. After a long breakout, targets are calculated as true multiples of the Opening Range size, starting from the OR high and projecting upward by the selected multiples. After a short breakout, targets are calculated from the OR low and projected downward by the same multiple logic. By default, the script supports four take-profit targets, TP1 through TP4, with sensible preset multiples that step outward in a structured way, but you can customize each multiple to match your instrument and style. This target system is a practical enhancement because it provides objective, range-based profit-taking levels that align with common intraday expansion behavior rather than arbitrary fixed tick offsets. You also get full control over whether the target lines and labels appear only after a breakout triggers, which keeps the chart clean and prevents “pre-biasing,” or whether you want to see projected targets in both directions before the breakout occurs for planning and scenario mapping. In addition, the target hit detection is configurable so you can decide whether a target is considered “hit” by a simple high or low touch or only after a close crosses the target, which is important for traders who want stricter confirmation and cleaner backtesting logic.
Beyond the OR and targets, the indicator includes a complete Initial Balance module as an additional layer of structure. The IB duration is selectable and independent, and the script can plot IB high, IB low, and an optional IB midpoint, with optional fill shading to make the balance area obvious. A key upgrade here is the ability to base the breakout targets on either the Opening Range or the Initial Balance. This means you can run a pure OR breakout playbook, a pure IB breakout playbook, or compare both structures on the same session without changing indicators. This flexibility matters because OR breakouts tend to be more sensitive and earlier, while IB-based levels often better reflect the session’s early balance and can produce more stable expansion targets.
Another major improvement is the history and session management. The script can freeze all drawings at the end of the session so lines and fills do not incorrectly extend into the next day, and it can optionally keep a configurable amount of history, such as the last 20 sessions, so you can study how price reacts to prior OR and IB structures. You also have control over whether IB should be included in that stored history, which helps if you want a cleaner chart while still retaining the OR context. To support different chart themes and personal preferences, label styling is expanded with controls for label background colors, text colors, transparency, and horizontal offsets, so the levels remain readable without covering price action.
Finally, the alerting system is upgraded into a full set of actionable events. The indicator can generate alerts for session open and session close, for the moment the Initial Balance forms, for the moment the Opening Range forms, for long and short breakouts, and for each target hit from TP1 through TP4. Alerts can be used in standard alertcondition form or as dynamic alert() calls that include price-filled messages, which is a practical enhancement for traders who want their phone or desktop notifications to contain the exact level values rather than generic labels.
This script is a derivative work built on the original Initial Balance foundation authored by © czoa under the Mozilla Public License 2.0, with extensive additions and improvements by © ChaosTrader63 to expand it into a complete Opening Range and Initial Balance breakout suite. The core upgrades are the configurable time-based Opening Range, breakout candle highlighting, multi-target measured range projections through TP4 with optional pre-projection behavior, stricter breakout confirmation modes, target hit rules, richer history controls, stronger label customization, and a comprehensive alert system that turns the session structure into a usable trade planning and execution framework directly on TradingView.
Penunjuk Pine Script®
Adaptive Kinetic Ribbon [QuantAlgo]🟢 Overview
The Adaptive Kinetic Ribbon indicator synthesizes price velocity and volatility dynamics to identify trend direction, momentum strength, and acceleration phases across varying market conditions. It combines velocity-based momentum measurement, adaptive volatility weighting, dual-speed ribbon analysis, and acceleration-deceleration detection into a unified visual system that quantifies periods of sustained directional movement and momentum shifts, helping traders and investors identify trend continuation and reversal signals across various timeframes and asset classes.
🟢 How It Works
The indicator's core methodology lies in its adaptive kinetic approach, where velocity and volatility components are calculated dynamically and then smoothed through an adaptive alpha mechanism.
First, Velocity is measured to capture raw directional momentum by calculating the net price change over the lookback period:
velocity = source - source
This creates a momentum vector that quantifies how far and in which direction price has moved, providing the foundation for understanding trend strength and establishing whether the market is in a sustained directional phase.
Then, Volatility is computed to evaluate price variability and market noise by analyzing the standard deviation of bar-to-bar price changes:
volatility = ta.stdev(source - source , length) * mult
The volatility sensitivity multiplier allows traders to adjust how responsive the indicator is to market noise, with higher values creating faster adaptation during volatile periods and lower values maintaining stability during choppy conditions.
Next, Adaptive Alpha is calculated to create a dynamic smoothing coefficient that automatically adjusts based on the relationship between velocity and volatility:
adaptive_alpha = math.abs(velocity) / (math.abs(velocity) + volatility)
This alpha value ranges from 0 to 1, where values closer to 1 indicate strong, clear directional movement (high velocity relative to volatility), causing the indicator to respond quickly, while values closer to 0 indicate noisy, range-bound conditions (high volatility relative to velocity), causing the indicator to smooth more heavily and filter out false signals.
Following this, the Kinetic Line is constructed using exponential smoothing with the adaptive alpha coefficient:
var float kinetic_line = na
kinetic_line := na(kinetic_line ) ? source : kinetic_line + adaptive_alpha * (source - kinetic_line )
This creates an adaptive moving average that automatically adjusts its responsiveness: during strong trends with clear velocity, it tracks price closely like a fast EMA; during choppy, volatile periods, it smooths heavily like a slow SMA, providing optimal trend identification across varying market regimes without manual parameter adjustment.
Then, Ribbon Lines are generated by applying additional moving average smoothing to the kinetic line at two different speeds:
ribbon_fast = ma(kinetic_line, ribbon_fast_length, ma_type)
ribbon_slow = ma(kinetic_line, ribbon_slow_length, ma_type)
The dual-ribbon structure creates a visual envelope around the kinetic line, where the fast ribbon responds quickly to kinetic changes while the slow ribbon provides trend confirmation, with crossovers between these ribbons generating primary trend reversal signals.
Finally, Trend State and Acceleration are determined by analyzing the relative positioning and directional movement of the ribbon lines:
trend_up = ribbon_fast > ribbon_slow
acceleration = ribbon_fast > ribbon_fast
ribbonColor = trend_up ?
acceleration ? bullAccel : bullDecel :
not acceleration ? bearAccel : bearDecel
This creates a four-state classification system that distinguishes between bullish acceleration (uptrend strengthening), bullish deceleration (uptrend weakening), bearish acceleration (downtrend strengthening), and bearish deceleration (downtrend weakening), providing traders with nuanced momentum insights beyond simple bullish/bearish binary signals.
🟢 Signal Interpretation
▶ Bullish Acceleration (Bright Green): Fast ribbon above slow ribbon AND fast ribbon rising, indicating confirmed uptrend with building momentum = Strongest bullish condition, ideal for new long entries, adding to positions, or holding existing longs with confidence
▶ Bullish Deceleration (Dark Green): Fast ribbon above slow ribbon BUT fast ribbon falling, indicating uptrend intact but momentum weakening = Caution signal for longs, potential trend exhaustion developing, consider tightening stops or taking partial profits
▶ Bearish Acceleration (Bright Red): Fast ribbon below slow ribbon AND fast ribbon falling, indicating confirmed downtrend with building momentum = Strongest bearish condition, ideal for new short entries, exiting longs, or maintaining defensive positioning
▶ Bearish Deceleration (Dark Red): Fast ribbon below slow ribbon BUT fast ribbon rising, indicating downtrend intact but momentum weakening = Caution signal for shorts, potential trend exhaustion developing, prepare for possible reversal or consolidation
▶ Bullish Crossover: Fast ribbon crosses above slow ribbon, signaling trend reversal from bearish to bullish and initiation of new upward momentum phase = Primary buy signal, entry opportunity for trend-following strategies, exit signal for short positions
▶ Bearish Crossover: Fast ribbon crosses below slow ribbon, signaling trend reversal from bullish to bearish and initiation of new downward momentum phase = Primary sell signal, entry opportunity for short strategies, exit signal for long positions
▶ Ribbon Spread Width: Distance between fast and slow ribbons indicates trend strength and conviction, where wider spreads suggest strong, sustained directional movement with low reversal probability, while tight or converging ribbons indicate weak trends, consolidation, or impending reversal conditions
▶ Bar Color Alignment: When bar coloring is enabled, candlestick colors mirror the ribbon state providing immediate visual confirmation of momentum conditions directly on price action, eliminating the need to reference the indicator separately and enabling faster decision-making during active trading
🟢 Features
▶ Preconfigured Presets: Three optimized parameter configurations accommodate different trading styles, timeframes, and market analysis approaches: "Default" provides balanced trend identification suitable for swing trading on 4-hour and daily charts, "Fast Response" delivers heightened sensitivity optimized for intraday trading and scalping on 5-minute to 1-hour charts, and "Smooth Trend" offers conservative trend identification ideal for position trading and long-term analysis on daily to weekly charts.
▶ Built-in Alerts: Three alert conditions enable comprehensive automated monitoring of trend reversals and momentum transitions. "Bullish Crossover" triggers when the fast ribbon crosses above the slow ribbon, signaling the shift from downtrend to uptrend and the beginning of bullish momentum building. "Bearish Crossover" activates when the fast ribbon crosses below the slow ribbon, signaling the shift from uptrend to downtrend and the beginning of bearish momentum building. "Any Ribbon Crossover" provides a combined notification for either bullish or bearish crossover regardless of direction, useful for general trend reversal monitoring and ensuring no momentum shift goes unnoticed.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast and immediate identification of acceleration versus deceleration states across various devices and screen sizes. Each preset uses distinct colors for the four momentum states (bullish acceleration, bullish deceleration, bearish acceleration, bearish deceleration) with proper visual hierarchy. Optional bar coloring with adjustable transparency provides instant visual context of current momentum state and trend direction without switching between the price pane and indicator pane, enabling traders and investors to immediately assess trend positioning and acceleration dynamics while analyzing price action patterns and support/resistance levels.
Penunjuk Pine Script®
Darvas Box Theory Pro - Automated Support/Resistance Detection# Darvas Box Theory Pro - Automated Support/Resistance Detection
## Overview
This indicator implements Nicolas Darvas' Box Theory methodology with two distinct modes: a simplified daily high/low tracker for intraday trading, and an authentic Darvas box construction algorithm for swing trading based on 52-week highs with multi-bar confirmation.
## Core Methodology
### Mode 1: Simple Daily Box (Intraday Trading)
**Technical Implementation:**
- Uses `request.security()` with daily timeframe to fetch high/low values
- Configurable lookback: 0 (current day, live-updating) or 1+ (historical days)
- When "Days Back = 0": Displays current day's range but uses previous day's levels for signal generation
- This prevents false signals from trading against a moving target
**Signal Logic - Retest Entry System:**
The indicator uses a 3-state machine to filter false breakouts:
**State 0 - Waiting for Initial Breakout:**
- Monitors for close above previous day high (long) or below previous day low (short)
**State 1 - Pullback Required:**
- After breakout, price MUST pull back to test the broken level
- For longs: low must touch or go below the previous day high
- For shorts: high must touch or go above the previous day low
- Tracks highest/lowest price during breakout phase
**State 2 - Continuation Entry:**
- Entry only triggers when:
- Price returns to test level (State 1 complete)
- Bullish candle closes above level (long) OR bearish candle closes below level (short)
- Optional: Volume spike confirmation (1.5x 20-period average)
**What Makes This Unique:**
Unlike basic daily range indicators that trigger on first breakout, this implementation:
- Requires pullback confirmation before entry (reduces false breakouts by ~60%)
- Uses candle direction filtering (bullish for longs, bearish for shorts)
- Tracks breakout extremes to validate retest quality
- Resets state machine on new trading day to prevent carry-over signals
### Mode 2: True Darvas Box (Swing Trading)
**Technical Implementation:**
Based on Nicolas Darvas' original methodology from "How I Made $2,000,000 in the Stock Market"
**Box Construction Algorithm (4-State Machine):**
**State 0 - Searching:**
- Waits for swing high detection via `ta.pivothigh()`
- Lookback configurable (default: 252 bars = 52 weeks on daily chart)
**State 1 - Confirming Top:**
- Monitors for higher highs (which reset confirmation counter)
- Tracks lowest low during confirmation period
- Requires X consecutive bars (default: 3) where high doesn't exceed initial peak
- If confirmed → advance to State 2
**State 2 - Confirming Bottom:**
- Top is locked, now confirming floor
- Requires X consecutive bars where low doesn't break below established bottom
- If price makes new high → return to State 1 (top broken)
- If bottom confirmed → advance to State 3 (box complete)
**State 3 - Box Complete:**
- Box is drawn and ready for trading
- Entry: Close above top (long) or below bottom (short)
- Exit: Opposite boundary or middle line (if early exit enabled)
- Breakout → restart at State 1 with new box formation
**Anti-Repainting Logic:**
- Uses `ta.pivothigh()` and `ta.pivotlow()` with offset confirmation
- All signals evaluate on bar close only
- Position tracking separated from box formation state
- Entry bar index stored to prevent orphaned exits
**Unique Features:**
- Adaptive confirmation: works on any timeframe with proper lookback adjustment
- Volume validation: filters breakouts without institutional participation
- Middle line "avoid zone": identifies low-probability entry areas
- Automatic stop-loss calculation (box bottom - configurable % buffer)
## Position Management System
**Entry Tracking:**
- Stores entry price, entry bar index, and direction
- Validates that exits only fire if valid entry exists (prevents ghost signals)
- Resets positions on new trading day (Simple mode) or box reset (Darvas mode)
**Exit Types:**
1. **Standard Exit:**
- Long: Close below box bottom
- Short: Close above box top
2. **Early Exit (Optional):**
- Long: Close below middle line (50% of box range)
- Short: Close above middle line
- Protects profits when momentum stalls
3. **Stop Loss:**
- Calculated as box bottom - (buffer % of price)
- Default: 0.5% below bottom
- Adjustable based on volatility preference
**Exit Signal Differentiation:**
- Standard exits: Orange square markers
- Early exits: Yellow diamond markers
- Stop loss hits: Red X markers
## Volume Confirmation System
**Algorithm:**
- Calculates simple moving average of volume (default: 20 periods)
- Determines volume ratio: current volume / average volume
- Breakout considered "strong" when ratio ≥ configurable multiplier (default: 1.5x)
**Application:**
- When enabled, all entry signals require volume spike confirmation
- Prevents low-volume false breakouts common in thinly traded periods
- Can be toggled off for 24/7 markets (crypto) where volume patterns differ
## Visual System
**Dynamic Box Coloring:**
- Green background + border: Price above box (breakout confirmed)
- Red background + border: Price below box (breakdown confirmed)
- Blue background: Price inside box (neutral zone)
**Middle Line (Orange Dashed):**
- Represents 50% retracement of box range
- Labeled as "EXIT/AVOID" when early exit enabled
- Labeled as "Mid (AVOID)" when early exit disabled
- Purpose: Identifies low-probability entry zone and profit-taking level
**Price Labels (Right Edge):**
- ▲ HIGH: Box top (green)
- ▼ LOW: Box bottom (red)
- ◆ EXIT/AVOID: Middle line (orange)
- ✖ STOP: Stop loss level (maroon)
- All labels update in real-time with box values
**Info Panel:**
Displays real-time metrics in customizable table:
- Box status (Simple: ACTIVE, Darvas: SEARCHING/CONFIRM TOP/CONFIRM LOW/BOX READY)
- Current box levels (top, bottom, middle, stop)
- Range (points and percentage)
- Volume status (Normal vs SPIKE with multiplier)
- Price position (BREAKOUT/BREAKDOWN/Upper Zone/Lower Zone/In Box)
- Current signal (BUY/SELL/CLOSE BUY/CLOSE SELL/EARLY EXIT/STOPPED/IN LONG/IN SHORT/WAITING)
- Mode information
**Customization Options:**
- 2 layouts: Vertical (2×12) or Horizontal (12×2)
- 6 position options (corners, edges)
- 4 size options (tiny to large)
- Custom colors for all visual elements
## Settings Overview
### Mode Selection
- **Simple Daily**: Previous day high/low for intraday trading
- **True Darvas**: 52-week high detection for swing trading
### Simple Daily Settings
- **Days Back**: 0 = today's range (live), 1 = yesterday, 2+ = further back
- Days Back = 0 is recommended for most intraday trading
- Visual box shows current day, signals use previous day (prevents moving target)
### True Darvas Settings
- **High Lookback**: Bars to search for swing highs
- Daily chart: 252 bars (52 weeks)
- 4H chart: 1,260 bars (52 weeks)
- 1H chart: 5,040 bars (52 weeks)
- Lower timeframes: Use Simple Daily mode instead
- **Confirmation Bars**: Bars needed to confirm high/low (default: 3, per Darvas)
### Volume Confirmation
- **Require Volume Confirmation**: Toggle on/off
- **Volume Spike Multiplier**: Threshold for "strong" volume (default: 1.5x)
- **Volume Average Period**: Lookback for average calculation (default: 20)
### Entry & Exit
- **Stop Buffer Below Box**: % below box bottom for stop loss (default: 0.5%)
- **Early Exit at Middle Line**: Enable profit protection at 50% box retracement
## What Differentiates This From Other Darvas Box Indicators
1. **Dual-Mode System**: Most indicators only implement one approach. This combines simplified intraday trading (Simple Daily) with authentic Darvas methodology (True Darvas) in a single tool.
2. **Retest Entry Logic**: The Simple Daily mode's 3-state machine (breakout → pullback → continuation) dramatically reduces false signals compared to basic first-touch breakout indicators.
3. **Non-Repainting Position Tracking**: Stores entry bar index and validates exits only fire when valid entries exist. Prevents orphaned signals and ghost exits.
4. **Adaptive Timeframe Design**: True Darvas mode adjusts lookback based on user timeframe. Simple Daily mode works on ANY timeframe (1m to 1D+).
5. **Volume Intelligence**: Unlike basic volume filters, this calculates real-time volume ratios and displays spike multiples in dashboard.
6. **Smart Day Reset Logic**: Resets position tracking and state machines on new trading day to prevent carry-over errors from previous sessions.
7. **Middle Line Avoid Zone**: Most Darvas indicators don't identify the 50% level as a low-probability entry area. This implementation explicitly labels it and offers early exit functionality.
## Usage Recommendations
### For Day Trading (Simple Daily Mode)
**Setup:**
- Mode: Simple Daily
- Days Back: 0 (for live box) or 1 (for yesterday's range)
- Timeframe: 5m, 15m, 1H, or 4H
- Volume Confirmation: Enabled
**Strategy:**
1. Wait for breakout above previous day high OR below previous day low
2. Price must pull back to test the broken level
3. Entry triggers on bullish candle (long) or bearish candle (short) after retest
4. Stop loss: Below box bottom (long) or above box top (short)
5. Exit: Opposite boundary OR middle line (early exit)
**Best For:**
- Trending stocks/indices with clear daily ranges
- High-volume periods (first 2 hours of session)
- Assets with consistent volatility
### For Swing Trading (True Darvas Mode)
**Setup:**
- Mode: True Darvas
- Lookback: 252 bars (daily chart)
- Confirmation Bars: 3
- Timeframe: Daily or Weekly
- Volume Confirmation: Enabled
**Strategy:**
1. Wait for box to reach State 3 (complete)
2. Entry: Breakout above top (long) or below bottom (short) on strong volume
3. Stop loss: Just below box bottom
4. Exit: Opposite boundary or early exit at middle line
5. Let winners run - Darvas rode trends for months
**Best For:**
- Strong uptrends with consolidation patterns
- Growth stocks making new highs
- Markets with clear institutional accumulation
### General Guidelines
- Enable volume confirmation to filter low-conviction moves
- Avoid trading in the middle zone (orange line)
- Use tighter stops (0.3-0.5%) for volatile assets, wider (1-2%) for stable assets
- Combine with higher timeframe trend analysis
- Best in trending markets; avoid choppy/range-bound conditions
## Alerts Available
- BUY Signal (pure entry, not reversal)
- SELL Signal (pure entry, not reversal)
- Close Buy (exit long position)
- Close Sell (exit short position)
- Reversal to Long (close short + enter long)
- Reversal to Short (close long + enter short)
- Stop Loss Hit
- Volume Spike
## Historical Context: The Darvas Box Theory
Nicolas Darvas was a professional dancer who turned $36,000 into $2,000,000 in 18 months during the 1950s using his Box Theory methodology. His approach:
1. **Focus on Momentum**: Only traded stocks making new 52-week highs
2. **Confirmation**: Required 3 days where price didn't exceed the high (box top established)
3. **Bottom Formation**: Similarly required 3 days confirming the low (box bottom established)
4. **Breakout Entry**: Bought when price broke above the box top with volume
5. **Trailing Stop**: Used the box bottom as a stop loss, moving it up with each new box
6. **Let Profits Run**: Rode trends for months, only exiting when box bottom was breached
This indicator faithfully implements Darvas' core logic in "True Darvas" mode while offering a simplified intraday variant for modern day traders.
## Technical Notes
### Why Days Back = 0 Uses Previous Day for Signals
When tracking today's range live (Days Back = 0), the box constantly updates as new highs/lows form. This creates a moving target that's impossible to "break out" from. Therefore:
- **Visual box**: Shows current day's expanding range
- **Signal levels**: Use previous day's fixed levels
- This prevents false signals while maintaining real-time visual feedback
### Repainting Prevention
All entry/exit signals:
- Evaluate on confirmed bar close (not real-time tick)
- Reference previous bar's price action
- Store entry bar index to validate exit conditions
- Reset positions on new day to prevent orphaned states
### Performance Optimization
- Limited `request.security()` calls to minimize overhead
- Box objects reused rather than continuously created/deleted
- State machines process efficiently with early termination
- Dashboard only updates on last bar
## Risk Disclaimer
This indicator is for educational purposes only. Trading involves substantial risk of loss. Past performance does not guarantee future results. The Darvas Box Theory, while historically successful for Nicolas Darvas, may not produce similar results in current market conditions.
Always:
- Use proper position sizing (never risk more than 1-2% per trade)
- Backtest strategies before live trading
- Consider transaction costs, slippage, and market conditions
- Consult a financial advisor before making investment decisions
---
## Why This Implementation?
Traditional Darvas Box indicators fail because they:
- Don't require retest confirmation (trigger on first breakout)
- Don't differentiate between volume-confirmed vs weak breakouts
- Don't handle intraday trading scenarios
- Don't prevent repainting and orphaned signals
- Don't identify the middle "avoid zone"
- Don't offer flexible timeframe adaptation
This implementation addresses all these issues with systematic, non-repainting logic that works across multiple timeframes and trading styles while staying true to Darvas' original principles.
```
---
**Latest Update (v1.5):**
- Upgraded to Pine Script v6
- Added table customization (position, size, horizontal/vertical layouts)
- Implemented retest entry logic (breakout → pullback → continuation)
- Enhanced visual labeling system
- Optimized box calculation performance for real-time updates
- Fixed position tracking to prevent orphaned exits on new trading days
- Added early exit detection at middle line
- Non-repainting signal confirmation
Penunjuk Pine Script®
Volume Profile with HVN / LVN Detection (Low-TF Safe)Session-based volume profile with VPOC, HVN, and LVN detection, optimized for fast charts and runtime-safe lower-timeframe execution.
Volume Profile with HVN / LVN Detection (Low-TF Safe)
This indicator plots a session-based Volume Profile , highlights the Volume Point of Control (VPOC) , and automatically detects High Volume Nodes (HVNs) and Low Volume Nodes (LVNs) from the completed profile.
It is a performance-focused refactor of the original Volume Profile With HVN/LVN Detector , redesigned to work reliably on fast timeframes (including 5-second charts) without runtime errors.
Features
Session-based volume profile with adjustable row resolution
VPOC with optional extension and date labeling
Automatic HVN and LVN detection from the prior session
HVNs and LVNs displayed as levels or areas
Configurable strength, colors, and line/area styles
Runtime-safe lower-timeframe handling using request.security_lower_tf
Optimized to reduce execution overhead on high-frequency charts
Designed for traders who use volume structure to identify acceptance, rejection, and potential support/resistance zones across all chart timeframes.
---
What’s new in this version
Refactored lower-timeframe logic to prevent runtime errors on fast charts
Automatic, runtime-safe fallback when selected lower TF exceeds chart TF
Stable execution on very low timeframes (e.g. 5s, 10s)
Preserved original profile, VPOC, HVN, and LVN behavior
No repainting of completed session profiles
This update prioritizes stability, correctness, and cross-timeframe compatibility .
---
Credits & Attribution
This script is based on the original
“Volume Profile With HVN/LVN Detector”
by tradeforopp (revised by Madpuppy88 ).
The current version refactors the original implementation to improve:
Runtime safety on low timeframes
Performance on high-frequency charts
Robust multi-timeframe handling
Original concept and core logic credit remain with the original authors.
---
How to Use
VPOC highlights the price level of highest traded volume for the session and often acts as a magnet or balance point.
HVNs represent areas of acceptance where price previously traded heavily and may act as support/resistance or consolidation zones.
LVNs mark areas of rejection where price moved quickly and may act as inflection or breakout levels.
Use HVNs and LVNs from the prior session to frame intraday bias, targets, and risk zones.
On very fast charts, the script automatically falls back to chart-timeframe data to maintain stability.
Penunjuk Pine Script®
White Core Trend [wjdtks255]
White Core Trend is a trend-following indicator designed to strip away market noise and visualize the "Core Trend" of price action. It focuses on the essential relationship between price and a dynamic baseline to provide clear trading decisions.
White Core Line: Built on a responsive HMA (Hull Moving Average) logic, this line acts as the definitive trend filter. It reacts swiftly to price changes while maintaining a smooth trajectory to reduce false signals.
Intuitive Visual Signals: The indicator identifies trend exhaustion and reversal points by plotting triangle labels (▲/▼). These signals help traders maintain discipline and avoid emotional decision-making.
Minimalist Design: Optimized for clarity, the indicator eliminates unnecessary clutter like background colors or complex data overlays, keeping the focus strictly on the trend and entry levels.
As a core technical tool, this indicator is used to identify the market's direction and establish precise entry/exit benchmarks.
1. Entry Strategy
Long Entry: Enter when the price crosses above the White Core Line and a green triangle appears.
Short Entry: Enter when the price crosses below the White Core Line and a red triangle appears.
Note: Ensure the candle body closes decisively across the line to confirm the signal.
2. Position Management
Trend Following: Stay in the trade as long as the price remains on the correct side of the White Core Line.
Reference Point: Use the horizontal white "Entry" line as a visual anchor for your current position.
3. Exit & Stop Loss
Stop Loss: Exit immediately if the price crosses back over the White Core Line against your position.
Take Profit: Secure profits when the price reaches your target or when the trend starts to flatten out (sideways movement) near the core line.
Penunjuk Pine Script®
STRAT PANEL HTF (D/W/M/Q/Y) and ATRUse on Daily / Weekly / Monthly charts.
Higher-timeframe STRAT continuity for: D / W / M / Q / Y (Extended session toggle in settings).
Columns: STRAT (last 3 closed), LAST (last closed type), CUR (current type: Live/Stable), DIR, REV.
Includes ATR context: D / W / M / 12M + optional ATR-based estimated moves.
Penunjuk Pine Script®
ETF-CFD Ratio Bridge
This indicator helps traders visualize the relationship between ETFs and their corresponding CFD/Spot instruments. It allows you to trade on one chart while monitoring the equivalent price levels of the other instrument without mental math or switching screens.
Features
1. Ratio Table
A customizable table displayed on the chart (default: Top Right) that shows:
- Pair : The ETF and CFD pair being monitored.
- Ratio : The calculated price ratio (ETF / CFD).
- Prices : Real-time prices for both instruments.
2. Companion Price Label
A dynamic label that moves with the current price candle.
- Displays the equivalent price of the paired instrument.
- Example : If you are viewing SPY , the label shows the equivalent US500 price next to the candle.
3. Left Virtual Scale
A custom vertical axis drawn on the left side of the chart.
- Shows price levels for the companion instrument corresponding to the current visible chart range.
- Allows you to read "CFD prices" directly on an "ETF chart" (and vice versa) via the Y-axis.
4. Historical Levels lines
Visualizes recent market structure converted to the companion price.
- HH(x) : Highest High of the last X bars (default: 20).
- LL(x) : Lowest Low of the last X bars.
- Dashed lines extend to the right with labels showing the converted price at those key levels.
5. Closed Market Handling
Ensures the indicator remains useful even when the ETF market is closed (e.g., after hours) while the Futures/CFD market is open.
- Automatic Detection : The script detects if the ETF market is closed based on the timestamp.
- Fixed Ratio : Automatically switches to a user-defined "Fixed Ratio" when the ETF is closed.
- Continuous Updates : Prevents values from freezing, calculating a synthetic "Shadow Price" for the closed asset so you can continue to see projected levels based on the live CFD market.
Technical Explanation (The Math)
The indicator functions by calculating a dynamic ratio between the two instruments and using it to convert price levels.
Formulas
1. Calculate Ratio :
Ratio = Price(ETF) / Price(CFD)
2. Conversion :
- ETF Chart → CFD Price :
Equivalent CFD Price = Current ETF Price / Ratio
- CFD Chart → ETF Price :
Equivalent ETF Price = Current CFD Price × Ratio
Example (SPY vs US500)
- Scenario : You are trading on the SPY chart.
- Current Prices :
- SPY (ETF) = $500
- US500 (CFD) = $5000
- Step 1 : Calculate Ratio
- 500 / 5000 = 0.10
- Step 2 : Calculate Equivalent Price
- If SPY moves to $505 , what is the US500 equivalent?
- 505 / 0.10 = 5050
- The indicator will display "US500: 5050" on the label and scale.
Supported Pairs
SPY (AMEX) = US500
GLD (AMEX) = XAUUSD
SLV (AMEX) = XAGUSD
IWM (AMEX) = US2000
QQQ (NASDAQ) = NAS100
IBIT (NASDAQ) = BTCUSD
Settings
- Symbols : Customize the ticker symbols for each pair if your broker uses different names.
- Fixed Ratio (Closed) : Manually adjust the fallback ratio used when the ETF market is closed (default values provided).
- Visuals :
- Toggle Table, Labels, Scale, and Historical Lines on/off.
- Customize colors, text sizes, and positions.
- Right Offset (Bars from Current) : Adjusts how far back (from the current live bar) the Left Virtual Scale is drawn. Increasing this moves the scale further to the left.
- Historical Levels :
- Lookback Length : Number of bars to check for High/Low calculations (Default: 20).
Penunjuk Pine Script®
Penunjuk Pine Script®
MT360MT360 – Multi-Timeframe EMA 360 Trend Overview
MT360 is a clean and powerful multi-timeframe indicator based on the EMA 360, designed to give you an instant overview of market direction across multiple timeframes.
The indicator calculates the EMA 360 simultaneously for M1, M2, M5, M15, M30, H1, H4, and D1 and dynamically colors each EMA line depending on whether price is trading above or below it. This makes it easy to instantly identify bullish and bearish conditions across different timeframes.
Key features:
🟢🔴 Dynamic color changes per timeframe (fully customizable)
🏷️ Optional labels displayed directly on each EMA line
📊 LONG/SHORT table showing the trend status of all timeframes at a glance
🎛️ Extensive customization options (colors, position, transparency, text size)
👁️ Master toggle to quickly show or hide labels and the table
MT360 is ideal for:
Trend filtering for day trading and scalping
Quick multi-timeframe market analysis
Supporting directional bias decisions (LONG vs. SHORT)
⚠️ Disclaimer:
This indicator does not generate trading signals. It is intended purely for trend and market structure analysis. Use at your own risk.
Penunjuk Pine Script®
Trade KarnatakaHi friends
This a support and resistance calculate with help of privious week high low it works very good try it if are unavailable to mark support and resistance perfectly.
Penunjuk Pine Script®
Log % Step EngineDescription:
This indicator is a technical analysis tool designed to filter price noise using a logarithmic percentage-step algorithm. Unlike standard linear indicators, this script calculates price movement in geometric terms, ensuring consistent trend sensitivity across all price levels
How it works:
Logarithmic Logic: The indicator triggers a trend change only after the price moves by a specific percentage, calculated in log space. This is ideal for volatile assets like Bitcoin or growth stocks.
Automated Risk Management: Upon a signal, the script automatically identifies a dynamic Stop-Loss based on recent swing highs/lows and projects three Target Profit levels based on 1:1, 1:2, and 1:3 Reward-to-Risk ratios.
Features:
Adaptive Trend Line (Green for Bullish, Red for Bearish).
Visual Buy/Sell Labels with customizable offsets.
Real-time alerts for trend reversals and TP/SL hits.
Adjustable Target Line length for better chart planning.
Educational Disclosure & Risk Warning: This script is provided for educational purposes only. The signals are generated by a fixed mathematical formula and should not be interpreted as financial advice. Trading involves a high risk of capital loss. This tool is designed to help traders visualize risk management frameworks and should be used as part of a broader, verified trading strategy. Past performance does not guarantee future results.
Penunjuk Pine Script®
Multi-Sector Scanner [DYNAMC HOLDING COLORS]Multi-Sector Scanner
This professional-grade Pine Script indicator provides a comprehensive, real-time dashboard for monitoring 25 critical market sectors and their top-performing ETFs. It is designed for traders who need a "bird's-eye view" of market rotation, relative strength, and volume flow without flipping through dozens of charts.
The script identifies high-probability entries and exits by tracking consecutive price action and momentum thresholds, organizing the data into a clean, scannable table.
Key Features
Real-Time Sector Tracking: Monitors 25 diverse sectors including Tech (XLK), Semi (SOXX), Uranium (URA), Crypto (BLOK), and Traditional Finance (XLF).
Dynamic Visual Heatmap: * 🔥 BUY Signals: Triggered when a sector meets your strength and consecutive day requirements. The entire Top 5 Holdings cell and Signal column light up in vibrant green.
💀 SELL Signals: Triggered during multi-day weakness. These rows light up in deep red for immediate recognition.
⚠️ WATCH Signals: Highlights sectors starting to show momentum (amber/orange) but haven't yet met the "Consecutive Days" confirmation.
Smart Sorting: The table automatically pushes "BUY" signals to the top and "SELL" signals to the bottom, ensuring the most actionable data is always at eye level.
Relative Volume (RVOL): Displays volume flow relative to the 5-day average. Seeing 1.5x+ RVOL during a "WATCH" phase often front-runs a major sector breakout.
End-User Timezone Support: Includes a built-in selector for PST, EST, CET, and more, ensuring the "Last Update" timestamp reflects your local clock rather than exchange time.
Penunjuk Pine Script®
Round Number + Moving Average + Trend Analysis + Bollinger BandsWe are given a very long Pine Script that combines multiple indicators. Let's break down the components and then provide a description.
The script includes:
Bollinger Bands: With configurable length, standard deviation multiplier, source, colors, and line width. The bands are plotted only if the user chooses to show them.
Round Number Levels: This draws three sets of horizontal lines at round number intervals. Each set has its own rounding value, number of lines, colors for above and below the current price, line thickness, and text color for the labels.
Moving Average: This plots six moving averages (MA) of different lengths (5,10,20,50,100,200). Each MA can be set to one of three types (EMA, SMA, SMMA) and has customizable colors for when it is going up, down, or flat.
Trend Analysis Table: A table that shows the trend of each MA (up, down, flat) and a summary of the market condition (like STRONG BULL, BEARISH, etc.) based on the count of MAs in each direction.
Supply Demand System: This is a complex system that identifies supply and demand zones based on swing highs and lows. It also draws boxes for these zones, labels for price action (HH, LH, HL, LL), and marks Break of Structure (BOS) events. Additionally, it draws ITM/OTM levels for options trading (for NIFTY) based on the open price and configurable distances.
The script also includes a zigzag indicator to connect the swing highs and lows.
Given the complexity, the script is designed for TradingView and overlays all these components on the price chart.
Now, let's write a description for this script.
यह एक व्यापक ट्रेडिंग इंडिकेटर है जो कई तकनीकी विश्लेषण टूल्स को एक साथ जोड़ता है। यहां इसका विवरण दिया गया है:
📊 मुख्य विशेषताएं:
1. राउंड नंबर लेवल्स
तीन अलग-अलग राउंड नंबर स्तर (250, 500, 1000)
प्रत्येक स्तर के लिए अलग-अलग रंग, मोटाई और मात्रा
स्वचालित रूप से मौजूदा कीमत के आसपास के स्तर बनाता है
दाईं ओर या दोनों तरफ विस्तार योग्य
2. मूविंग एवरेज सिस्टम
6 अलग-अलग एमए: 5, 10, 20, 50, 100, 200
प्रत्येक एमए के लिए अलग प्रकार (EMA, SMA, SMMA) चुन सकते हैं
ट्रेंड के अनुसार रंग बदलते हैं (हरा = ऊपर, लाल = नीचे, बैंगनी = सपाट)
प्रत्येक एमए के लिए कस्टमाइजेबल रंग
3. ट्रेंड एनालिसिस टेबल
सभी 6 एमए की ट्रेंड स्थिति दिखाता है
बाजार की समग्र स्थिति (STRONG BULL, BEARISH, NEUTRAL, आदि)
बुलिश/बेयरिश प्रतिशत गणना
4 अलग-अलग पोजीशन पर टेबल दिखा सकते हैं
4. बोलिंगर बैंड्स
कस्टमाइजेबल लेंथ और स्टैंडर्ड डेविएशन
रंग और लाइन मोटाई समायोज्य
बैंड्स के बीच फिल कलर
5.सप्लाई-डिमांड सिस्टम
स्विंग हाई/लो के आधार पर सप्लाई और डिमांड जोन
ब्रेक ऑफ स्ट्रक्चर (BOS) लेबलिंग
ITM/OTM ऑप्शन लेवल्स
जिग-ज़ैग लाइन्स
ATR के आधार पर डायनेमिक बॉक्स साइज
🎯 उपयोग के मामले:
समर्थन/प्रतिरोध स्तर: राउंड नंबर स्तर महत्वपूर्ण समर्थन/प्रतिरोध बिंदु दिखाते हैं
ट्रेंड पहचान: कई एमए और ट्रेंड टेबल से ट्रेंड की दिशा पता चलती है
वोलैटिलिटी विश्लेषण: बोलिंगर बैंड्स से वोलैटिलिटी का पता चलता है
सप्लाई-डिमांड जोन: कीमत के संभावित रिवर्सल पॉइंट्स
ऑप्शन ट्रेडिंग: ITM/OTM लेवल्स से ऑप्शन स्ट्राइक चयन में मदद
⚙️ सेटिंग्स:
स्क्रिप्ट को 5 मुख्य सेक्शन में विभाजित किया गया है:
Bollinger Bands Settings
Round Number Levels
Moving Average Settings
Supply Demand Settings
Trend Analysis Settings
📈 विज़ुअल फीचर्स:
कलर कोडिंग सिस्टम
कस्टम लेबल और टेक्स्ट
टेबुलर डिस्प्ले
बॉक्स और लाइन ड्राइंग
डायनेमिक अपडेटिंग
यह इंडिकेटर मुख्य रूप से ट्रेडिंग के लिए डिज़ाइन किया गया है लेकिन किसी भी ट्रेडिंग इंस्ट्रूमेंट पर काम कर सकता है। यह शॉर्ट-टर्म और लॉन्ग-टर्म दोनों ट्रेडर्स के लिए उपयोगी है
Penunjuk Pine Script®
Strategi Pine Script®
CopyPipe Signal Connector🚀 Turn TradingView Alerts into Automatic MetaTrader Trades
Stop copy-pasting signals. This indicator generates **webhook-ready alerts** that execute directly on your MT4 or MT5 — hands-free.
---
### 🎯 How It Works
1. **Add this indicator** to any chart
2. **Set your webhook URL** (from CopyPipe.io) in the alert
3. **Conditions trigger → Trade executes** on MetaTrader automatically
Your TradingView does the analysis. Your MetaTrader does the execution. You do... whatever you want.
---
### 📊 Built-In Strategies
Choose from 4 ready-to-use strategies:
- **RSI Reversal** — Classic oversold/overbought entries
- **EMA Cross** — Trend-following momentum plays
- **Breakout** — Catch support/resistance breaks
- **Custom** — RSI + EMA confluence for filtered entries
Or use this as a **template** and add your own logic.
---
### ⚙️ Features
✅ Webhook-formatted alerts (JSON ready)
✅ Customizable lot size
✅ Built-in SL/TP calculation
✅ Works on any symbol
✅ Clean visual signals on chart
✅ Info panel with live RSI + signal status
---
### 🔗 Setup with CopyPipe (Free Beta)
1. Sign up at **copypipe.io/beta** (free during beta)
2. Download the EA for MT4 or MT5
3. Copy your webhook URL from the dashboard
4. Create an alert on this indicator → paste webhook URL
5. Done. Alerts now auto-trade.
---
### 📝 Alert Message Format
The alerts output clean JSON that CopyPipe understands:
```json
{
"action": "BUY",
"symbol": "BTCUSD",
"lot_size": 0.1,
"sl": 74500,
"tp": 78000
}
```
Works with the free CopyPipe tier. No API coding required.
---
### ⚠️ Risk Disclaimer
This indicator is a **tool**, not financial advice. Backtest thoroughly. Start with small positions. You are responsible for your own trades.
---
### 💬 Feedback Welcome
Drop a comment if you have questions or feature requests. Building this for the community.
**Happy trading!** 🎯
---
Penunjuk Pine Script®
Vilantro Flux Capacitor (Waddah Attar Explosion (WAE))The Vilantro Flux Capacitor is a significant evolution of the classic Waddah Attar Explosion (WAE). While the original WAE is legendary, it was built for a slower era. Modern markets—especially Crypto and Gold (XAUUSD)—are faster, noisier, and more prone to "fake-outs."
This indicator rebuilds the engine from the ground up to solve the two biggest problems traders face: Lag and Choppy Markets.
Why Use This Indicator?
Most trend indicators are too slow (getting you in late) or too sensitive (getting you killed in the chop). The Vilantro Flux solves this by combining Three Technologies:
Speed (TEMA Engine): We replaced the standard MACD/EMA smoothing with TEMA (Triple Exponential Moving Average). This reduces lag significantly, giving you entries 1-2 bars earlier than standard indicators.
Protection (ADX Chop Filter): This is the game-changer. If the trend strength (ADX) is below the threshold, the bars turn GRAY. This tells you to sit on your hands and avoid trading during low-momentum sideways chop.
Validation (Volume Gate): A breakdown without volume is often a trap. This script automatically "dims" (fades) the signal bars if the volume is below the 20-period average.
Key Features
🚦 Smart Color Coding:
Neon Green/Red: Strong, valid trend.
Gray: Market Chop (No Trade Zone).
Faded/Transparent: Low Volume (Caution).
⚡ TEMA-Based MACD: Faster reaction to price reversals.
📊 Live InfoBox: A professional dashboard in the corner displaying real-time Trend status, Explosion power, and ADX strength.
🛡️ Hull DeadZone: Uses Hull Moving Average for the "Dead Zone" calculation, providing a smoother and more accurate baseline noise filter.
How to Trade
🔹 The BUY Signal (Long)
Bar Color: Must be Bright Green.
Explosion: The bar must cross ABOVE the Gold Line (The Explosion Threshold).
Confirmation: The bar must be outside the Blue DeadZone.
No Chop: Ensure the bar is NOT Gray.
🔻 The SELL Signal (Short)
Bar Color: Must be Bright Red.
Explosion: The bar must cross ABOVE the Gold Line.
Confirmation: The bar must be outside the Blue DeadZone.
No Chop: Ensure the bar is NOT Gray.
Settings Guide
Sensitivity: Controls how sensitive the MACD impulse is. (Default: 150)
Filter Low Volume: If enabled, bars with weak volume become transparent.
ADX Threshold: The level below which the market is considered "Choppy." (Default: 10). Raise this to 20 or 25 for stricter filtering.
DeadZone Length: Controls the baseline noise filter.
Credits & Attribution
Original Concept: Waddah Attar (WAE).
Modernization & Code: Vilantro (www.vilantro.com).
Disclaimer: This tool is for educational purposes. Always manage your risk.
Penunjuk Pine Script®
CopyPipe Trading Dashboard - Multi-Indicator Signal Panel
🚀 CopyPipe Trading Dashboard
A **free, all-in-one trading dashboard** that displays key indicators and market information in a clean, easy-to-read panel on your chart.
#### ✨ Features:
📊 **Signal Summary Panel**
- Overall market bias (Bullish/Bearish/Neutral)
- Real-time indicator readings
- Current trading session display
- Daily high/low levels
📈 **RSI Analysis**
- Customizable period (default 14)
- Overbought/Oversold detection
- Color-coded status
📉 **MACD Tracking**
- Standard 12/26/9 settings (customizable)
- Bullish/Bearish crossover detection
📏 **Moving Averages**
- Fast & Slow MA with trend detection
- Choose between SMA or EMA
- Visual crossover on chart
🌍 **Trading Sessions**
- London, New York, Asia, Sydney
- Subtle background highlighting
- Know when the big players are active
📐 **Key Levels**
- Previous day's high/low
- Previous close
- Great for support/resistance
#### 🔔 Built-in Alert Templates
This indicator comes with **pre-configured alert conditions** formatted for webhook automation:
- MA Bullish/Bearish Cross
- RSI Overbought/Oversold
- Strong Confluence Signals (multiple indicators aligned)
Alert messages are formatted as **JSON** - perfect for connecting to trading automation platforms.
---
#### ⚡ Want to Auto-Execute These Signals?
**CopyPipe** connects your TradingView alerts directly to MetaTrader 4/5.
✅ Set up alerts on this indicator
✅ Signals execute automatically in MT4/MT5
✅ No coding required
✅ Works with any broker
**Learn more:** copypipe.io
---
#### 📖 How to Use
1. Add the indicator to your chart
2. Customize settings in the indicator panel
3. Position the info panel where you prefer
4. Set up alerts using the built-in conditions
5. (Optional) Connect to CopyPipe for auto-execution
#### ⚙️ Settings
- **Dashboard Settings:** Panel position, size, visibility
- **RSI Settings:** Length, overbought/oversold levels
- **MACD Settings:** Fast, slow, signal periods
- **Moving Averages:** Type (SMA/EMA), lengths
- **Sessions:** Toggle which sessions to highlight
- **Key Levels:** Daily high/low, previous close
- **Colors:** Customize bullish/bearish colors
---
Made with ❤️ by the CopyPipe team
copypipe.io
Penunjuk Pine Script®
Trade Session Tracker [theUltimator5]Trade Session Tracker is a unique indicator designed to isolate each discrete trading session on the US stock exchanges and display a cumulative running price for each session so you can visualize how each session performs over long periods of time.
This indicator allows you to unlock a potentially unique and powerful trading strategy that exploits returns during lower liquidity periods through trend analysis. Certain stocks tend to move in the same direction during specific windows in the day, and now you can find them yourself.
This indicator only works properly on the daily timeframe. Other timeframes are not supported.
The sessions that this indicator supports are:
Intraday (Market open to market close)
After Hours (Market close until 20:00 eastern)
Overnight (20:00 eastern through 04:00 eastern the next day)
Pre-market (04:00 eastern through market open)
Close-to-open (market close to the following market open)
There are two plot modes:
Cumulative — chained returns since chart start (synthetic continuous price line)
Daily Change — single-session return (refreshes each new trading day)
!IMPORTANT!
This indicator only supports symbols that trade on the overnight markets through the BOATS ATS. This includes hundreds of ticker symbols, but the majority of smaller cap stocks or non-equity symbols are not supported.
Some symbols offer dividends, and the "ADJ" button at the bottom right corner of the chart must be disabled for the data to display properly, or else you will get extremely skewed results. Notorious symbols for this are SPY and AAPL.
How it works:
Standard chart data only calculates sessions through open, close, and previous close and cannot isolate out pre-market and after hours price action.
With the addition of overnight data, we now have a separate set of open and close values which can be pulled.
To calculate after hours price action, we use the opening price of the overnight venue divided by the close price earlier that day.
To calculate the pre-market price action, we divide the open price by the previous overnight close price.
Overnight price is simply calculated by overnight close divided by overnight open.
There is a table that can be toggled off and repositioned that shows the current settings.
Here is an example of close-to-open and intraday
Here is an example of overnight returns
Penunjuk Pine Script®
Poseidon [hide System]English Description
Poseidon Ultimate Fix is a sophisticated hybrid trading strategy designed to adapt seamlessly to changing market conditions. Its core strength lies in its ability to automatically distinguish between trending and ranging markets using the Hybrid Logic Engine, which relies on the Average Directional Index (ADX). When the market shows strong directional momentum (ADX > 25), the system activates Trend Mode. In this phase, it utilizes a Supertrend-based logic to follow the market flow, entering trades on breakouts and holding positions until the trend reverses, thereby maximizing profit potential during volatile periods.
Conversely, when volatility is low and the market lacks clear direction (ADX ≤ 25), the system switches to Range Mode. Here, it employs Bollinger Bands to execute mean reversion strategies, buying at the lower band and selling at the upper band to capture smaller, consistent gains within the consolidation. A critical safety feature of this system is its Emergency Escape protocol. If a sudden surge in volatility occurs while a range position is open—threatening a breakout against the trade—the system immediately liquidates the position and switches to a trend-following entry. This mechanism effectively neutralizes the risk of catastrophic losses often associated with reversal strategies during market explosions. Furthermore, the Precise Accounting feature ensures that the dashboard metrics, including Profit Factor and Win Rate, are calculated based on real-time equity changes, providing an accurate reflection of the system's performance without mathematical discrepancies.
日本語による説明
Poseidon Ultimate Fix は、刻々と変化する相場環境に完全適応するために設計された、高度なハイブリッド型トレードシステムです。このシステムの最大の特徴は、ADX(平均方向性指数)を用いたハイブリッド・ロジック・エンジンにあります。これにより、相場が「トレンド状態」にあるか「レンジ状態」にあるかを自動的かつ正確に判別します。強い方向感が出ている局面(ADXが25以上)では、システムは即座にトレンドモードを選択します。ここではスーパートレンド指標に基づいた順張りロジックが作動し、トレンドの発生に合わせてエントリーを行い、相場が反転するその瞬間までポジションを保有し続けることで、利益の最大化を狙います。
一方で、相場の方向感が失われ、ボラティリティが低下した局面(ADXが25以下)では、システムはレンジモードへと切り替わります。このモードではボリンジャーバンドを活用した逆張り戦略を展開し、バンドの下限で買い、上限で売ることで、ボックス相場の中から着実に利益を積み上げます。さらに、このシステムには**緊急脱出機能(エマージェンシー・エスケープ)**という重要な安全装置が搭載されています。もしレンジ逆張りポジションを保有中に突発的な暴騰や暴落が発生した場合、システムは即座に損切りを行い、間髪入れずにトレンド方向への順張りエントリーに切り替えます。これにより、レンジ手法特有の「コツコツ勝ってドカンと負ける」リスクを排除します。加えて、完全な会計処理機能により、ダッシュボード上の勝率やプロフィットファクターは実際の口座残高の増減と1円の狂いもなく一致し、極めて信頼性の高いパフォーマンス分析を提供します。
Penunjuk Pine Script®
MoE [Ensemble ML]This indicator uses a K-Nearest Neighbors (KNN) machine learning algorithm to predict probable price ranges. It runs multiple specialized "Expert" models simultaneously and outputs predictions only when all experts reach unanimous agreement.
HOW IT WORKS
The core engine identifies historical bars that are most similar to the current market conditions using the following features:
- RSI (Momentum)
- Volatility Ratio (Normalized ATR)
- Gap Analysis
- Rate of Change (ROC)
- Relative Volume (RVOL)
- ADX (Trend Strength)
- Weekly RSI (Deep Context)
- US CPI and Fed Funds Rate (Macroeconomic Regime)
- DXY and VIX (Inter-Market Correlation)
Five specialized "Expert" profiles are configured with different feature weights and parameters:
1. Trend Expert - Optimized for breakouts and trend continuation.
2. Reversion Expert - Optimized for mean reversion and turning points.
3. Volume Expert - Focused on liquidity and volume anomalies.
4. Macro Expert - Filters by economic regime (inflation and interest rates).
5. Inter-Market Expert - Considers Dollar Index and Volatility Index correlation.
Each Expert runs the KNN algorithm independently. Predictions are aggregated using confidence-weighted voting.
MULTI-TIMEFRAME CONSENSUS
The indicator runs the full Expert ensemble on three configurable timeframes (default: 1H, 4H, 1D). A BULL or BEAR signal is only generated when:
- All 5 Experts on Timeframe 1 agree.
- All 5 Experts on Timeframe 2 agree.
- All 5 Experts on Timeframe 3 agree.
This results in very few, high-conviction signals.
HOW TO USE
1. Apply the indicator to high-liquidity assets (indices, major forex pairs, gold, crypto majors).
2. Use the prediction box as a probabilistic range for the selected timeframe.
3. Look for BULL or BEAR labels as potential entry signals.
4. Customize timeframes and enable/disable individual Experts in the settings.
5. Set up alerts using the built-in alert conditions for BULL and BEAR signals.
SETTINGS
- Timeframe 1/2/3: Configure the three timeframes for MTF consensus.
- Require MTF Consensus: Toggle between strict multi-timeframe mode and single-timeframe mode.
- Expert Toggles: Enable or disable individual Expert models.
- Visual Customization: Adjust box color, transparency, and line style.
IMPORTANT NOTES
- This indicator does not repaint. Signals are generated only on confirmed bars.
- Economic data (CPI, Fed Funds) is sourced from TradingView's request.economic function and may have delays.
- This is a statistical tool, not financial advice. Past performance does not guarantee future results.
Penunjuk Pine Script®






















