Strategic Dip AccumulatorDon't run out of cash while accumulating – with this indicator you will not buy every dip. You will buy just a few at a higher price, but many others will be bought at a lower price. This approach helps you conserve capital while positioning yourself to benefit from deeper market corrections.
Overview
This indicator is designed to help traders manage their entry points in volatile markets. By combining technical signals with dynamic take-profit levels that adjust to market volatility, it ensures your buying power is used efficiently without overcommitting on every minor dip. The oversold and overbought levels are derived using a blend of momentum indicators and pivot-based price levels, giving you a reliable view of potential support and resistance zones.
How It Works
The tool blends several components:
Timing and Range: You can set a specific backtest period to focus on the market conditions that matter most to your strategy.
Overbought/Oversold: Overbought signals are marked on the chart with red downward‑pointing triangles, while oversold signals are highlighted with green upward‑pointing triangles—making it easy to spot when the market is overextended in either direction.
Signal Lines: Visual cues on the chart mark key zones. The indicator identifies oversold conditions when momentum signals and price pivots indicate the market has dipped too far, and overbought conditions when these metrics suggest a potential reversal. Blue lines indicate buying opportunities, and red lines denote selling zones.
Dynamic Take Profit Levels: Profit targets adjust based on market volatility. In calm conditions, wider targets can capture larger moves; in volatile periods, tighter targets help secure gains more quickly.
Risk Management: The system limits exposure by triggering safety orders only when specific conditions are met, ensuring you maintain sufficient cash reserves.
Trading Tips
I discovered that using the indicator on the 1-hour chart could be more profitable, as it offers more frequent and timely signals without the noise of lower timeframes. This allows for better fine-tuning of entries and exits in fast-moving markets.
For crypto pairs that have outperformed Bitcoin during backtests, I've found promising results with assets like CRYPTOCAP:ADA , CRYPTOCAP:DOT , CRYPTOCAP:PEPE , CRYPTOCAP:SUI , GETTEX:TAO , CRYPTOCAP:XRP , and $ZRX. These pairs often exhibit stronger trends or more robust recoveries, which can enhance the performance of a dip-buying strategy. Feel free to share any other pairs you discover that outperform Bitcoin—collective insights can help everyone refine their strategies.
Conclusion
The Strategic Dip Accumulator offers a disciplined method for buying dips without depleting your cash reserves. By combining dynamic profit targets, clear entry signals, and robust risk management, this tool empowers you to make strategic decisions even in volatile markets. Use it on the 1-hour chart for more responsive signals, and consider pairing it with cryptocurrencies that have demonstrated strong performance compared to Bitcoin in your backtests for a more robust trading strategy.
Indikatoren und Strategien
Range Breakout Strategy (AM/PM)Range breakout for back-testing on any asset pair for a give time range, for mechanical trading.
Imperfect Candle DetectorThis Script works in all timeframes less than or equal to 15 mins and Daily Timeframe. The blue lines denote the areas where the price has a 85% chance to revisiting and so does the red lines. Use this indicator after testing. It works in all instruments. Not advisable to use in higher timeframes. From red lines try taking trade towards blue lines following specific bullish or bearish candlestick patterns.
HTF Countdown by Silver Mountain Trading)Stay sharp and time your trades with precision.
This simple but effective tool shows a real-time countdown to the next Higher Time Frame (HTF) candle — such as 4H, 1H, or whatever timeframe you choose.
The countdown is always placed just below the current day’s low, with clean design and no clutter.
🔹 Displays remaining time in H:M:S
🔹 Anchored visually to current day’s LOD
🔹 Works in replay mode
🔹 Open-source and free to use
🔹 From Silver Mountain Trading
🙌 If you found this helpful, a like and subscribe to the Silver Mountain Trading YouTube channel would be much appreciated as a thank-you. www.youtube.com
COT3 - Flip Strength Index - Invincible3This indicator uses the TradingView COT library to visualize institutional positioning and potential sentiment or trend shifts. It compares the long% vs short% of commercial and non-commercial traders for both Pair A and Pair B, helping traders identify trend strength, market overextension, and early reversal signals.
🔷 COT RSI
The COT RSI normalizes the net positioning difference between non-commercial and commercial traders over (N=13, 26, and 52)-week periods. It ranges from 0 to 100, highlighting when sentiment is at bullish or bearish extremes.
COT RSI (N)= ((NC - C)−min)/(max-min) x100
🟡 COT Index
The COT Index tracks where the current non-commercial net position lies within its 1-year and 3-year historical range. It reflects institutional accumulation or distribution phases.
Strength represents the magnitude of that positioning bias, visualized through normalized RSI-style metrics.
COT Index (N)= (NC net)/(max-min) x100
🔁 Flip Detection
Flip refers to the crossovers between long% and short%, indicating a change in directional bias among trader groups. When long positions exceed shorts (or vice versa), it signals a possible market flip in sentiment or trend.
For example, Pair B commercial flip is calculated as:
Long% = (Long/Open Interest)×100
Short% = (Short/Open Interest)×100
Flip = Long%−Short%
A bullish flip occurs when long% overtakes short%, and vice versa for a bearish flip. These flips often precede price trend changes or confirm sentiment breakouts.
Flip captures how far current positioning deviates from historical norms — highlighting periods of institutional overconfidence or exhaustion, often leading to significant market turns.
This combination offers a multi-layered edge for identifying when smart money is flipping direction, and whether that flip has strong conviction or is likely to fade.
..........................................................................................................................................................
🔗 Connect & Learn More
📌 Discord:https://discord.gg/EjrsAjH8F5
▶️ YouTube: www.youtube.com
🌐 Website: www.invincible3.org
First 5-Minute Candle: Adjusted Levelsdifference of first five levels of high and low pine script code
StocksHaul Smart AVWAP with Swing H|L This is a Smart AVWAP-Trio
Place Anchors at Measurable Events , like anchor the VWAP based on time increments (daily, week-to-date, month-to-date, or even year-to-date) or some important days where the whole market gave a big move (in whatever side) , e.g - Election Day .
The Idea is to keep things automated .
*Addition here is a Swing High or Low label with custom Sensitivity .
Thank You .
P&F Screener Dashboard w/ Trade Ideas + Alerts + TargetsThis advanced screener and dashboard script is designed for active traders who want to:
1. Monitor multiple optionable stocks simultaneously.
2. Identify Point & Figure-based breakouts and breakdowns.
3. Automatically calculate and visualize breakout/breakdown targets.
4. Highlight when targets are hit.
5. Get trade idea suggestions (e.g., vertical spreads).
6. Display a scanner-style dashboard with market trend context.
7. Generate alerts and chart markers to stay ahead of price action.
The script combines technical analysis (P&F logic, moving averages) with strategy design (target projection, trade suggestions) into a single streamlined workspace.
Designed for use with your preferred watchlist—simply customize the symbols and you're ready to trade smarter.
Renko Compression Index (RCI)Renko Compression Index
The Renko Compression Index (RCI) is a unique market structure indicator designed to detect price compression zones on Renko-based charts. It measures the frequency of directional changes in Renko bricks over a specific period, identifying moments of trend indecision or consolidation that may precede major breakouts.
Renko Momentum Wave (RMW)Renko Momentum Wave
The Renko Momentum Wave (RMW) is a custom momentum oscillator specifically designed for Renko-based price action analysis. Unlike traditional oscillators that rely on time-based data, the RMW focuses on the directional consistency of Renko bricks, measuring the strength of trend momentum purely based on price movement.
M2 Global Liquidity (FX-Neutral)This indicator visualizes the global M2 money supply across major economies (China, USA, Eurozone, Japan, UK), converted into a common USD basis using fixed exchange rates as of January 31, 2020.
By applying constant FX rates, the indicator eliminates the influence of currency fluctuations, providing a "foreign exchange-neutral" view of global liquidity trends.
Levels [Serhio]The strategy "Levels " is a pivot-based trading approach that identifies key support and resistance levels from a higher timeframe (e.g., 60 minutes). It enters trades when price bounces off these levels:
Level Identification: Uses pivot highs/lows to define dynamic support/resistance levels.
Entry Signals:
Long: When price crosses back above support after being below it.
Short: When price crosses back below resistance after being above it.
Risk Management:
Stop-loss is placed at the recent extreme (low for longs, high for shorts).
Take-profit is set using a user-defined risk/reward ratio (default 2:1).
Execution: Trades are automatically executed with calculated stop-loss and take-profit levels.
The strategy visualizes levels and signals directly on the chart for manual verification.
**** If you have any ideas or suggestions for improvement, write to us and we will improve it, profit for everyone.*****
Multi-Element CFD Indicator ]Multi-Element CFD Indicator
Simple but very effective script that finds areas of support and resistance through ticks exchange. Only works with CFDs
(You must enter in the settings the value corresponding to the CFD, example: US500 = 500, DAX30 = 30, FRANCE40 = 40 etc ...)
Chan Theory - Chanlun UltraChan Theory -Chanlun Ultra
Overview
This script is based on the core technical framework of Chan Theory, transforming complex market fluctuations into a multi-layered, quantifiable structural analysis system. Through real-time dynamic computation, it automatically parses key components in price movements such as fractals, pens, segments, and pivot zones. Integrated with momentum analysis and trading signal alerts, it provides traders with comprehensive market insights from micro to macro perspectives. The core distinction of Chan Theory from traditional technical indicators lies in its rigorous recursive logic and human-centric market philosophy. This script faithfully restores Chan Theory's essence of "using Zen to resolve market complexity," decomposing spiral price movements into an orderly trading decision system.
Technical Principles
This indicator implements the complete recognition process from candlesticks to fractals, pens, segments, and pivot zones using pure Pine Script under Chan Theory's framework. Core technical implementations include:
1. Candlestick Containment Processing
Employs specific algorithms to handle candlestick containment relationships, eliminating random noise:
In uptrends: Select the higher high and higher low values
In downtrends: Select the lower high and lower low values
Ensure complete elimination of containment through recursive processing
2. Fractal Identification System
Performs strict fractal judgment on processed candlesticks:
Top Fractal: The middle candlestick's high is higher than both adjacent candlesticks
Bottom Fractal: The middle candlestick's low is lower than both adjacent candlesticks
Validate fractal effectiveness via the filterOperateType function
3. Pen Construction Mechanism & Type Selection
Connects valid top/bottom fractals to form pen structures, offering four pen types:
Classic Pen: Traditional Chan Theory definition, strictly following classic rules
Optimized Pen: Enhanced algorithm for short-term volatility recognition
4K Pen: Builds pens based on fractals formed by at least 4 candlesticks (improves stability)
Strict Pen: Employs the most stringent validation conditions for reliability
4. Segment Partitioning Algorithm
Applies segment rules to pen sequences with three modes:
- Dynamic Real-time Progressive Correction: Adjusts forming segments continuously with new data
- Strict Mode: Fully complies with Chan Theory definitions
- Extension Mode: Flexible handling of trend developments
5. Pivot Zone Recognition Technology
Identifies pen-level and segment-level pivot zones
Calculates pivot zone price ranges and time durations
Analyzes pivot zone evolution characteristics
Supports display of pivot zones across different levels
Trading Signal System & Filters
Trading Signal Filtering System
This indicator provides comprehensive filtering functions:
Fractal Validity Filter: Verifies fractal patterns and post-fractal developments
Basic Fractal Filter: Eliminates non-compliant fractals through basic feature checks
Type I MACD Divergence Filter: Enhances Type I signal reliability via MACD divergence analysis
Type II Signal Filter: Custom conditions for Type II signals
-False Signal Trap Avoidance: Detects and bypasses deceptive price patterns
Chan Theory Trading Signal Principles
Type I Signals (Trend Reversals)
Principle: Forms when price makes new highs/lows with weakening internal momentum (divergence)
Identification: Compares structural features of adjacent same-direction pens
Application: Early trend reversal signals for swing trading
Type II Signals (Pullback Entries)
Principle: Occurs during retracements as sub-level reversal signals
Identification: Determined by pivot zone support/resistance and fractal combinations
Application: Optimal positions for pullback trades with controlled risk
Type III Signals (Breakout Confirmations)
Principle: Confirms pivot zone breakouts
Identification: Price breaks prior pivot zone boundaries with valid fractals
Application: Trend continuation signals for trend-following strategies
Indicator Features
Multi-Level Structural Analysis
Distinguishes structures across levels via level parameters
Higher-level trends guide lower-level operations
Implements cross-level collaborative logic
Displays sub-level pivot zones
Structural Visualization
Pens: Displayed per selected pen type
Segments: Rendered according to chosen segment mode
Pivot Zones: Color gradients indicate consolidation strength
Technical Implementation
Data Structure Design
Pen Object: Stores direction, timestamps, and price attributes
Segment Object: Manages segments and constituent pens
Pivot Object: Defines pivot zone ranges and characteristics
Grade Object: Organizes analysis results across levels
User Guide
Parameter Settings
Pen Type: Classic/Optimized/4K/Strict (adapt to analysis needs)
Segment Mode: Dynamic/Strict/Extension (match trading strategies)
Signal Filters: Enable/disable specific filters
Pivot Display: Toggle sub-level pivot zones
Divergence Settings: Configure types (regular/hidden) and display styles
Strategy Settings: Set trading rules linked to signals
Strategy Configuration
Follow Segments: Trade in alignment with segment direction
Signal Participation: Enable/disable Type I/II/III signals
Signal Conditions: Require signals to appear post-pivot zone formation
Prevent Early Entries:
Type I signals require ≥1 pivot zone or 5 pens
Type II Safety Control: Participate only if Type III signals are absent
Practical Recommendations
Select pen types/segment modes per market conditions
Adjust filters for different instruments and timeframes
Enhance accuracy through multi-level analysis
Confirm Type I signals with divergence indicators
Choose strategy parameters aligned with risk tolerance
Value Proposition
Systematizes Chan Theory into computable structures
Multiple pen/segment methods adapt to diverse markets
Advanced filtering significantly improves signal quality (historically validated)
Multi-level analysis provides holistic market insights
This tool is for technical analysis only. It does not constitute investment advice. Users must exercise independent judgment based on personal risk tolerance and objectives.
概述
本脚本基于缠论核心技术框架,将复杂的市场波动转化为多层次、可量化的结构分析系统。通过实时动态演算,自动解析价格走势中的分型、笔、线段、中枢等核心组件,并融合动量分析与交易信号预警功能,为交易者提供从微观到宏观的全方位市场透视。缠论区别于传统技术指标的核心在于其严格的递归逻辑与人性化市场哲学,本脚本忠实还原缠论"以禅破缠"的思想精髓,将螺旋缠绕的价格运动分解为有序的交易决策体系。
技术原理
本指标基于缠论技术分析框架,通过纯Pine Script实现了从K线到分型、笔、线段和中枢的完整识别流程。核心技术实现包括:
1. K线包含处理
采用特定算法处理K线包含关系,消除随机波动干扰:
- 上涨趋势中取高点高值、低点高值
- 下跌趋势中取高点低值、低点低值
- 通过递归处理确保包含关系完全消除
2. 分型识别系统
在处理后的K线基础上实现严格的分型判断:
- 顶分型:中间K线高点高于两侧K线
- 底分型:中间K线低点低于两侧K线
- 通过`filterOperateType`函数实现分型有效性验证
3. 笔的构建机制与类型选择
连接有效顶底分型形成笔结构,提供四种笔类型选择:
- **老笔**:传统缠论笔定义,严格遵循经典规则
- **新笔**:优化算法,增强对短期波动的识别能力
- **4K**:基于至少4根K线形成的分型构建笔,提高稳定性
- **严笔**:采用最严格的条件验证,确保形成的笔结构可靠
4. 线段划分算法
基于笔序列应用线段划分规则,支持三种线段模式:
- **当下延伸后修正**:实时计算当前形成中的线段,并随新数据更新修正
- **严格模式**:要求线段完全符合缠论定义,减少假信号
- **延伸模式**:更灵活地处理线段延伸情况,适合趋势分析
5. 中枢识别技术
- 实现笔中枢和线段中枢识别
- 计算中枢价格区间与时间范围
- 分析中枢演变特征
- 支持显示不同级别中枢功能
买卖点系统与过滤机制
买卖点过滤系统
本指标提供全面的买卖点过滤功能:
- **买卖点分型过滤**:检验分型形态有效性,验证分型后续发展
- **买卖点分型基础过滤**:针对分型基本特征进行验证,排除不合格分型
- **1买卖macd背驰过滤**:通过MACD判断背驰情况,提高一类买卖点可靠性
- **2买卖点过滤**:专门针对二类买卖点的过滤条件
- **防狼术**:避免陷阱式买卖点,提高交易安全性
缠论买卖点原理
1. **一类买卖点**
- 原理:基于趋势背驰原理,当价格创新高/低但内部结构力度减弱时形成
- 识别方法:通过比较相邻同向笔的结构特征判断力度变化
- 应用:提供趋势可能反转的早期信号,适合波段操作
2. **二类买卖点**
- 原理:发生在回调过程中,属于次级别转折信号
- 识别方法:通过中枢支撑位与分型组合判断
- 应用:回调买入或做空的较佳位置,风险相对可控
3. **三类买卖点**
- 原理:中枢突破确认信号
- 识别方法:价格突破前中枢边界并形成有效分型
- 应用:趋势延续的确认信号,适合追踪趋势
指标特点
多级别结构分析
本指标支持多级别联动分析:
- 通过级别参数区分不同级别结构
- 高级别趋势指导低级别操作
- 实现级别间的协同判断逻辑
- 支持显示次级别中枢功能
结构可视化
- 笔结构:根据选择的笔类型显示
- 线段结构:按照选定的线段模式呈现
- 中枢区域:颜色渐变标识不同强度
技术实现说明
数据结构设计
指标设计了完整的面向对象结构:
- Pen结构:存储笔的方向、时间、价格等属性
- Segment结构:管理线段及其组成笔
- Pivot结构:表示中枢范围和特性
- Grade结构:区分不同级别的分析结果
使用指南
参数设置
- 笔的类型:选择老笔、新笔、4K或严笔以适应不同分析需求
- 线段模式:根据交易策略选择合适的线段计算方式
- 买卖点过滤:根据需要启用不同的过滤机制
- 中枢显示:选择是否显示次级别中枢
- 背离设置:选择背离类型、显示方式和样式
- 策略设置:配置与买卖点相关的交易策略选项
策略应用配置
- 跟随线段:根据线段方向进行交易
- 买卖点参与设置:可选择性参与一类、二类和三类买卖点
- 买卖点条件限制:可设置买卖点需要在中枢形成后出现
- 防止过早进场:可要求一类买卖点至少出现一个中枢后或至少5笔后才参与
- 二类买卖点安全性控制:可选择仅在未出现三类买卖点的情况下参与
实际应用建议
- 结合市场环境选择合适的笔类型和线段模式
- 针对不同品种和时间周期调整过滤设置
- 通过多级别分析提高判断准确性
- 使用背离指标确认一类买卖点的有效性
- 根据策略风格选择适合的策略配置参数
技术特点与价值
本指标通过系统化实现缠论结构分析,提供了一种客观的技术分析工具。它的核心价值在于:
1. 将复杂的缠论理论系统化为可计算的结构
2. 提供多种笔、线段判断方法以适应不同市场环境
3. 完善的买卖点过滤系统大幅提高信号质量
4. 多级别联动分析提供全面市场视角
*本指标仅提供技术分析参考,不构成投资建议。用户应根据自身风险承受能力和投资目标进行判断。*
Anchored VWAPAnchored VWAP (AVWAP) by Quantica Trading is a multi-instance volume-weighted average price indicator that anchors to dynamic swing points (highest high / lowest low) within user-defined lookback windows.
Each AVWAP line is calculated using cumulative volume and price, producing a precise representation of market bias and positioning pressure. The script supports up to 4 independent AVWAP tracks, allowing for layered volume-based S/R analysis. Visibility conditions prevent overlap between AVWAP levels, preserving clarity across all timeframes.
🔧 Features:
4 independent AVWAP instances with configurable lengths
Anchors to ta.highestbars() and ta.lowestbars() dynamically
Uses plot.style_linebr for clean, non-continuous display
Color-coded by layer and visibility-aware logic
Ideal for trend confirmation, pullback validation, and volume-based S/R zones
Engineered for clarity and flexibility by Quantica Trading
🌐 www.quanticatrading.it
SMC Zones Toolkit by KruJeab📄 คำอธิบาย (Description) — ภาษาอังกฤษ
This indicator is a toolset designed to support chart analysis based on price action and key levels.
Features include:
Market structure visualization (Break of Structure & CHoCH)
Detection of Fair Value Gaps (Imbalance zones)
EQH/EQL highlighting with labels and extension lines
Visualization of Order Blocks (OB) including classification: RBR, RBD, DBR, DBD
Optional SL/TP projection lines based on customizable risk-reward
🎯 The script highlights potential reaction zones and structural turning points in the market.
It is intended to assist with manual analysis only, not for automated trading or buy/sell signals.
⚠️ For educational and illustrative use. Always confirm with other tools before making trading decisions.
📝 คำอธิบาย (Description) — ภาษาไทย
อินดิเคเตอร์นี้ออกแบบมาเพื่อช่วยวิเคราะห์พฤติกรรมราคาผ่านโซนสำคัญของตลาด
จุดเด่น:
แสดงโครงสร้างราคา (Break of Structure และ CHoCH)
ตรวจจับ Fair Value Gaps (ช่องว่างราคา)
ขีดเส้น Equal High / Equal Low พร้อม Label
แสดง Order Block และระบุประเภท OB เช่น RBR, RBD, DBR, DBD
วาด SL/TP อัตโนมัติตามอัตราส่วน Risk:Reward ที่ตั้งค่าเองได้
📌 สคริปต์นี้เหมาะกับการวิเคราะห์ด้วยตนเอง ไม่ใช่ระบบเทรดอัตโนมัติ และไม่มีคำสั่ง Buy/Sell
⚠️ ใช้เพื่อการศึกษาและประกอบการวิเคราะห์เท่านั้น ควรยืนยันด้วยปัจจัยอื่นเสมอ
Gold Supply & Demand Zones [HTF] + VWAPGold Supply & Demand Zones + VWAP indicator to effectively, trade XAUUSD (Gold).
🧠 What This Indicator Does
It combines two powerful concepts:
Supply & Demand Zones from a Higher Timeframe (HTF).
VWAP (Volume Weighted Average Price) to understand the price’s relation to fair value.
Supply Zone = Area of potential selling pressure (resistance).
Demand Zone = Area of potential buying pressure (support).
✅ How it's calculated:
You select a Higher Timeframe (default = 1 hour).
Highest high = Supply Zone Top
Lowest low = Demand Zone Bottom
It creates a zone width using a pip size you define (default = 10 pips).
✅ When are zones visible?
Zones only appear if the current price is near them — this avoids clutter and keeps things relevant.
📊 How to Use the Indicator (Strategy Idea)
🟢 Bullish Setup (Buy):
Price enters the demand zone (green lines visible).
VWAP turns green (price above VWAP).
Look for a bullish candle or reversal pattern.
Enter long — target could be mid-range or supply zone.
🔴 Bearish Setup (Sell):
Price enters the supply zone (red lines visible).
VWAP turns red (price below VWAP).
Look for a bearish candle or breakdown.
Enter short — target could be mid-range or demand zone.
Imagine you're on a 15-minute chart with HTF set to 1H:
Gold drops into a green demand zone, VWAP is now green — this is a high-probability long setup.
Gold rallies into a red supply zone, VWAP turns red — this is a potential short.
Like this indicator? Boost it ❣️
JM_BUY_SELL_CCMI**CCMI ** – Combines three CMO calculations into a composite momentum, smoothed with EMA & signal SMA. Trend filter uses EMA instead of SMA, adjustable in settings. Buy/sell signals trigger on crossovers below/above a momentum threshold. Offset shifts signals visually to the left, without affecting logic.
**Scalp:** Smooth=2, Signal=3, EMA=2, Level=-20
**Intra:** Smooth=4, Signal=5, EMA=5, Level=-25
**Swing:** Smooth=6, Signal=7, EMA=21, Level=-30
ZLSMA (Zero Lag Smoothed Moving Average)This is a smooted moving average works very good in daily charts.
MaterialPaletteMaterialPalette Library
█ OVERVIEW
This Pine Script® library provides a convenient way to access and utilize colors based on the popular Material Design color system directly within your TradingView scripts. It offers a comprehensive set of functions to retrieve specific shades of various base colors, allowing developers to create visually consistent and aesthetically pleasing indicators and strategies.
By importing this library, you gain access to functions that generate colors based on saturation, darkness level, and opacity, simplifying the process of managing color palettes in your projects.
█ FEATURES
Provides exported functions for 18 base Material Design colors (e.g., `red()`, `blue()`, `green()`, `amber()`, etc.).
Each color function allows selection from multiple shades based on `saturationLevel` (int) and `darkLevel` (int).
All color functions accept an `opacity` parameter (integer, 0-100).
Includes a `tone()` function for quick access to predefined base tones (e.g., `tone("red")`).
Offers a consistent and organized approach to using Material Design colors in Pine Script®.
Includes detailed `@function`, `@param`, and `@returns` annotations within the code for comprehensive documentation.
█ HOW TO USE
To use this library in your own Pine Script® indicator or strategy, you first need to import it using the `import` statement.
1. Import the Library:
Add the following line at the beginning of your script. Remember to replace `mastertop_astray` with the actual TradingView username the library is published under, and `VERSION` with the specific version number of the library you wish to use (you can find this on the library's script page).
import mastertop_astray/MaterialPalette/VERSION as mp
// Example: import mastertop_astray/MaterialPalette/1 as mp
*(We use `mp` as a short alias for `MaterialPalette` for convenience)*
2. Call Exported Functions:
Once imported, you can call the exported functions using the alias (`mp.` prefix).
//@version=6
indicator("My Indicator Using MaterialPalette")
import mastertop_astray/MaterialPalette/VERSION as mp // Replace VERSION
// --- Get Colors ---
// Get a specific shade: Dark Red (darkLevel=3), highest saturation (13), fully opaque (0)
darkRed = mp.red(13, 3, 0)
// Get another shade: Light Blue (lightLevel=1), medium saturation (e.g., 7), 50% opacity
lightBlueTransparent = mp.lightBlue(7, 1, 50)
// Get a base tone color: Green, fully opaque
baseGreen = mp.tone("green", 0)
// Get another base tone: Amber, 80% opacity
amberToneTransparent = mp.tone("amber", 80)
// --- Use Colors in Plotting ---
plot(close, color = darkRed, title = "Close Line")
plot(sma(close, 20), color = lightBlueTransparent, title = "SMA 20")
bgcolor(close > open ? mp.green(1, 2, 90) : mp.red(1, 2, 90)) // Use light shades for background
// Use a base tone
hline(100, "Upper Band", color = amberToneTransparent)
█ EXPORTED FUNCTIONS
This library provides two main categories of functions:
1. Color Shade Generators (`red()` to `blueGrey()`):
Includes: 18 functions for base colors (`red()`, `pink()`, ..., `blueGrey()`).
Purpose: Generate specific shades of the base color according to Material Design palettes.
Parameter `saturationLevel` (int): Controls color intensity/saturation. The valid range and default value vary depending on the specific color function (typically 1-13 or 1-9). Please check the `@param` annotation in the code for each function.
Parameter `darkLevel` (int): Sets the lightness/darkness of the shade (1: Light, 2: Medium/Base, 3: Dark). Default is 2.
Parameter `opacity` (int): Sets the color's transparency (0 = Opaque, 100 = Invisible). Default is 0.
Returns: The calculated `color` value.
Note: For exact default values and valid saturation ranges for each specific color function, refer to the detailed `@param` annotations within the library's source code.
2. Base Tone Function (`tone()`):
Purpose: Retrieve a single, predefined base color tone from the palette.
Parameter `colorName` (simple string): The text name identifying the desired base color (e.g., 'red', 'blue', 'green', 'light_blue').
Parameter `opacity` (int): Sets the color's transparency (0 = Opaque, 100 = Invisible). Default is 0.
Returns: The corresponding base tone `color`.
Note: Please consult the function's implementation in the source code for the complete list of valid `colorName` strings.
█ VISUALIZATION TABLE (For Demonstration)
The library's source code includes logic (within an `if barstate.islast` block) that generates a large table displaying all available color shades.
Important: This table will only appear on your chart if you add the entire library code itself directly as an indicator. This is primarily intended for demonstration, reference, and development purposes to visualize the palette. When using the library normally via the `import` statement in your own scripts, this table code is not executed or needed.
█ SUMMARY
The `MaterialPalette` library offers a structured and easy way for Pine Script® developers to incorporate Material Design colors into their TradingView scripts, enhancing visual appeal and consistency. Please refer to the detailed comments within the code for specifics on parameter ranges and available tones.
This source code is subject to the terms of the Mozilla Public License 2.0.
© mastertop_astray
Umesh BC IST 3:30 AM Session Tracker + 4H Candles📌 IST 3:30 AM Session Tracker + 4H Candle Marker
This indicator is designed for traders who follow Indian Standard Time (IST) and want precise session tracking and 4H candle insights.
🔧 Features:
🕒 Daily Session Start at 3:30 AM IST
Automatically detects and marks the beginning of each new trading day based on 3:30 AM IST, not midnight.
Displays session Open, High, and Low lines.
Background shading for each session.
Customizable alert when a new day starts.
🟧 4H Candle Start Markers (IST Time)
Identifies every new 4-hour candle that starts at:
3:30, 7:30, 11:30, 3:30 PM, 7:30 PM, 11:30 PM IST
Adds a vertical line and label ("🟧 4H") above the candle.
Plots a dynamic line for the 4H candle's opening price.
Includes optional alert for new 4H candles.
🔔 Alerts Included:
"🕒 New IST Day Start": Triggers at 3:30 AM IST.
"🟧 New 4H Candle": Triggers at each 4H candle start (IST).
✅ Best for:
Intraday, swing, and institutional traders using IST-based analysis.
Those wanting more accurate daily sessions and clear candle structuring.
🔸 Channel Zones + VWAP [Multi-Timeframe]Channel Zones + VWAP for intraday trading, scalping, or swing setups.
🔸 1. Trend + Zone Confluence
If price is near the lower red channel and VWAP is green, look for long entries.
If price hits the upper green channel and VWAP turns red, look for short setups.
🔸 2. HTF Confirmation
Use the HTF zones (lime/orange) as bigger picture support/resistance.
For example:
If on 15m chart, set HTF to 1h or 4h.
If price hits HTF Support + VWAP is green, look for reversal entries.
If price is stuck between HTF zones, consider range-bound plays.
🔸 3. Avoid False Breakouts
If price breaks a channel but VWAP doesn't confirm (e.g., VWAP still red while price breaks above), consider it a fakeout.
This keeps you aligned with volume and mean-reversion logic.
🔸 4. Scalping Plays
Look for price touching current channel levels while diverging from VWAP.
Enter when:
Price is far from VWAP → Expect pullback.
Price is at red/green line → Potential bounce zone.
Like this indicator ? Boost it ♥️
Buyer and Seller VWAPThis indicator calculates and visualizes Buyer and Seller Volume-Weighted Average Prices (VWAP) using a Least Squares Moving Average (LSMA) smoothing method. It classifies trades based on candle direction—buys when the close is above or equal to the open, and sells when the close is below the open.
The indicator applies LSMA to both buyer and seller VWAP values to reveal underlying trends with reduced noise. It also calculates a standard deviation band around each LSMA line, creating a shaded zone that represents volatility. This helps traders identify periods of expansion, contraction, and potential breakout opportunities based on buyer/seller strength.
Order Blocks and Volume Concepts by Spike ForexCore Functionalities
Order Blocks Detection:
Uses pivot highs and lows with ATR-based range definition.
Detects bullish (buy) and bearish (sell) order blocks.
Mitigation Logic:
Volume Analysis:
Displays volume % per block.
Allows adjusting volume label size.
Order Block Construction Mode:
"Full" uses full candle body.
🧠 Smart Money Concept Enhancements
Fair Value Gap (FVG) Highlighting
Market Structure Shift (BoS & CHoCH