Fibonacci Auto Retracement & HTF candles ReferenceAdvanced Higher Timeframe (HTF) Candle & Fibonacci Viewer
Overview:
The Advanced HTF Candle & Fibonacci Viewer is a professional Trading View indicator designed to help traders overlay higher timeframe price structures onto lower timeframe charts. By combining daily candle analysis with precise Fibonacci retracement levels, this tool allows traders to identify critical support and resistance zones, potential breakouts, and retracement opportunities without switching charts.
Special Thanks:
This script includes a small part of coding inspired by Zeiierman, whose work on HTF analysis provided the foundation for visualizing higher timeframe structures. Full credit to Zeiierman for their invaluable contribution to the Trading View community.
Key Features:
1. Multi-Day HTF Range Display
Automatically displays high and low of 1–7 previous days.
Highlights candle bodies and wicks for clear structure visualization.
Ideal for spotting daily ranges and breakout levels.
2. Dynamic Fibonacci Levels
Standard levels: 0%, 11.8%, 23.6%, 38.2%, 50%, 61.8%, 76.4%, 88.2%, 100%.
Optional mid-level lines for intraday support/resistance identification.
Levels adjust automatically to reflect price action direction.
3. Customizable Labels & Colors
Adjustable text size, color, transparency, and offset.
Fully customizable candle and Fibonacci colors.
Mid-level lines can be shown or hidden for a cleaner look.
4. Persistent Levels
Levels remain until the next trading session or breakout, helping track trends and retracements consistently.
5. Multi-Timeframe Optimization
Works on any chart timeframe, from 1-minute to weekly charts.
Provides higher timeframe insight while trading on lower timeframes.
Why Traders Love This Indicator:
View higher timeframe action without switching charts.
Identify high-probability entry and exit zones.
Combine with other indicators for complete market analysis.
Useful for swing traders, day traders, and scalpers alike.
Customization Options:
Number of previous days (1–7)
Show/hide mid-level lines
Show/hide labels
Customize label size, color, and offset
Customize Fibonacci and candle colors
Ideal Use Cases:
Swing Trading: Identify daily key levels for entry, exit, and stop-loss.
Day Trading: Use HTF ranges on intraday charts to spot breakouts and reversals.
Fibonacci Analysis: Locate retracement zones efficiently.
Trend Confirmation: Validate trades with higher timeframe structure.
Summary:
The Advanced HTF Candle & Fibonacci Viewer is a powerful tool for traders seeking clarity, structure, and precision. With higher timeframe insight overlaid on active charts and proper credit to Zeiierman for their HTF coding contribution, this indicator helps traders make informed, confident decisions in any market.
Multitimeframe
Lord Mathew ATSThe Smart Money Structure & Pattern Analyzer is a complete, all-in-one visual trading system that brings together every essential element of Smart Money Concepts (SMC), ICT methodology, and candlestick psychology into one powerful indicator.
It is designed to help traders instantly understand the market’s structure, liquidity flow, and potential turning points without switching tools or manually marking charts. Whether you trade forex, indices, crypto, or commodities, this indicator automatically identifies where institutional activity, imbalances, and price inefficiencies occur in real time.
With its advanced algorithm, it plots market structure shifts, equal highs and lows, liquidity zones, order blocks, fair value gaps (FVGs), and previous week and day levels (PWO, PWH, PWL, PWC, PDO, PDH, PDL, PDO). It also integrates a deep candlestick recognition engine that detects over ten classic and advanced candle formations including engulfing patterns, dojis, hammers, shooting stars, morning/evening stars, and spinning tops to provide precise confirmation at critical points of interest.
This indicator isn’t just a tool it’s a complete market map that helps traders visualize how institutional order flow and candlestick sentiment interact.
Core Features
📊 Market Structure Detection:
Automatically marks swing highs/lows, Break of Structure (BOS), and Change of Character (CHOCH) in real time.
💧 Liquidity Mapping:
Highlights equal highs/lows and liquidity grabs, showing where price is likely to target before a reversal or continuation.
🧱 Order Block Visualization:
Displays the last bullish or bearish candle before an impulsive displacement, acting as a potential institutional entry zone.
⚡ Fair Value Gap (FVG) Scanner:
Detects and highlights imbalances where price moved too fast, helping you identify high-probability retracement areas.
🕯️ Candlestick Pattern Recognition:
Recognizes key reversal and continuation patterns (engulfing, hammer, shooting star, doji, morning/evening star, etc.) in real time.
📅 Institutional Reference Points:
Plots previous week & day open (PWO, PDO), previous week & day high (PWH, PWH), previous week & day low (PWL, PDL), previous week & day close (PWC, PDC) and optionally previous day levels to help frame bias.
🎨 Customizable Design:
Toggle any feature, change colors, and set alerts when multiple Smart Money signals align for cleaner, faster decision-making.
How It Works
Add the indicator to your chart on any timeframe or market.
The algorithm automatically detects structure, liquidity, and imbalance zones.
Candlestick patterns are highlighted when they form near high-probability areas (like OBs or FVGs).
When confluence occurs such as a liquidity grab, FVG fill, and bullish engulfing candle—the indicator provides a visual signal zone for your confirmation-based entries.
You can refine your trades using higher-timeframe bias (HTF order flow) and lower-timeframe execution (LTF confirmation).
Best For
Traders using ICT, Smart Money Concepts, or price-action systems.
Intraday and swing traders looking for clear, data-driven chart structure.
Traders who want to simplify confluence analysis and focus on precision execution.
Why It Stands Out
Unlike standard candlestick or pattern scanners, this indicator merges institutional market logic with technical candle behavior, allowing traders to see where smart money might be entering or exiting positions.
It’s not about random signals it’s about context, structure, and confirmation.
Every feature in this indicator is built around the principle of liquidity engineering:
price creates liquidity, grabs it, and moves toward imbalance or order flow efficiency.
By merging that institutional logic with candlestick patterns, this tool gives traders an edge in recognizing not only where to trade but why price is reacting in that exact area.
Disclaimer
This indicator is intended for educational and analytical use. It does not provide financial advice or guaranteed trading results. Always backtest and manage your risk responsibly.
Block-Based Trend Breakout (UTB/DTB) & S/R ZonesThis indicator is designed to detect potential trend reversals or volatility bursts by analyzing price action structured into "blocks." Its primary goal is to capture the earliest signals that a defined trend structure is weakening or breaking.
Signal Generation:
🟢 DTB (Downtrend Breakout): When a confirmed downtrend is identified (e.g., price has been falling for 2 blocks), the indicator waits for the price to break above the highest high of the last completed block in that trend. When this break occurs, it signals a potential bullish reversal with a green DTB triangle below the bar.
🔴 UTB (Uptrend Breakdown): When a confirmed uptrend is identified (e.g., price has been rising for 2 blocks), the indicator waits for the price to break below the lowest low of the last completed block. When this break occurs, it signals a potential bearish reversal with a red UTB triangle above the bar.
🛠️ Key Settings
Block Size (bars): The number of bars in each block used to analyze the trend structure. Lower values track short-term trends; higher values track long-term trends.
Trend Confirmation (steps): The minimum number of consecutive blocks required to "confirm" a trend.
Tolerance: Allowed Off-Trend Steps: The number of "noise" blocks allowed while confirming a trend.
Show Support/Resistance Zones: Toggles the histogram-based S/R zones on or off.
S/R Lookback (blocks): Determines how many blocks to look back for calculating S/R zones.
S/R Zone Width (in ATR): Sets the thickness of the S/R zones, denominated in ATRs.
If you find this useful please reach out and let me know how you use it as it's fairly unique... and thus different than anything I've ever seen or used.
MTF VFSMA SqueezeThe purpose of this indicator is to detect a market squeeze (lack of volatility) period and to identify the initiation and direction of the breakout.
It is based on Variety-Filtered, Squeeze Moving Averages indicator.
The original indicator created by Loxx identifies both squeeze zones and breakouts/breakdowns. A squeeze zone is defined when price is below a specific volatility threshold calculated as the difference between a fast- and slow-moving average and filtered using ATR- or Pips-based threshold.
It operates on a single timeframe and includes Loxx's Expanded Source Types, signals, alerts, etc. and 35+ Loxx's Moving Averages. These adaptive, minimal-lag indicators are built upon advanced mathematical and signal processing DSP techniques that far surpass traditional Moving Averages.
This currently published indicator includes the following main developments:
Squeeze Detection using Percentile Rank Method
It detects the Squeeze by applying a Percentile Rank to the historical distance (spread) between the two MAs.
MA Spread: The basis for Squeeze detection is the distance between the two moving averages.
Percentile Rank: A statistical measure that indicates the percentage of past Spread values within the set lookback period that are lower than the current MA Spread.
Squeeze State: A Squeeze occurs when the Percentile Rank is below the set Squeeze Threshold (%)).
Example: If the threshold is 20% and the Rank is 15%, it means the MA Spread is in its tightest 15% range, below the set threshold. Therefore, the condition is currently met.
Goal: Objective volatility measurement that adapts to market conditions.
Squeeze Duration Filter
A key condition for a Breakout signal is that the MAs must have remained in the Squeeze zone for a specified minimum duration.
Goal: To filter out market noise and False Breakouts.
Multi-Timeframe (MTF) Confluence
Multi-Timeframe trend and squeeze monitoring for 3 timeframes (TFs).
Provides confirmation using the MA status from two higher timeframes (TF2, TF3).
Goal: Trend and momentum confirmation from a broader market context.
Signals Only on Bar Close?
By selecting the signalOnClose parameter to enabled, it is possible to avoid repainting on the chart TF. If it is checked, all events on the chart (L/S signals, Squeeze Start/End, MA color change) will only appear after the bar has closed, preventing repainting. Higher TF events remain in real-time.
Goal: To increase the reliability of signals.
Multi-Level Alerts and Info Panel
Comprehensive, confluence-weighted alerts and real-time status display.
Enhanced Alerts based on multi-timeframe confluences. Alerts are ready to enable/disable for Any alert() function call and ready for watchlists. Alert Frequency is also configurable in Inputs window. „Once per bar close” is the most reliable for signals. „Always” or „Once per bar” alert frequencies may generate temporary signal alerts.
Please note that even if "Once per bar close" is selected as alert frequency, this only applies to the chart TF, and TF2 and TF3 status may be modified until the close of the relevant candle.
Goal: Transparent decision-making.
Other Improvements
Unlike the original indicator, the coloring of the MA curves on the chart depends on the relative positions of the fast MA and slow MA. The curves are colored bullish when the fast MA is above the slow MA, bearish when the opposite is true, and neutral in the squeeze zone.
Data Window with Squeeze Start/End, Buy/Sell, Status, Squeeze Percentile etc. on all 3 TFs.
Ready for Pine Screener.
Please be aware that currently only the chart TF is configurable in Pine Screener, TF2 and TF3 are set to their default values.
Pine Script® version 6.
Limitations
When setting the indicator parameters, please take into account the limitations of TradingView. (Lookback period of Percentile Rank and Moving Averages periods, Execution time limit (timeout) etc.)
For example, if a NaN% message appears as the Percentile Rank value, please reduce the lookback period.
How to use it
This indicator is a Breakout-following system, but it can also be the basis for Range Trading.
The Setup Phase
This is the preparation stage. The indicator signals low volatility as the bands tighten.
Squeeze Dynamics: Monitoring the Squeeze Duration is essential. The longer the price spends in the Squeeze zone, the more likely the resulting breakout will be powerful.
The Signal Phase (Breakout)
The Breakout signal appears on the bar where the Percentile Rank first crosses above the Squeeze threshold, indicating a sudden return of volatility.
Further condition: Meets the SqueezeDuration filter.
Breakout direction: Bullish: Fast MA > SLow MA, Bearish: Fast MA < SLow MA
Applying MTF Confluence:
The most promising trades that are in line with higher timeframes:
Total Confluence: Chart TF Signal + TF2 Bullish/Bearish + TF3 Bullish/Bearish. This is the strongest, highest-probability setup.
Simple signal: Only the Chart TF signals. This should be handled with caution, as the higher timeframes (TF2, TF3) might still be in a Squeeze or in a conflicting state.
Alternative Use: Range Trading within the Squeeze Bands
If the market has low volume, the squeeze bands can be used as dynamic support/resistance for bounces off the edges of the range:
The probability of a successful range trade increases if the boundaries of the squeeze zone have only been touched a few times previously. Each touch weakens the zone boundaries and increases the chance of a Breakout.
Suggested Tactics and Risk Management
When using Breakout strategies, strict risk management and the use of confirmations are essential:
Volume Confirmation: A strong, above-average volume Breakout candle increases the probability of a successful breakout.
False Breakout: If the breakout occurs on low volume, there is a higher chance of a pullback and a False Breakout.
Entry After Retest: A safer entry: wait until the price breaks out, but only enter if it returns to the squeeze zone and bounces back from there. This reduces the risk of a False Breakout trap.
The Risk of False Breakout:
False Breakouts are part of any Breakout strategy. Always have a strict Stop Loss set.
Reversal: Be prepared for the possibility that after a Breakout signal (e.g., Long), the price returns to the zone and then breaks out in the opposite (Short) direction.
Please note that all technical analysis and trading signals only indicate probabilities. Always use your own risk management rules and follow market regulations.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice.
Trading involves substantial risk of loss and is not suitable for every investor. Past performance shown in examples is not indicative of future results.
The indicator provides signals and calculations, but trading decisions are solely your responsibility. Always:
Test strategies on paper before using real money
Never risk more than you can afford to lose
Understand that all trading involves risk
Consider seeking advice from a licensed financial advisor
The publisher makes no guarantees regarding accuracy, profitability, or performance. Use at your own risk.
Custom Time Separators + Hourly Open LinesThis Indicator is for those who wants to keep the chart clean and Study 1HR Profile.
best USE is : 1HR line Projected and 1 HR separator is plotted on the chart
i Use 4 Hrs. plotted and using for CRT Method to identify
SWEEP of C1 by C2 and, Entering ON C2 when its Trading back up,
or on your comfort of confirmation with MSS + FVG / OB
Lot of ICT Model can be traded and used with this including
PO3
Lumi trades : 1HR PO3
Ttrades CRT and Many more,
let me know if want to add anything if i think its useful we can add.
cheers
✨ Time × Price Complete Square — XAUUSD 3min✨ Time × Price — XAUUSD 3min
🧩 Overview
The Time × Price indicator visualizes the relationship between price movement and time cycles to help identify potential confluence zones.
By detecting pivot points (swing highs and lows) and applying a geometric cycle structure inspired by the Square of 9 / Gann methodology, it highlights where price and time harmonize.
This tool is designed for traders who want to observe market rhythm and cyclical symmetry rather than simple trend signals.
⚙️ Features
Automatic pivot detection (adjustable sensitivity)
Dynamic Time × Price rings showing cycle evolution
🟦 Blue → new cycle starts
🟨 Yellow → equilibrium phase
🟥 Red → cycle completion
Optional alert when a cycle completes
Time and price axis guides for clearer confluence visualization
🔍 Parameters
Parameter Description
pivotLen Length for detecting swing points. Higher values smooth out smaller fluctuations.
baseCycle Base cycle period that defines the ring spacing.
alertOn Enables or disables alert on cycle completion.
💡 How to Use
Apply on XAU/USD 3-minute to 15-minute charts for optimal responsiveness.
Observe when a new blue ring forms — it marks the start of a new cycle.
As rings shift toward red, a time-price cycle is approaching completion.
Combine with RSI, MACD, or momentum indicators to confirm possible reversals near ring intersections.
Use alerts to monitor key cycle completions automatically.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It does not provide financial advice or trade recommendations.
All trading decisions should be made at your own discretion and risk.
🧠 Concept
The concept is based on the idea that “time and price resonance drives market turning points.”
By adapting Gann-style time-price geometry to intraday timeframes, the indicator provides a visual structure to interpret rhythm and balance in market motion.
✅ Compliant with TradingView House Rules
No investment or profitability claims
No use of third-party or proprietary code
Transparent explanation of features and logic
Educational purpose clearly stated
Multi-Anchor VWAP | Trade Symmetry🧩 Multi-Anchor VWAP
Description:
Dynamic VWAP anchored to Session, Week, Month, Quarter, and Year — all in one view.
Full Description:
This indicator plots multiple VWAPs (Volume-Weighted Average Prices) simultaneously — each anchored to a different time period:
Session, Week, Month, Quarter, and Year.
💡 Ideal for traders who track institutional mean reversion and liquidity zones across multiple timeframes.
Features
✅ Session, Weekly, Monthly, Quarterly, and Yearly Anchored VWAPs
✅ Independent color and visibility controls for each anchor
✅ Adjustable label position and size
✅ Option to hide VWAPs on Daily or higher charts
✅ Clean and efficient performance
This tool helps you visualize volume-weighted mean levels where price often reacts — offering a clear map of bias and equilibrium across all major time horizons.
Multi-Timeframe Supertrend [TCMaster]📊 SuperTrend Multi-Timeframe System (TCMaster)
This indicator combines multi-timeframe SuperTrend signals into a single overlay chart, allowing traders to visualize trend alignment across different timeframes instantly.
It’s designed to help identify high-probability trend continuation and reversal zones by synchronizing multiple SuperTrend layers.
🔍 Key Features
✅ Up to 4 independent SuperTrend layers, each with customizable parameters and timeframes
✅ Multi-timeframe analysis directly on the same chart (no need to switch timeframes)
✅ Instant alerts when a SuperTrend flips from uptrend to downtrend or vice versa
✅ Color-coded background for quick trend visualization
✅ Works on all markets and timeframes
⚙️ Inputs
ATR Length & Multiplier for each SuperTrend
Timeframe selection for each layer
Background color enable/disable toggle
Real-time alert options for trend change events
⚠️ Notes
The indicator is non-repainting and works in real time.
Use it as a trend confirmation tool combined with your existing trading strategy.
This script is for educational and informational purposes only, not financial advice.
💡 Recommended Use
Combine with oscillators (like RSI or Stochastic) or volume filters to improve entry confirmation.
Best for traders who follow multi-timeframe confluence and momentum-based setups.
Weekend GapsIdentify unfilled gaps between the close of one candle and the opening of the next. Optimised for weekends by highlighting friday gaps with a triangle and bold horizontal ray. Depending on the price action required to fill it, they are marked in red or green.
RSI Candle 12-Band SpectrumExperience RSI like never before. This multi-band visualizer transforms relative strength into a living color map — directly over price action — revealing momentum shifts long before traditional RSI signals.
🔹 12 Dynamic RSI Bands – A full emotional spectrum from oversold to overbought, colored from deep blue to burning red.
🔹 Adaptive Pulse System – Highlights every shift in RSI state with an intelligent fade-out pulse that measures the strength of each rotation.
🔹 Precision Legend Display – Clear RSI cutoff zones with user-defined thresholds and color ranges.
🔹 Multi-Timeframe Engine – Optionally view higher-timeframe RSI context while scalping lower frames.
🔹 Stealth Mode – Borders-only visualization for minimal chart impact on dark themes.
🔹 Complete Customization – Adjustable band levels, color palettes, and fade behavior.
🧠 Designed for professional traders who move with rhythm, not randomness.
Mandelbrot Fractal DimensionThe Mandelbrot Fractal Dimension (D) measures the information density and path complexity of price movements. It quantifies how much a price path fills the space between its starting and ending points:
D ≈ 1.0 : Strong trending behavior (minimal complexity, high predictability)
D ≈ 1.5 : Random walk behavior (maximum complexity, no structure)
D > 1.5 : Mean-reverting behavior (high complexity, bounded movement)
Reference the given link for documentation .
Custom Session Background Highlighter (Asia / London / NY)This was something i am used to using with Motivewave, and did not see a good one with TV. You can set any time frame, and change the background color to any color you want. I like to have a lightly different color background for Asia (6pm to 3am),, London, (3am to 9:30 am) and NY (9:30am to 5 pm). You can set your time as you wish, and change the colors as you like. This was created with the help of ChatGPT and seems to be working perfectly fine, but if you encounter any issues copy and paste the code to chatgpt and ask to revise it as needed.
Candle Close IndicatorCandle Close IndicatorDescription:
Simple indicator for alerts on candle closes in a selected timeframe. Sends a concise message: " - candle close - price " (e.g., "solana - 1 H candle close - price 187.2"). Ideal for multi-timeframe trading without noise.Key Features: Alerts: Only ticker, timeframe & close price. Uses alert.freq_once_per_bar_close.
Visuals: Optional markers & close price line.
Table: Compact info panel (timeframe, status, last close, symbol).
Compatibility: Pine v5, all assets.
Instructions: Add to chart & set timeframe (default: 15m).
Create alert with "Candle Close" condition.
Enable markers for visuals if desired.
Time & Session Dividers### indicator Summary
This indicator is a powerful utility designed to help you visualize time-based market structure by drawing customizable vertical lines on your chart. It allows you to clearly mark the beginning of new timeframes (like hours, days, or weeks) and highlight specific trading sessions or time slots (like the London open or a news event).
It comes with **6 independent dividers** that you can configure to your exact needs:
* **3 Timeframe Dividers**
* **3 Custom Time Slot Dividers**
### Key Features
* **Timeframe Separators:** Set up to 3 different higher timeframes (e.g., 1H, 4H, 1D). The indicator will automatically draw a vertical line at the start of each new bar for that timeframe, helping you easily see hourly, daily, or weekly boundaries.
* **Custom Time Slots (Sessions):** Define up to 3 specific time windows (e.g., "09:30-16:00" for the New York session). The indicator will draw a line at the **start** of this session and another line at the **end**, allowing you to isolate specific periods of market activity.
* **Full Customization:** Each of the 6 dividers is fully independent and can be customized with:
* A simple toggle to turn it on or off.
* A unique color.
* A line style (Solid, Dotted, or Dashed).
* A toggle to show or hide its text label.
* **Smart Labels:** Labels for timeframe dividers display the timeframe (e.g., "4H"), while labels for time slots automatically format to show the precise start or end time (e.g., "09:30" and "16:00").
### How to Use
1. Add the "Timeframe Vertical Lines" indicator to your chart.
2. Open the indicator's **Settings** panel.
3. **To add a timeframe line (e.g., Daily):**
* Go to the "Timeframe Divider 1" group.
* Check the "Show Divider 1" box.
* Set the "Timeframe 1" to "1D".
* Adjust the color, style, and text visibility to your liking.
4. **To add a session line (e.g., London Session):**
* Go to the "Time Slot Divider 1" group.
* Check the "Show Time Slot Divider 1" box.
* Set the "Time Slot 1" to your desired session, e.g., "0800-1700".
* Adjust the color and style. The script will now draw lines at 08:00 and 17:00 (based on the chart's timezone).
5. Repeat the process using the other available divider slots to build a complete temporal map of your chart.
Directional Volume Cloud MTFThe Directional Volume Cloud MTF transforms raw volume into a visually intuitive cloud histogram that highlights directional bias and exhaustion zones.
🔍 Core Logic
- Volume bias is calculated using candle direction (bullish/bearish) and smoothed via EMA.
- Bias strength is normalized against average volume to produce a ratio from -1 to +1.
- Color and opacity dynamically reflect bias direction and strength — pale clouds indicate weak volume, while vivid clouds signal strong conviction.
Features
- Customizable bullish/bearish colors
- Dynamic opacity based on volume strength
- Declining volume signals for potential reversals
- Multi-timeframe bias overlay (e.g., daily bias on intraday chart)
📈 Use Cases
- Spot volume exhaustion before reversals
- Confirm breakout strength with bias intensity
- Compare short-term vs long-term volume pressure
Whether you're scalping intraday moves or validating swing setups, this cloud-based volume heatmap offers a clean, modular way to visualize market conviction.
HTF Candle Countdown Timer//@version=5
indicator("HTF Candle Countdown Timer", overlay=true)
// ============================================================================
// INPUTS - SETTINGS MENU
// ============================================================================
// --- Mode Selection ---
mode = input.string(title="Mode", defval="Auto", options= ,
tooltip="Auto: Αυτόματη αντιστοίχιση timeframes Custom: Επιλέξτε το δικό σας timeframe")
// --- Custom Timeframe Selection ---
customTF = input.timeframe(title="Custom Timeframe", defval="15",
tooltip="Ενεργό μόνο σε Custom Mode")
// --- Table Position ---
tablePos = input.string(title="Table Position", defval="Bottom Right",
options= )
// --- Colors ---
textColor = input.color(title="Text Color", defval=color.white)
bgColor = input.color(title="Background Color", defval=color.black)
transparentBg = input.bool(title="Transparent Background", defval=false,
tooltip="Ενεργοποίηση διάφανου φόντου")
// --- Text Size ---
textSize = input.string(title="Text Size", defval="Normal",
options= )
// ============================================================================
// FUNCTIONS
// ============================================================================
// Μετατροπή string position σε table position constant
getTablePosition(pos) =>
switch pos
"Top Left" => position.top_left
"Top Right" => position.top_right
"Bottom Left" => position.bottom_left
"Bottom Right" => position.bottom_right
=> position.bottom_right
// Μετατροπή string size σε size constant
getTextSize(size) =>
switch size
"Auto" => size.auto
"Tiny" => size.tiny
"Small" => size.small
"Normal" => size.normal
"Large" => size.large
"Huge" => size.huge
=> size.normal
// Αυτόματη αντιστοίχιση timeframes
getAutoTimeframe() =>
currentTF = timeframe.period
string targetTF = ""
if currentTF == "1"
targetTF := "15"
else if currentTF == "3"
targetTF := "30"
else if currentTF == "5"
targetTF := "60"
else if currentTF == "15"
targetTF := "240"
else if currentTF == "60"
targetTF := "D"
else if currentTF == "240"
targetTF := "W"
else
// Default fallback για μη-mapped timeframes
targetTF := "60"
targetTF
// Μετατροπή timeframe string σε λεπτά για σύγκριση
timeframeToMinutes(tf) =>
float minutes = 0.0
if str.contains(tf, "D")
multiplier = str.tonumber(str.replace(tf, "D", ""))
minutes := na(multiplier) ? 1440.0 : multiplier * 1440.0
else if str.contains(tf, "W")
multiplier = str.tonumber(str.replace(tf, "W", ""))
minutes := na(multiplier) ? 10080.0 : multiplier * 10080.0
else if str.contains(tf, "M")
multiplier = str.tonumber(str.replace(tf, "M", ""))
minutes := na(multiplier) ? 43200.0 : multiplier * 43200.0
else
minutes := str.tonumber(tf)
minutes
// Format countdown σε ώρες:λεπτά:δευτερόλεπτα ή λεπτά:δευτερόλεπτα
formatCountdown(milliseconds) =>
totalSeconds = math.floor(milliseconds / 1000)
hours = math.floor(totalSeconds / 3600)
minutes = math.floor((totalSeconds % 3600) / 60)
seconds = totalSeconds % 60
string result = ""
if hours > 0
result := str.format("{0,number,00}:{1,number,00}:{2,number,00}", hours, minutes, seconds)
else
result := str.format("{0,number,00}:{1,number,00}", minutes, seconds)
result
// Μετατροπή timeframe σε readable format
formatTimeframe(tf) =>
string formatted = ""
if str.contains(tf, "D")
formatted := tf + "aily"
else if str.contains(tf, "W")
formatted := tf + "eekly"
else if str.contains(tf, "M")
formatted := tf + "onthly"
else if tf == "60"
formatted := "1H"
else if tf == "240"
formatted := "4H"
else
formatted := tf + "min"
formatted
// ============================================================================
// MAIN LOGIC
// ============================================================================
// Επιλογή target timeframe βάσει mode
targetTimeframe = mode == "Auto" ? getAutoTimeframe() : customTF
// Validation: Έλεγχος αν το target timeframe είναι μεγαλύτερο από το τρέχον
currentTFMinutes = timeframeToMinutes(timeframe.period)
targetTFMinutes = timeframeToMinutes(targetTimeframe)
var string warningMessage = ""
if targetTFMinutes <= currentTFMinutes
warningMessage := "⚠ HTF < Current TF"
else
warningMessage := ""
// Υπολογισμός του χρόνου κλεισίματος του HTF candle
htfTime = request.security(syminfo.tickerid, targetTimeframe, time)
htfTimeClose = request.security(syminfo.tickerid, targetTimeframe, time_close)
// Υπολογισμός υπολειπόμενου χρόνου σε milliseconds
remainingTime = htfTimeClose - timenow
// Format countdown
countdown = warningMessage != "" ? warningMessage : formatCountdown(remainingTime)
// Format timeframe για εμφάνιση
displayTF = formatTimeframe(targetTimeframe)
// ============================================================================
// TABLE DISPLAY
// ============================================================================
// Δημιουργία table
var table countdownTable = table.new(
position=getTablePosition(tablePos),
columns=2,
rows=2,
bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
frame_width=1,
frame_color=color.gray,
border_width=1)
// Update table content
if barstate.islast
// Header
table.cell(countdownTable, 0, 0, "Timeframe:",
text_color=textColor,
bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
text_size=getTextSize(textSize))
table.cell(countdownTable, 1, 0, displayTF,
text_color=textColor,
bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
text_size=getTextSize(textSize))
// Countdown
table.cell(countdownTable, 0, 1, "Countdown:",
text_color=textColor,
bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
text_size=getTextSize(textSize))
table.cell(countdownTable, 1, 1, countdown,
text_color=warningMessage != "" ? color.orange : textColor,
bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
text_size=getTextSize(textSize))
// ============================================================================
// END OF SCRIPT
// ============================================================================
All-in-One: EMA, ORB, PM, and Anchored VWAPAll-in-One: EMA, ORB, PM, and Anchored VWAP... ema 9/20/50/100/20 + opening range break + premarket high and lows + vwap all in one indicator enjoy.. all these can be turned on and off if you only want vwap and ema or pm and orb etc..
Day Range Divider DTSCopied it for DTS purposes to ensure proper tracking, testing, and verification within the DTS workflow. This copy is intended for reference, analysis, and any required adjustments without affecting the original version.
Session Highs and LowsShows the current and previous session highs and lows for the New York, London and Asian sessions
Best Time Slots — Auto-Adapt (v6, TF-safe) + Range AlertsTime & binning
Auto-adapt to timeframe
Makes all time windows scale to your chart’s bar size (so it “just works” on 1m, 15m, 4H, Daily).
• On = recommended. • Off = fixed default lengths.
Minimum Bin (minutes)
The size of each daily time slot we track (e.g., 5-min bins). The script uses the larger of this and your bar size.
• Higher = fewer, broader slots; smoother stats. • Lower = more, narrower slots; needs more history.
• Try: 5–15 on intraday, 60–240 on higher TFs.
Lookback windows (used when Auto-adapt = ON)
Target ER Window (minutes)
How far back we look to judge Efficiency Ratio (how “straight” the move was).
• Higher = stricter/smoother; fewer bars qualify as “movement”. • Lower = more sensitive.
• Try: 60–120 min intraday; 240–600 min for higher TFs.
Target ATR Window (minutes)
How far back we compute ATR (typical range).
• Higher = steadier ATR baseline. • Lower = reacts faster.
• Try: 30–120 min intraday; 240–600 min higher TFs.
Target Normalization Window (minutes)
How far back for the average ATR (the baseline we compare to).
• Higher = stricter “above average range” check. • Lower = easier to pass.
• Try: ~500–1500 min.
What counts as “movement”
ER Threshold (0–1)
Minimum efficiency a bar must have to count as movement.
• Higher = only very “clean, one-direction” bars count. • Lower = more bars count.
• Try: 0.55–0.65. (0.60 = balanced.)
ATR Floor vs SMA(ATR)
Requires range to be at least this many × average ATR.
• Higher (e.g., 1.2) = demand bigger-than-usual ranges. • Lower (e.g., 0.9) = allow smaller ranges.
• Try: 1.0 (above average).
How history is averaged
Recent Days Weight (per-day decay)
Gives more weight to recent days. Example: 0.97 ≈ each day old counts ~3% less.
• Higher (0.99) = slower fade (older days matter more). • Lower (0.95) = faster fade.
• Try: 0.97–0.99.
Laplace Prior Seen / Laplace Prior Hit
“Starter counts” so early stats aren’t crazy when you have little data.
• Higher priors = probabilities start closer to average; need more real data to move.
• Try: Seen=3, Hit=1 (defaults).
Min Samples (effective)
Don’t highlight a slot unless it has at least this many effective samples (after decay + priors).
• Higher = safer, but fewer highlights early.
• Try: 3–10.
When to highlight on the chart
Min Probability to Highlight
We shade/mark bars only if their slot’s historical movement probability is ≥ this.
• Higher = pickier, fewer highlights. • Lower = more highlights.
• Try: 0.45–0.60.
Show Markers on Good Bins
Draws a small square on bars that fall in a “good” slot (in addition to the soft background).
Limit to market hours (optional)
Restrict to Session + Session
Only learn/score inside this time window (e.g., “0930-1600”). Uses the chart/exchange timezone.
• Turn on if you only care about RTH.
Range (chop) alerts
Range START if ER ≤
Triggers range when efficiency drops below this level (price starts zig-zagging).
• Higher = easier to call “range”. • Lower = stricter.
Range START if ATR ≤ this × SMA(ATR)
Also triggers range when ATR shrinks below this fraction of its average (volatility contraction).
• Higher (e.g., 1.0) = stricter (must be at/under average). • Lower (e.g., 0.9) = easier to call range.
Alerts on bar close
If ON, alerts fire once per bar close (cleaner). If OFF, they can trigger intrabar (faster, noisier).
Quick “what happens if I change X?”
Want more highlighted times? ↓ Min Probability, ↓ ER Threshold, or ↓ ATR Floor (e.g., 0.9).
Want stricter highlights? ↑ Min Probability, ↑ ER Threshold, or ↑ ATR Floor (e.g., 1.2).
Want recent days to matter more? ↑ Recent Days Weight toward 0.99.
On 4H/Daily, widen Minimum Bin (e.g., 60–240) and maybe lower Min Probability a bit.
5 Moving Averages (Fully Customizable)I couldn't find any indicators that you could fully customize multiple moving average lines, so I made one.
You can change the color, line type, thickness, length, and opacity. Also make a custom color if you want.
You can make them SMA, EMA, WMA, HMA, VWMA.
Hope you enjoy!
Open=Low Multi-Signal EnhancedPower your trades with all new Open = Low with tolerance added in the price. This script will give Open = Low and also if slight deviation in the Open = Low with rising volume and rising momentum in the price.






















