Chanlun ZSLX pen czsc Channel Chan Theory🏆 Chanzhongshuochan (CZSC) ZSLX Recursive Version Indicator - Flagship Edition
Background
A Decade of Craftsmanship, a Major Upgrade
This Chanzhongshuochan (Chan Theory) indicator has undergone nearly 10 years of meticulous refinement and continuous optimization. Since its initial design in 2015, it has been validated through real trading practice. Now, it makes its debut on TradingView with a brand-new upgrade, featuring more comprehensive functions and superior performance.
It truly implements all core theories from the original Chan Theory texts, including a complete system covering candlestick containment processing, fractal identification, pen-segment analysis, pivot zone theory, trading signal (buy/sell point) positioning, and divergence analysis. It serves as a professional and all-encompassing technical analysis tool for Chan Theory enthusiasts in the industry.
🎯 Chinese Translation for User Indicator Interface:
● 顶背离: Top Divergence
● 底背离: Bottom Divergence
● 顶背驰: Top Divergence Including Trend Structure
● 底背驰: Bottom Divergence Including Trend Structure
● 趋势: Trend
● 盘整: Consolidation
● 扩张: Expansion
● 大级别盘整: Higher-Timeframe Consolidation
● 一买: First Buy Signal
● 二买: Second Buy Signal
● 类二买:Quasi-Second Buy Signal
● 三买: Third Buy Signal
● 一卖: First Sell Signal
● 二卖: Second Sell Signal
● 类二卖:Quasi-Second Sell Signal
● 三卖: Third Sell Signal
📦 Parameter Settings
● Number of Candlesticks for Calculation: Up to 5,000 candlesticks. Even free TradingView users are limited to this data volume.
● Pen Detail Parameters: Adjustable options include "Old Pen", "New Pen", "Pen Based on Secondary High/Low", "Pen Based on Absolute High/Low", and "Strict Pen". Select via numerical options corresponding to each type.
● MA (Moving Average) and Bollinger Bands Display Parameters: Check the box to enable display; uncheck to hide (configure as needed).
● Pivot Zone Price & Pen-Segment Price Display: Check the box to enable display; uncheck to hide (configure as needed).
● MACD Parameters: Adjustable according to personal needs (set the periods for fast EMA, slow EMA, and signal line).
● MA Parameters: Default values can be manually adjusted.
● Pen Divergence, Segment Divergence, & Pen-Segment Divergence Display: Check the box to enable display; uncheck to hide (configure as needed).
● Pen-Segment Divergence Alert: Disabled by default. Enable by checking the box. To set up alerts:
a. Go to TradingView’s "Alerts" interface.
b. Under "Condition", select this indicator.
c. Choose "Any alert() function call".
d. Set the notification type, then create the alert to receive notifications.
🔥 Integration of Other Common Indicators & Rationale
● ✅ Moving Average (MA): Chan Theory inherently uses MA overlay for analysis. Adding MA here allows users to analyze price trends from multiple perspectives, making it an essential inclusion.
● ✅ Bollinger Bands: Combining Bollinger Bands (a price channel tool) with Chan Theory provides additional perspectives for trend analysis and improves accuracy, hence its integration.
● ✅ MACD: A 不可或缺 (indispensable) indicator for analyzing trend strength in Chan Theory. It is integrated to facilitate seamless analysis.
● ✅ Rationale for Integrating Shared Core Code between Two Scripts:
The scripts Chanlun ZSLX pen czsc Channel Chan Theory and Chanlun FBFD pen czsc Channel Chan Theory share some underlying code. Here’s why integration is necessary:
○ The core logics of the original Chan Theory — including candlestick containment processing, MACD divergence analysis, candlestick objects, and pen-related calculations — are identical in both scripts.
○ However, significant differences exist in the top-level logics for segment division, trend recursion, display effects, and functions.
○ Additionally, TradingView imposes limits on script code size, making it impossible to fully integrate the two versions’ line-drawing features into one.
○ Therefore, this indicator reuses shared code components, including:
■ The Start_kxian() function (returns candlestick objects),
■ The Start_bi() function (returns pen objects),
■ The showKxianzsfunc() function (draws candlestick-based pivot zones),
■ MACD divergence judgment code.
🎯 Technical Principles
🔥 1. Comprehensive Coverage of Original Chan Theory Functions
● ✅ Real-Time Candlestick Containment Processing – Intelligent Recognition of Containment Relationships
○ In uptrends: Select the higher high and higher low values (prioritize higher extremes).
○ In downtrends: Select the lower high and lower low values (prioritize lower extremes).
● ✅ Accurate Fractal Marking – Automatic Identification of Top/Bottom Fractals
○ When the "Old/New Pen" parameter is set to 2, the high/low points of each top/bottom fractal are plotted.
○ Top Fractal: Among three consecutive candlesticks, the middle candlestick has a higher high and a higher low than the adjacent two.
○ Bottom Fractal: Among three consecutive candlesticks, the middle candlestick has a lower low and a lower high than the adjacent two.
● ✅ Multi-Dimensional Pen-Segment Analysis – Complete System for Pens & Segments
○ Pens:
■ Old Pen: Strictly follows the traditional Chan Theory definition of "pen".
■ New Pen: Adheres to the more flexible "new pen" definition from the original Chan Theory.
■ Fractal Pen: Forms a pen directly from top/bottom fractals (responds to price changes; many peers misclassify this as a "sub-timeframe pen").
○ Segments: This version adopts a recursive logic. While some single pens are treated as segments (differing from pure segment division), most segment-drawing results align with standard methods — the core difference lies in the line-drawing logic.
● ✅ Multi-Level Pivot Zone Integration – Candlestick-, Pen-, & Segment-Based Pivot Zones
○ Candlestick Pivot Zone: The smallest-level pivot zone in Chan Theory.
○ Pen Pivot Zone: Follows the original Chan Theory for division — the zone’s high is the lowest high of overlapping pens; the zone’s low is the highest low of overlapping pens.
○ Segment Pivot Zone: Follows the original Chan Theory for division — the zone’s high is the lowest high of overlapping segments; the zone’s low is the highest low of overlapping segments.
● ✅ Intelligent Trading Signals – Accurate Positioning of Three Types of Buy/Sell Points
○ Type 1 Buy/Sell Signal
■ Principle: Based on Chan Theory’s "trend divergence" — momentum weakens when a trend structure forms.
■ Analysis Method: Identify bottom divergence (for buys) or top divergence (for sells) in the final pivot zone of a trend structure.
■ Application: For reference only. Comprehensive analysis requires combining momentum decay across multiple timeframes.
○ Type 2 Buy/Sell Signal
■ Principle: The first pullback low (for buys) or rebound high (for sells) after a Type 1 signal concludes.
■ Analysis Method: After a Type 1 structure forms, prices may occasionally break previous lows/highs.
■ Application: For reference only. Comprehensive analysis requires combining momentum decay across multiple timeframes.
○ Type 3 Buy/Sell Signal
■ Principle: A standard Type 3 buy signal occurs when prices break above the first pivot zone after a Type 1 buy, then pull back to test the zone. For ease of monitoring, all "breakout + pullback" patterns are marked as Type 3 signals here.
■ Identification Method: Beginners are advised to trade standard Type 3 structures (post-Type 1 signals), though such structures are relatively rare.
■ Application: For reference only. Comprehensive analysis requires combining momentum decay across multiple timeframes.
● ✅ Divergence Alert – Exclusive Divergence Algorithm
○ Principle: Uses MACD momentum statistics from the original Chan Theory to distinguish between "pen-structure divergence" and "segment-structure divergence". Specific values are labeled on the chart to differentiate MACD momentum for pens vs. segments. More complex statistical features will be added in future updates. For reference on the current timeframe only — multi-timeframe momentum analysis is still required.
● ✅ Trend Structure Recursion – Exclusive Trend Recursion Function
○ Principle: This is a "same-timeframe decomposition" version of trend types. Trends end as close to absolute highs/lows as possible. Some single pens may be treated as segments, resulting in more natural-looking trend structures.
⚙️ Indicator Features
🌟 1. Diverse Pen-Segment Algorithm Engines
● 🎨 Three Pen Algorithms: "Traditional Old Pen", "New Pen", "Top/Bottom Fractal Pen".
● 🔧 Extensive Parameter Adjustments: Fine-grained control over "secondary high/low pens", "fractal range judgment", etc.
● 📊 Dual Recursive Division: Recursion starting from pens + higher-timeframe recursion.
● 🎯 Customizable Parameters: Adapts to different Chan Theory interpretations and trading styles.
🌟 2. Multi-Level Intelligent Integration System
● 📈 Synchronized Calculation & Display: Linked analysis of pens, segments, and advanced recursive segments.
● 🏗️ Exclusive Recursion Algorithm: Accurate identification of advanced recursive segments.
● 🎪 Multi-Level Pivot Zone System: Full coverage of three pivot zone levels (candlestick, pen, segment).
● 📊 Holistic Market Analysis: Provides comprehensive insights into real-time market dynamics.
🎨 3. Professional Visual Customization
● 🌈 Custom Color Schemes: Perfectly matches personal chart styles.
● 💰 Price Label Display: Marks key prices for pens, segments, and pivot zones.
● 📐 Professional Auxiliary Tools: Practical features like MA and Bollinger Bands.
● 🎁 Included MACD: A supporting indicator for the sub-chart.
⏰ 4. Seamless Candlestick Replay Support
● 🔄 Historical Data Review: Fully compatible with TradingView’s replay function.
● 📚 Powerful Market Research Tool: Enhances the ability to analyze historical price trends.
● 🧠 Improved Decision-Making: Deepens market insights and judgment.
📦 Feature & Interface Showcase by Product Version
Advanced Recursive Version ⭐ Exclusive Algorithm
Suitable for: Advanced Chan Theory users seeking precise trend analysis.
Exclusive Features:
● 🚀 Rare Algorithm: A pure recursive version (most competitors only reach segment-level analysis, which is their limit).
● 🎯 Optimized High/Low Points: Trend endpoints are accurately positioned at absolute highs/lows.
● 🏆 Natural Trend Structures: More natural and rational distribution of high/low points.
● 💎 Complete Chan Theory Elements: Covers all core components of Chan Theory.
● ⚡ Rich Pen Details: Extremely detailed processing of pen structures.
User Feedback: The preferred version among many senior Chan Theory users, with excellent real-trading performance.
Screenshot:
---
🎊 Experience Now & Start Your Professional Chan Theory Analysis Journey!
Pre-Purchase Notes
Chanzhongshuochan (Chan Theory) is relatively complex. While this software strives to implement all functions from the original texts, minor imperfections or unaddressed details may exist — these will be gradually improved in future updates.
● Users with concerns are advised to test the indicator for a few days first. Purchase only if it meets your needs; otherwise, treat the test as a trial.
● Feedback on issues or bugs is welcome. The developer will update, modify, and optimize the indicator in their spare time.
Key Function Screenshots
1. Multi-Level Recursion
2. Candlestick Containment Processing
3. Area Statistics + Pivot Zone High/Low Price Display
4. Multi-Level Consolidation Divergence
5. Overlaid Practical Moving Averages
6. Fractal Pens
7. Candlestick-Based Pivot Zones
8. Dozens of Adjustable Parameters
9. Optional Alert Functions (More to be Added in Future Updates)
10. Trend Structure Markers
🏆 缠中说禅ZSLX 递归版指标 - 旗舰版
背景
十年匠心,重磅升级
这套缠中说禅指标历经近10年的精心打磨与持续优化,从2015年初版设计至今,已经过实战验证。现全新升级登陆TradingView,功能更加完善,性能更加卓越。
真正实现了缠论原文中的所有核心理论,包括K线包含、分型识别、笔段分析、中枢理论、买卖点定位、背离背驰等完整体系,为缠论爱好者提供业界专业、全面的技术分析工具。
📦参数设置
- 计算K线数量:最多计算5000根,免费tradingview用户也只能这么多数据
- 笔细节参数:新旧笔、次高低点笔、最高低点笔、严格笔 可以调整可按标的数字选
- 显示均线和布林线参数:根据需要设置打钩就是显示,取消打钩就是隐藏
- 显示中枢价格和笔段价格:根据需要设置打钩就是显示,取消打钩就是隐藏
- macd参数:可以根据自己需要调整参数 快 慢 信号线周期设置
- 均线参数:默认参数可以自己手动调整
- 显示笔背离、段背离、笔段背驰:根据需要设置打钩就是显示,取消打钩就是隐藏
- 笔段背离背驰报警:默认关闭可以设置打钩开启,然后在tradingview的警报界面,条件里选择指标,设置:任何alert()函数调用,再设置通知类型,然后创建报警就可以收到报警
🔥整合其他常用指标和原因:
✅均线:因为缠论里是有使用均线叠加分析,这种更方便用户从不同视角分析走势,所以必须增加
✅布林线:布林线通道,结合缠论,也可以更多的视角分析走势,提高准确度,所以也增加了
✅macd:这个是缠论分析理论里必不可少的分析走势力度的指标,所以也必须整合进来方便分析
✅Chanlun ZSLX pen czsc Channel Chan Theory这个脚本和Chanlun FBFD pen czsc Channel Chan Theory这个脚本有些底层的源码是一样的必须整合原因:
因为缠论原文底层的K线包含、macd背离背驰、K线对象和笔部分都是一样的,但是顶层的线段和走势递归两种划分原理和显示效果和功能是有很大区别,并且tradingview社区的源码量有限制,导致也无法两个版本划线完全整合成一个,所以,这个脚本里的Start_kxian函数返回的kxian对象、 Start_bi函数返回的bi 对象 、showKxianzsfunc画K线中枢部分的源码、macd背离背驰判断部分代码,会有一样的整合部分源码
🎯 技术原理
🔥 1. 全方位缠论原文功能覆盖
● ✅ 实时K线包含处理 - 智能识别包含关系
○ - 上涨K线中取高点高值、低点高值,高高取高
- 下跌K线中取高点低值、低点低值,低低取低
● ✅ 精准分型标记 - 顶底分型自动识别
○ - 通过新旧笔参数设置2,会画出每个顶底分型高低点
○ - 顶分型:三根k线中,中间K线高点高于两侧K线,低点也高于两侧
- 底分型:三根k线中,中间K线低点低于两侧K线,高点也低于两侧
● ✅ 多维笔段分析 - 笔、线段完整体系
○ - 老笔:传统缠论严格笔定义,符合原文
- 新笔:传统缠论新笔定义,符合原文宽松笔条件
- 分型笔:顶底分型就成笔,价格反应比较敏锐(同行很多人把本周期分型笔标成次级别)
○ - 线段:这个版本采用递归思路,有的地方一笔处理成段,大部分地方跟纯分段一样,但是划线原理不同
● ✅ 多级中枢联立 - K线中枢、笔中枢、线段中枢
○ - K线中枢:最小级别的缠论中枢
- 笔中枢:采用原文的笔中枢划分区间,高点取重叠部分的最低点,低点取重叠部分最高点
- 线段中枢:采用原文的线段中枢划分区间,高点取线段重叠部分的最低点,低点取线段重叠部分最高点
● ✅ 智能买卖点 - 三类买卖点精准定位
○ 1类买卖点
- 原理:基于缠论趋势背驰原理,形成趋势结构时候,力度减弱
- 分析方法:通过判断趋势结构中最后中枢形成底背驰
- 应用:只是参考,具体分析需要多周期力度衰减结合判断
2类买卖点
- 原理:基于1类买卖点结束后,第一个回调低点
- 分析方法:在形成一类结构后,有时候也会破低点
- 应用:只是参考,具体分析需要多周期力度衰减结合判断
3类买卖点
- 原理:标准的三买是在1买形成后,突破第一个中枢的第一个回踩,这边为了方便看盘,统一突破回踩就标三买
- 识别方法:新手建议选择一类买点后的标准三买结构操作,但是可能这种结构比较少
- 应用:只是参考,具体分析需要多周期力度衰减结合判断
● ✅ 背离背驰预警 - 独家背离背驰算法
○ - 原理:采用缠论原文的macd力度统计,区分笔结构的背离背驰和段结构的背离背驰,并且在图形上标上具体数值,区分笔和段的macd力度,后期这个还要继续升级更复杂的统计,仅做本周期的参考,具体也是要多周期力度分析
● ✅ 走势结构递归 - 独家走势递归功能
- 原理:走势类型版本,这个是同级别分解版本,走势尽量结束在最高最低点,有的地方可能一笔成段,· 走势更为自然
⚙️ 指标特点
🌟1. 多样化笔段算法引擎
○ 🎨 三大笔算法: "传统旧笔"、"新笔"、"顶底分型笔"
○ 🔧 海量参数调节: 次高低笔、分型区间判断等精细化控制
○ 📊 双重递归划分: 笔开始递归 + 大级别递归
○ 🎯 个性化参数调整: 满足不同缠友的理解需求与交易风格
🌟 2. 多级别智能联立系统
○ 📈 同步计算显示: 笔、线段、递归高级段联动分析
○ 🏗️ 独家递归算法: 高级递归段精准识别
○ 🎪 多级中枢体系: 三重中枢级别完整覆盖
○ 📊 全景市场分析: 提供全面的市场动态洞察
🎨 3. 专业视觉定制
○ 🌈 自定义配色方案 - 完美匹配个人图表风格
○ 💰 价格标识显示 - 笔、段、中枢关键价位标注
○ 📐 专业辅助工具 - 均线、布林线等实用功能
○ 🎁 附带MACD - 配套附图指标
⏰ 4. 完美K线回放支持
○ 🔄 历史数据回顾 - 完美支持TradingView回放功能
○ 📚 市场研究利器 - 提升历史走势分析能力
○ 🧠 决策能力增强 - 深化市场洞察与判断水平
📦 产品版本功能界面展示
高级递归版 ⭐ 独家算法
适合:高阶缠友,追求极致走势分析
独家特色:
● 🚀 全网罕见算法: 纯递归版本,其他家最多只能设计到分段级别就是极限了
● 🎯 优化高低点: 走势结束点精准定位最高最低点
● 🏆 自然走势结构: 高低点分布更加自然合理
● 💎 完整缠论元素: 涵盖所有缠论核心要素
● ⚡ 超丰富笔细节: 笔的处理细节极其丰富
🌟 客户反馈: 众多资深缠友首选版本,实战效果卓越
快照
---
🎊 立即体验,开启专业缠论分析之旅!
售前说明:缠中说禅理论,相对比较复杂,软件尽量实现原文的功能,但是也难免有些瑕疵地方,无法处理到位,这边后期会陆续完善,介意的客户可以先试用几天,觉得合适再买,不合适就当测试下,欢迎大家反馈问题和bug,掌柜有空会后期更新修改和优化
1.多级别递归
2.K线包含
3.面积统计+中枢高低点价格显示
4.多级别盘整背离背驰
5.叠加实用均线
6.分型笔
7。k线中枢
8.几十个可选参数调整
9,可选的一些报警功能,后期陆续完善,更丰富
10.走势结构标志
Search in scripts for "the script"
Information-Geometric Market DynamicsInformation-Geometric Market Dynamics
The Information Field: A Geometric Approach to Market Dynamics
By: DskyzInvestments
Foreword: Beyond the Shadows on the Wall
If you have traded for any length of time, you know " the feeling ." It is the frustration of a perfect setup that fails, the whipsaw that stops you out just before the real move, the nagging sense that the chart is telling you only half the story. For decades, technical analysis has relied on interpreting the shadows—the patterns left behind by price. We draw lines on these shadows, apply indicators to them, and hope they reveal the future.
But what if we could stop looking at the shadows and, instead, analyze the object casting them?
This script introduces a new paradigm for market analysis: Information-Geometric Market Dynamics (IGMD) . The core premise of IGMD is that the price chart is merely a one-dimensional projection of a much richer, higher-dimensional reality—an " information field " generated by the collective actions and beliefs of all market participants.
This is not just another collection of indicators. It is a unified framework for measuring the geometry of the market's information field—its memory, its complexity, its uncertainty, its causal flows—and making high-probability decisions based on that deeper reality. By fusing advanced mathematical and informational concepts, IGMD provides a multi-faceted lens through which to view market behavior, moving beyond simple price action into the very structure of market information itself.
Prepare to move beyond the flatland of the price chart. Welcome to the information field.
The IGMD Framework: A Multi-Kernel Approach
What is a Kernel? The Heart of Transformation
In mathematics and data science, a kernel is a powerful and elegant concept. At its core, a kernel is a function that takes complex, often inscrutable data and transforms it into a more useful format. Think of it as a specialized lens or a mathematical "probe." You cannot directly measure abstract concepts like "market memory" or "trend quality" by looking at a price number. First, you must process the raw price data through a specific mathematical machine—a kernel—that is designed to output a measurement of that specific property. Kernels operate by performing a sort of "similarity test," projecting data into a higher-dimensional space where hidden patterns and relationships become visible and measurable.
Why do creators use them? We use kernels to extract features —meaningful pieces of information—that are not explicitly present in the raw data. They are the essential tools for moving beyond surface-level analysis into the very DNA of market behavior. A simple moving average can tell you the average price; a suite of well-chosen kernels can tell you about the character of the price action itself.
The Alchemist's Challenge: The Art of Fusion
Using a single kernel is a challenge. Using five distinct, computationally demanding mathematical engines in unison is an immense undertaking. The true difficulty—and artistry—lies not just in using one kernel, but in fusing the outputs of many . Each kernel provides a different perspective, and they can often give conflicting signals. One kernel might detect a strong trend, while another signals rising chaos and uncertainty. The IGMD script's greatest strength is its ability to act as this alchemist, synthesizing these disparate viewpoints through a weighted fusion process to produce a single, coherent picture of the market's state. It required countless hours of testing and calibration to balance the influence of these five distinct analytical engines so they work in harmony rather than cacophony.
The Five Kernels of Market Dynamics
The IGMD script is built upon a foundation of five distinct kernels, each chosen to probe a unique and critical dimension of the market's information field.
1. The Wavelet Kernel (The "Microscope")
What it is: The Wavelet Kernel is a signal processing function designed to decompose a signal into different frequency scales. Unlike a Fourier Transform that analyzes the entire signal at once, the wavelet slides across the data, providing information about both what frequencies are present and when they occurred.
The Kernels I Use:
Haar Kernel: The simplest wavelet, a square-wave shape defined by the coefficients . It excels at detecting sharp, sudden changes.
Daubechies 2 (db2) Kernel: A more complex and smoother wavelet shape that provides a better balance for analyzing the nuanced ebb and flow of typical market trends.
How it Works in the Script: This kernel is applied iteratively. It first separates the finest "noise" (detail d1) from the first level of trend (approximation a1). It then takes the trend a1 and repeats the process, extracting the next level of cycle (d2) and trend (a2), and so on. This hierarchical decomposition allows us to separate short-term noise from the long-term market "thesis."
2. The Hurst Exponent Kernel (The "Memory Gauge")
What it is: The Hurst Exponent is derived from a statistical analysis kernel that measures the "long-term memory" or persistence of a time series. It is the definitive measure of whether a series is trending (H > 0.5), mean-reverting (H < 0.5), or random (H = 0.5).
How it Works in the Script: The script employs a method based on Rescaled Range (R/S) analysis. It calculates the average range of price movements over increasingly larger time lags (m1, m2, m4, m8...). The slope of the line plotting log(range) vs. log(lag) is the Hurst Exponent. Applying this complex statistical analysis not to the raw price, but to the clean, wavelet-decomposed trend lines, is a key innovation of IGMD.
3. The Fractal Dimension Kernel (The "Complexity Compass")
What it is: This kernel measures the geometric complexity or "jaggedness" of a price path, based on the principles of fractal geometry. A straight line has a dimension of 1; a chaotic, space-filling line approaches a dimension of 2.
How it Works in the Script: We use a version based on Ehlers' Fractal Dimension Index (FDI). It calculates the rate of price change over a full lookback period (N3) and compares it to the sum of the rates of change over the two halves of that period (N1 + N2). The formula d = (log(N1 + N2) - log(N3)) / log(2) quantifies how much "longer" and more convoluted the price path was than a simple straight line. This kernel is our primary filter for tradeable (low complexity) vs. untradeable (high complexity) conditions.
4. The Shannon Entropy Kernel (The "Uncertainty Meter")
What it is: This kernel comes from Information Theory and provides the purest mathematical measure of information, surprise, or uncertainty within a system. It is not a measure of volatility; a market moving predictably up by 10 points every bar has high volatility but zero entropy .
How it Works in the Script: The script normalizes price returns by the ATR, categorizes them into a discrete number of "bins" over a lookback window, and forms a probability distribution. The Shannon Entropy H = -Σ(p_i * log(p_i)) is calculated from this distribution. A low H means returns are predictable. A high H means returns are chaotic. This kernel is our ultimate gauge of market conviction.
5. The Transfer Entropy Kernel (The "Causality Probe")
What it is: This is by far the most advanced and computationally intensive kernel in the script. Transfer Entropy is a non-parametric measure of directed information flow between two time series. It moves beyond correlation to ask: "Does knowing the past of Volume genuinely reduce our uncertainty about the future of Price?"
How it Works in the Script: To make this work, the script discretizes both price returns and the chosen "driver" (e.g., OBV) into three states: "up," "down," or "neutral." It then builds complex conditional probability tables to measure the flow of information in both directions. The Net Transfer Entropy (TE Driver→Price minus TE Price→Driver) gives us a direct measure of causality . A positive score means the driver is leading price, confirming the validity of the move. This is a profound leap beyond traditional indicator analysis.
Chapter 3: Fusion & Interpretation - The Field Score & Dashboard
Each kernel is a specialist providing a piece of the puzzle. The Field Score is where they are fused into a single, comprehensive reading. It's a weighted sum of the normalized scores from all five kernels, producing a single number from -1 (maximum bearish information field) to +1 (maximum bullish information field). This is the ultimate "at-a-glance" metric for the market's net state, and it is interpreted through the dashboard.
The Dashboard: Your Mission Control
Field Score & Regime: The master metric and its plain-English interpretation ("Uptrend Field", "Downtrend Field", "Transitional").
Kernel Readouts (Wave Align, H(w), FDI, etc.): The live scores of each individual kernel. This allows you to see why the Field Score is what it is. A high Field Score with all components in agreement (all green or red) is a state of High Coherence and represents a high-quality setup.
Market Context: Standard metrics like RSI and Volume for additional confluence.
Signals: The raw and adjusted confluence counts and the final, calculated probability scores for potential long and short entries.
Pattern: Shows the dominant candlestick pattern detected within the currently forming APEX range box and its calculated confidence percentage.
Chapter 4: Mastering the Controls - The Inputs Menu
Every parameter is a lever to fine-tune the IGMD engine.
📊 Wavelet Transform: Kernel ( Haar for sharp moves, db2 for smooth trends) and Scales (depth of analysis) let you tune the script's core microscope to your asset's personality.
📈 Hurst Exponent: The Window determines if you're assessing short-term or long-term market memory.
🔍 Fractal Dimension & ⚡ Entropy Volatility: Adjust the lookback windows to make these kernels more or less sensitive to recent price action. Always keep "Normalize by ATR" enabled for Entropy for consistent results.
🔄 Transfer Entropy: Driver lets you choose what causal force to measure (e.g., OBV, Volume, or even an external symbol like VIX). The throttle setting is a crucial performance tool, allowing you to balance precision with script speed.
⚡ Field Fusion • Weights: This is where you can customize the model's "brain." Increase the weights for the kernels that best align with your trading philosophy (e.g., w_hurst for trend followers, w_fdi for chop avoiders).
📊 Signal Engine: Mode offers presets from Conservative to Aggressive . Min Confluence sets your evidence threshold. Dynamic Confluence is a powerful feature that automatically adapts this threshold to the market regime.
🎨 Visuals & 📏 Support/Resistance: These inputs give you full control over the chart's appearance, allowing you to toggle every visual element for a setup that is as clean or as data-rich as you desire.
Chapter 5: Reading the Battlefield - On-Chart Visuals
Pattern Boxes (The Large Rectangles): These are not simple range boxes. They appear when the Field Score crosses a significance threshold, signaling a potential ignition point.
Color: The color reflects the dominant candlestick pattern that has occurred within that box's duration (e.g., green for Bull Engulf).
Label: Displays the dominant pattern, its duration in bars, and a calculated Confidence % based on field strength and pattern clarity.
Bar Pattern Boxes (The Small Boxes): If enabled, these highlight individual, significant candlestick patterns ( BE for Bull Engulf, H for Hammer) on a bar-by-bar basis.
Signal Markers (▲ and ▼): These appear only when the Signal Engine's criteria are all met. The number is the calculated Probability Score .
RR Rails (Dashed Lines): When a signal appears, these lines automatically plot the Entry, Stop Loss (based on ATR), and two Take Profit targets (based on Risk/Reward ratios). They dynamically break and disappear as price touches each level.
Support & Resistance Lines: Plots of the highest high ( Resistance ) and lowest low ( Support ) over a lookback, providing key structural levels.
Chapter 6: Development Philosophy & A Final Word
One single question: " What is the market really doing? " It represents a triumph of complexity, blending concepts from signal processing, chaos theory, and information theory into a cohesive framework. It is offered for educational and analytical purposes and does not constitute financial advice. Its goal is to elevate your analysis from interpreting flat shadows to measuring the rich, geometric reality of the market's information field.
As the great mathematician Benoit Mandelbrot , father of fractal geometry, noted:
"Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line."
Neither does the market. IGMD is a tool designed to navigate that beautiful, complex, and fractal reality.
— Dskyz, Trade with insight. Trade with anticipation.
GIGANEVA V6.61 PublicThis enhanced Fibonacci script for TradingView is a powerful, all-in-one tool that calculates Fibonacci Levels, Fans, Time Pivots, and Golden Pivots on both logarithmic and linear scales. Its ability to compute time pivots via fan intersections and Range interactions, combined with user-friendly features like Bool Fib Right, sets it apart. The script maximizes TradingView’s plotting capabilities, making it a unique and versatile tool for technical analysis across various markets.
1. Overview of the Script
The script appears to be a custom technical analysis tool built for TradingView, improving upon an existing script from TradingView’s Community Scripts. It calculates and plots:
Fibonacci Levels: Standard retracement levels (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range.
Fibonacci Fans: Trendlines drawn from a high or low point, radiating at Fibonacci ratios to project potential support/resistance zones.
Time Pivots: Points in time where significant price action is expected, determined by the intersection of Fibonacci Fans or their interaction with key price levels.
Golden Pivots: Specific time pivots calculated when the 0.5 Fibonacci Fan (on a logarithmic or linear scale) intersects with its counterpart.
The script supports both logarithmic and linear price scales, ensuring versatility across different charting preferences. It also includes a feature to extend Fibonacci Fans to the right, regardless of whether the user selects the top or bottom of the range first.
2. Key Components Explained
a) Fibonacci Levels and Fans from Top and Bottom of the "Range"
Fibonacci Levels: These are horizontal lines plotted at standard Fibonacci retracement ratios (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range (the "Range"). The Range is typically the distance between a significant high (top) and low (bottom) on the chart.
Example: If the high is $100 and the low is $50, the 0.618 retracement level would be at $80.90 ($50 + 0.618 × $50).
Fibonacci Fans: These are diagonal lines drawn from either the top or bottom of the Range, radiating at Fibonacci ratios (e.g., 0.382, 0.5, 0.618). They project potential dynamic support or resistance zones as price evolves over time.
From Top: Fans drawn downward from the high of the Range.
From Bottom: Fans drawn upward from the low of the Range.
Log and Linear Scale:
Logarithmic Scale: Adjusts price intervals to account for percentage changes, which is useful for assets with large price ranges (e.g., cryptocurrencies or stocks with exponential growth). Fibonacci calculations on a log scale ensure ratios are proportional to percentage moves.
Linear Scale: Uses absolute price differences, suitable for assets with smaller, more stable price ranges.
The script’s ability to plot on both scales makes it adaptable to different markets and user preferences.
b) Time Pivots
Time pivots are points in time where significant price action (e.g., reversals, breakouts) is anticipated. The script calculates these in two ways:
Fans Crossing Each Other:
When two Fibonacci Fans (e.g., one from the top and one from the bottom) intersect, their crossing point represents a potential time pivot. This is because the intersection indicates a convergence of dynamic support/resistance zones, increasing the likelihood of a price reaction.
Example: A 0.618 fan from the top crosses a 0.382 fan from the bottom at a specific bar on the chart, marking that bar as a time pivot.
Fans Crossing Top and Bottom of the Range:
A fan line (e.g., 0.5 fan from the bottom) may intersect the top or bottom price level of the Range at a specific time. This intersection highlights a moment where the fan’s projected support/resistance aligns with a key price level, signaling a potential pivot.
Example: The 0.618 fan from the bottom reaches the top of the Range ($100) at bar 50, marking bar 50 as a time pivot.
c) Golden Pivots
Definition: Golden pivots are a special type of time pivot calculated when the 0.5 Fibonacci Fan on one scale (logarithmic or linear) intersects with the 0.5 fan on the opposite scale (or vice versa).
Significance: The 0.5 level is the midpoint of the Fibonacci sequence and often acts as a critical balance point in price action. When fans at this level cross, it suggests a high-probability moment for a price reversal or significant move.
Example: If the 0.5 fan on a logarithmic scale (drawn from the bottom) crosses the 0.5 fan on a linear scale (drawn from the top) at bar 100, this intersection is labeled a "Golden Pivot" due to its confluence of key Fibonacci levels.
d) Bool Fib Right
This is a user-configurable setting (a boolean input in the script) that extends Fibonacci Fans to the right side of the chart.
Functionality: When enabled, the fans project forward in time, regardless of whether the user selected the top or bottom of the Range first. This ensures consistency in visualization, as the direction of the Range selection (top-to-bottom or bottom-to-top) does not affect the fan’s extension.
Use Case: Traders can use this to project future support/resistance zones without worrying about how they defined the Range, improving usability.
3. Why Is This Code Unique?
Original calculation of Log levels were taken from zekicanozkanli code. Thank you for giving me great Foundation, later modified and applied to Fib fans. The script’s uniqueness stems from its comprehensive integration of Fibonacci-based tools and its optimization for TradingView’s plotting capabilities. Here’s a detailed breakdown:
All-in-One Fibonacci Tool:
Most Fibonacci scripts on TradingView focus on either retracement levels, extensions, or fans.
This script combines:
Fibonacci Levels: Static horizontal lines for retracement and extension.
Fibonacci Fans: Dynamic trendlines for projecting support/resistance.
Time Pivots: Temporal analysis based on fan intersections and Range interactions.
Golden Pivots: Specialized pivots based on 0.5 fan confluences.
By integrating these functions, the script provides a holistic Fibonacci analysis tool, reducing the need for multiple scripts.
Log and Linear Scale Support:
Many Fibonacci tools are designed for linear scales only, which can distort projections for assets with exponential price movements. By supporting both logarithmic and linear scales, the script caters to a wider range of markets (e.g., stocks, forex, crypto) and user preferences.
Time Pivot Calculations:
Calculating time pivots based on fan intersections and Range interactions is a novel feature. Most TradingView scripts focus on price-based Fibonacci levels, not temporal analysis. This adds a predictive element, helping traders anticipate when significant price action might occur.
Golden Pivot Innovation:
The concept of "Golden Pivots" (0.5 fan intersections across scales) is a unique addition. It leverages the symmetry of the 0.5 level and the differences between log and linear scales to identify high-probability pivot points.
Maximized Plot Capabilities:
TradingView imposes limits on the number of plots (lines, labels, etc.) a script can render. This script is coded to fully utilize these limits, ensuring that all Fibonacci levels, fans, pivots, and labels are plotted without exceeding TradingView’s constraints.
This optimization likely involves efficient use of arrays, loops, and conditional plotting to manage resources while delivering a rich visual output.
User-Friendly Features:
The Bool Fib Right option simplifies fan projection, making the tool intuitive even for users who may not consistently select the Range in the same order.
The script’s flexibility in handling top/bottom Range selection enhances usability.
4. Potential Use Cases
Trend Analysis: Traders can use Fibonacci Fans to identify dynamic support/resistance zones in trending markets.
Reversal Trading: Time pivots and Golden Pivots help pinpoint moments for potential price reversals.
Range Trading: Fibonacci Levels provide key price zones for trading within a defined range.
Cross-Market Application: Log/linear scale support makes the script suitable for stocks, forex, commodities, and cryptocurrencies.
The original code was from zekicanozkanli . Thank you for giving me great Foundation.
Volatility Adaptive Signal Tracker (VAST)The Adaptive Trend Following Buy/Sell Signals Pine Script is designed to help traders identify and capitalize on market trends using an adaptive trend-following strategy. This script focuses on generating reliable buy and sell signals by analyzing market trends and volatility. It simplifies the trading process by providing clear signals without plotting additional lines, making it easy to use and interpret.
Key Features:
Adaptive Trend Following:
The script employs an adaptive trend-following approach that leverages market volatility to generate buy and sell signals. This method is effective in both trending and volatile markets.
Inputs and Customization:
The script includes customizable parameters for the Simple Moving Average (SMA) length, the Average True Range (ATR) length, and the ATR multiplier. These inputs allow traders to adjust the sensitivity of the signals to match their trading style and market conditions.
Signal Generation:
Buy Signal: Generated when the closing price crosses above the upper adaptive band, indicating a potential upward trend.
Sell Signal: Generated when the closing price crosses below the lower adaptive band, indicating a potential downward trend.
Visual Signals:
The script uses plotshape to mark buy signals with green labels below the bars and sell signals with red labels above the bars. This clear visual representation helps traders quickly identify trading opportunities.
Alert Conditions:
The script sets up alert conditions for both buy and sell signals. Traders can use these alerts to receive notifications when a signal is generated, ensuring they do not miss any trading opportunities.
How It Works:
SMA Calculation: The script calculates the Simple Moving Average (SMA) over a specified period, which helps in identifying the general trend direction.
ATR Calculation: The Average True Range (ATR) is calculated to measure market volatility.
Adaptive Bands: Upper and lower adaptive bands are created by adding and subtracting a multiple of the ATR to the SMA, respectively.
Signal Logic: Buy signals are generated when the closing price crosses above the upper band, while sell signals are generated when the closing price crosses below the lower band.
Example Use Case:
A trader looking to capitalize on medium-term trends in the Nifty futures market can use this script to receive timely buy and sell signals. By customizing the SMA length and ATR parameters, the trader can fine-tune the script to match their trading strategy, ensuring they enter and exit trades at optimal points.
Benefits:
Simplicity: The script provides clear buy and sell signals without cluttering the chart with additional lines or indicators.
Adaptability: Customizable parameters allow traders to adapt the script to various market conditions and trading styles.
Alerts: Built-in alert conditions ensure traders receive timely notifications, helping them to act quickly on trading signals.
How to Use:
Open TradingView: Go to the TradingView website and log in.
Create a New Chart: Click on the “Chart” button to open a new chart.
Open the Pine Script Editor: Click on the “Pine Editor” tab at the bottom of the chart.
Create a New Script: Delete any default code in the Pine Script editor and paste the provided script.
Add to Chart: Click on the “Add to Chart” button to compile and add the script to your chart.
Save the Script: Click “Save” and name the script.
Set Alerts: Right-click on the chart, select “Add Alert,” and choose the appropriate condition to set alerts for buy and sell signals.
Elliot waves calibratorThis script is a part of the "Elliot waves" toolkit and need to be used with the "Elliot waves" script", because it's generating input parameters for the "Elliot waves" scripts.
You need to add script to chart and on the right bottom corner you can see table with calibration params. Those values you need to copy to "Elliot waves" script settings to see Elliot waves visualization on that chart.
Script settings:
Vertex filter - Value used in the "Elliot waves" script to filter highs and lows that are not an extreme over area width equal to vertex filter value. In edge cases it can change calbiration params. Both scripts should have set the same values of this param.
Troubleshooting:
In case of any problems, please send error details to the author of the script.
Psychological levels (Bank levels) PsychoLevels v2 - TartigradiaPsychological levels (Bank levels) plots "round" price levels above and below current price, by truncating after the nth leftmost digits, based on neuroscience research of how humans intuitively calculate in logarithms.
Psychological levels, also called bank levels, are "round" price numbers around which price often experience resistance or support, because traders and investors tend to set orders around these round numbers.
Calculation here is fully automatic and dynamic, contrary to other similar scripts, this one uses a mathematical calculation that extracts the 1, 2 or 3 leftmost digits and calculate the previous and next level by incrementing/decrementing these digits. This means it works for any symbol under any price range.
This approach is based on neuroscience research, which found that human brains intuitively approximate numbers on a logarithmic scale, adults and children alike, and similarly to macaques, for more info see Numerical Cognition , Weber-Fechner Law , Zipf law.
For example, if price is at 0.0421, the next major price level is 0.05 and medium one is 0.043. For another asset currently priced at 19354, the next and previous major price levels are 20000 and 10000 respectively, and the next/previous medium levels are 20000 and 19000, and the next/previous weak levels are 19400 and 19300.
Usage:
* By default, strong upper level is in green, strong lower level is in red, medium upper level is in blue, medium lower level is in yellow, and weak levels aren't displayed but can be. Half levels are also displayed, in a darker color. Strong levels are increments of the first leftmost digit (eg, 10000 to 20000), medium levels are increments of the second leftmost digit (eg, 19000 to 20000), and weak levels of the third leftmost digit (eg, 19100 to 19200). Instead of plotting all the psychological levels all at once as a grid, which makes the chart unintelligible, here the levels adapt dynamically around the current price, so that they show the upper/lower levels relatively to the current price.
* A simple moving average is implemented, so that "half-levels" are also displayed when relevant (eg, medium level can also display 19500 instead of only 19000 or 20000). This can be disabled by setting smoothing to 1.
* By default, the script runs on the daily timeframe, whatever the current chart's timeframe is. This is to reduce the variability in levels, to make it less noisy than intraday price movement, but this can be changed in the settings.
* The step can be adjusted to increase the gap between levels, eg, if you want to display one every 2 levels then input step = 2 (eg, 22000, 24000, 26000, etc), or if you want to display quarter levels, input 0.25 (eg, 22000, 22250, 22500, etc). The default values should fit most use cases and cover most psychological levels.
I made this script mainly to train with PineScript, but I found it surprisingly accurate to define levels that are respected by price movements. So I guess it can be useful for new traders and experienced traders alike, as it's easy to forget that psychological levels can often be as strong if not stronger than technical levels. It can also be used to quickly screen other minor assets for trading opportunities. For example, a hybrid strategy would be to manually define levels on BTCUSD but using this script to automatically define levels in crypto altcoins and quickly screen them for a trade opportunity that can be greater than with BTCUSD but with the same trend.
Changes compared to v1:
* Deduplicated redundant calculations and hence faster script.
* Added half-step levels, which allows to more easily see breakouts (because the levels are still on-screen).
* All steps are now configuration on the GUI.
* Revamped color scheme.
* And major reasons to post as a separate v2 script rather than updating: because we can't update the original description nor screenshot. I have now read more about the House Rules and saw other scriptmakers, so I am trying to write better descriptions like wizards do, by explaining not only how the script works but what the underlying financial concept is to a neophyte audience.
TripleEMA + StochasticRSI + ATR Scalping Strategy by TradeSmartCOINBASE:BTCUSD Hello everyone and welcome to our second script release!
This script is one of many upcoming scripts. This one is a test for us, how it works, how you guys like this kind of stuff, and for feedback what we should change/improve at.
So feel free to comment any suggestions you have.
SCRIPT IS OPTIMIZED FOR:
BTC/USD (Coinbase) 15 minute timeframe
(Keep in mind default settings does not include trading fees, you can set it at the properties)
I recommend using this script on a trading exchange where the fees are extremely low or on an exchange where you get paid to place limit orders.
(I am not a financial avdvisor and none of this is financial advice.)
Now you can modify the following:
Stochastic RSI
3 different EMA
Length of ATR (for stop loss and take profit)
Stop Loss and Take Profit Risk to Reward ratio
Choice between Capital Risk on each trade or Risk of % of Capital
Allowing Short/Long entries only
Limit between dates
Trading days 1-7
We will update the script with more and more features taking in consideration your requests.
Hope you like it! Don't forget to let us know what we should change or improve. Thanks, and have a great day!
STRATEGY ENTRY RULES
LONG
When EMAs are lining up (meaning for ex. 400 < 13 < 7), and the Stochastic RSI crosses upwards (meaning blue line crosses orange upwards), then go long.
SHORT
When EMAs are lining down (meaning for ex. 7 < 13 < 400), and the Stochastic RSI crosses downwards (meaning blue line crosses orange downwards), then go short.
TAKE PROFIT
When price hits the exit price (calculated from stop loss with the risk ratio)
STOP LOSS
When price hits stop loss then exit the position.
QUANTITY TO BUY (Risk per Trade % or Capital %)
Risk Per Trade % attribute: we can set how much money we want to risk on one trade. Meaning that if we lose that particular position, then a Risk Per Trade % value of our equity will be lost.
Example: if you set the Risk Per Trade % to 1 % and you have a 100$ account balance, then if you loose the trade you will loose 1$ max.
Capital % we can set with how big % of our capital we want to enter into a position. Meaning that we enter with a set % of our capital.
Example: if you set the Capital % to 1 % and you have a 100$ account balance, then you will enter the position with 1$.
First Release Settings: (2021-10-25) for BTC/USD (Coinbase) 15 minute timeframe
Stochastic RSI settings: (Not displayed in the script. If you want to see it you have to add it separately.)
K: 3
D: 2
RSI Length: 6
Stochastic Length: 16
RSI Source: hlc3
EMA 1: 5
Source One: Close
EMA 2: 12
Source Two: Close
EMA 3: 215
Source Three: Close
Length of ATR: 16
Stop Loss Multiplier (risk): 3.6
Exit Price Multiplier (reward): 1
Risk Percentage: 3
Allow Long Entries: yes
Allow Short Entries: yes
Valid Trading Days: 1234567
The valid trading days of the Limit Trading Time feature. Numbers represent the days: Sunday (1), Monday (2), Tuesday (3), …, Saturday (7)
If you like this one, follow for more scripts! Thank you for your support!
PriceCatch-Signals - Buy SignalsHi,
TradingView Community.
Here is a script that identifies and marks two different buy levels on the chart. It works on all asset classes - equities, forex, crypto.
Probable Breakout Buy Level
Stop-Reverse Buy Level
The bottom images are self-explanatory.
PROBABLE BREAKOUT BUY LEVEL EXAMPLE:
STOP-REVERSE BUY LEVEL EXAMPLE:
IDENTIFICATION OF LEVELS:
The Blue Dotted line represents Probable Breakout Buy Level and the Blue Dashed Line Stop-Reverse Buy Level. The corresponding Red Dotted line below each level should be your initial stop loss price point.
PLAYING SAFE
After taking the trade, to play safe, I follow this method that once the Low of the price goes above the Buy Level, I usually shift the stop loss to buy price to protect against any sudden reversal. For me protecting capital is important. As usual with price action, longer time-frames produce more reliable signals.
NOTE - PRIOR TO USING THIS SCRIPT:
The script uses Heikin-Ashi Candles data to identify the levels. You may use this script in addition to your other indicators or in isolation. Please remember that the script is shared with absolutely no assurances and warranties whatsoever and as a responsible trader, please satisfy yourselves thoroughly and use it only if you are satisfied it works for you. Remember, you are 100% responsible for your actions. If you understand and accept that, you may use the script. The script does not identify any short signals.
ADDITIONAL NOTE:
I shall also be releasing Screener scripts that scan the following markets for the above two conditions or signals thereby helping traders spot opportunities at the right time by making the task of finding right stocks a breeze.
NASDAQ Stocks Screener (Can screen a total number of 160 stocks. 40 stocks at a time)
UK LSE Stocks Screener (Can screen a total number of 90 stocks. 30 stocks at a time)
Euronext Paris Stocks Screener (Can screen a total number of 50 stocks. 25 stocks at a time) - in development.
Singapore Stocks Screener is in development
Other International exchanges will be added based on response from users.
SOME MORE CHARTS:
QUERIES/FEEDBACK
Please PM me.
Regards to all and wish everyone all the best with trading.
PriceCatch-Signals - Buy SignalHi,
TradingView Community.
Here is a script that identifies and marks two different buy levels on the chart. It works on all asset classes - equities, forex, crypto.
Probable Breakout Buy Level
Stop-Reverse Buy Level
The bottom images are self-explanatory.
PROBABLE BREAKOUT BUY LEVEL EXAMPLE:
STOP-REVERSE BUY LEVEL EXAMPLE:
IDENTIFICATION OF LEVELS:
The Blue Dotted line represents Probable Breakout Buy Level and the Blue Dashed Line Stop-Reverse Buy Level. The corresponding Red Dotted line below each level should be your initial stop loss price point.
PLAYING SAFE
After taking the trade, to play safe, I follow this method that once the Low of the price goes above the Buy Level, I usually shift the stop loss to buy price to protect against any sudden reversal. For me protecting capital is important. As usual with price action, longer time-frames produce more reliable signals.
NOTE - PRIOR TO USING THIS SCRIPT:
The script uses Heikin-Ashi Candles data to identify the levels. You may use this script in addition to your other indicators or in isolation. Please remember that the script is shared with absolutely no assurances and warranties whatsoever and as a responsible trader, please satisfy yourselves thoroughly and use it only if you are satisfied it works for you. Remember, you are 100% responsible for your actions. If you understand and accept that, you may use the script. The script does not identify any short signals.
ADDITIONAL NOTE:
I shall also be releasing Screener scripts that scan the following markets for the above two conditions or signals thereby helping traders spot opportunities at the right time by making the task of finding right stocks a breeze.
NASDAQ Stocks Screener (Can screen a total number of 160 stocks. 40 stocks at a time)
UK LSE Stocks Screener (Can screen a total number of 90 stocks. 30 stocks at a time)
Euronext Paris Stocks Screener (Can screen a total number of 50 stocks. 25 stocks at a time) - in development.
Singapore Stocks Screener is in development
Other International exchanges will be added based on response from users.
SOME MORE CHARTS:
QUERIES/FEEDBACK
Please PM me.
Regards to all and wish everyone all the best with trading.
PriceCatch-SignalsHi,
TradingView Community.
Here is a script that identifies and marks two different buy levels on the chart. It works on all asset classes - equities, forex, crypto.
Probable Breakout Buy Level
Stop-Reverse Buy Level
The bottom images are self-explanatory.
PROBABLE BREAKOUT BUY LEVEL EXAMPLE:
STOP-REVERSE BUY LEVEL EXAMPLE:
IDENTIFICATION OF LEVELS:
The Blue Dotted line represents Probable Breakout Buy Level and the Blue Dashed Line Stop-Reverse Buy Level. The corresponding Red Dotted line below each level should be your initial stop loss price point.
PLAYING SAFE
After taking the trade, to play safe, I follow this method that once the Low of the price goes above the Buy Level, I usually shift the stop loss to buy price to protect against any sudden reversal. For me protecting capital is important. As usual with price action, longer time-frames produce more reliable signals.
NOTE - PRIOR TO USING THIS SCRIPT:
The script uses Heikin-Ashi Candles data to identify the levels. You may use this script in addition to your other indicators or in isolation. Please remember that the script is shared with absolutely no assurances and warranties whatsoever and as a responsible trader, please satisfy yourselves thoroughly and use it only if you are satisfied it works for you. Remember, you are 100% responsible for your actions. If you understand and accept that, you may use the script. The script does not identify any short signals.
ADDITIONAL NOTE:
I shall also be releasing Screener scripts that scan the following markets for the above two conditions or signals thereby helping traders spot opportunities at the right time by making the task of finding right stocks a breeze.
NASDAQ Stocks Screener (Can screen a total number of 160 stocks. 40 stocks at a time)
UK LSE Stocks Screener (Can screen a total number of 90 stocks. 30 stocks at a time)
Euronext Paris Stocks Screener (Can screen a total number of 50 stocks. 25 stocks at a time) - in development.
Singapore Stocks Screener is in development
Other International exchanges will be added based on response from users.
SOME MORE CHARTS:
QUERIES/FEEDBACK
Please PM me.
Regards to all and wish everyone all the best with trading.
PriceCatch-SignalsHi,
TradingView Community.
Here is a script that identifies and marks two different buy levels on the chart. It works on all asset classes - equities, forex, crypto.
Probable Breakout Buy Level
Stop-Reverse Buy Level
The bottom images are self-explanatory.
PROBABLE BREAKOUT BUY LEVEL EXAMPLE:
STOP-REVERSE BUY LEVEL EXAMPLE:
IDENTIFICATION OF LEVELS:
The Blue Dotted line represents Probable Breakout Buy Level and the Blue Dashed Line Stop-Reverse Buy Level. The corresponding Red Dotted line below each level should be your initial stop loss price point.
PLAYING SAFE
After taking the trade, to play safe, I follow this method that once the Low of the price goes above the Buy Level, I usually shift the stop loss to buy price to protect against any sudden reversal. For me protecting capital is important. As usual with price action, longer time-frames produce more reliable signals.
NOTE - PRIOR TO USING THIS SCRIPT:
The script uses Heikin-Ashi Candles data to identify the levels. You may use this script in addition to your other indicators or in isolation. Please remember that the script is shared with absolutely no assurances and warranties whatsoever and as a responsible trader, please satisfy yourselves thoroughly and use it only if you are satisfied it works for you. Remember, you are 100% responsible for your actions. If you understand and accept that, you may use the script. The script does not identify any short signals.
ADDITIONAL NOTE:
I shall also be releasing Screener scripts that scan the following markets for the above two conditions or signals thereby helping traders spot opportunities at the right time by making the task of finding right stocks a breeze.
NASDAQ Stocks Screener (Can screen a total number of 160 stocks. 40 stocks at a time)
UK LSE Stocks Screener (Can screen a total number of 90 stocks. 30 stocks at a time)
Euronext Paris Stocks Screener (Can screen a total number of 50 stocks. 25 stocks at a time) - in development.
Singapore Stocks Screener is in development
Other International exchanges will be added based on response from users.
SOME MORE CHARTS:
QUERIES/FEEDBACK
Please PM me.
Regards to all and wish everyone all the best with trading.
Adapting a built-in [PineCoders]█ OVERVIEW
This Pine script shows how it can be quite simple to personalize a built-in indicator for your needs.
█ OUR SCRIPT
Our objective was to add the current values for volume and its moving average in prominent view, and use brighter colors than the built-in.
We started with the source code from the "Volume" built-in indicator. You can access the source code of many built-ins from the Pine Editor by clicking the "Open" button and choosing "New default built-in script..."
We changed the variable names so they conform to our Coding Conventions . Everybody is of course free to code their scripts the way they want; the conventions provide guidelines for those interested in Pine-specific recommendations. We use our conventions to make our code more readable, which helps readers of open-source publications. As Uncle Bob, a.k.a. Robert Cecil Martin, argues in his "Clean Code" book, code that is easier to read is also useful for its first user: you.
We assigned the colors we use to constants because they are used in multiple places in the script. If we decide to change them, we only need to change the constant definitions for the change to trickle down to the rest of the code.
We used the `inline` and `tooltip` parameters of input() to better organize our inputs and provide extra information under an "i" icon when needed.
We wanted to pack more information in the display of the moving average and volume than just the values, so we color-coded their background:
• When the MA is rising, the background of its table cell is in the bull color, otherwise it's in the bear color. The period used for the MA is also displayed in that cell's legend.
• When the current volume's value is higher/lower than its MA, the background of its cell is of bull/bear color.
We use a Pine table to display our values. We use extra cells to provide a configurable margin to the left, and a small space between the two values.
Because we only use constant colors in this script (i.e., values that are known at compile time), users can change the colors in the "Setting/Style" tab's color widgets. Users of the script can also use the tab to change other attributes of the plots.
Look first. Then leap.
Point and Figure Chart - LiveHello Traders,
This is "Point and Figure Chart (PnF)" script that run in separated window in real time. The separated PnF chart window is timeless, so no relation with the time on the chart. PnF chart consist of "X" and "O" columns. While "X" columns represents rising prices, "O" column represents a falling price. If you have no idea about what PnF charting is then you should search for "Point and Figure Charting" on the net and get some info before using this script.
Now lets talk about details. PnF Chart requires at least two variables to be set => Box size and Reversal. Box size represents the size of each X/O in PnF chart and the reversal is used to calculate new X/O or reversal. for example if currrent column is X column then for new "X", "box size * 1" move is needed and for new "O" column or reversal, "box size * revelsal" move is needed. in the script I use lines as X/O columns.
In the options you can set "Box Size Assingment Method". you have 3 options Traditional, ATR, Percentage . what are they?
Traditional: user-defined box size, means you can set the box size as you wish, using the option . if you use this option then you should set it accordingly.
ATR : that's dynamic box size scaling and on each columns it's calculated once, you can set length for ATR
Percentage: that's also dynamic box size scaling according to closing price when new column appeared. if you use this option then you should set it accordingly.
Reversal: The reversal is typically 3 but you can change it as you wish
"Change Bar Color by PnF Trend": if you enable this option then bar color changes by PnF columns, by default it's not enabled
"Change Column Color When Breakout Occurs": PnF color changes if Double Top/Bottom breakout accours. enabled by default and you can set the colors as you wish using the options
"Change Bar Color When Breakout Occurs": bar colors changed if Double Top/Bottom breakout accours. enabled by default and you can set the colors as you wish using the options
the script checks only Double Top/Bottom breakouts at the moment. there are many other breakouts such Triple/Quadruple, Ascending/Descending Triple Top/Bottom breakouts, Catapult etc.
Also the script shows new X/O level and reversal Levels in PnF window. An example:
If you enable "Change Bar Color by PnF Trend" option:
An example if you disable the option "Change Column Color When Breakout Occurs
You may want to see my another/older "Point and Point Chart" script as well. you can find it in my profile/published scripts and in the Public Library. I use same PnF calculation algorithm in both scripts.
Enjoy!
Stock Vn Signal Buy Sell Pro [PlungerMen]Vn Stock Signal Buy Sell Pro , mix 2 indicaror in it for exactly Signal
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Long Short" script, both compliment for each other. the "Long Short" script is Free, you can find it by searching
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization -2.64% -1.30% -3.21% -3.33% -3.27% Scalping Pro and B Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -3.11% -2.64% -1.30% -3.21% -3.33% -3.27% 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Vn Stock Signal Buy Sell Pro "
-->> 0.2 eth/1 month will be used Script: Vn Stock Signal Buy Sell Pro Pro an Super Bot alert telegram <--
Forex Signal buy sell Pro [PlungerMen]Forex Signal buy sell Pro , mix 2 indicaror in it for exactly Signal
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Long Short" script, both compliment for each other. the "Long Short" script is Free, you can find it by searching
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization -2.64% -1.30% -3.21% -3.33% -3.27% Scalping Pro and B Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -2.64% -1.30% -3.21% -3.33% -3.27% 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Bitmex Scalping PlungerMen"
-->> 0.2 eth/1 month will be used Script: BForex Signal buy sell Pro an Super Bot alert telegram <--
Bitmex margin PRO [PlungerMen]Hello!
this is Update of Bitmex Scalping PRO , mix 2 indicaror in it for exactly Signal
Bitmex margin PRO can use for every coin
Bitmex margin PRO is available for all frames
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Bitmex Long Short" script, both compliment for each other. the "Bitmex Long Short" script is Free, you can find it by searching “Bimex”
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization
- Register for a Professional version will be used 2 Script, Bitcoin -1.30% -3.21% -3.33% -3.27% Scalping Pro and Bitmex Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -1.30% -3.21% -3.33% -3.27% 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Bitmex Scalping PlungerMen"
-->> 0.2 eth/1 month will be used Script: Bitmex margin PRO an Super Bot alert telegram <--
Crypto Spiper Killer Pro [PlungerMen]Hello!
Crypto Spiper Killer Pro is a upgrade version of a Crypto Spiper Killer
Crypto Spiper Killer Pro can use for every coin
Crypto Spiper Killer Pro is available for all frames
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Bitmex Long Short" script, both compliment for each other. the "Bitmex Long Short" script is Free, you can find it by searching “Bimex”
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization
- Register for a Professional version will be used 2 Script, Bitcoin -0.95% -3.33% -3.27% Scalping Pro and Bitmex Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -0.95% -3.33% -3.27% 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Crypto Spiper Killer Pro "
-->> 0.2 eth/1 month will be used 2 Script: Crypto Spiper Killer Pro and Bitmex Long Short Pro - and Super Bot telegram
Bitmex Scalping PRO Study [PlungerMen]Hello!
Bitmex Scalping PRO Study have the alert, because BitMex Scalping PRO V2 is another format ( not have alert)
BitMex Scalping PRO V2 can use for every coin
BitMex Scalping PRO V2 is available for all frames
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Bitmex Long Short" script, both compliment for each other. the "Bitmex Long Short" script is Free, you can find it by searching “Bimex”
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization
- Register for a Professional version will be used 2 Script, Bitcoin -3.21% -3.33% -3.27% Scalping Pro and Bitmex Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -3.21% -3.33% -3.27% 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Bitmex Scalping PlungerMen"
-->> 0.2 eth/1 month will be used 2 Script: Bitmex Scalping Pro and Bitmex Long Short Pro <--
Bitmex Scalping PRO V2 [PlungerMen]Hello!
Bitmex Scalping PRO V2 is a upgrade version of a Bitmex Scalping Pro
BitMex Scalping PRO V2 can use for every coin
BitMex Scalping PRO V2 is available for all frames
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Bitmex Long Short" script, both compliment for each other. the "Bitmex Long Short" script is Free, you can find it by searching “Bimex”
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization
- Register for a Professional version will be used 2 Script, Bitcoin -3.33% -3.27% Scalping Pro and Bitmex Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -3.33% -3.27% 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Bitmex Scalping PlungerMen"
-->> 0.2 eth/1 month will be used 2 Script: Bitmex Scalping Pro and Bitmex Long Short Pro <--
Bitcoin Scalping PRO [PlungerMen] Hello!
Bitcoin Scalping PRO can use for every coin
Bitcoin Scalping PRO is available for all frames
Bitcoin Scalping PRO is a upgrade version of a Bitmex Scalping Pro
This Script is perfectly functional and works well by me and the best way to use this script is to use it with “Bitmex Long Short" script, both compliment for each other. the "Bitmex Long Short" script is Free, you can find it by searching “Bimex”
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization
- Register for a Professional version will be used 2 Script, Bitcoin Scalping Pro and Bitmex Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC 0.60% -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
New features: this time we add two lines that can help traders trader safer. When the red line cross above the green line means we are in the downtrend and when the green line cross above the red line, which means we are in a uptrend. This new features will help traders do a safer trade at small time frame.
We have the Script free for the user pass, search keyword " Bitmex Scalping PlungerMen"
-->> 0.2 eth/1 month will be used 2 Script: Bitcoin Scalping Pro and Bitmex Long Short Pro <--
Bitmex Scalping PRO [PlungerMen]Hello!
Bitmex Scalping PRO can use for every coin
Bitmex Scalping PRO Available option for all frames
This Script is very well used as it works by itself and very well used in conjunction with the "Bitmex Long Short" script, both compliment for each other. the "Bitmex Long Short" script is Free, you can find it
If you want to be more accurate and more efficient, more comfortable when you do not want to see too many other indicators, you can register for our Professional edition.
- The Professional Edition supports Level 1 and Level 2 commands ( display at chart : LONG+, long-, SHORT,+,short- ), which are very effective in allocating funds and optimizing your profits
Besides that,You will be supported by personal preferences, profit maximization
- Register for a Professional version will be used 2 Script,Bimex Scalping Pro and Bitmex Long Short Pro
- We will invite you to the signal channel Telgram with the announcement of the bottom and the peak of the BTC -0.13% ,the big variable variable has exists
**We hope you enjoy this script. Your support will help us develop more good quality scripts in the future to serve the community **
**Remember, Like this script and posivite feedback if you are satisfied**
if you have any questions, post a comment ... below here
*********** Guide:
+ option for all frames : Click setting and input high and low for time inteval
+ hide wave trend : Click setting -> click Style --> Up trend Fill or Down trend fill
******
We have the Script free for the user pass, search keyword " Bitmex Scalping PlungerMen"
-->> 0.2 eth/1 month will be used 2 Script: Bimex Scalping Pro and Bitmex Long Short Pro <--
Thanks !
Momentum Master v1Momentum Master v1 - Multi-Strategy Trading System
This script implements a trading system that integrates standard indicators (EMA, RSI, MACD, Bollinger Bands):
1. ADAPTIVE CONFIDENCE-BASED POSITION SIZING: Each signal receives a real-time confidence score (0-100%) calculated using a proprietary weighted algorithm. This confidence score dynamically adjusts stop loss distance (80%+ confidence = 1.2x stops, <60% = 0.9x stops), creating intelligent position sizing based on signal quality. This is NOT found in any standard indicator combination.
2. MULTI-LEVEL TP ANALYTICS WITH INDEPENDENT WIN RATE TRACKING: Each take profit level (TP1-TP6) maintains separate win rate statistics, enabling data-driven optimization. Traders can disable underperforming TP levels and focus on high-performers based on actual market data. This is NOT just multiple exit levels - it's a performance optimization system.
3. UNIVERSAL FILTER INTEGRATION: All filters (RSI, ADX, Volume, Divergence, Order Blocks) work identically across all 6 strategies using unified logic, creating a modular testing environment. This allows traders to test filter combinations on any strategy - a capability not found in standard scripts.
WHY THIS IS WORTH PAYING FOR (Despite Using Standard Indicators)
While this script uses standard indicators (EMA, RSI, MACD, BB), the value lies in the ORIGINAL INTEGRATION and PROPRIETARY SYSTEMS listed above. Standard indicators are used as INPUTS to these original systems, not as the core value. The proprietary confidence scoring algorithm, adaptive position sizing, and multi-level TP analytics are original innovations that cannot be found in free scripts or standard indicator combinations.
---
CORE INNOVATION: UNIFIED ARCHITECTURE
This script implements a TRUE UNIFIED SYSTEM where 6 independent trading strategies share:
- The SAME risk management system (not separate systems per strategy)
- The SAME universal filters (not strategy-specific filters)
- The SAME performance analytics (not separate tracking per strategy)
This unified architecture allows traders to:
- Switch between strategies without reconfiguring risk management
- Test filter combinations universally across all strategies
- Compare strategy performance using identical metrics
This is fundamentally different from scripts that simply display multiple indicators together. This is a unified system where components integrate to create intelligent trading decisions.
---
DETAILED METHODOLOGY (Specific Algorithms Used)
SIGNAL CONFIDENCE CALCULATION ALGORITHM
The proprietary confidence scoring system uses the following weighted algorithm:
Confidence Score = Base Strategy Signal (50 points)
+ Volume Confirmation Bonus (20 points if volume > threshold)
+ Volume Trend Bonus (10 points if volume increasing over 3 bars)
+ RSI Confirmation Bonus (10 points if RSI in neutral zone 30-70)
This creates a score from 0-100%. The score is then used to adjust stop loss distance:
IF confidence >= 80%: Stop Distance = ATR × Multiplier × 1.2
IF confidence >= 70%: Stop Distance = ATR × Multiplier × 1.1
IF confidence >= 60%: Stop Distance = ATR × Multiplier × 1.0
IF confidence < 60%: Stop Distance = ATR × Multiplier × 0.9
This adaptive system recognizes that high-confidence setups can withstand wider stops, while low-confidence setups need tighter risk control.
MULTI-LEVEL TAKE PROFIT SYSTEM WITH INDEPENDENT TRACKING
The script implements 6 progressive take profit levels (TP1-TP6) with the following risk/reward ratios:
- TP1: Entry ± (Stop Distance × 2.0) = 1:2 R/R
- TP2: Entry ± (Stop Distance × 4.0) = 1:4 R/R
- TP3: Entry ± (Stop Distance × 6.0) = 1:6 R/R
- TP4: Entry ± (Stop Distance × 8.0) = 1:8 R/R
- TP5: Entry ± (Stop Distance × 10.0) = 1:10 R/R
- TP6: Entry ± (Stop Distance × 12.0) = 1:12 R/R
ORIGINAL FEATURE: Each TP level maintains an independent array tracking wins and losses. The Performance Stats Table calculates separate win rates for:
- TP1 hits: Wins that reached TP1 / Total trades
- TP2 hits: Wins that reached TP2 (from trades that didn't stop at TP1) / Trades that reached TP2
- TP3 hits: Wins that reached TP3 (from trades that reached TP2) / Trades that reached TP3
- And so on for TP4-TP6
This allows traders to optimize which TP levels to enable based on actual market behavior. Example: If TP1 shows 65% win rate but TP2 shows 45%, disable TP2+ and focus on TP1 exits.
UNIVERSAL FILTER SYSTEM (Proprietary Integration)
All filters use identical logic across all 6 strategies:
RSI Filter Algorithm:
- Long entries: Only allowed when RSI < (Overbought Threshold - 5)
- Short entries: Only allowed when RSI > (Oversold Threshold + 5)
- This prevents entries at momentum extremes for ALL strategies
ADX Filter Algorithm:
- Checks if ADX > threshold (default 20) using Pine Script's built-in ADX calculation
- If enabled, ALL strategies (trend-following AND mean reversion) require ADX > threshold
- This ensures trades occur in trending markets, not choppy conditions
Volume Confirmation Algorithm:
- Requires volume > (Simple Moving Average of volume over 20 bars × multiplier)
- Applied identically to all strategies
- Ensures institutional participation
Divergence Filter Algorithm:
- Uses pivot detection (ta.pivotlow/pivothigh with 2-bar lookback)
- Compares price pivots to RSI/MFI pivots
- Requires minimum thresholds: RSI divergence >= 1.5, Price divergence >= 0.05
- Waits for divergence confirmation within lookback period (default 100 bars)
Order Block Filter Algorithm:
- Identifies last strong candle (body > 50% of range) before directional move
- Tracks direction: Bullish OB = strong bullish candle before upward move
- Filter: Only allows trades in direction of most recent Order Block
- This ensures alignment with institutional positioning
---
STRATEGY DETAILS (Specific Methods Used)
1. EMA CROSSOVER STRATEGY
Method: Exponential Moving Average Crossover with RSI Boundary Filtering
Algorithm:
- Fast EMA: Exponential Moving Average (close, period = 9 or custom)
- Slow EMA: Exponential Moving Average (close, period = 21 or custom)
- Entry Condition: Fast EMA crosses above Slow EMA (for longs)
- RSI Boundary Check: Entry only allowed if RSI < 70 (prevents overbought entries)
- Exit Condition: Fast EMA crosses below Slow EMA OR stop loss hit
Why This Method: Standard EMA crossovers generate false signals during choppy markets. The RSI boundary check (RSI < 70 for longs) prevents entries when momentum is already overextended, improving win rate by filtering out weak setups.
2. RSI MEAN REVERSION STRATEGY
Method: RSI Extreme Reversion with Candlestick Pattern Confirmation
Algorithm:
- RSI Calculation: Relative Strength Index (close, period = 14)
- Oversold Condition: RSI < 30 (default, configurable)
- Overbought Condition: RSI > 70 (default, configurable)
- Candlestick Filter: Requires bullish candle (close > open) for longs
- Volume Confirmation: Requires volume > (average × multiplier)
- Optional Price Level Filter: Requires price in bottom/top quartile of 10-bar range
Why This Method: Mean reversion works best when price is at true extremes AND showing reversal candles with volume. The optional filters add confluence, significantly improving win rate.
3. BREAKOUT STRATEGY
Method: Price Breakout with Volume Confirmation
Algorithm:
- Lookback Period: 20 bars (configurable)
- Breakout Condition: Close > highest high of last N bars (for longs)
- Volume Confirmation: Volume > Simple Moving Average of volume over 20 bars
- Entry: Triggers when price breaks recent high/low with volume
Why This Method: Breakouts signal momentum continuation. Volume confirmation ensures institutional participation, filtering false breakouts.
4. MACD CROSSOVER STRATEGY
Method: MACD Signal Crossover with Oversold/Overbought Entry Filter
Algorithm:
- MACD Calculation: Using Pine Script's ta.macd() with default periods (12, 26, 9)
- Entry Condition: MACD line crosses above signal line (for longs)
- Oversold Filter: Entry only when MACD < 0 (catches reversals, not late entries)
- Exit Condition: MACD crosses below signal line OR stop loss hit
Why This Method: Standard MACD crossovers can enter late in trends. Entering only when MACD is oversold (< 0) catches reversals rather than late trend entries, improving risk/reward.
5. BOLLINGER BANDS STRATEGY
Method: Bollinger Band Mean Reversion with RSI Confirmation
Algorithm:
- BB Calculation: Using Pine Script's ta.bb() with period 20, standard deviation 2.0
- Entry Condition: Price hits lower band (for longs)
- RSI Confirmation: Requires RSI < 40 (not extreme 30)
- Candlestick Filter: Requires bullish candle (close > open)
Why This Method: BB mean reversion works best with RSI confirmation. Using RSI 40/60 (not extreme 30/70) allows earlier entries while still confirming mean reversion.
6. VOLUME BREAKOUT STRATEGY
Method: Volume Surge with Price Strength Confirmation
Algorithm:
- Volume Surge: Volume > (average × 2.0 multiplier)
- Price Strength: |Close - Open| > (ATR × 0.5 multiplier)
- Direction: Bullish candle (close > open) for longs
- RSI Boundary: RSI < 70 (prevents overbought entries)
Why This Method: Institutional moves require both volume AND price movement. The ATR-based price strength filter ensures the move has momentum, not just volume noise.
---
ADVANCED MARKET ANALYSIS TOOLS (Integration Details)
FAIR VALUE GAPS (FVG)
Detection Algorithm: Identifies gaps between 3-candle sequences
- Bullish FVG: Low > High (gap between current low and high 2 bars ago)
- Bearish FVG: High < Low (gap between current high and low 2 bars ago)
- Size Filter: FVGs smaller than (ATR × 0.8 multiplier) are filtered out
- Integration: FVG boxes display on chart, but are NOT used in entry logic (display only)
ORDER BLOCKS
Detection Algorithm: Identifies last strong candle before directional move
- Strong Candle: Body > 50% of total range
- Bullish OB: Red candle followed by green candle with higher close
- Bearish OB: Green candle followed by red candle with lower close
- Integration: Order Block Filter aligns trade direction with most recent OB direction
LIQUIDITY ZONES
Detection Algorithm: Identifies swing highs/lows using pivot detection
- Buy-Side Liquidity: Swing highs (ta.pivothigh with configurable lookback)
- Sell-Side Liquidity: Swing lows (ta.pivotlow with configurable lookback)
- Integration: Display only - not used in entry logic
POINT OF CONTROL (POC) LEVELS
Calculation Methods:
1. Volume POC: Price level with highest volume in lookback period (recalculated every 5 bars)
2. Session POC: (High + Low + Close) / 3 of previous session
3. Daily POC: (High + Low + Close) / 3 of previous day
4. Weekly POC: (High + Low + Close) / 3 of previous week
- Integration: Display only - not used in entry logic
FIBONACCI EXTENSIONS
Calculation Method: 3-point swing-based extension
- Detects swing points using pivot detection (ta.pivothigh/pivotlow)
- Calculates extensions: 123.6%, 138.2%, 161.8%, 261.8%, etc.
- Golden Zone: Highlights 61.8%-78.6% retracement zone
- Integration: Display only - not used in entry logic
DIVERGENCE DETECTION
Algorithm: Pivot-based divergence detection
- RSI Divergence: Compares price pivots to RSI pivots using ta.pivotlow/pivothigh
- MFI Divergence: Same logic using Money Flow Index
- Thresholds: RSI divergence >= 1.5, Price divergence >= 0.05
- Integration: Divergence Filter waits for confirmation within lookback period
GANN FAN ANALYSIS
Algorithm: 9-angle fan with auto-adjustment
- Angles: 1x1, 1x2, 1x3, 2x1, 3x1, 4x1, 8x1, 1x4, 1x8
- Auto Timeframe Detection: Adjusts lookback (2D=120, 3D=150, 4D=160, 5D=180 bars)
- Auto Market Type Detection: Adjusts angle steepness (Crypto=15.0, Stock=10.0, etc.)
- Integration: Display only - not used in entry logic
---
PERFORMANCE ANALYTICS (Original System)
Three integrated display tables provide real-time analytics:
1. PERFORMANCE STATS TABLE
- Displays win rates for each TP level (TP1-TP6)
- Shows win count, loss count, and win rate percentage for each level
- Enables data-driven optimization of TP levels
2. SIGNAL OVERVIEW TABLE
- Real-time technical snapshot: RSI value, ATR, ADX, volume status
- Displays signal confidence score (0-100%)
- Shows volume trend direction
3. RISK MANAGEMENT TABLE
- Current trade direction (Long/Short/None)
- Consecutive losses counter
- Overall win rate
- Last 20 trade outcomes (visual W/L history)
All tables work identically regardless of which strategy is active, providing consistent analytics.
---
USAGE INSTRUCTIONS
Quick Start:
1. Select strategy from "Strategy Mode" dropdown
2. Configure risk (ATR length, SL multiplier)
3. Enable desired TP levels (TP1-TP3 recommended for beginners)
4. Add optional filters to reduce false signals
5. Configure display elements
Recommended Settings:
- Scalping (1m-5m): EMA Fast mode, RSI+ADX filters, TP1-3, SL 0.8-1.0x
- Swing (15m-4H): EMA Standard/Breakout, all filters, TP1-6, SL 1.0-1.5x
- Trend (Daily+): EMA Slow/MACD, ADX filter, TP4-6, SL 1.5-2.0x
---
TECHNICAL IMPLEMENTATION
Pine Script v6
Max Bars Back: 5000
Max Labels: 500
Data Structures:
- Arrays for trade tracking (entry, SL, TP1-6, direction, active status)
- Arrays for visual elements (lines, labels, boxes)
- State variables for signal processing
Performance Optimizations:
- Volume POC recalculated every 5 bars (not every bar)
- FVG/Order Block arrays limited to recent items
- Line extension system prevents excessive line creation
---
CONCLUSION
This script implements a unified trading system with three original innovations:
1. Adaptive confidence-based position sizing
2. Multi-level TP analytics with independent win rate tracking
3. Universal filter integration across all strategies
While standard indicators are used as inputs, the value lies in the proprietary integration and original systems that create intelligent position sizing and data-driven optimization capabilities not found in standard scripts.
---
For questions or access requests, visit the script page on TradingView.
analytics_tablesLibrary "analytics_tables"
📝 Description
This library provides the implementation of several performance-related statistics and metrics, presented in the form of tables.
The metrics shown in the afforementioned tables where developed during the past years of my in-depth analalysis of various strategies in an atempt to reason about the performance of each strategy.
The visualization and some statistics where inspired by the existing implementations of the "Seasonality" script, and the performance matrix implementations of @QuantNomad and @ZenAndTheArtOfTrading scripts.
While this library is meant to be used by my strategy framework "Template Trailing Strategy (Backtester)" script, I wrapped it in a library hoping this can be usefull for other community strategy scripts that will be released in the future.
🤔 How to Guide
To use the functionality this library provides in your script you have to import it first!
Copy the import statement of the latest release by pressing the copy button below and then paste it into your script. Give a short name to this library so you can refer to it later on. The import statement should look like this:
import jason5480/analytics_tables/1 as ant
There are three types of tables provided by this library in the initial release. The stats table the metrics table and the seasonality table.
Each one shows different kinds of performance statistics.
The table UDT shall be initialized once using the `init()` method.
They can be updated using the `update()` method where the updated data UDT object shall be passed.
The data UDT can also initialized and get updated on demend depending on the use case
A code example for the StatsTable is the following:
var ant.StatsData statsData = ant.StatsData.new()
statsData.update(SideStats.new(), SideStats.new(), 0)
if (barstate.islastconfirmedhistory or (barstate.isrealtime and barstate.isconfirmed))
var statsTable = ant.StatsTable.new().init(ant.getTablePos('TOP', 'RIGHT'))
statsTable.update(statsData)
A code example for the MetricsTable is the following:
var ant.StatsData statsData = ant.StatsData.new()
statsData.update(ant.SideStats.new(), ant.SideStats.new(), 0)
if (barstate.islastconfirmedhistory or (barstate.isrealtime and barstate.isconfirmed))
var metricsTable = ant.MetricsTable.new().init(ant.getTablePos('BOTTOM', 'RIGHT'))
metricsTable.update(statsData, 10)
A code example for the SeasonalityTable is the following:
var ant.SeasonalData seasonalData = ant.SeasonalData.new().init(Seasonality.monthOfYear)
seasonalData.update()
if (barstate.islastconfirmedhistory or (barstate.isrealtime and barstate.isconfirmed))
var seasonalTable = ant.SeasonalTable.new().init(seasonalData, ant.getTablePos('BOTTOM', 'LEFT'))
seasonalTable.update(seasonalData)
🏋️♂️ Please refer to the "EXAMPLE" regions of the script for more advanced and up to date code examples!
Special thanks to @Mrcrbw for the proposal to develop this library and @DCNeu for the constructive feedback 🏆.
getTablePos(ypos, xpos)
Get table position compatible string
Parameters:
ypos (simple string) : The position on y axise
xpos (simple string) : The position on x axise
Returns: The position to be passed to the table
method init(this, pos, height, width, positiveTxtColor, negativeTxtColor, neutralTxtColor, positiveBgColor, negativeBgColor, neutralBgColor)
Initialize the stats table object with the given colors in the given position
Namespace types: StatsTable
Parameters:
this (StatsTable) : The stats table object
pos (simple string) : The table position string
height (simple float) : The height of the table as a percentage of the charts height. By default, 0 auto-adjusts the height based on the text inside the cells
width (simple float) : The width of the table as a percentage of the charts height. By default, 0 auto-adjusts the width based on the text inside the cells
positiveTxtColor (simple color) : The text color when positive
negativeTxtColor (simple color) : The text color when negative
neutralTxtColor (simple color) : The text color when neutral
positiveBgColor (simple color) : The background color with transparency when positive
negativeBgColor (simple color) : The background color with transparency when negative
neutralBgColor (simple color) : The background color with transparency when neutral
method init(this, pos, height, width, neutralBgColor)
Initialize the metrics table object with the given colors in the given position
Namespace types: MetricsTable
Parameters:
this (MetricsTable) : The metrics table object
pos (simple string) : The table position string
height (simple float) : The height of the table as a percentage of the charts height. By default, 0 auto-adjusts the height based on the text inside the cells
width (simple float) : The width of the table as a percentage of the charts width. By default, 0 auto-adjusts the width based on the text inside the cells
neutralBgColor (simple color) : The background color with transparency when neutral
method init(this, seas)
Initialize the seasonal data
Namespace types: SeasonalData
Parameters:
this (SeasonalData) : The seasonal data object
seas (simple Seasonality) : The seasonality of the matrix data
method init(this, data, pos, maxNumOfYears, height, width, extended, neutralTxtColor, neutralBgColor)
Initialize the seasonal table object with the given colors in the given position
Namespace types: SeasonalTable
Parameters:
this (SeasonalTable) : The seasonal table object
data (SeasonalData) : The seasonality data of the table
pos (simple string) : The table position string
maxNumOfYears (simple int) : The maximum number of years that fit into the table
height (simple float) : The height of the table as a percentage of the charts height. By default, 0 auto-adjusts the height based on the text inside the cells
width (simple float) : The width of the table as a percentage of the charts width. By default, 0 auto-adjusts the width based on the text inside the cells
extended (simple bool) : The seasonal table with extended columns for performance
neutralTxtColor (simple color) : The text color when neutral
neutralBgColor (simple color) : The background color with transparency when neutral
method update(this, wins, losses, numOfInconclusiveExits)
Update the strategy info data of the strategy
Namespace types: StatsData
Parameters:
this (StatsData) : The strategy statistics object
wins (SideStats)
losses (SideStats)
numOfInconclusiveExits (int) : The number of inconclusive trades
method update(this, stats, positiveTxtColor, negativeTxtColor, negativeBgColor, neutralBgColor)
Update the stats table object with the given data
Namespace types: StatsTable
Parameters:
this (StatsTable) : The stats table object
stats (StatsData) : The stats data to update the table
positiveTxtColor (simple color) : The text color when positive
negativeTxtColor (simple color) : The text color when negative
negativeBgColor (simple color) : The background color with transparency when negative
neutralBgColor (simple color) : The background color with transparency when neutral
method update(this, stats, buyAndHoldPerc, positiveTxtColor, negativeTxtColor, positiveBgColor, negativeBgColor)
Update the metrics table object with the given data
Namespace types: MetricsTable
Parameters:
this (MetricsTable) : The metrics table object
stats (StatsData) : The stats data to update the table
buyAndHoldPerc (float) : The buy and hold percetage
positiveTxtColor (simple color) : The text color when positive
negativeTxtColor (simple color) : The text color when negative
positiveBgColor (simple color) : The background color with transparency when positive
negativeBgColor (simple color) : The background color with transparency when negative
method update(this)
Update the seasonal data based on the season and eon timeframe
Namespace types: SeasonalData
Parameters:
this (SeasonalData) : The seasonal data object
method update(this, data, positiveTxtColor, negativeTxtColor, neutralTxtColor, positiveBgColor, negativeBgColor, neutralBgColor, timeBgColor)
Update the seasonal table object with the given data
Namespace types: SeasonalTable
Parameters:
this (SeasonalTable) : The seasonal table object
data (SeasonalData) : The seasonal cell data to update the table
positiveTxtColor (simple color) : The text color when positive
negativeTxtColor (simple color) : The text color when negative
neutralTxtColor (simple color) : The text color when neutral
positiveBgColor (simple color) : The background color with transparency when positive
negativeBgColor (simple color) : The background color with transparency when negative
neutralBgColor (simple color) : The background color with transparency when neutral
timeBgColor (simple color) : The background color of the time gradient
SideStats
Object that represents the strategy statistics data of one side win or lose
Fields:
numOf (series int)
sumFreeProfit (series float)
freeProfitStDev (series float)
sumProfit (series float)
profitStDev (series float)
sumGain (series float)
gainStDev (series float)
avgQuantityPerc (series float)
avgCapitalRiskPerc (series float)
avgTPExecutedCount (series float)
avgRiskRewardRatio (series float)
maxStreak (series int)
StatsTable
Object that represents the stats table
Fields:
table (series table) : The actual table
rows (series int) : The number of rows of the table
columns (series int) : The number of columns of the table
StatsData
Object that represents the statistics data of the strategy
Fields:
wins (SideStats)
losses (SideStats)
numOfInconclusiveExits (series int)
avgFreeProfitStr (series string)
freeProfitStDevStr (series string)
lossFreeProfitStDevStr (series string)
avgProfitStr (series string)
profitStDevStr (series string)
lossProfitStDevStr (series string)
avgQuantityStr (series string)
MetricsTable
Object that represents the metrics table
Fields:
table (series table) : The actual table
rows (series int) : The number of rows of the table
columns (series int) : The number of columns of the table
SeasonalData
Object that represents the seasonal table dynamic data
Fields:
seasonality (series Seasonality)
eonToMatrixRow (map)
numOfEons (series int)
mostRecentMatrixRow (series int)
balances (matrix)
returnPercs (matrix)
maxDDs (matrix)
eonReturnPercs (array)
eonCAGRs (array)
eonMaxDDs (array)
SeasonalTable
Object that represents the seasonal table
Fields:
table (series table) : The actual table
headRows (series int) : The number of head rows of the table
headColumns (series int) : The number of head columns of the table
eonRows (series int) : The number of eon rows of the table
seasonColumns (series int) : The number of season columns of the table
statsRows (series int)
statsColumns (series int) : The number of stats columns of the table
rows (series int) : The number of rows of the table
columns (series int) : The number of columns of the table
extended (series bool) : Whether the table has additional performance statistics






















