DrNon Supertrend Strategy With Date FilterHow This Works
1. User Inputs for Date Range
• You specify a Start Date (Year, Month, Day) and an End Date (Year, Month, Day).
2. Create Timestamps
• startTime and endTime define the exact Unix timestamps for when you want the strategy to begin and stop taking trades.
3. Filtering Condition
• inDateRange is true only if the current bar’s time lies between startTime and endTime.
4. Conditional Trading
• The trading logic (entries) executes only if inDateRange is true.
5. Supertrend Logic
• Pine Script’s ta.supertrend() returns .
• We monitor ta.change(direction) to detect switching signals for Long or Short.
Трендовый анализ
Detecting Sideways Market or Strong Trends| Copy Trade Tungdubai**Tool Description**:
The **"Detecting Sideways Market or Strong Trends | Copy Trade Tungdubai"** tool is designed to help traders identify two key market conditions:
1. **Sideways Market**:
- This condition is detected when the ADX is below 20, the price stays within the Bollinger Bands, and the RSI is between 45 and 55.
- When the market is sideways, the chart background will turn yellow as a visual alert.
2. **Strong Trend Market**:
- This condition is identified when the ADX is above 25, and either the price breaks out of the Bollinger Bands or the RSI surpasses the overbought (70) or oversold (30) levels.
- When the market is in a strong trend, the chart background will turn blue as a visual alert.
**Key Components of the Tool**:
- **ADX**: Measures the strength of the market trend, with key thresholds at 20 and 25.
- **Bollinger Bands**: Helps determine volatility and checks if the price is within or outside the bands.
- **RSI**: Measures momentum, helping identify overbought and oversold levels.
**Visual Features on the Chart**:
- ADX, RSI, and Bollinger Bands are clearly plotted with their respective key thresholds for easier recognition of market conditions.
- The chart background changes color to reflect the current market condition (yellow for sideways, blue for strong trends).
**Alerts**:
- Alerts are triggered when the market enters either a sideways or strong trend phase, providing notifications to help users act promptly.
This tool serves as a practical aid in recognizing market conditions, allowing traders to make informed decisions aligned with their strategies.
**Mô tả công cụ**:
Công cụ **"Detecting Sideways Market or Strong Trends | Copy Trade Tungdubai"** được thiết kế để giúp các nhà giao dịch xác định hai trạng thái chính của thị trường:
1. **Thị trường đi ngang (Sideways)**:
- Điều kiện được xác định dựa trên chỉ số ADX thấp hơn ngưỡng 20, giá nằm trong dải Bollinger Bands, và chỉ số RSI dao động trong khoảng từ 45 đến 55.
- Khi thị trường đi ngang, nền của biểu đồ sẽ chuyển sang màu vàng để cảnh báo trực quan.
2. **Thị trường bùng nổ sóng mạnh (Strong Trend)**:
- Điều kiện được xác định khi ADX vượt qua ngưỡng 25 và giá phá vỡ dải Bollinger Bands (hoặc) chỉ số RSI vượt ngưỡng quá mua 70 hoặc quá bán 30.
- Khi thị trường bùng nổ sóng mạnh, nền biểu đồ sẽ chuyển sang màu xanh để cảnh báo trực quan.
**Các thành phần chính của công cụ**:
- **ADX**: Được sử dụng để đo sức mạnh xu hướng thị trường, với các ngưỡng quan trọng là 20 và 25.
- **Bollinger Bands**: Được sử dụng để xác định mức độ biến động và kiểm tra giá nằm trong hay ngoài dải.
- **RSI**: Dùng để đo mức độ quá mua/quá bán, xác định động lượng giá.
**Hiển thị trên biểu đồ**:
- Các đường ADX, RSI, và Bollinger Bands được vẽ rõ ràng, cùng với các ngưỡng quan trọng (hỗ trợ nhận biết trạng thái thị trường).
- Nền biểu đồ thay đổi màu sắc tương ứng với điều kiện thị trường.
**Cảnh báo**:
- Cảnh báo sẽ được kích hoạt khi thị trường rơi vào trạng thái đi ngang hoặc bùng nổ sóng mạnh, với các thông báo giúp người dùng hành động kịp thời.
Công cụ này là một trợ thủ hữu ích trong việc nhận biết trạng thái thị trường, từ đó giúp các nhà giao dịch đưa ra quyết định phù hợp với chiến lược của mình.
BBSS+This Pine Script implements a custom indicator overlaying Bollinger Bands with additional features for trend analysis using Exponential Moving Averages (EMAs). Here's a breakdown of its functionality:
Bollinger Bands:
The script calculates the Bollinger Bands using a 20-period Simple Moving Average (SMA) as the basis and a multiplier of 2 for the standard deviation.
It plots the Upper Band and Lower Band in red.
EMA Calculations:
Three EMAs are calculated for the close price with periods of 5, 10, and 40.
The EMAs are plotted in green (5-period), cyan (10-period), and orange (40-period) to distinguish between them.
Trend Detection:
The script determines bullish or bearish EMA alignments:
Bullish Order: EMA 5 > EMA 10 > EMA 40.
Bearish Order: EMA 5 < EMA 10 < EMA 40.
Entry Signals:
Long Entry: Triggered when:
The close price crosses above the Upper Bollinger Band.
The Upper Band is above its 5-period SMA (indicating momentum).
The EMAs are in a bullish order.
Short Entry: Triggered when:
The close price crosses below the Lower Bollinger Band.
The Lower Band is below its 5-period SMA.
The EMAs are in a bearish order.
Trend State Tracking:
A variable tracks whether the market is in a Long or Short trend based on conditions:
A Long trend continues unless conditions for a Short Entry are met or the Upper Band dips below its average.
A Short trend continues unless conditions for a Long Entry are met or the Lower Band rises above its average.
Visual Aids:
Signal Shapes:
Triangle-up shapes indicate Long Entry points below the bar.
Triangle-down shapes indicate Short Entry points above the bar.
Bar Colors:
Green bars indicate a Long trend.
Red bars indicate a Short trend.
This script combines Bollinger Bands with EMA crossovers to generate entry signals and visualize market trends, making it a versatile tool for identifying momentum and trend reversals.
Custom Trend TableManual input of trend starting with Daily Time frame, then H4 and H1.
If Daily and H4 are the same trend we can ignore H1 trend (N/A).
M15 Buy or Sell comes automatically depending on what the higher time frame trends are.
If Daily and H4 are bearish, then we look for Selling opportunities on M15.
If Daily and H4 are bullish, then we look for Buying opportunities on M15.
If Daily and H4 are different trends, then H1 trend will determine M15 Buy or Sell.
Works for up to 4 pairs / Symbols. If you need more, just add the indicator twice and on the second settings, move the placement of the table to a different location (Eg: Top, Middle) so you can see up to 8 Symbols. Repeat this process if required.
Volume Weighted Average Price with 4 EMAsThe Volume Weighted Average Price (VWAP) with EMAs indicator combines the VWAP, which provides the average price of a security weighted by volume, with four Exponential Moving Averages (EMAs) of customizable lengths (default: 9, 20, 50, 200). This indicator helps traders identify trends, potential support and resistance levels, and make informed trading decisions based on price action relative to volume and moving averages.
Options Flavour by Raushan ShrivastavaThis script is for a trading strategy which combines Pivot Points and a Simple Moving Average.
It calculates support and resistance levels based on the monthly pivot point and plots them on the chart.
The script also creates conditions for entering bullish and bearish trades based on the relationship between the price and moving average.
Breakdown of the main components of the script :-
Pivot Point Calculation:
The script calculates the monthly pivot point and its associated support (S1, S2, S3) and resistance (R1, R2, R3) levels.
These levels are used to determine potential areas of interest on the chart.
Moving Average:
A simple moving average (SMA) is plotted with a length defined by the user (length_ma), used to spot trends.
Conditions for Bullish and Bearish Signals:
Bullish condition: The label appears when the market crosses the moving average upward and is above the pivot, or when the market crosses the pivot upward and is above the moving average.
Bearish condition: The label appears when the market crosses the moving average downward and is below the pivot, or when the market crosses the pivot downward and is below the moving average.
Plotting Shapes:
The pivot point, support, resistance, and previous month's high/low values are plotted on the chart as circles.
The moving average is plotted as a black line.
Labels:
Labels are placed to indicate when a bullish or bearish condition occurs. These labels appear when the conditions are met, helping visualize trading signals.
This strategy can be useful for traders who wish to combine multiple technical indicators to make more informed decisions. You can adjust the parameter for moving average length to fine-tune the strategy for different time frames and market conditions.
The JewelThe Jewel is a comprehensive momentum and trend-based indicator designed to give traders clear insights into potential market shifts. By integrating RSI, Stochastic, and optional ADX filters with an EMA-based trend filter, this script helps identify high-conviction entry and exit zones for multiple trading styles, from momentum-based breakouts to mean-reversion setups.
Features
Momentum Integration:
Leverages RSI and Stochastic crossovers for real-time momentum checks, reducing noise and highlighting potential turning points.
Optional ADX Filter:
Analyzes market strength; only triggers signals when volatility and directional movement suggest strong follow-through.
EMA Trend Filter:
Identifies broad market bias (bullish vs. bearish), helping traders focus on higher-probability setups by aligning with the prevailing trend.
Caution Alerts:
Flags potentially overbought or oversold conditions when both RSI and Stochastic reach extreme zones, cautioning traders to manage risk or tighten stops.
Customizable Parameters:
Fine-tune RSI, Stochastic, ADX, and EMA settings to accommodate various assets, timeframes, and trading preferences.
How to Use
Momentum Breakouts: Watch for RSI cross above a set threshold and Stochastic cross up, confirmed by ADX strength and alignment with the EMA filter for potential breakout entries.
Mean Reversion: Look for caution signals (RSI & Stoch extremes) as early warnings for trend slowdown or reversal opportunities.
Trend Continuation: In trending markets, rely on the EMA filter to stay aligned with the primary direction. Use momentum crosses (RSI/Stochastic) to time add-on entries or exits.
Important Notes
Non-Investment Advice
The Jewel is a technical analysis tool and does not constitute financial advice. Always use proper risk management and consider multiple confirmations when making trading decisions.
No Warranty
This indicator is provided as-is, without warranty or guarantees of performance. Traders should backtest and verify its effectiveness on their specific instruments and timeframes.
Collaborate & Share
Feedback and suggestions are welcome! Engaging with fellow traders can help refine and adapt The Jewel for diverse market conditions, strengthening the TradingView community as a whole.
Happy Trading!
If you find this script valuable, please share your feedback, ideas, or enhancements. Collaboration fosters a more insightful trading experience for everyone.
Moving Average Distance between MA coloredThe distance between short and long moving average of prices MAD
Momentum
Predictor of equity returns
TICK Charting & DivergencesOverview
The TICK index measures the number of NYSE stocks making an uptick versus a downtick. This indicator identifies divergences between price action and TICK readings, potentially signaling trend reversals.
Key Features
Real-time TICK monitoring during market hours (9:30 AM - 4:00 PM ET)
Customizable smoothing factor for TICK values
Regular and hidden divergences detection
Reference lines at ±500 and ±1000 levels
Current TICK value display
TICK Internals Interpretation
Above +1000: Strong buying pressure, potential exhaustion
Above +500: Moderate buying pressure
Below -500: Moderate selling pressure
Below -1000: Strong selling pressure, potential exhaustion
Best Practices
Use in conjunction with support/resistance levels, market trend direction, and time of day.
Higher probability setups with multiple timeframe confirmation, divergence at key price levels, and extreme TICK readings (±1000).
Settings Optimization
Smoothing Factor: 1-3 (lower for faster signals)
Pivot Lookback: 5-10 bars (adjust based on timeframe)
Range: 5-60 bars (wider for longer-term signals)
Warning Signs
Multiple failed divergences
Choppy price action
Low volume periods
Major news events pending
Remember: TICK divergences are not guaranteed signals. Always use proper risk management and combine with other technical analysis tools.
EMA Conditions Overlay with Weekly Tick MovementDisplays EMA conditions for 4H and daily timeframes along with weekly tick movement
Top G indicator [BigBeluga]Top G Indicator is a straightforward yet powerful tool designed to identify market extremes, helping traders spot potential tops and bottoms effectively.
🔵 Key Features:
High Probability Signals:
𝔾 Label: Indicates high-probability market bottoms based on specific conditions such as low volatility and momentum shifts.
Top Label: Highlights high-probability market tops using key price action dynamics.
Simple Signals for Potential Extremes:
^ (Caret): Marks potential bottom areas with less certainty than 𝔾 labels.
v (Inverted Caret): Signals potential top areas with less certainty than Top labels.
Midline Visualization:
A smoothed midline helps identify the center of the current range, providing additional context for trend and range trading.
Range Highlighting:
Dynamic bands around the highest and lowest points of the selected period, color-coded for easy identification of the market range.
🔵 Usage:
Spot Extremes: Use 𝔾 and Top labels to identify high-probability reversal points for potential entries or exits.
Monitor Potential Reversals: Leverage ^ and v marks for additional signals on potential turning points, especially during range-bound conditions.
Range Analysis: Use the midline and dynamic bands to determine the market's range and its center, aiding in identifying consolidation or breakout scenarios.
Confirmation Tool: Combine this indicator with other tools to confirm reversal or trend continuation setups.
Top G Indicator is a simple yet effective tool for spotting market extremes, designed to assist traders in making timely decisions by identifying potential tops and bottoms with clarity.
FuTech : MACD Crossovers Advanced Alert Lines=============================================================
Indicator : FuTech: MACD Crossovers Advanced Alert Lines
Overview:
The "FuTech: MACD Crossovers Advanced Alert Lines" indicator is designed to assist traders in identifying key technical patterns using the :-
1. MACD (Moving Average Convergence Divergence) and
2. Golden/Death Crossovers
By visualizing these indicators directly on the chart with advanced lines, it helps traders make more informed decisions on when to enter or exit trades.
=============================================================
Key Features of "FuTech: MACD Crossovers Advanced Alert Lines":
1. MACD Crossovers:
a) The MACD is one of the most widely used indicators for identifying momentum shifts and potential buy/sell signals. This indicator plots vertical lines on the chart whenever the MACD line crosses the signal line.
b) Upward Crossover (Bullish Signal) : When the MACD line crosses above the signal line, a green vertical line will appear, indicating a potential buying opportunity.
c) Downward Crossover (Bearish Signal) : When the MACD line crosses below the signal line, a red vertical line will appear, signaling a potential selling opportunity.
2. Golden Cross & Death Cross:
a) The Golden Cross occurs when the price moves above a long-term moving average (like the 50-day moving average), signaling a potential upward trend.
b) The Death Cross occurs when the price moves below a long-term moving average, signaling a potential downward trend.
c) These crossovers are displayed with customizable lines on the chart to easily spot when the market is shifting direction.
d) Golden Cross (Bullish Signal) : A blue vertical line appears when the price crosses above the selected long-term moving average.
e) Death Cross (Bearish Signal) : A purple vertical line appears when the price crosses below the selected long-term moving average.
=============================================================
Customization Options:
This indicator offers several customization options to suit your trading preferences:
1) MACD Settings:
a) Choose between different moving average types (EMA, SMA, or VWMA) for calculating the MACD.
b) Adjust the lengths of the fast, slow, and signal MACD periods.
c) Control the width and color of the vertical lines drawn on the chart for both up and down crossovers.
2) Golden Cross / Death Cross Settings:
a) Select the moving average type for the Golden Cross / Death Cross (EMA, SMA, or VWMA).
b) Define the lookback period for calculating the Golden Cross / Death Cross.
c) Customize the appearance of the Golden and Death Cross lines, including their width and color.
You can use both as well as either of the MACD lines or Golden Crossover / Death Crossover Lines respectively as per your trading strategies
=============================================================
How "FuTech: MACD Crossovers Advanced Alert Lines" indicator Works:
a) The indicator monitors the price and calculates the MACD and Golden/Death Crosses.
b) When the MACD line crosses above or below the signal line, or when the price crosses above or below the long-term moving average, it plots a vertical line on the chart.
c) These lines help traders quickly spot potential turning points in the market, providing clear signals to act upon.
=============================================================
Use Case:
a) Swing Traders: The indicator is useful for spotting momentum shifts and trend reversals, helping you time entries and exits for short- to medium-term trades.
b) Long-Term Traders: The Golden and Death Cross signals help identify major trend changes, giving insights into potential market shifts.
=============================================================
Why Use This "FuTech: MACD Crossovers Advanced Alert Lines" Indicator ?
a) Clear Visuals : The vertical lines provide clear and easy-to-spot signals for MACD crossovers and Golden/Death Crosses.
b) Customizable : Adjust settings for your personal trading strategy, whether you're focusing on short-term momentum or long-term trend shifts.
c) Supports Decision Making : With its advanced line plotting and customizable features, this indicator helps you make quicker and more informed trading decisions.
=============================================================
How to Use:
a) MACD Crossovers: Look for green lines to signal potential buying opportunities (when the MACD line crosses above the signal line) and red lines for selling opportunities (when the MACD line crosses below the signal line).
b) Golden Cross / Death Cross: Use the blue lines to confirm when a positive trend may begin (Golden Cross) and purple lines to warn when a negative trend may start (Death Cross).
=============================================================
Conclusion:
"FuTech: MACD Crossovers Advanced Alert Lines" indicator combines two powerful technical analysis tools, the MACD and Golden/Death Crosses, to provide clear, actionable signals on your chart.
By customizing the appearance of these signals and combining them with your trading strategy, you can enhance your decision-making process and improve your trading outcomes.
=============================================================
Thank you !
Jai Swaminarayan Dasna Das !
He Hari ! Bas Ek Tu Raji Tha !
=============================================================
Dan-Machine Learning: Lorentzian Classification with AlertsAlerts by any colour change in smoothed Heikin Ashi candles.
Venta's DikFat Spread Visualizer & Dynamic Options Chain
**Venta's DikFat Spread Visualizer and Options Chain Strike Scanner** is a powerful trading tool designed to give users an immediate view of the nearest options strikes relative to the current price of the underlying asset. This script dynamically displays a selected number of call and put options strikes from the **options chain**, visualizing them directly on the chart for better decision-making.
By default, the script shows options strikes for the current chart’s price, but users have the flexibility to extend the view to include strikes on the opposite side of the market. The available options allow you to show either 3, 6, or 9 strikes on either side of the current price level.
This tool is essential for options traders who want to track strike prices in relation to the underlying asset's price movements. It provides key visual clues such as strike price distributions, volatility, and potential areas of market basing—all in a customizable and user-friendly interface.
---
█ CONCEPTS
This script pulls real-time **options strikes** directly from the **options chain**, providing traders with the ability to see call and put strikes as dynamic price markers on their chart. The concept revolves around understanding the proximity and distribution of strikes based on the current price and market conditions.
Key Features
**Dynamic Options Strike Display**: The script automatically identifies and displays the options strikes closest to the current market price of the underlying asset.
**Customizable Strike Range**: Choose between 3, 6, or 9 strikes on either side of the current price, giving flexibility in visualizing different strike ranges.
**Current Chart Focused by Default**: When added to the chart, the script focuses on the strikes closest to the current price. However, users can opt to include strikes on the opposite side of the market for a broader view.
**Instant Market Context**: The displayed
strikes offer a snapshot of the options market and how the current price relates to potential option expiration levels, helping traders understand key zones.
**Visual Clues on Spreads & Volatility**: This script not only displays the strikes but also provides instant visual clues that reflect the volatility and spread of the options market.
---
█ HOW IT WORKS
The script operates by accessing the **options chain** for the underlying asset, identifying the nearest call and put strikes, and plotting them as visual markers on the chart. This real-time strike data is dynamic, adjusting automatically as the market price moves.
Strike Calculation
The script uses the current price of the underlying asset as a base point and calculates the nearby **options strikes** from the **options chain**.
Depending on the user's settings, the script will plot up to 9 strikes on either side of the price level.
This calculation is performed using live market data, making sure the plotted strikes always reflect the most current market conditions.
Visual Clues
**Spreads**: The space between the plotted call and put options strikes provides immediate insights into the current bid/ask spreads. If the spread between strike prices is wide, it suggests increased volatility or a higher level of uncertainty in the market. Conversely, narrow spreads often indicate market stability or a lack of price movement.
**Market Basing**: When options strikes form a concentrated group near a certain price level, it can indicate that the market is building up or basing at a key level. This might signal the potential for a breakout or a reversal.
**Volatility Insights**: Wider gaps between strikes, particularly on the call side versus the put side (or vice versa), can indicate an imbalance in options trading activity, often a reflection of higher volatility expectations. This visual clue can help traders assess when the market is pricing in significant movements.
Customization and User Settings
**Number of Strikes**: The number of options strikes shown is fully customizable, allowing users to display 3, 6, or 9 strikes on either side.
**Show Opposite Strikes**: By default, the script shows strikes on the current side of the market, but users can enable the option to show strikes on the opposite side to gain a more complete view of the market's options landscape.
**Strike Colors & Width**: Customize the visual appearance of the plotted strikes by adjusting the color and line width for better clarity and chart aesthetics.
---
█ POTENTIAL USE CASES
This indicator is especially valuable for **options traders**, **market analysts**, and anyone interested in gaining insights into the underlying options market. Here are some of the key use cases:
**Options Traders**: Quickly identify the nearest strike prices and understand the risk/reward potential for options positions. The ability to customize the number of strikes shown allows traders to focus on the most relevant price levels.
**Volatility Monitoring**: Use the visual clues from the spread between strike prices to assess the level of volatility in the options market. A wider spread suggests that options traders are expecting more significant price moves, while a narrow spread indicates less expected movement.
**Support and Resistance Identification**: The clustering of strike prices on one side of the market can indicate a potential support or resistance level. By monitoring these levels, traders can get a sense of where the market may reverse or consolidate.
**Market Sentiment Analysis**: A large concentration of call strikes above the current price level, or put strikes below, can be an indication of market sentiment, such as whether traders are generally bullish or bearish.
**Risk Management**: By tracking nearby options strikes, traders can adjust their strategies to minimize risk, especially when market price levels approach significant strike points.
---
█ FEATURES
**Real-Time Data**: The script pulls data from the **options chain**, ensuring that the plotted strikes are always up-to-date with the current market price.
**User-Friendly Interface**: Clear and customizable inputs allow users to easily adjust the number of strikes displayed and control visual settings such as colors and line widths.
**Visual Strike Indicators**: Instantly spot volatility, market basing, and spread imbalances through visual clues from the plotted strikes, enhancing your market analysis.
---
█ LIMITATIONS
**Accuracy Depends on Market Data**: This indicator relies on the available **options chain** data. While the data is updated in real-time, its accuracy may depend on the liquidity and availability of options contracts in the market.
**Not Suitable for Non-Options Traders**: If you don’t trade options, the relevance of this indicator may be limited as it is designed specifically to provide insight into the options market.
**Data Delays**: In fast-moving markets, there may be a slight delay in the updating of strike prices, depending on the data feed.
---
█ HOW TO USE
**Load the Script**: Add the **Venta's DikFat Spread Visualizer and Options Chain Strike Scanner** script to your TradingView chart.
**Adjust Settings**: Use the input options to select the number of strikes you want to display (3, 6, or 9). You can also choose whether to display only the current chart’s strikes or include strikes from the opposite side.
**Interpret the Strikes**: Look at the plotted strikes to gain insights into where the market is currently pricing options and where major strike prices are located. Pay attention to the spreads, concentrations, and volatility signals.
**Monitor the Market**: As the market moves, watch how the strikes shift and cluster, providing you with real-time information about market sentiment and potential volatility.
---
█ THANKS
We would like to extend our gratitude to the PineCoders community for their ongoing support and contributions to the TradingView Pine Script ecosystem. Special thanks to The Options Team.
Multi Kernel Regression [ChartPrime] (buy/sell signals)just some buy and sell signals for the Multi Kernel Regression indicator from ChartPrime
i personaly use this settings:
Kernel: Gaussian
Bandwidth: 25
Source: open
Quarter Point Theory with Trend Breaks### **Quarter Point Theory with Trend Breaks Indicator**
The **Quarter Point Theory with Trend Breaks** indicator is a technical analysis tool designed to identify key price levels and trend reversals in financial markets. It combines the principles of **Quarter Point Theory**—a concept that highlights the significance of prices at rounded fractional levels of an asset—with trend break detection to provide actionable trading insights.
#### **Key Features:**
1. **Quarter Point Levels:**
- Automatically plots quarter-point levels on the chart (e.g., 0.25, 0.50, 0.75, and 1.00 levels relative to significant price ranges).
- Highlights these levels as areas of psychological importance, where price action is likely to consolidate, reverse, or gain momentum.
2. **Trend Break Detection:**
- Identifies changes in market direction by detecting breaks in prevailing trends.
- Utilizes moving averages, support/resistance lines, or price patterns to signal potential reversals.
3. **Dynamic Visual Cues:**
- Color-coded lines or zones to differentiate between support (green), resistance (red), and neutral zones.
- Alerts or markers when price approaches or breaks through quarter-point levels or trend lines.
4. **Multi-Timeframe Analysis:**
- Offers the ability to analyze quarter-point levels and trend breaks across different timeframes for a comprehensive market view.
5. **Customizable Parameters:**
- Allows traders to adjust the sensitivity of trend break detection and the precision of quarter-point level plotting based on their strategy and asset volatility.
#### **Use Cases:**
- **Swing Trading:** Identify optimal entry and exit points by combining quarter-point levels with trend reversal signals.
- **Day Trading:** Utilize intraday quarter-point levels and quick trend changes for scalping opportunities.
- **Long-Term Investing:** Spot significant price milestones that could indicate major turning points in an asset’s trajectory.
#### **Advantages:**
- Simplifies the complexity of market analysis by focusing on universally significant price levels and trends.
- Enhances decision-making by integrating two powerful market principles into a single indicator.
- Provides a structured framework for risk management by identifying areas where price is likely to react.
The **Quarter Point Theory with Trend Breaks Indicator** is a versatile tool suitable for traders and investors across various markets, including stocks, forex, commodities, and cryptocurrencies. By blending psychology-based levels with technical trend analysis, it empowers users to make well-informed trading decisions.
MSTR Bitcoin Holdings Overlay (MSTR BTC Treasury)This TradingView overlay displays MicroStrategy's (MSTR) Bitcoin holdings as a simple line chart on a separate axis. The data used in this script is based on publicly available information about MSTR's Bitcoin acquisitions up to January 2, 2025.
Key Points:
- All data points (timestamps and Bitcoin holdings) included in this script represent actual historical records available up to January 2, 2025.
- No future projections or speculative estimates are included.
This script is static and does not fetch or update data dynamically. If there are new Bitcoin acquisitions or updates after January 2, 2025, they will not appear on the chart unless manually added.
Transparency and Accuracy:
- The script uses an array-based structure to map exact timestamps to corresponding Bitcoin holdings.
Each timestamp aligns with known dates when MSTR disclosed its Bitcoin purchases.
DCA Strategy with HedgingThis strategy implements a dynamic hedging system with Dollar-Cost Averaging (DCA) based on the 34 EMA. It can hold simultaneous long and short positions, making it suitable for ranging and trending markets.
Key Features:
Uses 34 EMA as baseline indicator
Implements hedging with simultaneous long/short positions
Dynamic DCA for position management
Automatic take-profit adjustments
Entry confirmation using 3-candle rule
How it Works
Long Entries:
Opens when price closes above 34 EMA for 3 candles
Adds positions every 0.1% price drop
Takes profit at 0.05% above average entry
Short Entries:
Opens when price closes below 34 EMA for 3 candles
Adds positions every 0.1% price rise
Takes profit at 0.05% below average entry
Settings
EMA Length: Controls the EMA period (default: 34)
DCA Interval: Price movement needed for additional entries (default: 0.1%)
Take Profit: Profit target from average entry (default: 0.05%)
Initial Position: Starting position size (default: 1.0)
Indicators
L: Long Entry
DL: Long DCA
S: Short Entry
DS: Short DCA
LTP: Long Take Profit
STP: Short Take Profit
Alerts
Compatible with all standard TradingView alerts:
Position Opens (Long/Short)
DCA Entries
Take Profit Hits
Note: This strategy works best on lower timeframes with high liquidity pairs. Adjust parameters based on asset volatility.
Support Resistance Major/Minor [TradingFinder] Market Structure🔵 Introduction
Support and resistance levels are key concepts in technical analysis, serving as critical points where prices pause or reverse due to the interaction of supply and demand. These foundational elements in price action and classical technical analysis assist traders in understanding market behavior and making better trading decisions.
Support levels are zones where demand is strong enough to prevent further price declines, while resistance levels act as barriers that hinder price increases.
Support and resistance levels are divided into two main types: static and dynamic. Static levels are fixed horizontal lines on charts, formed based on historical price points, and are crucial due to repeated price reactions in these areas.
Dynamic levels, on the other hand, move with market trends and are often identified using tools like moving averages and trendlines. These levels are particularly useful for analyzing dynamic trends and identifying potential reversal points in financial markets.
The importance of support and resistance in technical analysis lies in their ability to pinpoint price reversal or continuation points. Professional traders use these levels to determine optimal entry and exit points and combine them with tools such as Fibonacci retracements or moving averages for precise strategies.
Detailed analysis of price behavior at these levels provides insights into trend strength and the likelihood of price breaks or reversals. By understanding these concepts, technical analysts can forecast future price movements and optimize their trading decisions using tools such as indicators and price action. Support and resistance levels, as a cornerstone of technical analysis, form the foundation for many trading strategies.
🔵 How to Use
The Static Support and Resistance Indicator is a vital tool for identifying significant price zones in financial markets. It automatically detects major and minor support and resistance levels in both short-term and long-term intervals, enabling traders to analyze price behavior accurately and develop optimal entry and exit strategies.
🟣 Major Long-Term Support and Resistance
Major Long-Term Support : The lowest price points recorded over long-term intervals that prevent further declines.
Major Long-Term Resistance : The highest price points in long-term intervals that limit further price increases.
🟣 Minor Long-Term Support and Resistance
Minor Long-Term Support : Temporary halts in price decline within a downtrend over long-term intervals.
Minor Long-Term Resistance : Short-term zones within long-term intervals where prices react negatively in an uptrend.
🟣 Major Short-Term Support and Resistance
Major Short-Term Support : The lowest price points in short-term intervals that act as barriers against sharp price drops.
Major Short-Term Resistance : The highest points in short-term intervals that prevent further price surges.
🟣 Minor Short-Term Support and Resistance
Minor Short-Term Support : Temporary halts in price decline within short-term downtrends.
Minor Short-Term Resistance : Zones where price reacts quickly and reverses in short-term uptrends.
🔵 Settings
Long Term S&R Pivot Period : Defines the interval for identifying long-term support and resistance levels (default: 21).
Short Term S&R Pivot Period : Defines the interval for identifying short-term support and resistance levels (default: 5).
🟣 Long-Term Lines
Major Line Display : Enable/disable major long-term lines.
Minor Line Display : Enable/disable minor long-term lines.
Major Line Colors : Green for support, red for resistance (long-term major levels).
Minor Line Colors : Light green for support, light red for resistance (long-term minor levels).
Major Line Style : Choose between solid, dotted, or dashed lines for major long-term levels.
Minor Line Style : Choose between solid, dotted, or dashed lines for minor long-term levels.
Major Line Width : Adjust the thickness of major long-term lines.
Minor Line Width : Adjust the thickness of minor long-term lines.
🟣 Short-Term Lines
Major Line Display : Enable/disable major short-term lines.
Minor Line Display : Enable/disable minor short-term lines.
Major Line Colors : Gray-green for support, gray-red for resistance (short-term major levels).
Minor Line Colors : Dark green for support, dark red for resistance (short-term minor levels).
Major Line Style : Choose between solid, dotted, or dashed lines for major short-term levels.
Minor Line Style : Choose between solid, dotted, or dashed lines for minor short-term levels.
Major Line Width : Adjust the thickness of major short-term lines.
Minor Line Width : Adjust the thickness of minor short-term lines.
🔵 Conclusion
Static support and resistance levels are among the most critical tools in technical analysis, helping traders identify key reversal or continuation points.
This indicator simplifies and enhances the analysis process by automatically detecting major and minor levels in both short-term and long-term intervals. It allows traders to customize settings to suit their trading strategies and analyze different market levels effectively.
Using this indicator improves price action analysis, enhances market understanding, and identifies trading opportunities. Applicable to all trading styles, from day trading to long-term investing, it is an essential tool for technical analysis.
Combining this indicator with other tools like trendlines, Fibonacci retracements, and moving averages enables comprehensive analysis and allows traders to navigate financial markets with greater confidence.
Previous 4-Hour High/Low Indicator Name: Previous 4-Hour High/Low Lines
Description:
This indicator highlights the high and low levels of the previous candle from a user-defined timeframe (default: 4 hours) and extends these levels both to the left and right across the chart. It allows traders to visualize key support and resistance levels from higher timeframes while analyzing lower timeframe charts.
Key Features:
• Customizable Timeframe: Select any timeframe (e.g., 4-hour, daily) to track the high and low of the previous candle.
• Dynamic Updates: The high and low levels update automatically with each new candle.
• Extended Levels: Lines extend both left and right, providing a clear reference for past and future price action.
• Overlay on Chart: The indicator works seamlessly on any timeframe, making it ideal for multi-timeframe analysis.
Use Case:
This tool is perfect for traders who rely on higher timeframe levels for setting entry/exit points, identifying potential breakout zones, or managing risk. By visualizing these levels directly on lower timeframe charts, traders can make informed decisions without switching between charts.
[blackcat] L2 Kiosotto IndicatorOVERVIEW
The Kiosotto Indicator is a versatile technical analysis tool designed for forex trading but applicable to other financial markets. It excels in detecting market reversals and trends without repainting, ensuring consistent and reliable signals. The indicator has evolved over time, with different versions focusing on specific aspects of market analysis.
KEY FEATURES
Reversal Detection: Identifies potential market reversals, crucial for traders looking to capitalize on turning points.
Trend Detection: Earlier versions focused on detecting trends, useful for traders who prefer to follow the market direction.
Non-Repainting: Signals remain consistent on the chart, providing reliable and consistent signals.
Normalization: Later versions, such as Normalized Kiosotto and Kiosotto_2025, incorporate normalization to assess oversold and overbought conditions, enhancing interpretability.
VERSIONS AND EVOLUTION
Early Versions: Focused on trend detection, useful for following market direction.
2 in 1 Kiosotto: Emphasizes reversal detection and is considered an improvement by users.
Normalized Versions (e.g., Kiosotto_2025, Kiosotto_3_2025): Introduce normalization to assess oversold and overbought conditions, enhancing interpretability.
HOW TO USE THE KIOSOTTO INDICATOR
Understanding Signals:
Reversals: Look for the indicator's signals that suggest a potential reversal, indicated by color changes, line crossings, or other visual cues.
Trends: Earlier versions might show stronger trending signals, indicated by the direction or slope of the indicator's lines.
Normalization Interpretation (for normalized versions):
Oversold: When the indicator hits the lower boundary, it might indicate an oversold condition, suggesting a potential buy signal.
Overbought: Hitting the upper boundary could signal an overbought condition, suggesting a potential sell signal.
PINE SCRIPT IMPLEMENTATION
The provided Pine Script code is a version of the Kiosotto indicator. Here's a detailed explanation of the code:
//@version=5
indicator(" L2 Kiosotto Indicator", overlay=false)
//Pine version of Kiosotto 2015 v4 Alert ms-nrp
// Input parameters
dev_period = input.int(150, "Dev Period")
alerts_level = input.float(15, "Alerts Level")
tsbul = 0.0
tsber = 0.0
hpres = 0.0
lpres = 9999999.0
for i = 0 to dev_period - 1
rsi = ta.rsi(close , dev_period)
if high > hpres
hpres := high
tsbul := tsbul + rsi * close
if low < lpres
lpres := low
tsber := tsber + rsi * close
buffer1 = tsber != 0 ? tsbul / tsber : 0
buffer2 = tsbul != 0 ? tsber / tsbul : 0
// Plotting
plot(buffer1, color=color.aqua, linewidth=3, style=plot.style_histogram)
plot(buffer2, color=color.fuchsia, linewidth=3, style=plot.style_histogram)
hline(alerts_level, color=color.silver)
EXPLANATION OF THE CODE
Indicator Definition:
indicator(" L2 Kiosotto Indicator", overlay=false): Defines the indicator with the name " L2 Kiosotto Indicator" and specifies that it should not be overlaid on the price chart.
Input Parameters:
dev_period = input.int(150, "Dev Period"): Allows users to set the period for the deviation calculation.
alerts_level = input.float(15, "Alerts Level"): Allows users to set the level for alerts.
Initialization:
tsbul = 0.0: Initializes the tsbul variable to 0.0.
tsber = 0.0: Initializes the tsber variable to 0.0.
hpres = 0.0: Initializes the hpres variable to 0.0.
lpres = 9999999.0: Initializes the lpres variable to a very high value.
Loop for Calculation:
The for loop iterates over the last dev_period bars.
rsi = ta.rsi(close , dev_period): Calculates the RSI for the current bar.
if high > hpres: If the high price of the current bar is greater than hpres, update hpres and add the product of RSI and close price to tsbul.
if low < lpres: If the low price of the current bar is less than lpres, update lpres and add the product of RSI and close price to tsber.
Buffer Calculation:
buffer1 = tsber != 0 ? tsbul / tsber : 0: Calculates the first buffer as the ratio of tsbul to tsber if tsber is not zero.
buffer2 = tsbul != 0 ? tsber / tsbul : 0: Calculates the second buffer as the ratio of tsber to tsbul if tsbul is not zero.
Plotting:
plot(buffer1, color=color.aqua, linewidth=3, style=plot.style_histogram): Plots the first buffer as a histogram with an aqua color.
plot(buffer2, color=color.fuchsia, linewidth=3, style=plot.style_histogram): Plots the second buffer as a histogram with a fuchsia color.
hline(alerts_level, color=color.silver): Draws a horizontal line at the alerts_level with a silver color.
FUNCTIONALITY
The Kiosotto indicator calculates two buffers based on the RSI and price levels over a specified period. The buffers are plotted as histograms, and a horizontal line is drawn at the alerts level. The indicator helps traders identify potential reversals and trends by analyzing the relationship between the RSI and price levels.
ALGORITHMS
RSI Calculation:
The Relative Strength Index (RSI) measures the speed and change of price movements. It is calculated using the formula:
RSI=100− (1+RS) / 100
where RS is the ratio of the average gain to the average loss over the specified period.
Buffer Calculation:
The buffers are calculated as the ratio of the sum of RSI multiplied by the close price for high and low price conditions. This helps in identifying the balance between buying and selling pressure.
Signal Generation:
The indicator generates signals based on the values of the buffers and the alerts level. Traders can use these signals to make informed trading decisions, such as entering or exiting trades based on potential reversals or trends.
APPLICATION SCENARIOS
Reversal Trading: Traders can use the Kiosotto indicator to identify potential reversals by looking for significant changes in the buffer values or crossings of the alerts level.
Trend Following: The indicator can also be used to follow trends by analyzing the direction and slope of the buffer lines.
Oversold/Overbought Conditions: For normalized versions, traders can use the indicator to identify oversold and overbought conditions, which can provide buy or sell signals.
THANKS
Special thanks to the TradingView community and the original developers for their contributions and support in creating and refining the Kiosotto Indicator.
Rolling Window Geometric Brownian Motion Projections📊 Rolling GBM Projections + EV & Adjustable Confidence Bands
Overview
The Rolling GBM Projections + EV & Adjustable Confidence Bands indicator provides traders with a robust, dynamic tool to model and project future price movements using Geometric Brownian Motion (GBM). By combining GBM-based simulations, expected value (EV) calculations, and customizable confidence bands, this indicator offers valuable insights for decision-making and risk management.
Key Features
Rolling GBM Projections: Simulate potential future price paths based on drift (μμ) and volatility (σσ).
Expected Value (EV) Line: Represents the average projection of simulated price paths.
Confidence Bands: Define ranges where the price is expected to remain, adjustable from 51% to 99%.
Simulation Lines: Visualize individual GBM paths for detailed analysis.
EV of EV Line: A smoothed trend of the EV, offering additional clarity on price dynamics.
Customizable Lookback Periods: Adjust the rolling lookback periods for drift and volatility calculations.
Mathematical Foundation
1. Geometric Brownian Motion (GBM)
GBM is a mathematical model used to simulate the random movement of asset prices, described by the following stochastic differential equation:
dSt=μStdt+σStdWt
dSt=μStdt+σStdWt
Where:
StSt: Price at time tt
μμ: Drift term (expected return)
σσ: Volatility (standard deviation of returns)
dWtdWt: Wiener process (standard Brownian motion)
2. Drift (μμ) and Volatility (σσ)
Drift (μμ): Represents the average logarithmic return of the asset. Calculated using a simple moving average (SMA) over a rolling lookback period.
μ=SMA(ln(St/St−1),Lookback Drift)
μ=SMA(ln(St/St−1),Lookback Drift)
Volatility (σσ): Measures the standard deviation of logarithmic returns over a rolling lookback period.
σ=STD(ln(St/St−1),Lookback Volatility)
σ=STD(ln(St/St−1),Lookback Volatility)
3. Price Simulation Using GBM
The GBM formula for simulating future prices is:
St+Δt=St×e(μ−12σ2)Δt+σϵΔt
St+Δt=St×e(μ−21σ2)Δt+σϵΔt
Where:
ϵϵ: Random variable from a standard normal distribution (N(0,1)N(0,1)).
4. Confidence Bands
Confidence bands are determined using the Z-score corresponding to a user-defined confidence percentage (CC):
Upper Band=EV+Z⋅σ
Upper Band=EV+Z⋅σ
Lower Band=EV−Z⋅σ
Lower Band=EV−Z⋅σ
The Z-score is computed using an inverse normal distribution function, approximating the relationship between confidence and standard deviations.
Methodology
Rolling Drift and Volatility:
Drift and volatility are calculated using logarithmic returns over user-defined rolling lookback periods (default: μ=20μ=20, σ=16σ=16).
Drift defines the overall directional tendency, while volatility determines the randomness and variability of price movements.
Simulations:
Multiple GBM paths (default: 30) are generated for a specified number of projection candles (default: 12).
Each path is influenced by the current drift and volatility, incorporating random shocks to simulate real-world price dynamics.
Expected Value (EV):
The EV is calculated as the average of all simulated paths for each projection step, offering a statistical mean of potential price outcomes.
Confidence Bands:
The upper and lower bounds of the confidence bands are derived using the Z-score corresponding to the selected confidence percentage (e.g., 68%, 95%).
EV of EV:
A running average of the EV values, providing a smoothed perspective of price trends over the projection horizon.
Indicator Functionality
User Inputs:
Drift Lookback (Bars): Define the number of bars for rolling drift calculation (default: 20).
Volatility Lookback (Bars): Define the number of bars for rolling volatility calculation (default: 16).
Projection Candles (Bars): Set the number of bars to project future prices (default: 12).
Number of Simulations: Specify the number of GBM paths to simulate (default: 30).
Confidence Percentage: Input the desired confidence level for bands (default: 68%, adjustable from 51% to 99%).
Visualization Components:
Simulation Lines (Blue): Display individual GBM paths to visualize potential price scenarios.
Expected Value (EV) Line (Orange): Highlight the mean projection of all simulated paths.
Confidence Bands (Green & Red): Show the upper and lower confidence limits.
EV of EV Line (Orange Dashed): Provide a smoothed trendline of the EV values.
Current Price (White): Overlay the real-time price for context.
Display Toggles:
Enable or disable components (e.g., simulation lines, EV line, confidence bands) based on preference.
Practical Applications
Risk Management:
Utilize confidence bands to set stop-loss levels and manage trade risk effectively.
Use narrower confidence intervals (e.g., 50%) for aggressive strategies or wider intervals (e.g., 95%) for conservative approaches.
Trend Analysis:
Observe the EV and EV of EV lines to identify overarching trends and potential reversals.
Scenario Planning:
Analyze simulation lines to explore potential outcomes under varying market conditions.
Statistical Insights:
Leverage confidence bands to understand the statistical likelihood of price movements.
How to Use
Add the Indicator:
Copy the script into the TradingView Pine Editor, save it, and apply it to your chart.
Customize Settings:
Adjust the lookback periods for drift and volatility.
Define the number of projection candles and simulations.
Set the confidence percentage to tailor the bands to your strategy.
Interpret the Visualization:
Use the EV and confidence bands to guide trade entry, exit, and position sizing decisions.
Combine with other indicators for a holistic trading strategy.
Disclaimer
This indicator is a mathematical and statistical tool. It does not guarantee future performance.
Use it in conjunction with other forms of analysis and always trade responsibly.
Happy Trading! 🚀