TradeX Universal Algo For All📌 TradeX Universal Algo For All
The TradeX Universal Algo is a powerful, easy-to-use trend-following system that works on all markets and timeframes (Forex, Gold, Crypto, Stocks, Indices).
This algo is built on an ATR-based trailing stop system that dynamically adapts to volatility, giving you clear Buy/Sell signals with minimal noise.
🔑 Key Features
ATR Trailing Stop → Automatically adjusts to market volatility.
Buy & Sell Signals → Plots “Buy Above” and “Sell Below” labels when price crosses the trailing stop.
Bar Coloring → Green bars in bullish trend, red bars in bearish trend.
Custom Sensitivity → Adjust “Key Value” to fine-tune signal frequency.
Multi-Market Compatible → Works seamlessly on Forex, Commodities (XAUUSD, USOIL), Crypto, Indices, and Stocks.
Alerts Ready → Set alerts for Buy/Sell conditions so you never miss an opportunity.
⚙️ Inputs
Key Value (Sensitivity) → Controls how reactive the trailing stop is (default = 3).
ATR Period → Number of bars for ATR calculation (default = 5).
📊 How to Use
Apply the indicator on any chart and timeframe.
Look for Buy Above / Sell Below signals.
Follow the green bars for bullish bias and red bars for bearish bias.
Combine with your own analysis (Price Action, SMC, Supply/Demand, etc.) for best results.
⚠️ Disclaimer: This script is for educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always use proper risk management.
Dönemler
IBOV ShadowEnglish
IBOV Shadow
This indicator is designed to provide a complementary analysis of the Brazilian market, offering an alternative perspective to the traditional IBOV index. It can be used BMFBOVESPA:IBOV , and it operates independently, seeking a correlation with the overall market by calculating based on commodities , global stocks , interest rates , the dollar , and other assets.
What the Indicator Does
The IBOV Shadow acts as a real-time fair price forecast for the Ibovespa . The line it plots represents the value the index should have at that moment, based on multiple market factors. The primary analysis comes from comparing the indicator's line with the actual Ibovespa price:
Underpricing (Upside Potential) : When the IBOV Shadow line is above the Ibovespa's price, it suggests that the market is underpricing the index. The "fair" value is higher than the current one, which may indicate potential for an upward move.
Overpricing (Downside Potential) : When the IBOV Shadow line is below the Ibovespa's price, it suggests that the market is overpricing the index. The "fair" value is lower than the current one, which may indicate that a downward correction could be on the way.
The indicator's line also changes color to signal its own trend: green when it's trending up (a strong market) and red when it's trending down (a weak market).
How to Use It
Capturing Divergences (The Main Point) : The most powerful use of the IBOV Shadow is in identifying divergences . A divergence occurs when the price movement of the Ibovespa and the movement of our indicator are out of sync.
Bullish Divergence : This happens when the Ibovespa's price makes a new low , but the Shadow indicator does not follow, instead making a higher low . This suggests that downward pressure is weakening.
Bearish Divergence : This occurs when the Ibovespa's price makes a new high , but the Shadow indicator fails to do the same, creating a lower high . This is a strong sign that the uptrend is weakening.
Trend Confirmation : Use the line's color as a confirmation tool. If you already have an uptrend in mind, a green line can reinforce your analysis. Likewise, a red line can confirm a downtrend.
Contextual Analysis : This indicator is most effective when used in conjunction with other tools and analyses. Do not use it as your sole decision-making source.
Final Considerations
Remember that this indicator is a supporting tool. The financial market is complex, and no single tool guarantees success. Practice and the use of multiple indicators and strategies are fundamental for a complete analysis.
Fixed Asset TurnoverFixed Asset Turnover (FAT) measures how efficiently a company uses its fixed assets (Property, Plant & Equipment – PPE) to generate revenue. It shows how many times the company “turns over” its fixed assets in a period relative to revenue.
High FAT: Assets are used efficiently; the company generates more revenue per unit of fixed assets.
Low FAT: Fixed assets are underutilized; the company may have invested too much in assets that don’t produce sufficient revenue.
Formula:
Fixed Asset Turnover=Total Revenue/Average Net Fixed Assets
What it tells you:
Indicates asset efficiency in generating sales.
Useful to compare companies within the same industry (because asset intensity varies by sector).
Helps identify whether a company is over-invested in fixed assets or underutilizing them.
How to use it:
Trend Analysis:
Track FAT over time for the same company to see if asset utilization is improving.
Benchmarking:
Compare FAT against competitors or industry averages.
Investment Decisions:
Higher FAT usually suggests more efficient operations, but context matters (e.g., heavy-capital industries naturally have lower FAT).
High Low + BOS/Sweep aaa//@version=5
indicator("High Low + BOS/Sweep", overlay=true, max_lines_count=500, max_labels_count=500)
// Inputs (giữ nguyên các tuỳ chọn của bạn, chỉ bỏ input màu)
offTop = input.int(2, "Offset đỉnh", minval=0)
offBot = input.int(2, "Offset đáy", minval=0)
w = input.int(2, "Độ dày line", minval=1)
styleBosStr = input.string("Solid", "Kiểu line BOS", options= )
styleSweepStr = input.string("Dashed", "Kiểu line Sweep", options= )
showBosLabel = input.bool(true, "Hiện label BOS")
showSweepLabel = input.bool(true, "Hiện label Sweep")
bosLabelText = input.string("BOS", "Text BOS")
sweepLabelText = input.string("SWEEP", "Text Sweep")
labelSizeStr = input.string("tiny", "Kích thước label", options= )
// NEW: display toggles
showPivot = input.bool(true, "Hiện Pivot")
showBosSweep = input.bool(true, "Hiện BOS / Sweep")
// Convert styles / sizes
bosStyle = styleBosStr == "Dashed" ? line.style_dashed : styleBosStr == "Dotted" ? line.style_dotted : line.style_solid
sweepStyle = styleSweepStr == "Dashed" ? line.style_dashed : styleSweepStr == "Dotted" ? line.style_dotted : line.style_solid
lblSize = labelSizeStr == "small" ? size.small : labelSizeStr == "normal" ? size.normal : labelSizeStr == "large" ? size.large : size.tiny
// State vars
c = close
var int lastSignal = 0
var float sHigh = na
var int sHighBar = na
var float sLow = na
var int sLowBar = na
var float confHigh = na
var int confHighBar = na
var float confLow = na
var int confLowBar = na
var line highLine = na
var line lowLine = na
var label highLabel = na
var label lowLabel = na
// === Đánh dấu loại line: 0 = chưa có, 1 = Sweep, 2 = BOS ===
var int highLineType = 0
var int lowLineType = 0
// === Sweep tracking / pending ===
var bool pendingSweepUp = false
var bool pendingSweepDown = false
var int sweepDetectedBarUp = na
var float sweepTargetHighPrice = na
var int sweepTargetHighBar = na
var int sweepDetectedBarDown = na
var float sweepTargetLowPrice = na
var int sweepTargetLowBar = na
// === Track BOS pivots ===
var int lastBOSHighBar = na
var int lastBOSLowBar = na
// Track swing
if (lastSignal == -1) or (lastSignal == 0)
if na(sHigh) or high > sHigh
sHigh := high
sHighBar := bar_index
if (lastSignal == 1) or (lastSignal == 0)
if na(sLow) or low < sLow
sLow := low
sLowBar := bar_index
// Confirm pivot
condTop = c < low
condBot = c > high
isTop = condTop and (lastSignal != 1)
isBot = condBot and (lastSignal != -1)
// On pivot confirm
if isTop
confHigh := sHigh
confHighBar := sHighBar
highLine := na
highLabel := na
highLineType := 0
if showPivot
label.new(confHighBar, confHigh + syminfo.mintick * offTop, "●", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_none, textcolor=color.red, size=size.small)
lastSignal := 1
sHigh := na
sHighBar := na
sLow := low
sLowBar := bar_index
if isBot
confLow := sLow
confLowBar := sLowBar
lowLine := na
lowLabel := na
lowLineType := 0
if showPivot
label.new(confLowBar, confLow - syminfo.mintick * offBot, "●", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_none, textcolor=color.lime, size=size.small)
lastSignal := -1
sLow := na
sLowBar := na
sHigh := high
sHighBar := bar_index
// Raw sweep detection
rawSweepUp = not na(confHigh) and (na(lastBOSHighBar) or confHighBar != lastBOSHighBar) and high > confHigh and close <= confHigh
rawSweepDown = not na(confLow) and (na(lastBOSLowBar) or confLowBar != lastBOSLowBar) and low < confLow and close >= confLow
if rawSweepUp
pendingSweepUp := true
sweepDetectedBarUp := bar_index
sweepTargetHighPrice := confHigh
sweepTargetHighBar := confHighBar
if rawSweepDown
pendingSweepDown := true
sweepDetectedBarDown := bar_index
sweepTargetLowPrice := confLow
sweepTargetLowBar := confLowBar
// Check sweep validity
checkSweepValidUp() =>
isValid = true
if pendingSweepUp and not na(sweepDetectedBarUp)
maxOffset = bar_index - sweepDetectedBarUp
if maxOffset >= 0
for i = 0 to maxOffset
if close > sweepTargetHighPrice
isValid := false
isValid
checkSweepValidDown() =>
isValid = true
if pendingSweepDown and not na(sweepDetectedBarDown)
maxOffset = bar_index - sweepDetectedBarDown
if maxOffset >= 0
for i = 0 to maxOffset
if close < sweepTargetLowPrice
isValid := false
isValid
// BOS logic
bosUp = not na(confHigh) and c > confHigh
bosDown = not na(confLow) and c < confLow
if bosUp
pendingSweepUp := false
sweepDetectedBarUp := na
sweepTargetHighPrice := na
sweepTargetHighBar := na
lastBOSHighBar := confHighBar
if not na(highLine)
line.delete(highLine)
if not na(highLabel)
label.delete(highLabel)
highLineType := 2
if showBosSweep
highLine := line.new(confHighBar, confHigh, bar_index, confHigh, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=bosStyle)
if showBosLabel
midBar = math.floor((confHighBar + bar_index) / 2)
highLabel := label.new(midBar, confHigh, bosLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
if bosDown
pendingSweepDown := false
sweepDetectedBarDown := na
sweepTargetLowPrice := na
sweepTargetLowBar := na
lastBOSLowBar := confLowBar
if not na(lowLine)
line.delete(lowLine)
if not na(lowLabel)
label.delete(lowLabel)
lowLineType := 2
if showBosSweep
lowLine := line.new(confLowBar, confLow, bar_index, confLow, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=bosStyle)
if showBosLabel
midBar = math.floor((confLowBar + bar_index) / 2)
lowLabel := label.new(midBar, confLow, bosLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
// Sweep draw (pivot-in-between check)
sweepUpTriggered = false
sweepDownTriggered = false
if (isTop or isBot) and pendingSweepUp and not na(sweepTargetHighBar)
hasLowBetween = false
for i = sweepTargetHighBar to bar_index
if not na(confLowBar) and confLowBar == i
hasLowBetween := true
if checkSweepValidUp() and highLineType != 2 and hasLowBetween
if not na(highLine)
line.delete(highLine)
if not na(highLabel)
label.delete(highLabel)
highLineType := 1
if showBosSweep
highLine := line.new(sweepTargetHighBar, sweepTargetHighPrice, bar_index, sweepTargetHighPrice, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=sweepStyle)
if showSweepLabel
midBar = math.floor((sweepTargetHighBar + bar_index) / 2)
highLabel := label.new(midBar, sweepTargetHighPrice, sweepLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
pendingSweepUp := false
sweepDetectedBarUp := na
sweepTargetHighPrice := na
sweepTargetHighBar := na
sweepUpTriggered := true
if (isTop or isBot) and pendingSweepDown and not na(sweepTargetLowBar)
hasHighBetween = false
for i = sweepTargetLowBar to bar_index
if not na(confHighBar) and confHighBar == i
hasHighBetween := true
if checkSweepValidDown() and lowLineType != 2 and hasHighBetween
if not na(lowLine)
line.delete(lowLine)
if not na(lowLabel)
label.delete(lowLabel)
lowLineType := 1
if showBosSweep
lowLine := line.new(sweepTargetLowBar, sweepTargetLowPrice, bar_index, sweepTargetLowPrice, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=sweepStyle)
if showSweepLabel
midBar = math.floor((sweepTargetLowBar + bar_index) / 2)
lowLabel := label.new(midBar, sweepTargetLowPrice, sweepLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
pendingSweepDown := false
sweepDetectedBarDown := na
sweepTargetLowPrice := na
sweepTargetLowBar := na
sweepDownTriggered := true
// Alerts
alertcondition(isTop, "Top", "Top confirmed")
alertcondition(isBot, "Bot", "Bottom confirmed")
alertcondition(bosUp, "BOS Up", "Break of structure up")
alertcondition(bosDown, "BOS Down", "Break of structure down")
alertcondition(sweepUpTriggered, "Sweep Up", "Sweep đỉnh xuất hiện")
alertcondition(sweepDownTriggered, "Sweep Down", "Sweep đáy xuất hiện")
plot(na) // tránh lỗi
Double-Numbered Hexagon Price and Time Chart ⬢️ Double-Numbered Hexagon Price and Time Chart ⬢️
Overview
The Double-Numbered Hexagon Price and Time Chart is an advanced overlay indicator for TradingView that fuses William D. Gann’s geometric principles with modern charting tools. Inspired by the work of Patrick Mikula in Gann’s Scientific Methods Unveiled (Volumes 1 & 2), this tool reimagines Gann’s hexagonal number spirals—where market price and time unfold within a structured 360° framework.
This indicator constructs a dynamic, double-numbered hexagonal grid expanding from a central seed. Users can anchor from a price high or low , or override with a manual seed to start the chart from any desired value. As prices progress or regress from this origin, the chart plots swing pivots directly onto the hexagonal grid , allowing users to assess whether historical highs and lows align with key angles. The grid displays 12 angular spokes (0° to 330° in 30° steps) by default, and users can highlight any single angle , which applies a color-coded emphasis to both the spoke and its corresponding horizontal levels—helping reveal potential support, resistance, and geometric symmetry .
It supports automatic detection of pivots, live tracking of current price within the grid, and detailed display customizations—making it ideal for Gann-style geometric analysis, pivot-based strategies, and time/price harmonic research.
---
Key Features
* Hexagonal Spiral Structure: Constructs a grid of expanding rings from a central price seed, with each cell aligned to a 360° angular framework (in 30° increments).
* Anchor Customization: Seed from a bar's high/low using a selected timestamp, or override with a manual starting value.
* Increment/Decrement Control: Define step size for upward progression (positive) or downward regression (negative).
* Angle Highlighting and Lines: Select from 12 angles (0° to 330°) to highlight hexagon spokes and project price lines from the anchor.
* Swing Pivot Detection: Automatically identifies post-anchor highs/lows using `ta.pivothigh/low` logic with user-defined left/right bars.
* Real-Time Close Highlight: Dynamically marks the cell closest to the current close (unconfirmed bars).
* Display Customization: Control cell size, text size, table position, colors, and label visibility.
* Pivot Label Options: Show/hide labels for swing highs/lows with full color control.
* Rounding Precision: Set decimal places for all displayed values.
---
How to Use
1. Add to Chart: Apply the indicator as an overlay on your preferred symbol and timeframe.
2. Set the Anchor:
* Select anchor date/time using the calendar icon.
* Choose price source (High or Low).
* Set rounding to match instrument precision.
3. Configure Hexagon:
* Set number of rings to expand the grid.
* Define increment (positive or negative).
* Enable time index values for time-based sequencing.
4. Manual Override (Optional):
* Enable manual mode and input custom seed value.
5. Customize Display:
* Adjust cell and text sizes, table position, and color themes.
6. Angle Settings:
* Choose any angle (e.g., 90°) to highlight spokes and draw horizontal lines from anchor price.
7. Swing Pivots:
* Configure pivot detection using left/right bar settings.
* Toggle pivot label visibility.
8. Interpretation:
* Center cell = anchor price.
* Rings = stepped price levels.
* Spokes = geometric angles for support/resistance.
* Highlighted pivots = potential alignment zones.
* Real-time cell = current price’s position in the grid.
---
Methodology
The indicator uses hexagonal math to plot a spiral of price levels outward from a seed, calculated with degree-based geometry and coordinates. Pivots are identified using built-in TradingView functions and color-coded based on user settings. Angle highlights represent key 30° divisions for price projection.
This tool reinterprets Gann’s spiral and double-numbered techniques without astrological overlays, offering a modern and interactive way to explore time/price relationships geometrically.
---
Limitations and Notes
* Real-Time Behavior: Close highlight updates on unconfirmed bars; locks on candle close.
* Not a Signal Generator: This is a Gann research and visualization tool. Past confluences do not guarantee future outcomes. Use with proper strategy and risk management.
* Future Updates: More features may be added pending feedback and TradingView approval.
Option Chain with DiscountOption Chain used to find the premiums available at a discount. Option Chain used to find the premiums available at a discount. Option Chain used to find the premiums available at a discount.
MACD Split (Top/Bottom)MACD Split Indicator Explanation
This script separates the MACD into two clean panels:
Top Panel (Mode = Top)
Plots the MACD line and the Signal line.
Used to analyze crossovers and trend direction.
Bottom Panel (Mode = Bottom)
Plots the Histogram (MACD – Signal) and its EMA smoothing.
Used to analyze momentum strength and early shifts.
You can load the same indicator twice:
Set one to Top mode → shows only MACD & Signal lines.
Set the other to Bottom mode → shows only Histogram & EMA.
This way, you get a clear split view without overlapping everything in one chart.
Pattern Scanner — RealTime By joshทำอะไรบ้าง
Double Top / Double Bottom — ตรวจ “ยอด/ฐานคู่” + เงื่อนไข “เบรกคอ” และ เลือกบังคับให้มีรีเทสท์ ได้
Head & Shoulders / Inverse — ตรวจหัว-ไหล่พร้อมวาด neckline แบบ dynamic
Wedge / Symmetrical Triangle — ใช้ pivot ล่าสุด 2 จุดบน/ล่าง สร้างเส้นลู่เข้าปัจจุบัน
Flag (Channel) — ตรวจกรอบ平行 (bull/bear) จากสโลปบน-ล่างที่ เกือบขนาน
Range (Consolidation) — เส้น High/Low ช่วงสะสมล่าสุด
โหมด Overlay: ทุกอย่างวาดบนราคาโดยตรง, ไม่สร้างข้อความ/สัญญาณลูกศรให้รกตา
What it does
Double Top / Double Bottom — Detects twin peaks/bases with a neckline-break condition, with an option to require a retest.
Head & Shoulders / Inverse — Detects H&S (and inverse) and draws a dynamic neckline.
Wedge / Symmetrical Triangle — Uses the two most recent high/low pivots to draw converging lines to the current bar.
Flag (Channel) — Detects bull/bear parallel channels from nearly parallel top/bottom slopes.
Range (Consolidation) — Plots recent consolidation High/Low levels.
Overlay mode — Everything is drawn directly on price; no text/arrows, keeping the chart clean.
08:30 & 09:30 Manipulation-Expansion - AlgoliqDescription:
The 08:30 & 09:30 Manipulation-Expansion indicator identifies key market levels at two critical times during the trading session: 08:30 (Manipulation) and 09:30 (Expansion). It visually marks the high and low of these bars and provides real-time alerts when price breaks these levels.
Features:
08:30 Manipulation: Highlights high and low with dotted lines and a label. Alerts trigger when levels are broken.
09:30 Expansion: Highlights high and low with dotted lines and a label. Alerts trigger when levels are broken.
Customizable: Set hours, minutes, line colors, widths, and lengths to fit your trading style.
Alert System: Real-time notifications whenever price breaks key levels.
Usage:
Ideal for traders looking to monitor early session price action, detect potential manipulations, and plan breakout trades.
重振旗鼓-事件合约币安事件合约指标 1.0 版本
作者:75年大叔
建议先使用 5U 小资金 测试并熟悉指标用法。
每单资金不超过 100U,以防止被币安算法点杀。
使用说明:
完整的指标使用方法和介绍,请参考作者在币安空间发布的内容。
优化内容:
增加额外提示与功能优化。
免责声明:
本指标仅作为技术分析参考工具,不构成任何投资建议。使用过程中产生的盈亏由用户自行承担,作者不对任何交易结果负责。
Binance Event Contract Indicator 1.0
Author: Uncle 75
It is recommended to start with 5U small capital to test and get familiar with the indicator.
Each order should not exceed 100U to avoid being targeted by Binance algorithms.
Instructions:
For the complete guide and usage details, please refer to the author’s Binance space.
Optimizations:
Improved win rate
Disclaimer:
This indicator is provided for technical analysis reference only and does not constitute investment advice.
Any profits or losses incurred from its use are solely the responsibility of the user. The author is not liable for any trading outcomes.
FED Rate Cuts (1980+)This indicator drops a vertical line on the day of Fed Rate Cuts From 1980 - 2024. Useful for identifying peaks and troughs associated with Rate Cut Cycles.
God EyeGod Eye is an innovative indicator that anticipates market movements through intelligent processing of key liquidity concepts, aligning quantitative analysis with the dynamic reading of market flows.
VSA No Demand / No Supply + Daily VWAPthis indicator is working on the base of no demand and no supply sign of vsa
#nodemad #nosupply #buy #sell #vsa
AlphaZ-Score - Bitcoin Market Cycle IndicatorOverview
AlphaZ-Score is a comprehensive Bitcoin market cycle indicator that combines multiple on-chain, technical, and fundamental metrics into a single normalized oscillator. By aggregating Z-scores from various proven Bitcoin indicators, it provides clear overbought and oversold signals that align with Bitcoin's cyclical nature.
Key Features:
Multi-dimensional market analysis combining 7 different methodologies
Normalized Z-score output ranging from extreme oversold (-3+) to extreme overbought (+3+)
Modular design - enable/disable individual components
Real-time market condition assessment with visual feedback
Optimized for Bitcoin's unique market dynamics
How It Works
AlphaZ-Score calculates individual Z-scores for each enabled indicator, then combines them using a weighted average approach. A Z-score measures how many standard deviations a value is from its historical mean, making it perfect for identifying extreme market conditions.
Interpretation:
+3 or higher: Extreme Overbought (Strong Sell Signal)
+2 to +3: Overbought (Sell Signal)
-2 to +2: Neutral Zone
-2 to -3: Oversold (Buy Signal)
-3 or lower: Extreme Oversold (Strong Buy Signal)
Component Indicators
1. Days Higher Streak Valuation (DHSV)
Purpose: Measures how many days in historical data had higher prices than current price, accounting for price streaks and momentum decay.
How it works:
Counts historical days with prices above current level
Tracks consecutive "streak" days when no historical prices are higher
Applies dynamic threshold decay to account for sustained moves
Higher streak values indicate potential oversold conditions
Key Parameters:
Historical Bars (1000): Number of past bars to analyze for comparison
Lower Streak Threshold (5%): Percentage threshold for price comparison
Threshold Decay (0.05): Rate at which threshold decays over time
Z-Score Lookback (1000): Period for calculating the Z-score normalization
2. High Probability Overbought/Oversold (HPOB)
Purpose: Advanced momentum indicator using volume-weighted Hull moving averages to identify high-probability reversal zones.
How it works:
Calculates Volume-Weighted Hull Moving Average (SVWHMA)
Compares with standard Hull Moving Average
Normalizes the difference using 100-period SMA
Extreme readings indicate momentum exhaustion
Key Parameters:
SVWHMA Length (50): Period for volume-weighted Hull MA calculation
HMA Length (50): Period for standard Hull MA
Smooth Length (50): EMA smoothing period for final output
3. Stablecoin Supply Ratio Oscillator (SSRO)
Purpose: Analyzes the relationship between Bitcoin's market cap and major stablecoin supply (USDT + USDC) to gauge buying power available.
How it works:
Calculates ratio: BTC Market Cap / (USDT Supply + USDC Supply)
Higher ratios indicate Bitcoin is expensive relative to available stablecoin liquidity
Z-score normalization identifies extreme ratios historically
Key Parameters:
SSRO Length (200): Lookback period for Z-score calculation
Market Logic: When stablecoin supply is high relative to BTC market cap, it suggests significant buying power exists (bearish for current price). When ratio is high, it suggests Bitcoin is overvalued relative to available liquidity.
4. MVRV Z-Score
Purpose: Classic Bitcoin cycle indicator comparing Market Value to Realized Value, identifying macro cycle tops and bottoms.
How it works:
Uses MVRV ratio data (Market Cap / Realized Cap)
Realized Cap values coins at the price they last moved, not current price
High MVRV indicates coins are trading well above their "fair value"
Z-score normalization identifies historical extremes
Key Parameters:
MVRV Length (520): Period for Z-score calculation (~2 years of daily data)
Market Logic: MVRV > 3.7 historically marks cycle tops, while MVRV < 1.0 marks cycle bottoms. The Z-score version normalizes these levels across different market cycles.
5. Risk Index Z-Score
Purpose: Proprietary risk calculation based on the relationship between realized cap and market cap over time.
How it works:
Calculates delta between current realized cap and historical realized cap
Normalizes by current market cap to create risk percentage
Applies time-based scaling and Z-score normalization
Key Parameters:
Risk Multiplier (0.625): Scaling factor for realized cap comparison
Risk Z Length (1500): Period for Z-score calculation
6. SOPR Z-Score (Spent Output Profit Ratio)
Purpose: Measures the profit ratio of coins being moved on-chain, indicating holder behavior and market sentiment.
How it works:
Uses Glassnode SOPR data (ratio of sold price to purchase price)
Applies EMA smoothing to reduce noise
Z-score normalization identifies extreme profit-taking or capitulation
Key Parameters:
SOPR EMA Length (7): Smoothing period for SOPR data
SOPR Z Length (180): Period for Z-score calculation
Market Logic: SOPR > 1 means coins are being sold at profit, SOPR < 1 indicates selling at a loss. Extreme Z-scores identify unsustainable profit-taking (tops) or capitulation (bottoms).
7. On-chain Z-Score Composite
Purpose: Multi-metric on-chain analysis combining NUPL, SOPR, and MVRV for comprehensive network state assessment.
Components:
NUPL (Net Unrealized Profit/Loss): (Market Cap - Realized Cap) / Market Cap
SOPR Z-Score: Standardized SOPR with custom smoothing
MVRV Z-Score: Market-to-realized value ratio normalized
Key Parameters:
NUPL Z Length (126): Period for NUPL Z-score calculation
SOPR Z Length (111): Period for on-chain SOPR Z-score
MVRV Z Length (111): Period for on-chain MVRV Z-score
SOPR EMA Length (14): Smoothing for SOPR Z-score component
How it works:
Averages the three Z-scores to provide a comprehensive on-chain market state assessment.
Input Parameters Guide
General Settings
Use : Toggle switches for each component indicator. Disabling indicators removes them from the aggregated calculation, potentially creating more extreme readings.
Optimization Tips
For more extreme signals: Disable complex indicators (DHSV, HPOB, Risk Index, On-chain) and focus on core cycle indicators (MVRV, SOPR, SSRO)
For more sensitivity: Reduce lookback periods on Z-score calculations
For smoother signals: Increase smoothing periods and Z-score lookback periods
For different timeframes: Adjust the lengths proportionally (e.g., halve all periods for 12H charts)
Default Configuration
The default settings are optimized for Bitcoin daily charts and focus on the three most reliable cycle indicators:
Enabled: SSRO, MVRV, SOPR
Disabled: DHSV, HPOB, Risk Index, On-chain (to achieve more extreme readings)
Visual Elements
Plot Colors
Bright Red: Extreme Overbought (Z-score ≥ 3)
Light Red: Overbought (Z-score ≥ 2)
Gradient: Neutral zone (-2 to +2)
Light Green: Oversold (Z-score ≤ -2)
Bright Green: Extreme Oversold (Z-score ≤ -3)
Reference Lines
Solid White: Zero line
Dashed Lines: ±2 levels (primary overbought/oversold)
Dotted Lines: ±3 levels (extreme conditions)
Background & Bar Coloring
Background highlighting during extreme conditions
Bar coloring changes when overbought/oversold thresholds are reached
Summary Table
Real-time market condition assessment displayed in the top-right corner showing current state and exact Z-score value.
Usage Strategy
For Long-term Investors
Buy: Z-score < -2 (especially < -3)
Sell: Z-score > +2 (especially > +3)
Hold: -2 to +2 range
For Traders
Reversal Signals: Look for divergences at extreme levels
Trend Confirmation: Use with price action and volume analysis
Risk Management: Reduce position sizes at extreme overbought levels
Best Practices
Combine with Price Action: Don't use in isolation
Consider Multiple Timeframes: Check higher timeframes for context
Wait for Confirmation: Extreme readings can persist during strong trends
Backtest Settings: Optimize parameters for your specific trading style
Technical Notes
Data Sources: Combines TradingView native data with external feeds from Glassnode, CoinMetrics, and IntoTheBlock
Update Frequency: Real-time on supported exchanges, daily updates for on-chain components
Computational Intensity: Moderate - uses multiple external data requests
Best Timeframe: Optimized for daily charts, but adaptable to other timeframes
The Aggregated Z-Score Market Oscillator represents a sophisticated approach to Bitcoin market analysis, combining the wisdom of multiple proven methodologies into a single, actionable signal. By understanding each component and how they interact, traders and investors can make more informed decisions about Bitcoin's cyclical nature.
Cointegration IndicationThis indicator is inspired by Nobel Prize–winning research (Engle & Granger, 1987). The core idea is simple but powerful: even if two markets look noisy on their own, their relationship can be surprisingly stable over the long run. When they drift apart, history suggests they often snap back together and that’s exactly where opportunities arise.
What this tool does is bring that theory into practice. It estimates a long-run equilibrium between two assets (Y ~ α + βX), calculates the residual spread (ε), and then evaluates whether that spread behaves in a mean-reverting way. The Z-Score tells you when the spread has moved far from its historical mean. The Error Correction Model (ECM) adds a second layer: it checks whether the spread tends to close again, and how strong that adjustment pressure is. If λ is negative and stable, the relationship is cointegrated and mean-reverting. If not, the pair is unstable — even if the Z-Score looks attractive.
Signals are summarized clearly:
– Strong Setup appears when we see both extreme divergence and a stable, negative λ.
– Weak Setup means only partial confirmation.
– Invalid means the relationship is breaking down.
Why this matters
Cointegration analysis is widely used by institutional desks, especially in pairs trading, statistical arbitrage, and risk management. Classic cases include equity index futures vs ETFs (Alexander, 2001), oil vs energy stocks (Chen & Huang, 2010), or swap spreads in fixed income (Tsay, 2010). In crypto, temporary cointegration has been observed between BTC and ETH in periods of high liquidity (Corbet et al., 2018). With this indicator, you can explore these relationships directly on TradingView, test asset pairs, and see when divergences become statistically significant.
Limitations to keep in mind
– Timeframe choice matters: Daily calculations are usually more stable; weekly or intraday often show unstable signals. To avoid confusion, you can fix the calculation timeframe in the settings.
– Cointegration is not permanent. Structural breaks (earnings, regulation, macro shifts) can destroy old relationships.
– Results are approximate. Rolling regressions, Z-Scores, and ECM estimates are sensitive to the length of the chosen windows.
– This is a research tool — not a ready-made trading system. It should be used as one piece in a broader framework.
References
Alexander, C. (2001). Market models: A guide to financial data analysis. Wiley.
Chen, S. S., & Huang, C. W. (2010). Long-run equilibrium and short-run dynamics in energy stock prices and oil prices. Energy Economics, 32(1), 19–26.
Corbet, S., Meegan, A., Larkin, C., Lucey, B., & Yarovaya, L. (2018). Exploring the dynamic relationships between cryptocurrencies and other financial assets. Economics Letters, 165, 28–34.
Engle, R. F., & Granger, C. W. J. (1987). Co-integration and error correction: Representation, estimation, and testing. Econometrica, 55(2), 251–276.
Tsay, R. S. (2010). Analysis of financial time series (3rd ed.). Wiley.
David Dang - Scalp M15/H1 ETH/USDT (Free3day)Sử dụng miễn phí trong 3 ngày và sẽ gia hạn đăng kí liên hệ cho Daivd
WhatsApp 0818283198
David Dang - Scalp M15/H1 BTCUSDT (Free3day)Sử dụng miễn phí trong 3 ngày và sẽ gia hạn đăng kí liên hệ cho Daivd
WhatsApp 0818283198
CoinGpt NQ策略# CoinGpt NQ 策略(MACD·多因子·可金字塔)
## 概述
**CoinGpt NQ策略**是一套面向 **纳指期货 NQ(建议:`CME_MINI:NQ1!`)30 分钟** 的可运行交易策略。
核心以 **MACD 趋势动量** 为骨架,叠加 **EMA 趋势过滤**、**可选金字塔加仓**、**三种出场模式(固定 TP/SL、追踪、追踪+TP)** 与 **风控上限**,提供三套一键预设(Balanced / Trend / Scalper),满足不同市场状态与风险偏好。
> 适配:期货/连续合约;仅做多(本脚本版本)。
> 时间框架:**30m**(可在“仅在 30m 生效”开关控制)。
---
## 进场逻辑
* **信号触发**:`MACD 上穿 Signal`(并要求直方图连续上升 2 根)。
* **趋势过滤**:价格位于 `EMA(p_emaLen)` 上方,且 `MACD>0 & Signal>0`(可关闭)。
* **时间框架限制**:默认仅在 30m 有效(可关闭)。
## 出场逻辑
* **固定 TP/SL**:按百分比计算限价止盈与止损。
* **追踪止盈**:默认以 **ATR 偏移** 跟踪;
* **追踪 + TP**:在拖尾的同时设置上沿 TP。
* **反向保护**:`MACD 下穿 Signal` 时市价平仓。
> 出场模式在输入项 **「出场模式」** 选择:
> `Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`
---
## 金字塔加仓(可选)
* 仅在已有多单且不利回撤达到阈值时触发;
* 最多 `p_maxAdds` 层;每层在 **上次加仓价** 基础上按 `p_addStep%` 回撤触发;
* 目的:**拉低均价、提高持仓性价比**;采用小步长、有限层数控制回撤风险。
---
## 风险管理
* **当日最大亏损**:`strategy.risk.max_intraday_loss(p_maxDailyDD, %权益)`
* **单笔头寸上限**:`strategy.risk.max_position_size(p_posCapPct)`
* **订单量**(策略属性):默认 **90% 权益**。
* 实盘更建议:Balanced≈**40%**、Trend≈**35%**、Scalper≈**30%**(在“策略属性 → 订单大小”中调整)。
---
## 三套预设(参数一键生效)
| 预设 | MACD(fast/slow/signal) | 趋势EMA | 金字塔 | 加仓步长 | 固定TP/SL(%) | 追踪(ATR倍数) | 单笔上限 | 当日亏损 |
| ---------------- | ---------------------- | ----- | --- | ----- | ----------------- | --------- | ---- | ---- |
| **Balanced(默认)** | 8 / 21 / 5 | 233 | 2 层 | 0.12% | TP 0.22 / SL 0.15 | 1.2× | 50% | 1.5% |
| **Trend** | 10 / 24 / 7 | 200 | 3 层 | 0.10% | TP 0.25 / SL 0.18 | 1.6× | 45% | 1.2% |
| **Scalper** | 6 / 19 / 4 | 100 | 关闭 | —— | TP 0.18 / SL 0.12 | 1.3× | 35% | 1.0% |
> 说明:
>
> * Balanced:均衡型,适合多数时期;
> * Trend:顺势拉伸,持仓更久、盈亏比更高;
> * Scalper:快进快出、高胜率、不过度叠仓。
---
## 使用建议
1. **品种/周期**:`CME_MINI:NQ1!`(或当季主力合约),**30m**。
2. **手续费**:本策略默认 **1 USD/合约**(在“策略属性”可按实盘成本调整)。
3. **成交精度**:建议在“策略属性 → 高级设置”勾选 **Bar Magnifier**,提升限价/拖尾成交模拟精度。
4. **仓位**:策略默认 90% 仅为展示;回测与实盘更建议 **30%\~40% 权益**。
5. **风险**:金字塔仅做轻量、有限层数;若市场极端震荡,适当降低单笔上限与当日亏损阈值。
---
## 输入项(TradingView 右侧面板)
* **参数预设**:`Balanced / Trend / Scalper`
* **仅在 30m 周期生效**:开/关
* **出场模式**:`Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`
> 其余细节参数由预设自动注入,无需手动繁杂调整,**开箱即用**。
---
## 注意事项
* 本脚本为研究与教育用途,不构成投资建议。期货与杠杆交易风险高,请在可承受范围内使用。
* 预设适配历史统计特征,未来表现不保证;建议结合自身风控与账户规模,先小仓/纸面验证。
* 仅做多版本;若需要双向(多空)或加入 RTH(美股盘中)/HTF(更高周期确认)等扩展,请在评论区留言。
---
**作者注**:
* 本策略在 Pine v6 编写,避免了常见的 v6 语法踩坑(如 `strategy.risk.max_position_size()` 仅 1 参、`plot` 标题需常量、追踪需成对参数 `trail_price + trail_offset` 等)。
* 欢迎在评论区反馈你的回测截图(区间、手续费、订单量),我会根据数据给出更贴合你的参数档。
# CoinGpt NQ Strategy (MACD · Multi-Factor · Optional Pyramiding)
## Overview
**CoinGpt NQ Strategy** is a ready-to-trade system for **Nasdaq-100 futures (NQ; recommended: `CME_MINI:NQ1!`) on the 30-minute timeframe**.
It uses **MACD momentum** as the backbone, adds an **EMA trend filter**, optional **pyramiding**, and **three exit modes** (Fixed TP/SL, Trailing, Trailing+TP) with built-in risk caps. Three one-click presets—**Balanced / Trend / Scalper**—cover different regimes and risk appetites.
> Instruments: futures / continuous contract
> Direction: **Long-only** (this script version)
> Timeframe: **30m** (toggleable)
---
## Entry
* **Trigger:** `MACD` line crossing **above** `Signal`.
* **Trend filter (optional):** price above `EMA(p_emaLen)` and `MACD > 0 & Signal > 0`.
* **Timeframe guard:** by default, signals are valid on **30m** only.
## Exit
* **Fixed TP/SL:** percentage-based limit and stop.
* **Trailing:** ATR-based trailing offset (or percent).
* **Trailing + TP:** trailing stop **and** a take-profit cap.
* **Protective flip:** when `MACD` crosses **below** `Signal`, close the long.
> Choose exit mode in **Inputs → “Exit Mode”**:
> `Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`.
---
## Pyramiding (optional)
* Adds only **against adverse pullbacks** from the last add price.
* Up to `p_maxAdds` layers; each layer triggers at `p_addStep%` pullback from the **previous add**.
* Goal: **improve average price** with **small steps & limited layers** to keep drawdowns controlled.
---
## Risk Management
* **Daily loss cap:** `strategy.risk.max_intraday_loss(p_maxDailyDD, % of equity)`.
* **Per-trade size cap:** `strategy.risk.max_position_size(p_posCapPct)`.
* **Order size (strategy properties):** default **90% of equity** (for display).
* Practical suggestion: Balanced ≈ **40%**, Trend ≈ **35%**, Scalper ≈ **30%** (set in Strategy Properties → Order size).
---
## Presets (one-click)
| Preset | MACD (fast/slow/signal) | Trend EMA | Pyramiding | Add Step | Fixed TP/SL (%) | Trailing (ATR) | Pos Cap | Daily DD |
| ---------------------- | ----------------------- | --------- | ---------- | -------- | ------------------------- | -------------- | ------- | -------- |
| **Balanced (default)** | 8 / 21 / 5 | 233 | 2 layers | 0.12% | TP **0.22** / SL **0.15** | **1.2×** | **50%** | **1.5%** |
| **Trend** | 10 / 24 / 7 | 200 | 3 layers | 0.10% | TP **0.25** / SL **0.18** | **1.6×** | **45%** | **1.2%** |
| **Scalper** | 6 / 19 / 4 | 100 | Off | — | TP **0.18** / SL **0.12** | **1.3×** | **35%** | **1.0%** |
> **Balanced:** all-weather, stable.
> **Trend:** holds longer and targets higher R multiples.
> **Scalper:** quick in/out, higher hit-rate, no stacking.
---
## Usage Tips
1. **Symbol/TF:** `CME_MINI:NQ1!`, **30m**.
2. **Fees:** default **\$1 per contract** (adjust to your broker in Strategy Properties).
3. **Execution realism:** enable **Bar Magnifier** (Strategy Properties → Advanced) for more accurate limit/trailing fills.
4. **Sizing:** the script defaults to 90% only to showcase behavior—use **30–40%** in realistic tests.
5. **Pyramiding:** keep layers small & capped. In choppy regimes, reduce `p_posCapPct` and `p_maxDailyDD`.
---
## Inputs (right-panel)
* **Param Preset:** `Balanced / Trend / Scalper`
* **30m-only:** on/off
* **Exit Mode:** `Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`
> All other parameters are pre-wired by the chosen preset for **plug-and-play** operation.
---
## Notes & Disclaimer
* Educational use only—**not** financial advice. Futures and leverage carry substantial risk.
* Presets reflect historical characteristics; **future performance is not guaranteed**. Start small or paper trade first.
* This version is **long-only**; if you need a two-sided (long & short) variant or extras (RTH/HTF filters), leave a comment.
---
**Author Notes**
* Written in **Pine v6** with common pitfalls avoided (e.g., `strategy.risk.max_position_size()` takes **one** arg, `plot` titles are **const strings**, trailing requires `trail_price + trail_offset`).
* Share your backtest screenshots (period, fees, order size) and I can suggest **tighter, data-driven knobs** for your setup.
Vedic Hora LinesBased on Vedic Astrolgy, hora is a hourly time either auspicious or otherwise represented by a planet.
Each planet has different characteristics and influences. depend on each of these factors, a stock is likely to behave intraday and gives momentum or reactions as key point of interest levels.
This can not determine any trend or does not act either as Point of Interest level, but drives behaviour of the trader in the sector
For example
Mars (Mangal) - drives defence , Land, Mining, Constructions etc.
Liquidation Detector, Short and Long with Open InterestThe script analyzes three main pieces of data from each candle (or time bar): price, Open Interest (OI), and volume. It then uses that data to look for two distinct types of patterns and marks them on the chart for easy viewing.
CAN ONLY BE USED WITH STICKER BTC1! CME
Liquidation Detection:
What are you looking for? A sharp drop in Open Interest accompanied by a spike in volume.
What does it mean? This pattern indicates that a large number of positions (usually long) are being closed quickly, which can cause a sharp price drop. It's a signal of market capitulation that many traders use as a potential entry point.
Shorts Entry Detection:
What are you looking for? A price drop accompanied by an increase in Open Interest and a spike in volume.
What does it mean? This pattern shows that "new money" is entering the market to open short positions. It confirms a downtrend and suggests that the price drop has real strength behind it.
Marker: A purple triangle labeled "Shorts."
🕊️ Shemitah + Jubilee Cycle OverlayShemitah + Jubilee Cycle Overlay
This indicator overlays significant biblical cycle events—Shemitah and Jubilee years—onto your chart, providing a unique perspective on historical and potential future market cycles. The Shemitah cycle occurs every 7 years, while the Jubilee cycle spans 49 years, both starting from a user-defined year (defaulting to 1917). Key features include:
Highlight Shemitah Years: Shades the chart background in orange during Shemitah years, with customizable color and transparency.
Mark Jubilee Years: Draws bold blue vertical lines on the chart for Jubilee years, with optional labels.
Event Markers: Places vertical lines and labels (e.g., "Shemitah" or "Jubilee") on a specified month and day (defaulting to September 10th) for each cycle event.
Countdown Display: Shows the next upcoming Shemitah and Jubilee years on the chart for easy reference.
Customizable Inputs: Adjust the start year, cycle lengths, event date, colors, and visibility of highlights and labels to suit your analysis.
Ideal for traders and analysts exploring long-term economic or market patterns influenced by these traditional cycles, this overlay combines historical context with visual clarity. Use it on daily or higher timeframes for best results. The best markets to overlay this indicator on include major stock indices (e.g., S&P 500, Dow Jones), precious metals (e.g., Gold, Silver), cryptocurrencies (e.g., Bitcoin, Ethereum), and debt markets (e.g., U.S. Treasury Bonds, Corporate Bond ETFs), as these markets often reflect macroeconomic shifts, debt cycles, and speculative behavior that may correlate with Shemitah and Jubilee cycles.
Rationale for Including Debt Markets
U.S. Treasury Bonds:
Treasury securities (e.g., 10-year or 30-year bonds) are sensitive to interest rate changes and government debt levels. The Shemitah cycle (every 7 years) has been historically linked to debt-related economic adjustments, while the Jubilee cycle (every 49 years) aligns with broader debt forgiveness or restructuring concepts, making bonds a prime candidate.
Corporate Bond ETFs (e.g., LQD, HYG):
Corporate bond ETFs represent corporate debt and are influenced by credit cycles and economic resets. The indicator could highlight periods of potential default risk or yield shifts tied to Shemitah or Jubilee years.
Relevance to Biblical Context:
The Jubilee year, as described in the Bible (Leviticus 25), involves the release of debts and return of land, directly tying it to debt markets. The Shemitah year also includes a release of debts every seven years, making debt instruments a natural fit for this indicator’s thematic analysis.
Swing Point Pressure DatesThis indicator provides future dates where the trend may change. It accepts a previous swing high or low and calculates the next dates where a trend takes a decision. On these dates look for price action to define the trend.
MACD Buy Sell Josh Signals:
BUY when Histogram crosses above Signal.
SELL when Histogram crosses below Signal.
Read it fast:
Prefer BUY only when Signal > 0 (bull regime).
Prefer SELL only when Signal < 0 (bear regime).
Stronger when Signal slope supports the side (up for BUY, down for SELL).
Suggested defaults
Fast/Slow/Signal = 12/26/9 (classic).
Keep arrows on; toggle text labels only if you want extra context.
Alerts to enable
MACD BUY and MACD SELL (already included).
Tip: use one alert “Once per bar close” to avoid intrabar noise.