Supply and Demand with Stochastic DivergenceI've developed a Pine Script strategy that combines the power of supply and demand zone analysis with divergence detection using the Stochastic RSI. This script identifies potential trading opportunities based on the confluence of these two powerful technical analysis concepts.
Индикаторы и стратегии
SCN - Contagem de CandlesSCN is used to number the candles, from the current candle to the previous candles.
Fast Stochastic 60.10.1periodK Length: Set to 60 to represent the %K lookback period of 60.
smoothK: Set to 10, applying a 10-period SMA to smooth the %K line.
periodD: Set to 1, leaving the %D line unsmoothed (raw).
Plot Titles: Updated the short titles and descriptions to reflect "Fast Stochastic 60.10.1".
PPO/ADX Pinch Strategy CobyTweak 2 This tool can help analyze the momentum and trend strength of an asset to identify:
Periods of Strong Trends: Indicated by a high ADX.
Potential Reversals or Breakouts: Highlighted during "pinch zones."
Momentum Shifts: Tracked using the PPO Line, Signal Line, and histogram.
The script uses the asset's closing price to calculate all indicators, providing actionable insights for both short-term and long-term trading strategies.\This Pine Script plots two technical indicators, the Percentage Price Oscillator (PPO) and the Average Directional Index (ADX), for the underlying asset (e.g., stock, forex pair, or cryptocurrency). It helps identify periods of trend strength and potential price "pinch" zones, which can signal consolidations or reversals.
Holiday Cheer 🎄Features:
Snowflakes Animation: Creates a "falling snow" effect with small white circles drifting downwards.
Festive Candlesticks: Green for up candles, red for down candles, matching holiday vibes.
Greeting Label: Displays a cheerful holiday message on the chart
Market Flow Volatility Oscillator (AiBitcoinTrend)The Market Flow Volatility Oscillator (AiBitcoinTrend) is a cutting-edge technical analysis tool designed to evaluate and classify market volatility regimes. By leveraging Gaussian filtering and clustering techniques, this indicator provides traders with clear insights into periods of high and low volatility, helping them adapt their strategies to evolving market conditions. Built for precision and clarity, it combines advanced mathematical models with intuitive visual feedback to identify trends and volatility shifts effectively.
👽 How the Indicator Works
👾 Volatility Classification with Gaussian Filtering
The indicator detects volatility levels by applying Gaussian filters to the price series. Gaussian filters smooth out noise while preserving significant price movements. Traders can adjust the smoothing levels using sigma parameters, enabling greater flexibility:
Low Sigma: Emphasizes short-term volatility.
High Sigma: Captures broader trends with reduced sensitivity to small fluctuations.
👾 Clustering Algorithm for Regime Detection
The core of this indicator is its clustering model, which classifies market conditions into two distinct regimes:
Low Volatility Regime: Calm periods with reduced market activity.
High Volatility Regime: Intense periods with heightened price movements.
The clustering process works as follows:
A rolling window of data is analyzed to calculate the standard deviation of price returns.
Two cluster centers are initialized using the 25th and 75th percentiles of the data distribution.
Each price volatility value is assigned to the nearest cluster based on its distance to the centers.
The cluster centers are refined iteratively, providing an accurate and adaptive classification.
👾 Oscillator Generation with Slope R-Values
The indicator computes Gaussian filter slopes to generate oscillators that visualize trends:
Oscillator Low: Captures low-frequency market behavior.
Oscillator High: Tracks high-frequency, faster-changing trends.
The slope is measured using the R-value of the linear regression fit, scaled and adjusted for easier interpretation.
👽 Applications
👾 Trend Trading
When the oscillator rises above 0.5, it signals potential bullish momentum, while dips below 0.5 suggest bearish sentiment.
👾 Pullback Detection
When the oscillator peaks, especially in overbought or oversold zones, provide early warnings of potential reversals.
👽 Indicator Settings
👾 Oscillator Settings
Sigma Low/High: Controls the smoothness of the oscillators.
Smaller Values: React faster to price changes but introduce more noise.
Larger Values: Provide smoother signals with longer-term insights.
👾 Window Size and Refit Interval
Window Size: Defines the rolling period for cluster and volatility calculations.
Shorter windows: adapt faster to market changes.
Longer windows: produce stable, reliable classifications.
Disclaimer: This information is for entertainment purposes only and does not constitute financial advice. Please consult with a qualified financial advisor before making any investment decisions.
Fibonacci Extensions and Retracements for Selected TimeframesPurpose of the Script
This script plots Fibonacci levels (retracements and extensions) based on the high and low points of the previous day, previous week, or previous month. It is a trading aid to help identify potential support and resistance zones. These zones are often used by traders to determine entry or exit points for trades.
How It Works
Select Timeframe
The trader can choose whether to calculate Fibonacci levels based on the high and low points of the previous day, previous week, or previous month.
This is selected using the timeframe_input input.
Examples:
"D" for the previous day
"W" for the previous week
"M" for the previous month
Calculate Price Range
The script calculates the price range using the high and low of the selected timeframe:
Formula: price_range = High - Low
Draw Fibonacci Levels
Retracements: Within the price range, Fibonacci levels such as 12%, 23%, 38%, 50%, 61%, 78%, and 88% are calculated. These help identify potential support or resistance zones.
Extensions: Beyond the price range, Fibonacci extensions such as 127%, 161%, 200%, 224%, and 241% are plotted to indicate potential breakout targets.
Visualization
The script plots lines and labels for each level.
These lines extend to the right, providing real-time guidance during trading.
Colors and line styles can be customized to match personal preferences.
How to Use as a Trading Aid
Use Fibonacci Retracements:
Use retracements (e.g., 38%, 50%, 61%) to identify potential support or resistance zones.
Example: If the price dropped sharply the previous day, the retracement levels could act as support during a rebound.
Use Fibonacci Extensions:
Extensions help identify price targets when the price breaks above or below the high or low of the previous day, week, or month.
Example: After a breakout above the previous week’s high, the 127% or 161% level could serve as a target.
Adjust Timeframe:
Choose the timeframe that suits your strategy:
Intraday traders can use the previous day’s high and low.
Swing traders might prefer the previous week.
Long-term traders could work with the previous month.
Example
A trader selects the weekly timeframe (W) to analyze the high and low of the previous week:
The script calculates the price range based on the high and low of the previous week.
Fibonacci retracements (e.g., 50% and 61%) are drawn to identify potential support zones.
Fibonacci extensions (e.g., 127% and 161%) help define price targets for a potential breakout above or below the range.
Pi Cycle Top IndicatorThis will help you identify when the top is in for BTC using 1D candles on bitcoin index chart. it has worked flawlessly for previous cycles, lets see if it works going forward.
mentor+json+v1.0This script implements a straightforward trend-following strategy based on moving averages (EMAs) and RSI confirmation. It is designed to help traders identify potential trend-based entry and exit points while managing risk with a customizable stop loss.
Key Features:
EMA Crossover: Buy signals occur when the short EMA crosses above the long EMA, and RSI is above a specified level. Sell signals are generated when the short EMA crosses below the long EMA, and RSI is below the specified level.
Stop Loss: A percentage-based stop loss is applied to all trades, ensuring effective risk management. The stop loss level is displayed as a dashed line on the chart.
Customization: Users can adjust the EMA lengths, RSI confirmation level, and stop loss percentage to match their trading strategy.
How to Use:
Add the script to your chart and adjust the inputs in the settings panel:
Short EMA Length: Determines the sensitivity of the short moving average.
Long EMA Length: Controls the trend-following component.
RSI Confirmation Level: Ensures trades are aligned with momentum.
Stop Loss (%): Defines the percentage level at which the stop loss is set.
Observe the buy and sell signals marked on the chart.
Use the stop loss line as a visual guide to manage risk for your trades.
Notes:
This script is intended for educational purposes and backtesting. Use it responsibly and in combination with other analysis techniques.
Always perform thorough backtesting and analysis before applying it to live trading.
Happy trading! 🚀
ATR Oscillator with Dots and Dynamic Zero LineWhat It Is
The ATR Oscillator with Dots and Dynamic Zero Line is a custom indicator based on the Average True Range (ATR), designed to provide traders with enhanced insights into market volatility and directional bias. Unlike traditional ATR oscillators that plot continuous lines, this version uses distinct dots to display ATR values and includes a dynamic zero line that changes color based on market direction (uptrend, downtrend, or consolidation).
How It Works
ATR Calculation:
The indicator calculates the Average True Range over a user-defined period (default: 14 bars). ATR measures market volatility by considering the range between the high, low, and close of each bar.
Dots for ATR Values:
Instead of plotting ATR values as a continuous line, the indicator represents each value as an individual blue dot. This format highlights changes in volatility without visually connecting them, helping to avoid false trends and clutter.
Dynamic Zero Line:
A horizontal zero line provides additional directional context. The line changes color dynamically:
Green: Indicates an uptrend (price is consistently closing higher over consecutive bars).
Red: Indicates a downtrend (price is consistently closing lower over consecutive bars).
Gray: Indicates market consolidation or sideways movement (no clear trend in price).
The thickness and step-like style of the zero line make it visually prominent, enabling quick interpretation of market direction.
What It Does
Visualizes Market Volatility:
By plotting ATR values as dots, the oscillator emphasizes periods of heightened or reduced market activity, helping traders anticipate breakout opportunities or avoid low-volatility zones.
Provides Trend Context:
The dynamic zero line gives traders a clear signal of the prevailing market trend (uptrend, downtrend, or consolidation), which can be used to align trading strategies with the broader market context.
Avoids Misleading Trends:
Unlike traditional ATR oscillators that use continuous lines, this version eliminates visual artifacts caused by noise, such as false trends during consolidation periods.
Simplifies Interpretation:
The combination of ATR dots and a color-coded zero line creates a straightforward and intuitive tool for assessing both volatility and market direction.
Why It’s More Useful Than a Traditional ATR Oscillator
Enhanced Visibility:
The use of dots instead of a continuous line makes it easier to spot discrete changes in ATR values, avoiding visual clutter and false impressions of smooth trends.
Dynamic Market Context:
Traditional ATR oscillators only measure volatility, offering no indication of market direction. The dynamic zero line in this oscillator adds valuable directional context, helping traders align their strategies with the trend.
Better for Range-Bound Markets:
The zero line’s color-changing feature highlights consolidation periods, enabling traders to identify and avoid trading during sideways, low-volatility conditions where false signals are common.
Quick Decision-Making:
With clear visual cues (dots and color-coded lines), traders can quickly assess market conditions without needing to analyze multiple charts or indicators.
Improved Confluence:
The oscillator’s signals can easily be combined with other tools like VWAP, Volume Profile, or Order Flow indicators for more confident trade decisions.
When to Use It
Trending Markets:
Use the dynamic zero line to confirm the market’s direction and align trades accordingly.
Breakout Opportunities:
Look for periods of increasing ATR (dots moving higher) to anticipate high-volatility breakout scenarios.
Avoiding Noise:
During consolidation (gray zero line), this oscillator warns traders to wait for clearer signals before entering trades.
ATR Percentage Covered% of ATR covered from yesterday's close. If a stock's ATR is for example 40$ and the stock gapped down 20$ and dropped 10$ more after the open, the Indicator will show 0.75 (75%) (30/40). It helps to understand how much move is there still "in" the asset analyzing.
My strategy{ "secret": "eyJhbGciOiJIUzI1NiJ9.eyJzaWduYWxzX3NvdXJjZV9pZCI6MTA1NTM1fQ.LjhZON_V472svSJ-DYbE8zFstu01THnQ5pOiaFixEEY", "max_lag": "300", "timestamp": "{{timenow}}", "trigger_price": "{{close}}", "tv_exchange": "{{exchange}}", "tv_instrument": "{{ticker}}", "action": "{{strategy.order.action}}", "bot_uuid": "1eb94d98-de6e-4a1c-810c-edfc0a713306", "strategy_info": { "market_position": "{{strategy.market_position}}", "market_position_size": "{{strategy.market_position_size}}", "prev_market_position": "{{strategy.prev_market_position}}", "prev_market_position_size": "{{strategy.prev_market_position_size}}" }, "order": { "amount": "{{strategy.order.contracts}}", "currency_type": "base" }}
Custom RSIthis script is just better version like whenever RSI crosses above 60 RSI line will become green and below 40 will become red.
you can modify the color and setting from the setting of the indicator.
Sessions [Plug&Play]Sessions displays the London, New York, and Asia trading sessions directly on your chart. Includes customisable session times, shaded areas, labels, and the option to toggle outlines—helping you focus on market activity with ease.
Moving Average with Std DeviationsA simple indicator to show a Moving Average with the option to show Standard Deviations of that Moving Average.
When price moves to the outer bands, this can indicate that it is becoming over extended, and may revert back to the mean, have a pull back in a trend, amongst other things.
Created for my own use, but you are welcome to use it if you find it useful.
Thanks!
Enhanced Cognitive Learning Indicator 2.0 - Enhanced Market Analyzer with Advanced Features and Adaptive Cognitive Learning 2.0
improved integration and inputs
Financial Conditions IndicatorThe Financial Conditions Indicator is a custom-built TradingView Pine Script that measures the relative tightness or looseness of financial conditions in the economy. The indicator provides users with actionable insights to assess overall market liquidity and risk conditions by combining four major economic components into a single Composite Z-Score.
How It Works
Credit Spreads:
ICE BofA High Yield Option-Adjusted Spread (BAMLH0A0HYM2).
ICE BofA Corporate Index Option-Adjusted Spread (BAMLC0A0CM).
Volatility Indices:
S&P 500 Implied Volatility Index (CBOE:VIX).
U.S. Treasury Bond Volatility Index (TVC:MOVE).
Z-Score Normalization:
The raw data for each component is normalized into Z-Scores by calculating the deviation of current values from their 50-period Simple Moving Average (SMA), divided by their Standard Deviation (StDev). This process standardizes all four components into a comparable scale.
Formula:
Copy code
Z-Score = (Current Value - SMA(50)) / StDev(50)
Composite Z-Score:
The indicator computes the average of all four Z-Scores to create the Composite Z-Score. This single metric provides a broad snapshot of financial conditions.
Trend Filter:
A background color highlights periods of relative tightness or looseness:
Red (Z-Score > 0): Financial conditions are tight, indicating increased stress or risk-off behavior.
Green (Z-Score < 0): Financial conditions are loose, suggesting favorable liquidity and risk-on sentiment.
Visualization:
The Composite Z-Score is plotted as a blue line on the chart.
A neutral gray line at 0 serves as a benchmark to distinguish between tight and loose conditions.
Why It Matters
The Financial Conditions Indicator is a powerful tool for identifying macroeconomic conditions that influence risk assets such as equities, bonds, and Bitcoin. Periods of loose conditions (green) are generally favorable for asset price increases, while tight conditions (red) often precede pullbacks or heightened volatility.
This indicator enables traders and investors to:
Track the evolution of market liquidity.
Anticipate shifts in risk sentiment.
Align trading strategies with prevailing financial conditions.
Key Features:
Equal-weighted Composite Z-Score: Balances four critical market metrics.
Dynamic Trend Highlighting: Clear visual cues (green/red) for liquidity conditions.
Real-Time Monitoring: Provides actionable insights into the current state of financial markets.
ffejokrap indicatorDip buys with adds self testing indicator, test 1
sladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdksladkalsdkv