Trigonometric Sine Cosine WavesTrigonometric Sine Cosine Waves - Advanced Cyclical Analysis
Overview
This innovative indicator applies trigonometric mathematics to market analysis, generating dynamic sine and cosine waves that adapt to price movement and volatility. Unlike traditional oscillators, this tool visualizes market cycles directly on your chart using mathematical wave functions.
How It Works
The indicator calculates phase-based waves using:
• Phase Calculation: 2π × bar_index / cycle_length
• Adaptive Amplitude: EMA-based price + ATR volatility scaling
• Sine Wave: avgPrice + volatility × sin(phase)
• Cosine Wave: avgPrice + volatility × cos(phase)
Key Features
Dynamic Wave Generation
• Sine Wave: Primary cycle indicator with smooth transitions
• Cosine Wave: Leading indicator (90° phase difference from sine)
• Adaptive Amplitude: Automatically adjusts to market volatility using ATR
Turning Point Detection
• Anti-Repaint Signals: Uses confirmed values from previous bars
• Sine Bottom: Potential buy zones when wave transitions from down to up
• Sine Top: Potential sell zones when wave transitions from up to down
Advanced Analytics
• Price Correlation Angle: Shows relationship between price movement and cycle
• Phase Information: Current position in the mathematical cycle
• Real-time Values: Live sine/cosine values and phase degrees
Visual Enhancement
• Background Coloring: Changes based on sine wave position (above/below zero)
• Clean Overlay: Waves plot directly on price chart without cluttering
Parameters
• Cycle Length (5-200): Controls wave frequency - shorter = more sensitive
• Amplitude Multiplier (0.1-5.0): Adjusts wave height relative to volatility
• Display Options : Toggle sine wave, cosine wave, and correlation table
• Show Correlation : Optional table showing mathematical values
Trading Applications
Cycle Analysis
• Identify market rhythm and timing
• Spot potential reversal zones
• Understand price-to-cycle relationships
Entry/Exit Timing
• Buy Signals: Sine wave bottoms (cycle lows)
• Sell Signals: Sine wave tops (cycle highs)
• Confirmation: Use with other indicators for higher probability setups
Market Structure
• Visualize underlying market cycles
• Identify periods of high/low cyclical activity
• Track phase relationships between price and mathematical cycles
Pro Tips
1. Longer cycles (50-100) work better for swing trading
2. Shorter cycles (10-20) suitable for scalping
3. Combine with volume for stronger signal confirmation
4. Monitor correlation angle for trend strength assessment
5. Use background color as quick visual cycle reference
Important Notes
• Signals are anti-repaint using confirmed previous bar values
• Best used in trending or cyclical markets
• Consider market context when interpreting signals
• Mathematical approach - not based on traditional TA concepts
Alerts Included
• Sine Wave Buy Signal: Triggered on wave bottom detection
• Sine Wave Sell Signal: Triggered on wave top detection
Technical Requirements
• Pine Script v6
• Works on all timeframes
• No external dependencies
• Optimized for performance
This is a free, open-source indicator. Feel free to modify and improve according to your trading needs!
Educational Value: Perfect for understanding how mathematical functions can be applied to market analysis and cycle detection.
Cicli
NY/LDN/TOK Stock Exchange Opening HoursThis indicator displays vertical dotted lines marking the exact opening times of the three major global stock exchanges: New York (NYSE), London (LSE), and Tokyo (TSE). Perfect for traders who need to track market opening sessions across different time zones.
Features:
New York Stock Exchange (NYSE): 9:30 AM EST/EDT
London Stock Exchange (LSE): 8:00 AM GMT/BST
Tokyo Stock Exchange (TSE): 9:00 AM JST
Key Highlights:
✓ Automatic daylight saving time adjustments for NY and London
✓ Individual color customization for each market
✓ Toggle on/off functionality for each exchange
✓ Clean vertical dotted lines (1-pixel width) that extend across the entire chart
✓ Interactive legend in bottom-right corner showing active markets
✓ Weekdays only (Monday-Friday) - no weekend lines
✓ Uses official local time zones for accurate timing
Customizable Settings:
Enable/disable individual exchanges
Custom color selection for each market line
Dynamic legend that shows only enabled markets
Time Zone Handling:
The indicator automatically handles daylight saving time transitions using official time zones:
America/New_York (EST/EDT)
Europe/London (GMT/BST)
Asia/Tokyo (JST - no DST)
Perfect for:
Multi-market traders
Session overlap analysis
Global market timing coordination
Institutional trading schedules
Simply add to your chart and customize colors/visibility in the indicator settings. The legend will automatically update to show your active markets in their respective colors.
CRYPTOMATH RSI Pro+This custom RSI indicator was built for the Cryptomath community.
It features clean visual signals with color-coded zones that highlight overbought and oversold conditions, helping traders quickly spot potential reversal areas.
Great for swing traders and intraday decision-making.
Assets Correlation AnalyzerAssets Correlation Analyzer
---------------------------------------------
What is it?
The Assets Correlation Analyzer is a technical indicator that measures and visualizes the statistical relationship between any two financial assets (a 'Base Asset' vs. a 'Comparison Asset', example Gold vs. SPY or Nasdaq vs. Bitcoin). The indicator calculates dynamic correlation tracking using statistical methods, confidence intervals, and category-wide analysis capabilities.
---------------------------------------------
Why was it built? / Potential Benefits
This indicator was developed to help analyze inter-asset relationships in portfolio management and trading strategies. The indicator can be used for:
Risk Assessment: Identify when assets begin moving together
Diversification Analysis: Monitor portfolio component relationships
Pairs Trading: Identify when correlated assets diverge
Market Analysis: Recognize shifts in market conditions through correlation patterns
Asset Analysis: Support decision-making based on correlation dynamics
Hedging Analysis: Identify relationships between different instruments
---------------------------------------------
How it Works
The indicator employs established statistical methods to calculate rolling correlations between two selected assets:
Data Collection: Retrieves price data for both selected assets using TradingView's security function
Returns Calculation: Computes logarithmic or simple returns based on user preference
Outlier Filtering: Optionally removes extreme price movements (beyond 2.5 standard deviations) to improve accuracy
Correlation Computation: Calculates either Pearson or Spearman rank correlation over the specified period
Signal Generation: Applies smoothing and generates a signal line (EMA) for momentum detection
Confidence Assessment: Evaluates data quality and provides confidence metrics
---------------------------------------------
How to Read the Oscillator
Main Correlation Line
Values Range: -1.0 to +1.0
+1.0: Perfect positive correlation (assets move identically)
+0.7 to +0.99: Strong positive correlation
+0.3 to +0.69: Moderate positive correlation
-0.3 to +0.29: Weak/No significant correlation
-0.69 to -0.31: Moderate negative correlation
-0.99 to -0.7: Strong negative correlation
-1.0: Perfect negative correlation (assets move oppositely)
Color Coding System
Green shades: Positive correlation levels, with brighter green indicating stronger positive correlation
Red shades: Negative correlation levels, with brighter red indicating stronger negative correlation
Gray: Insufficient data or transitional periods
The color intensity reflects both correlation strength and momentum relative to the signal line.
Signal Line (Gray)
The EMA-based signal line helps identify momentum changes:
Correlation above signal: Positive momentum in correlation
Correlation below signal: Negative momentum in correlation
Crossovers: Potential turning points in the relationship
Background Fills
Gradient fills provide a quick visual assessment of correlation strength, with intensity indicating the degree of correlation.
---------------------------------------------
Correlation Calculation Methods and Options
Calculation Methods
Spearman Rank Correlation (Default)
Uses ranked values rather than raw prices
Less sensitive to outliers and non-linear relationships
Suitable for volatile or non-normally distributed assets
Pearson Correlation (Traditional)
Standard linear correlation method
More sensitive to outliers
Suitable for assets with normal distribution patterns
---------------------------------------------
Customization Options
Correlation Period (7-500 bars): Determines the lookback window for calculation
Signal Line Period (1-200 bars): Controls the smoothing of the signal line
Outlier Removal: Automatically filters extreme price movements
Return Type: Choose between logarithmic (recommended) or simple returns
Smoothing Period: Reduces noise in correlation readings
---------------------------------------------
Asset Categories
The indicator includes 80+ pre-configured assets across multiple categories:
Metals: Gold, Silver, Copper, Platinum, Palladium, Nickel, Zinc, Aluminum
Energy: WTI/Brent Crude, Natural Gas, Uranium
Agriculture: Corn, Soybeans, Wheat, Coffee
ETFs: Major indices, sector, geographic, and specialty ETFs
Bonds: Government and corporate bond instruments
Financial: Currency pairs, treasury yields, volatility indices
Cryptocurrencies: Major digital assets and market cap indices
Real Estate: REITs and real estate focused instruments
---------------------------------------------
For Whom This Indicator Is Designed
Intended Users
Portfolio Managers: Asset allocation and risk assessment
Quantitative Traders: Correlation-based strategy development
Risk Analysts: Correlation monitoring and analysis
Institutional Investors: Diversification analysis
Active Traders: Pairs trading and arbitrage analysis
Skill Level
Intermediate to Advanced: Requires understanding of correlation concepts and statistical interpretation
Experience with Statistics: Users should be familiar with correlation analysis concepts
---------------------------------------------
Information Tables
Main Analysis Table
Displays current correlation value, data confidence percentage, and selected asset information.
Category Correlation Table
Shows correlation strength between the selected 'Base Asset' (in the chart, Gold) and all assets in the comparison asset's category.
---------------------------------------------
Alert Conditions
Four built-in alert types:
Strong Stable Positive Correlation: Triggers when correlation exceeds +0.8 with low volatility
Strong Stable Negative Correlation: Triggers when correlation falls below -0.8 with low volatility
Bullish Correlation Momentum: Signals when correlation crosses above the signal line
Bearish Correlation Momentum: Signals when correlation crosses below the signal line
---------------------------------------------
Usage Notes
Longer periods (30-50 bars) provide more stable analysis
Shorter periods (10-20 bars) provide more responsive signals
Monitor confidence levels - correlations with <75% confidence should be interpreted cautiously
Correlations tend to increase during market stress periods
Should be used in conjunction with other analysis tools
---------------------------------------------
Important Disclaimer
This indicator is for educational and informational purposes only. It should not be considered as financial advice or a recommendation to buy, sell, or hold any financial instrument. Past correlation patterns do not guarantee future relationships between assets. Users should conduct their own research and consider consulting with a qualified financial advisor before making investment decisions. Trading and investing involve substantial risk of loss, and correlation analysis cannot eliminate these risks. The accuracy of correlation calculations depends on data quality and market conditions, which can change rapidly.
FTM → SONIC Combined Candlesticksthis script combines the chart of FTM and SONIC to get a better overview of the entire price action
ORB Scalp setup by UnenbatDescription
ORB Scalp Setup by Unenbat is a precise breakout scalping tool that identifies short-term price ranges at the transition between hourly sessions.
📌 Core Features:
Draws a dynamic box using the price range from the last 3 minutes of the previous hour and the first 3 minutes of the new hour (total 5m59s range).
Automatically plots:
Box representing the selected range.
Opening Price Line at the start of the hour.
TP Lines (Take Profit) above and below the box at customizable distances.
BE Lines (Break-Even) above and below the box at customizable distances.
Box and line lengths are user-defined (default: 60 minutes).
Works across historical data (up to the last 100 days).
Fully customizable visuals (colors, offsets, visibility toggles).
🎯 How to Use:
Ideal for scalp traders using breakout strategies.
Enter trades when price breaks above or below the box range.
Use TP and BE lines as clear reference levels for exits or trailing stop logic.
⚙️ Custom Settings:
Enable/disable each component (box, open line, TP line, BE line).
Set your own offset in pips for TP/BE lines.
Adjust the box duration to match your trading style.
Modify start and end times of the range as needed.
Hidden Liquidity Shift DetectorPurpose
The Hidden Liquidity Shift Detector identifies candles that indicate potential hidden accumulation or distribution activity based on volume and price action behavior. These setups often represent institutional absorption of liquidity ahead of larger moves.
How It Works
The script detects candles with the following characteristics:
Small real body relative to the total candle range
A strong wick (upper or lower) indicating rejection
Volume significantly higher than the recent average
It flags:
Hidden Selling (Distribution) when a bearish candle has a long upper wick and high volume
Hidden Buying (Accumulation) when a bullish candle has a long lower wick and high volume
These candles are often missed by traditional indicators but may precede significant reversals or breakouts.
Features
Automatic detection of absorption-style candles
Volume spike filtering based on configurable multiplier
Wick and body ratio thresholds to fine-tune signal quality
Non-intrusive signal markers (colored circles)
Real-time alerts for hidden buying/selling signals
Usage Tips
Use on 15m to 4H charts for intraday detection, or Daily for swing setups
Combine with support/resistance or volume profile zones for higher conviction
Clusters of signals in the same area increase reversal probability
Can be used alongside Wyckoff-style logic or smart money concepts
Wave1234 Flip tp Betawave1234 flip tp
A Trend-Following Indicator Powered by Elliott Wave & SMC – Know Where the Price Will Rise, Peak, and Reverse
Wave1234 Flip TP is a technical indicator built on the foundations of Elliott Wave Theory combined with insights from Smart Money Concepts (SMC). It's designed to help traders clearly identify:
✅ Where the price will start rising (precise entry after a confirmed reversal)
✅ Where the rally is likely to end (shows psychological Take Profit zones after Wave 4)
✅ And where the price is most likely to reverse down (based on key structural resistance)
🧠 How It Works:
The core mechanism of Wave1234 Flip TP is simple but powerful.
📈 Once a Buy signal appears — this marks the beginning of a new uptrend (confirmed by structure and reversal patterns).
➡️ From there, the system lets the trend run naturally, tracking the price through its impulsive movement (Wave 1 to 3) and its first meaningful correction (Wave 4).
✅ After Wave 4 forms, the indicator begins tracking potential reversal zones — based on both market psychology and institutional order flow.
🔹 This is when the green TP line appears — a projected take-profit zone where the rally may end.
💥 When price hits this zone and confirms exhaustion, the green TP line turns blue, signaling:
✅ Success – the trend has completed its cycle
🚨 Caution – momentum may reverse soon
This allows traders to exit at strength, or prepare for a potential short when structure shifts again.
หลักการของ Wave1234 Flip TP คือ “ปล่อยให้เทรนด์รันอย่างเป็นธรรมชาติ แล้วไปโฟกัสจุดกลับตัวที่สำคัญที่สุด”
📈 เมื่อเกิดสัญญาณ Buy — นั่นคือจุดเริ่มต้นของเทรนด์ขาขึ้นรอบใหม่ (ยืนยันโดยโครงสร้างราคาและแท่งกลับตัว)
จากนั้นเราจะ ปล่อยให้เทรนด์วิ่งไป โดยไม่ต้องรีบทำอะไร
…รอจนเข้าสู่ช่วงคลื่น 3 → 4 (Wave 3-4)
เพราะนั่นคือช่วงที่ “แรงซื้อเริ่มหมด”
✅ หลังจาก Wave 4 จบลง
อินดิเคเตอร์จะเริ่ม “คาดการณ์จุดกลับตัว” โดยใช้ทั้งพฤติกรรมจิตวิทยาตลาด และระดับราคาเชิงโครงสร้างที่สถาบันมองเห็น
🟩 เส้น TP สีเขียวจะปรากฏขึ้น — นี่คือโซนที่ควร เริ่มทยอยปิดกำไร
📉 และถ้าราคาวิ่ง ชนเส้นนี้จริง พร้อมมีสัญญาณยืนยัน
เส้นเขียวจะ เปลี่ยนเป็นสีฟ้า ทันที
💡 แปลว่า:
เทรนด์รอบนี้ “ไปถึงเป้าหมายแล้ว”
ความเสี่ยงที่จะกลับทิศกำลังสูงขึ้น
ถึงเวลาที่ต้อง “หยุดโลภ แล้วป้องกันกำไร”
Clarix Smart FlipPurpose
This tool identifies high-probability intraday reversals by detecting when price flips through the daily open after strong early-session commitment.
How It Works
A valid flip occurs when:
The previous daily candle is bullish or bearish
The first hour today continues in the same direction
Then, the price flips back through the daily open with a minimum break threshold (user-defined)
This setup is designed to catch liquidity grabs or fakeouts near the daily open, where early buyers or sellers get trapped after showing commitment
Signal Logic
Buy Flip
Previous day bearish → first hour bearish → price flips above open
Sell Flip
Previous day bullish → first hour bullish → price flips below open
Features
Configurable flip threshold in percentage
Signals only activate after the first hour ends
Daily open line displayed on chart
Simple triangle markers with no visual clutter
Alerts ready to use for automation or notifications
Usage Tips
Use "Once Per Bar" alert mode to get notified immediately when the flip happens
Works best in active markets like FX, indices, or crypto
Adjust threshold based on asset volatility
Suggested stop loss: use the previous daily high for sell flips or the previous daily low for buy flips
Suggested take profit: secure at least 30 pips to aim for a 1:3 risk-to-reward ratio on average
CHOCH vs fibo thedu// ~~ Tooltips {
string t1 = "Defines how many bars back the pivot high/low is calculated from. Higher values detect stronger swing structures."
string t2 = "Enable to display bullish market structure (higher highs and higher lows)."
string t3 = "Select the color of bullish structure lines and labels."
string t4 = "Enable to display bearish market structure (lower highs and lower lows)."
string t5 = "Select the color of bearish structure lines and labels."
string t6 = "Width of the Break of Structure (BoS) line to make it more visible on the chart."
string t7 = "Enable automatic tracking of recent swing points. Adjusts Fibonacci levels in real-time as new swings form."
string t8 = "Enable to draw dotted lines connecting swing highs/lows (the swing trend line)."
string t9 = "Adjust the thickness of the swing trend line. Useful for emphasizing or de-emphasizing swing connections."
string t10 = "Enable to show price labels at swing highs/lows. Helps visualize turning points with exact prices."
string t11 = "Show previous (historical) Fibonacci levels instead of clearing them each time new structure forms."
string t12 = "Enable to keep Fibonacci levels extended forward to the current bar. Helps maintain context while trading."
string t13 = "Enable to fill the Golden Zone (typically 0.5 - 0.618 retracement) between the first two Fibonacci levels."
string t14 = "Select the fill color for the Golden Zone. Softer transparency is ideal to avoid chart clutter."
string t15 = "Enable or disable individual Fibonacci levels. Checked levels will be drawn on the chart."
string t16 = "Customize the specific Fibonacci retracement level value. 0.50 is midpoint, 0.618 is golden ratio."
string t17 = "Choose the color for each Fibonacci level line. Use contrasting colors for clarity."
string t18 = "Sets the thickness of the Fibonacci level lines. Increase for better visibility."
string t19 = "Enable alerts for bullish CHOCH signals."
string t20 = "Enable alerts for bearish CHOCH signals."
string t21 = "Enable alerts when price touches Fibonacci levels."
string t22 = "Enable alerts when price enters the Golden Zone."
Asian & London Session Two-Color Candlesthis script use to find the asian and london session with different candle colours.
Reversal Signal avec TICK + RSIThis indicator is a potential reversal indicator for SCALPING, don't use it for swing. It's base on TICK and on an overbrought/oversold condition of the RSI. You can play with the setting, typicaly I like my TICK to be over reacting an 800/-800 and my rsi over 20 and 80, but it give not enough signal. So I set the TICK signal at 651/-651 and the RSI at 25/75. This indicator is made for SP500 and Nasdaq, so SPY/QQQ/SPX/ES/NQ should work well. It's the first version of it, so maybe I'll add so more data to it to increase signal and lower false one. For now I've test it on live market yet(26/7/25).
The RSI is Fast(5 period), I like to use it on the 1 or 5 min chart.
Please not that it only work during 9h30am to 4pm EST.(Because of the TICK)
Feel free to try and even comment. Don't be harsh on me, it's my first try!
(Sorry for my 'english' it's not my first language)
FAUCON
Volume Weighted Average Pricehelps my strategy and allows my trades to hit tp allowing me to gain profit
London & NY Session Markers + Pip MovementThis indicator visually marks the London and New York trading sessions on your chart and optionally calculates the pip range (high-low movement) during each session. It's specifically designed for Forex traders, helping you identify volatility windows and analyze market movement within major session times.
🔍 Key Features:
✅ Session Open/Close Markers
Draws vertical dotted lines at:
London Open (08:00 UK time)
London Close (11:00 UK time)
New York Open (14:00 UK time)
New York Close (17:00 UK time)
Each marker is labeled clearly ("London Open", "NY Close", etc.)
Uses color-coding for easy identification:
Aqua for London
Lime for New York
✅ Pip Range Display (Optional)
Measures the high-low price movement during each session.
Converts this movement into pips, using:
0.0001 pip size for most pairs
0.01 pip size for JPY pairs (auto-detected)
Displays a label (e.g., "London: 42.5 pips") above the candle at session close.
This feature can be toggled on/off via the settings panel.
✅ Time-Zone Aware
Session times are aligned to Europe/London time zone.
Adjusts automatically for Daylight Saving Time (DST).
✅ User Controls
Toggle visibility for:
London session markers
New York session markers
Pip range labels
📊 Use Cases:
Identify when liquidity and volatility increase, especially during session overlaps.
Analyze historical session-based volatility (e.g., compare NY vs. London pip ranges).
Combine with price action or indicator signals that work best in high-volume hours.
Optimize entry and exit timing based on session structure.
⚙️ Best Timeframes:
5-min to 1-hour charts for precise session tracking.
Works on Forex and CFD pairs with standard tick sizes.
⚠️ Notes:
This tool does not repaint and uses only completed bar data.
Pip calculation is based on the chart’s current symbol and tick size.
Designed for spot FX, not intended for cryptocurrencies or synthetic indices.
✅ Ideal For:
Forex Day Traders
Session-based Strategy Developers
London Breakout or NY Reversal Traders
Anyone analyzing volatility by session windows
🚀 Turttle_Dalmata Indicator v5 ()Turttle_Dalmata™ is a proprietary, multi-timeframe confluence indicator that leverages a 9-factor lo
gic model to provide high-confidence entry signals across crypto and futures markets. Designed to su
pport intraday alpha generation, systematic execution filters, and automation.
Core Objective
To identify breakout-driven trades with directional conviction, minimal lag, and high statistical co
nfidence using real-time data and volatility-aware filters.
Signal Architecture (9-Factor Logic)
Signals are only generated when 7 or more of the following 9 confluences are simultaneously met:
1. EMA 200 (1m): Trend Filter
2. 1H VWAP Alignment: Institutional Flow Bias
3. RSI + RSI Slope: Momentum Confirmation
4. RSI HTF (15m): Multi-timeframe Confirmation
5. Volume Spike: Volatility Filter
6. Break of Structure: Price Action Trigger
7. Fair Value Gap: Smart Money Logic
8. CVC Line (5m): Orderflow Proxy
9. ATR Expansion: Volatility Acceleration
Output Signals
Buy = Green Triangle | Sell = Red Triangle
Signals are shown on-chart, non-repainting, and fire in real time.
Improved Weinstein Stage AnalysisThe code provides an actionable, disciplined, and visually informative implementation of the “Stage Analysis” approach pioneered by Stan Weinstein, with enhancements to modernize, automate, and clarify the methodology for today’s traders using TradingView. It faithfully follows the workflow recommended: identify long-term cycles, confirm with volume and relative strength, and only engage aggressively with the market during the advancing (bullish) stage with all “clues” aligned.
Central Bank Divergence IndexCentral Bank Divergence Index (CBDiv) by CWRP blends foreign exchange (FX) market behavior and short-term interest rate (STIR) spreads to detect monetary policy divergence or convergence among major economies.
It calculates a composite Z-score index that tracks divergence between the US and other major economies using FX pairs USDJPY, EURUSD, GBPUSD, AUDUSD (With AUD acting as a proxy to the RMB) and short-term bond ETFs (SHY = U.S. 1–3Y Treasury, EWJ = Japan, IEUR = Europe).
SHY/EWJ and SHY/IEUR: If SHY outperforms, it means US short-term rates are rising relative to Japan/Europe.
How to Read:
Highlighting
Yellow = Diverging central bank policy (US > others) ; Hawkish
Blue = Converging policy (US < others) ; Dovish/Lagging
Gray = Neutral
Table
FX Divergence:
Positive (> +1) -> USD is strengthening unusually fast -> Fed is likely tighter than others
Negative (< -1) -> USD is weakening -> Other central banks might be tightening relative to the Fed
Rate Spread Divergence (Which acts as a proxy for interest rate divergence):
Positive -> U.S. rates are rising faster than Japan/Europe
Negative -> Foreign short-term rates outperforming U.S.
Composite:
Positive (> +1) -> Strong U.S. policy divergence (hawkish Fed)
Negative (< -1) -> Converging or dovish Fed
Neutral (Between -1 and +1) -> Neutral policy stance
Thank you for using the Central Bank Divergence Index by CWRP!
I'm open to all critiques and discussion around macroeconomics and hope you find use in this model!
Cross-Asset Risk Appetite IndexCross-Asset Risk Appetite Index (RiskApp) by CWRP combines multiple asset classes into a single risk sentiment signal to help traders and investors detect when the market is in a risk-on or risk-off regime.
It calculates a composite Z-score index based on relative performance between:
SPY / IEF: Equities vs Bonds
HYG / LQD: High Yield vs Investment Grade Credit
CL / GC: Oil vs Gold
VIX / MOVE: Equity vs Bond Market Volatility (inverted)
Each component reflects capital flows toward riskier or safer assets, with dynamic weighting (Equity/Bond: 30%, Credit: 25%, Commodities: 25%, Volatility: 20%) and smoothing applied for a cleaner signal.
How to Read:
Highlighting
Yellow = Risk-On sentiment (market favors risk assets)
Orange = Risk-Off sentiment (flight to safety)
Black Background = Neutral design for emotional detachment
Table
Equity/Bond Z-Score:
Positive (> +1) --> Stocks outperforming bonds --> Risk-On
Negative (< -1) --> Bonds outperforming stocks --> Risk-Off
Credit Spread Z-Score (HYG/LQD):
Positive --> High yield outperforming --> Investors seeking yield
Negative --> Flight to quality --> Credit concerns
Oil/Gold Z-Score:
Positive --> Oil outperforming --> Economic optimism
Negative --> Gold outperforming --> Defensive positioning
Volatility Spread (VIX/MOVE):
Positive --> Equity vol falling relative to bond vol --> Risk stabilizing
Negative --> Equity vol rising --> Caution / Risk-Off
Composite Index:
> +1 --> Strong Risk Appetite
< -1 --> Strong Risk Aversion
Between -1 and +1 --> Neutral regime
Thank you for using the Cross-Asset Risk Appetite Index by CWRP!
I'm open to all critiques and discussion around macro-finance and hope this model adds clarity to your decision-making.
Bitcoin Basket [100Zabaan]🟢🟢 Bitcoin Basket 🟢🟢
🟡 Overview
This indicator is a long-term analytical tool for Bitcoin investment, designed by drawing inspiration from historical halving cycles, historical peak growths and deepest declines, and the overall price growth trend. The main goal of this indicator is to provide a strategic perspective to investors so they can better identify key market phases, such as periods of major selling and major buying of Bitcoin.
🟡 This tool visually compares two scenarios:
Hold Strategy : The strategy of buying and holding Bitcoin from the time of investment until today ( Bitcoin Holding Strategy ).
Active Investment Strategy : An active investment strategy that cautiously buys and sells based on market cycle-driven signals ( Active Bitcoin Trading Strategy ).
This comparison helps you make more informed decisions regarding your long-term capital management.
🟡 Key Features of the Indicator
Performance Comparison : Displays the current value of your investment based on two strategies:
Bitcoin Holding Strategy : If you had invested an amount on your chosen date, how much Bitcoin (equivalent to how many dollars) would you have today.
Active Bitcoin Trading Strategy : How your capital would have grown if you had traded based on the indicator's buy and sell signals.
Also, in the status line section, you can see your asset amount (in USD) at each candle and compare the two strategies.
Identification of Buy and Sell Periods : Using colored boxes (red and green), it identifies time periods that have historically been suitable for selling or buying.
Identification of Suitable Price Ranges in Buy and Sell Periods : With a horizontal line within the red boxes, it informs us that prices above this line may be worth selling. With a horizontal line within the green boxes, it informs us that prices below this line may be worth buying.
Halving Display: Shows the exact time of each halving along with the block reward for each block produced during that halving.
Display of Maximum Drawdown During the Investment Period: In the provided table, you can see the maximum loss incurred in each of the two strategies during your hypothetical investment period, on what date this occurred, and what your capital was before and after in each of the two scenarios.
Display of Buy and Sell Suggestions: You can also see the suggested amount of Bitcoin to buy and sell at what prices, based on your investment amount.
Alarm: This indicator usually provides an alarm one or more days before the start of a selling period, notifying you that a sell signal will be issued soon.
Customization Options: In this indicator, you can customize your investment date and amount. You can also determine the display of label text (including price and buy/sell amount) and its size. This indicator also supports the Persian language.
🟡 How it Works and Signal Issuance Mechanism
This indicator uses three main methods for calculations:
Deceleration of Overall Price Growth : This indicator has found that the price of Bitcoin grows and fluctuates around an overall axis, and the intensity of this upward axis's growth gradually decreases.
Halving Impact : This indicator has found that the price of Bitcoin has grown from approximately one year before a halving and this growth continues for at least one year after the halving. It has also found that the price experiences a sharp one-year decline in the range between two halvings. Consequently, time-wise, based on halving, it displays a selling period (as a red box) on the chart. Considering the Bitcoin price growth explained in the previous point, it draws a line in the middle of the red box, identifying prices above that line as a suitable selling area. The inverse of this process is considered for buying.
Historical Peak Growths and Deepest Declines : This indicator analyzes Bitcoin's historical peak growths and deepest declines. Based on this, when declines are relatively large compared to what has occurred in the past, it issues the first buy suggestion. If the price decline continues, it sequentially issues the second and finally the third buy suggestion. The inverse of this process is followed for issuing sell suggestions.
🟡 Usage Guide
Add the indicator to your chart
Go to the indicator's settings section
In the Inputs tab, you can adjust the following values:
Set the initial investment amount in USD
Set the investment start date, from which calculations will begin
Set the language for displaying information on the chart, which is English by default
Display or hide labels for price and buy/sell volume on candles
The indicator will automatically display the results on the chart and in its information panel
🟡 Important Notes and Limitations
Compatibility : This indicator is specifically designed for the BTCUSD pair. To access the maximum historical data, you must use the INDEX broker chart and the Daily timeframe ; otherwise, the indicator will display a warning message.
Long-Term Tool : This indicator is a macro analysis tool. Its signals are rarely issued and are designed to capture large trends spanning several months or years. This tool is by no means suitable for day trading or scalping.
Non-Repainting : Buy and sell signals become definitive after the daily candle closes and do not change in the past. This feature increases the validity of backtests.
Note Regarding the Source Code : The core logic of this indicator, especially the proprietary formulas used, is the result of personal research and development. To preserve this unique methodology and ensure its integrity for future developments, this version is released as closed-source. However, we have made every effort to fully and transparently describe the indicator's logic and operational process in the explanations.
🔴 Disclaimer
This indicator is provided solely for educational, informational, and analytical purposes and should under no circumstances be considered financial advice or a definitive signal for buying and selling. Past market performance is by no means a guarantee of future results. All investment and trading activities involve risk, and the user is solely responsible for any profits or losses. Please conduct your own research and consult with a financial advisor before making any financial decisions.
🔴 Developers: Mr. Mohammad sanaei, Mrs. Hamideh Azari
⭐️⭐️ Feel free to share your feedback in the comments ⭐️⭐️
این اندیکاتور ابزاری تحلیلی و بلندمدت برای سرمایهگذاری در بیتکوین است که با الهام از چرخههای تاریخی هاوینگ، بیشترین رشد و افت ها تاریخی و روند کلی رشد قیمت طراحی شده است.
هدف اصلی این اندیکاتور، ارائه یک دیدگاه استراتژیک به سرمایهگذاران است تا بتوانند فازهای کلیدی بازار مانند دورههای فروش عمده و خرید عمده بیت کوین را بهتر شناسایی کنند.
🔴 توسعه دهندگان: محمد ثنائی، حمیده آذری
⭐️⭐️ لطفاً نظرات خود را در کامنتها با ما در میان بگذارید; از خواندن بازخوردهای شما خوشحال میشویم. ⭐️⭐️
Quantum Yield MatrixQuantum Yield Matrix is a sophisticated Pine Script™ v6 indicator designed to empower traders with a dynamic visualization of compound returns across global markets. It generates a customizable table showcasing daily percentage changes, cumulative compound returns, and performance differentials for a user-selected index and up to 10 stocks within a defined date range. The table automatically updates when the date range is modified, ensuring seamless flexibility for analysis. Ideal for portfolio evaluation, benchmark comparisons, and multi-exchange tracking, this tool operates independently of external data sources.
Key Features
Multi-Exchange Support: Integrates data from major exchanges, including BIST (Turkey), NYSE and NASDAQ (USA), SSE (China Shanghai Composite), XETR (Germany DAX), NSE (India NIFTY), and TVC (Japan Nikkei and other indices). Users select a single exchange per analysis, with automatic prefixing for accurate symbol resolution (e.g., NASDAQ:NDX).
Performance Metrics: Computes daily returns ((close - previous close) / previous close), aggregates compound returns over the period, and provides:Total return percentages.
Stock-versus-index performance differences (e.g., alpha insights).
A bottom summary comparing the watchlist’s average return to the index.
Visual Table Design: Features a color-coded table (green for positive returns, red for negative, gray for totals) with date headers for intuitive readability. Missing data is elegantly handled with "No Data" in gray cells, ensuring robust calculations.
Dynamic Customization: Allows full adjustment of exchange, index symbol (e.g., NDX for NASDAQ), stock symbols (e.g., AAPL, TSLA), and date range. The table dynamically recalculates when the date range changes, making it perfect for backtesting or forward-looking analysis.
Purpose and BenefitsQuantum Yield Matrix delivers a quantum leap in yield analysis by organizing complex return data into a clear, matrix-like table. It simplifies portfolio performance evaluation against benchmarks, highlighting outperforming assets at a glance. Whether assessing a NASDAQ tech portfolio against NDX or exploring emerging market stocks, this tool saves time, enhances decision-making, and fosters cross-market awareness for diversified strategies in today’s interconnected global economy.
How It Works
Setup: In the indicator settings, select an exchange (default: NASDAQ), input the index symbol (e.g., NDX), and up to 10 stock symbols (defaults: AAPL, TSLA, MSFT, etc.). Define the analysis period with start and end dates. Adjusting the date range instantly updates the table.
Data Retrieval: Leverages TradingView’s request.security function to fetch daily closing prices for each symbol, respecting the chosen exchange prefix (e.g., "NASDAQ:NDX").
Calculations:Daily returns are calculated as percentage changes.
Compound returns accumulate multiplicatively (starting from 1.0, multiplied by (1 + daily return)).
Comparisons subtract index returns from each stock’s total, with averages summarized at the bottom.
Rendering: Constructs a detailed table at the top-center of the chart and a summary table at the bottom. The script aligns with the chart’s timeframe but aggregates data to daily ("D") for consistency.
Edge Cases: If data is unavailable (e.g., due to exchange-specific holidays), cells display "No Data," preserving the integrity of compound return calculations.
Important Usage Note: For optimal results, set your chart symbol to match the analyzed exchange, such as NASDAQ:NDX for US data. The indicator relies on the chart’s bars, so mismatched symbols (e.g., a BIST symbol for US data) may skip non-trading days (e.g., July 15, a Turkish holiday).
Use daily or higher timeframes for best performance.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. Past performance is not indicative of future results, and all trading involves risk of loss. Users are solely responsible for their decisions. The script is original, uses only built-in Pine Script functions, and complies with TradingView’s publishing rules—no external libraries, exaggerated claims, or guarantees are implied. Always verify data accuracy and consult professionals before acting on insights.
Feedback is welcome—feel free to fork and enhance!
Bias Dashboard + All Open Lines (M/W/D/H4/H1/15min)What does the script do?
This script displays a dashboard that shows the current market bias relative to the open prices of multiple timeframes:
Monthly
Weekly
Daily
4H
1H
15min
Additionally, it plots horizontal lines at each of these open levels on the chart.
How it works
Fetch Open Prices:
The script uses request.security() to get the open prices for each timeframe.
Determine Bias:
Compares the current close price to each open:
If close > open, then "Bullish"
If close < open, then "Bearish"
Display Dashboard:
A visual dashboard shows:
The timeframe label
Whether the current price is above (bullish) or below (bearish) that level
Plot Lines:
Colored horizontal lines are drawn on the chart to indicate each timeframe’s open level.
Gann Single Square Swing Trading System with Gann AnglesGann Single Square Swing Trading System
This script automatically detects "squares" - geometric patterns where price movement equals time movement. When price moves the same distance as the number of bars (time), it creates powerful support/resistance levels based on Gann theory.
Key Visual Elements
• Box: The detected square pattern
• Dark Blue Line (50%): Most important trading level
• Green Lines: Profit target levels (125%, 150%)
• Red Lines: Stop loss levels (-25%, -50%)
• Colored Angle Lines: Gann angles for trend direction
• Quality Score: Blue label showing setup strength (aim for 70%+)
Simple Trading Rules
LONG Trades (Green 🟢 Square)
1. Entry: Buy when price touches the dark blue 50% line from above
2. Stop Loss: Place below the red -25% line
3. Take Profit: Exit at green 125% line (first target) or 150% line (second target)
SHORT Trades (Red 🔴 Square)
1. Entry: Sell when price touches the dark blue 50% line from below
2. Stop Loss: Place above the red -25% line
3. Take Profit: Exit at green 125% line (first target) or 150% line (second target)
Entry Checklist
✅ Square quality score > 70%
✅ Price touches 50% level (dark blue line)
✅ Volume above average (if volume filter enabled)
✅ Clear square formation visible
Alerts
The script generates automatic alerts when price reaches the 50% trading level. Enable alerts in TradingView to get notified of setups.
Bottom Line: Wait for the alert → Check quality score → Enter at 50% level → Set stop at red line → Take profit at green line.
Daily, Weekly, Monthly Separators (ScalpTheTicker)I put together this Daily, Weekly and Monthly separating indictor after I couldn't find one on Tradingview that did what I was looking for.
It is basic but it does the job I needed.
Feel free to use this indicator and hopefully it does what you need.