KouhestanThis is the version 1.2 of Kouhestan Strategy Indicator.
You can define up to 2 time periods by turning the 'Range's on and by studiyng the bullish and bearish kumos, you will be able to trade the right direction.
Cicli
Adaptive Trend Finder - Pulse Frequency(Basic)The Adaptive Pulse Frequency & Amplitude Trend Indicator is a Pine Script-based tool designed for lower timeframe volume analysis and trend detection. By analyzing volume dynamics and identifying significant "pulses" in market activity, this indicator provides insights into bullish and bearish trends. Here's an overview of its key features and components:
1. Lower Timeframe Volume Analysis
Custom Timeframe Input: The indicator scans lower timeframe data to approximate Up/Down volume, with an optional override to set a custom timeframe.
Volume Delta Calculation: Tracks changes in volume (deltaVolume), representing the difference between up and down volume for each bar.
2. Adaptive Pulse Detection
Rolling Percentile Threshold: Dynamically calculates a threshold based on the pulsePercentile of the absolute delta volume within a specified lookback period (pulseLookback).
Pulse Identification: Bars where the absolute delta volume exceeds the adaptive threshold are classified as "pulses," indicating significant market activity.
Bullish Pulse: Positive delta volume exceeding the threshold.
Bearish Pulse: Negative delta volume exceeding the threshold.
3. Frequency & Amplitude Analysis
Pulse Frequency: Measures the number of bullish or bearish pulses within a rolling window (freqLookback), providing insights into the activity level.
Pulse Amplitude: Computes the cumulative volume delta for bullish and bearish pulses over a defined period (ampLookback), offering a finer view of market strength:
Bullish Amplitude: Sum of positive delta volume for bullish pulses.
Bearish Amplitude: Sum of absolute delta volume for bearish pulses.
4. Trend Logic
Trend Classification:
Bullish Trend: Higher bullish pulse frequency and amplitude.
Bearish Trend: Higher bearish pulse frequency and amplitude.
Neutral Trend: Mixed or inconclusive signals.
Advanced Metrics: Combines frequency and amplitude for robust trend assessment.
5. Visualization
Dynamic Threshold: Plots the adaptive threshold for real-time pulse detection.
Trend Visualization: Colors the chart background based on the identified trend (Bullish, Bearish, Neutral).
Amplitude and Frequency Lines: Displays separate plots for:
Net Frequency (Bullish - Bearish pulses).
Net Amplitude (Bullish amplitude - Bearish amplitude).
Individual bullish and bearish amplitudes for reference.
Use Case
This indicator is ideal for traders seeking to:
Analyze market activity on lower timeframes.
Identify shifts in bullish/bearish momentum through volume dynamics.
Enhance trend-following strategies with adaptive frequency and amplitude metrics.
With its focus on precision and adaptability, the Adaptive Pulse Frequency & Amplitude Trend Indicator is a powerful tool for volume-based market analysis.
WD Gann: Close Price X Bars Ago with Line or Candle PlotThis indicator is inspired by the principles of WD Gann, a legendary trader known for his groundbreaking methods in time and price analysis. It helps traders track the close price of a security from X bars ago, a technique that is often used to identify key price levels in relation to past price movements. This concept is essential for Gann’s market theories, which emphasize the relationship between time and price.
WD Gann’s analysis often revolved around specific numbers that he considered significant, many of which correspond to squared numbers (e.g., 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900, 961, 1024, 1089, 1156, 1225, 1296, 1369, 1444, 1521, 1600, 1681, 1764, 1849, 1936). These numbers are believed to represent natural rhythms and cycles in the market. This indicator can help you explore how past price levels align with these significant numbers, potentially revealing key price zones that could act as support, resistance, or reversal points.
Key Features:
- Historical Close Price Calculation: The indicator calculates and displays the close price of a security from X bars ago (where X is customizable). This method aligns with Gann's focus on price relationships over specific time intervals, providing traders with valuable reference points to assess market conditions.
- Customizable Plot Type: You can choose between two plot types for visualizing the historical close price:
- Line Plot: A simple line that represents the close price from X bars ago, ideal for those who prefer a clean and continuous representation.
- Candle Plot: Displays the close price as a candlestick chart, providing a more detailed view with open, high, low, and close prices from X bars ago.
- Candle Color Coding: For the candle plot type, the script color-codes the candles. Green candles appear when the close price from X bars ago is higher than the open price, indicating bullish sentiment; red candles appear when the close is lower, indicating bearish sentiment. This color coding gives a quick visual cue to market sentiment.
- Customizable Number of Bars: You can adjust the number of bars (X) to look back, providing flexibility for analyzing different timeframes. Whether you're conducting short-term or long-term analysis, this input can be fine-tuned to suit your trading strategy.
- Gann Method Application: WD Gann's methods involved analyzing price action over specific time periods to predict future movements. This indicator offers traders a way to assess how the price of a security has behaved in the past in relation to a chosen time interval, a critical concept in Gann's theories.
How to Use:
1. Input Settings:
- Number of Bars (X): Choose the number of bars to look back (e.g., 100, 200, or any custom period).
- Plot Type: Select whether to display the data as a Line or Candles.
2. Interpretation:
- Using the Line plot, observe how the close price from X bars ago compares to the current market price.
- Using the Candles plot, analyze the full price action of the chosen bar from X bars ago, noting how the close price relates to the open, high, and low of that bar.
3. Gann Analysis: Integrate this indicator into your broader Gann-based analysis. By looking at past price levels and their relationship to significant squared numbers, traders can uncover potential key levels of support and resistance or even potential reversal points. The historical close price can act as a benchmark for predicting future market movements.
Suggestions on WD Gann's Emphasis in Trading:
WD Gann’s trading methods were rooted in several key principles that emphasized the relationship between time and price. These principles are vital to understanding how the "Close Price X Bars Ago" indicator fits into his overall analysis:
1. Time Cycles: Gann believed that markets move in cyclical patterns. By studying price levels from specific time intervals, traders can spot these cycles and predict future market behavior. This indicator allows you to see how the close price from X bars ago relates to current market conditions, helping to spot cyclical highs and lows.
2. Price and Time Squaring: A core concept in Gann’s theory is that certain price levels and time periods align, often marking significant reversal points. The squared numbers (e.g., 1, 4, 9, 16, 25, etc.) serve as potential key levels where price and time might "square" to create support or resistance. This indicator helps traders spot these historical price levels and their potential relevance to future price action.
3. Geometric Angles: Gann used angles (like the 45-degree angle) to predict market movements, with the belief that prices move at specific geometric angles over time. This indicator gives traders a reference for past price levels, which could align with key angles, helping traders predict future price movement based on Gann's geometry.
4. Numerology and Key Intervals: Gann paid particular attention to numbers that held significance, including squared numbers and numbers related to the Fibonacci sequence. This indicator allows traders to analyze price levels based on these key numbers, which can help in identifying potential turning points in the market.
5. Support and Resistance Levels: Gann’s methods often involved identifying levels of support and resistance based on past price action. By tracking the close price from X bars ago, traders can identify past support and resistance levels that may become significant again in future market conditions.
Perfect for:
Traders using WD Gann’s methods, such as Gann angles, time cycles, and price theory.
Analysts who focus on historical price levels to predict future price action.
Those who rely on numerology and geometric principles in their trading strategies.
By integrating this indicator into your trading strategy, you gain a powerful tool for analyzing market cycles and price movements in relation to key time intervals. The ability to track and compare the historical close price to significant numbers—like Gann’s squared numbers—can provide valuable insights into potential support, resistance, and reversal points.
Disclaimer:
This indicator is based on the methods and principles of WD Gann and is for educational purposes only. It is not intended as financial advice. Trading involves significant risk, and you should not trade with money that you cannot afford to lose. Past performance is not indicative of future results. The use of this indicator is at your own discretion and risk. Always do your own research and consider consulting a licensed financial advisor before making any investment decisions.
Crawblanc by SiriusThe "Crawblanc by Sirius" is a Pine Script indicator designed for use on the TradingView platform. It implements an advanced ZigZag structure analysis with extended visualization options, offering traders a detailed representation of market patterns. Here's a breakdown of its features:
ZigZag Structure Detection:
Identifies market high and low points based on customizable depth, deviation, and backstep parameters.
Allows traders to observe directional changes (bullish or bearish) and significant trend reversals.
Customizable Visual Elements:
Display settings for lines, triangles, and labels associated with market structures.
Adjustable transparency, label size, and colors for bullish and bearish formations.
Optional display of triangle IDs and areas, calculated dynamically based on detected points.
Interactive Inputs:
Enables toggling between calculation methods (e.g., open/close vs. low/high prices).
Allows customization of transparency levels, line thickness, and label styles to suit individual preferences.
Advanced Calculations:
Triangle areas and center points are calculated for enhanced visualization.
Supports projection and center-point calculations to provide additional market insights.
Real-Time Updating:
Dynamically updates on price changes, deleting and redrawing lines and labels as necessary.
Displays point IDs and triangle areas, helping traders track ongoing market conditions.
Color Coding:
Distinct colors for bullish (green/blue tones) and bearish (red/yellow tones) phases.
Automatic color inversion for labels to ensure clear visibility on various backgrounds.
Extensibility:
Users can choose to extend lines or restrict them to specific areas.
Supports up to 500 lines, labels, and boxes, making it suitable for detailed analyses.
Use Case:
This indicator is highly beneficial for traders seeking to:
Identify support and resistance levels.
Analyze market patterns for entry and exit opportunities.
Understand complex structures like triangles and trends dynamically in real time.
The combination of user-friendly inputs and advanced visualization tools makes it ideal for technical analysts focused on improving decision-making through graphical insights.
Open_close AND HIGH_LOW_diffAverage of Absolute (Open - Close) Indicator
This indicator calculates the average of the absolute difference between the open and close prices of the last n candles and plots the result in a separate panel.
Key Features:
Customizable Period: Users can set the number of candles (n) to include in the average calculation.
Absolute Value Calculation: The script computes the absolute difference (|Open - Close|) for each candle, ensuring only positive values are averaged.
Separate Panel Visualization: The indicator is displayed in a separate panel below the main chart for clear and uncluttered analysis.
Red Plot: The average value is plotted with a bold red line for easy identification.
Use Cases:
Analyze the average volatility of price movements over a specified period.
Identify periods of consistent price differences between open and close levels.
Complement other volatility or trend-based indicators.
This tool is ideal for traders who want to monitor the consistency of price fluctuations and integrate it into their decision-making process.
How to Use:
Add the script to your TradingView chart.
Adjust the "Number of Candles" input to match your preferred look-back period.
Observe the red line in the separate panel to analyze the average absolute difference over time.
Feel free to reach out with suggestions or feedback to enhance the functionality of this script!
Mean Reversion V-FThis strategy workings on high volatile stock or crypto assets
It using 5 dynamic band's to get in the long position.
In same time depends on the band increases the units of the asset to get in the next position.
The unit's of the asset can be adjusted. Make sure to adjust the unit for different asset.
The bands are determined of main SMA.
There is no stop loss.
Take profit is trialing - HMA or % or average price + take profit - note if you use % trailing back test is not realistic but is working on real time.
Deviations can be adjust depends on the asset volatility.
Improved G-Trend DetectionIt is the Improved version of G trend channel detection.
The Umair Trend Detection Indicator is a powerful tool designed to help traders identify potential buy and sell opportunities by combining dynamic price channels with RSI-based confirmation. This indicator is suitable for all types of financial markets, including stocks, forex, and cryptocurrencies.
Key Features:
Dynamic G-Channels
Calculates upper, lower, and average price channels based on the "G-Channel" methodology.
Helps identify market extremes and potential reversal points.
RSI Confirmation
Integrates RSI (Relative Strength Index) to filter buy and sell signals.
Avoids false signals by ensuring market momentum aligns with trend direction.
Buy/Sell Signals
Generates "Buy" signals when bullish conditions align with oversold RSI levels.
Generates "Sell" signals when bearish conditions align with overbought RSI levels.
Exit Signals
Provides optional exit points for both long and short positions using a buffer for confirmation.
Visual Clarity
Displays clearly plotted channels and average lines to help visualize price trends.
Buy and sell signals are marked with arrows for easy identification on the chart.
Custom Alerts
Offers customizable alerts for buy, sell, and exit conditions, ensuring traders never miss an opportunity.
Input Parameters:
Channel Length: Controls the sensitivity of the G-Channels.
Multiplier: Adjusts the width of the channels to suit different market conditions.
RSI Settings: Customize RSI length and thresholds for overbought/oversold conditions.
Exit Signal Buffer: Adds flexibility to the exit strategy by delaying signals for confirmation.
How It Helps:
The Umair Trend Detection Indicator is perfect for traders looking for an easy-to-use trend-following system with strong confirmation. By combining dynamic channels with RSI, it provides accurate and reliable signals to enter and exit trades, minimizing risks associated with false breakouts or trend reversals.
Use Cases:
Trend Trading: Identify and follow long-term trends with confidence.
Swing Trading: Spot reversals and capitalize on medium-term price movements.
Risk Management: Use exit signals to lock in profits or limit losses effectively.
This indicator is a versatile tool for both novice and experienced traders. Fine-tune its settings to align with your trading style and improve your decision-making in any market.
BTC Trendline Strategy - 1min - One DirectionBTC Trendline Strategy - 1min - One DirectionBTC Trendline Strategy - 1min - One DirectionBTC Trendline Strategy - 1min - One DirectionBTC Trendline Strategy - 1min - One DirectionBTC Trendline Strategy - 1min - One DirectionBTC Trendline Strategy - 1min - One Direction
Bitcoin Pi Cycle TrackerThe Bitcoin Pi Cycle Tracker is based on the widely recognized Pi Cycle Top Indicator, a concept used to identify potential market cycle tops in Bitcoin's price. This implementation combines the 111-day Simple Moving Average (SMA) and the 350-day SMA (multiplied by 2) to detect key crossover points. When the 111-day SMA crosses above the 350-day SMA x2, it signals a potential market peak.
Key Features:
Plots the 111-day SMA (blue) and the 350-day SMA x2 (red) for clear visualization.
Displays visual markers and vertical lines at crossover points to highlight key moments.
Sends alerts for crossovers, helping traders stay ahead of market movements.
This tool is an implementation of the Pi Cycle concept originally popularized by Bitcoin market analysts. Use it to analyze historical price cycles and prepare for significant market events. Please note that while the Pi Cycle Indicator has been historically effective, it should be used alongside other tools for a comprehensive trading strategy.
EMA RSI Trend Reversal Ver.1Overview:
The EMA RSI Trend Reversal indicator combines the power of two well-known technical indicators—Exponential Moving Averages (EMAs) and the Relative Strength Index (RSI)—to identify potential trend reversal points in the market. The strategy looks for key crossovers between the fast and slow EMAs, and uses the RSI to confirm the strength of the trend. This combination helps to avoid false signals during sideways market conditions.
How It Works:
Buy Signal:
The Fast EMA (9) crosses above the Slow EMA (21), indicating a potential shift from a downtrend to an uptrend.
The RSI is above 50, confirming strong bullish momentum.
Visual Signal: A green arrow below the price bar and a Buy label are plotted on the chart.
Sell Signal:
The Fast EMA (9) crosses below the Slow EMA (21), indicating a potential shift from an uptrend to a downtrend.
The RSI is below 50, confirming weak or bearish momentum.
Visual Signal: A red arrow above the price bar and a Sell label are plotted on the chart.
Key Features:
EMA Crossovers: The Fast EMA crossing above the Slow EMA signals potential buying opportunities, while the Fast EMA crossing below the Slow EMA signals potential selling opportunities.
RSI Confirmation: The RSI helps confirm trend strength—values above 50 indicate bullish momentum, while values below 50 indicate bearish momentum.
Visual Cues: The strategy uses green arrows and red arrows along with Buy and Sell labels for clear visual signals of when to enter or exit trades.
Signal Interpretation:
Green Arrow / Buy Label: The Fast EMA (9) has crossed above the Slow EMA (21), and the RSI is above 50. This is a signal to buy or enter a long position.
Red Arrow / Sell Label: The Fast EMA (9) has crossed below the Slow EMA (21), and the RSI is below 50. This is a signal to sell or exit the long position.
Strategy Settings:
Fast EMA Length: Set to 9 (this determines how sensitive the fast EMA is to recent price movements).
Slow EMA Length: Set to 21 (this smooths out price movements to identify the broader trend).
RSI Length: Set to 14 (default setting to track momentum strength).
RSI Level: Set to 50 (used to confirm the strength of the trend—above 50 for buy signals, below 50 for sell signals).
Risk Management (Optional):
Use take profit and stop loss based on your preferred risk-to-reward ratio. For example, you can set a 2:1 risk-to-reward ratio (2x take profit for every 1x stop loss).
Backtesting and Optimization:
Backtest the strategy on TradingView by opening the Strategy Tester tab. This will allow you to see how the strategy would have performed on historical data.
Optimization: Adjust the EMA lengths, RSI period, and risk-to-reward settings based on your asset and time frame.
Limitations:
False Signals in Sideways Markets: Like any trend-following strategy, this indicator may generate false signals during periods of low volatility or sideways movement.
Not Suitable for All Market Conditions: This indicator performs best in trending markets. It may underperform in choppy or range-bound markets.
Strategy Example:
XRP/USD Example:
If you're trading XRP/USD and the Fast EMA (9) crosses above the Slow EMA (21), while the RSI is above 50, the indicator will signal a Buy.
Conversely, if the Fast EMA (9) crosses below the Slow EMA (21), and the RSI is below 50, the indicator will signal a Sell.
Bitcoin (BTC/USD):
On the BTC/USD chart, when the indicator shows a green arrow and a Buy label, it’s signaling a potential long entry. Similarly, a red arrow and Sell label indicate a short entry or exit from a previous long position.
Summary:
The EMA RSI Trend Reversal Indicator helps traders identify potential trend reversals with clear buy and sell signals based on the EMA crossovers and RSI confirmations. By using green arrows and red arrows, along with Buy and Sell labels, this strategy offers easy-to-understand visual signals for entering and exiting trades. Combine this with effective risk management and backtesting to optimize your trading performance.
Push Up Pullback BuyThe Push Up Pullback Buy (PUPB) indicator is designed to identify trend continuation opportunities by detecting key market movements:
Push-Ups: Rapid upward price movements exceeding a customizable minimum change.
Pullbacks: Temporary price corrections following a push-up.
Trend Confirmation: Validates higher highs and higher lows during pullbacks to ensure trend continuation.
Multi-Timeframe Analysis: Incorporates lower timeframe breakout confirmation for enhanced precision.
This indicator provides visual cues (arrows and signals) directly on your chart, making it intuitive for traders to spot potential buy opportunities. Ideal for trend-following strategies and traders looking to capitalize on pullback entries in bullish markets.
Customizable parameters allow you to adapt the indicator to your preferred trading style and instruments.
Opening Candle High/Low with Time Zone and Minute Offset
Title: Opening Candle High/Low with Time Zone and Minute Offset
Description:
The Opening Candle High/Low with Time Zone and Minute Offset indicator is a versatile tool that highlights the high and low of the first candle of the trading session, adjusted for your preferred time zone and minute offset. It is particularly useful for traders who focus on opening ranges as key reference points for their trading strategies.
---
Features:
1. Time Zone and Minute Adjustment:
- Allows customization of the start time by applying a time zone offset (in hours) and a minute offset.
- Ideal for traders operating in different time zones or trading sessions that don't align with midnight UTC.
2. Dynamic First Candle Detection:
- Automatically captures the high and low of the first candle after the adjusted time.
- Resets daily, ensuring accurate levels for each new trading session.
3. Visual Representation:
- Plots the high and low levels of the first candle directly on the chart for easy reference.
- Uses distinct colors (green for the high and red for the low) and adjustable line widths for clarity.
4. Simplicity and Versatility:
- Works across all markets and timeframes, providing essential information for opening range breakout strategies, support/resistance analysis, or session-based trading.
---
How It Works:
1. Time Adjustment:
- The indicator adjusts the current chart time by applying the user-defined hour and minute offsets.
- This ensures the "opening candle" aligns with your specific trading session requirements.
2. First Candle Detection:
- When the adjusted time matches the start of a new day (midnight with offsets), the indicator captures the high and low of the first candle.
- These values are stored and remain static throughout the trading day.
3. Plotting:
- The high and low levels of the opening candle are plotted on the chart, providing visual reference points for traders.
---
Use Case:
- This indicator is ideal for traders who rely on the opening range of a session for planning trades, such as breakout or reversal strategies.
- It can also serve as a key tool for identifying significant price levels in session-based trading.
Simplify your trading analysis and align your strategy with this customizable and intuitive indicator.
Previous Week High & Low with middle lineDescription:
The Previous Week High & Low Indicator is a powerful tool designed to provide traders with key reference levels from the previous trading week. It dynamically calculates and plots the previous week's high, low, and midpoint levels directly on your chart, helping you identify critical support and resistance zones.
Features:
1. **Previous Week High and Low Lines**:
- The indicator displays the high and low prices of the previous trading week, allowing you to analyze price action relative to these levels.
- These lines are plotted as step lines, visible only during the active trading days (Monday to Friday), ensuring clean and uncluttered charts.
2. Midpoint Line:
- The midpoint between the previous week's high and low is calculated and displayed as a reference level.
- This white line can act as a psychological pivot point for market participants.
3. Customizable Display:
- You can toggle the visibility of the high and low lines using input options, tailoring the indicator to your preferences.
4. Precision and Aesthetics:
- The lines are plotted with precision and styled for clarity, using subtle transparency for an unobtrusive yet informative appearance.
Use Case:
- This indicator is ideal for traders who rely on historical price levels for planning entries, exits, or stop-loss placements.
- It works seamlessly with any timeframe and asset, making it versatile for various trading strategies.
How It Works:
- The indicator fetches the previous week's high and low prices using the weekly timeframe and "lookahead" mode to ensure these levels remain static after the week's close.
- The lines are plotted only on weekdays (Monday to Friday) to exclude weekend data, ensuring accuracy for markets that operate 24/5.
This tool simplifies your chart analysis and empowers you to make informed trading decisions based on historical price dynamics.
Range PolarityDescription:
This indicator is a "Rate of Change" style oscillator designed to measure market dynamics through the lens of price ranges. By utilizing the true range in conjunction with high and low separation, this script produces two distinct oscillators: one for positive price shifts and one for negative price shifts.
Key Features:
High/Low Isolation:
The script calculates the relative movement of upwards and downwards price movements over a user-defined period. This separation provides a nuanced view of market behavior, offering two separate signals for comparison.
Dynamic Transform Smoothing:
A smoothing transform is applied to the signals, ensuring better outlier handling while maintaining sensitivity to price extremes. This makes the oscillator especially suited for identifying overbought and oversold conditions.
Zero-Centered:
The zero line acts as a "gravity point," where shifts away or toward zero indicate market momentum. Signal crosses or reversals from extreme zones can signal potential entry or exit points.
Outlier Identification:
Unlike traditional ATR based strategies (e.g., Keltner Channels ), this indicator isolates high and low ranges, creating a more granular view of market extremes. These measurements can help identify shifts from the outlying positions and reversal opportunities.
Visual Enhancements:
Multiple layers enhance the visual distinction of the positive and negative transformations. Horizontal lines at key thresholds provide visual reference for overbought, oversold, and equilibrium zones.
How to Use:
Primary signals are shifts from outlying positions or a positive/negative cross. An extreme reading itself can reveal an incoming reversal when calibrated with other indicators or compared with higher timeframes. Pairing "Range Polarity" with volume and momentum can create a comprehensive strategy.
In conclusion, be aware the base length controls the window for high/low contributions while the transform smoothing enhances the raw data through normalization within a tempered range to filter out insignificant fluctuations.
Merry Christmas to all and have a Happy New Year!
ROC with AveragesMain Idea
This script provides traders with a comprehensive view of market momentum by calculating the Rate of Change (ROC) and categorizing its impact into averages of positive, negative, and total values.
Key Features
Rate of Change (ROC) Calculation: Measures the percentage change in closing prices over a user-defined period.
Categorical Averages:
Positive Average: Average ROC for upward movements.
Negative Average: Average ROC for downward movements.
Total Average: Aggregate average across all movements.
Dynamic Visualization: Plots ROC alongside its categorized averages for better trend analysis.
Benefits
Simplifies the evaluation of market trends by breaking down data into actionable insights.
Helps traders identify the strength of upward or downward movements.
Offers a clear visual representation for quick decision-making.
This structure highlights the purpose and value of the script while aligning with the Minto Pyramid Principle. Let me know if you'd like further refinements!
الفكرة الرئيسية
يوفر هذا السكربت للمتداولين رؤية شاملة لزخم السوق من خلال حساب معدل التغير (ROC) وتصنيفه إلى متوسطات القيم الإيجابية والسلبية والإجمالية.
المميزات الرئيسية
حساب معدل التغير (ROC): يقيس النسبة المئوية للتغير في أسعار الإغلاق خلال فترة محددة يختارها المستخدم.
المتوسطات التصنيفية:
المتوسط الإيجابي: متوسط معدل التغير للحركات الصعودية.
المتوسط السلبي: متوسط معدل التغير للحركات الهبوطية.
المتوسط الإجمالي: متوسط إجمالي يشمل جميع الحركات.
تصور ديناميكي: يعرض معدل التغير إلى جانب المتوسطات المصنفة لتسهيل تحليل الاتجاهات.
الفوائد
يبسط تقييم اتجاهات السوق من خلال تقسيم البيانات إلى رؤى قابلة للتنفيذ.
يساعد المتداولين على تحديد قوة الحركات الصعودية أو الهبوطية.
يقدم تمثيلاً بصرياً واضحاً لاتخاذ قرارات سريعة ودقيقة.
MTF Countdown with Direction - AynetIndicator Definition and Inputs:
pineCopyindicator('MTF Countdown with Direction - Aynet', overlay = true)
This code creates a Multiple Time Frame (MTF) countdown indicator with direction
The overlay = true parameter places the indicator on top of the price chart
Timeframe Options:
Users can choose to show/hide the following timeframes:
1 minute
5 minutes
15 minutes
30 minutes
1 hour
4 hours
Daily
Time Calculations:
pineCopyget_current_time()
Calculates the current time
Converts Unix timestamp to seconds
Calculates time since midnight
Returns time broken down into hours, minutes, and seconds
Countdown Calculation:
pineCopyget_period_countdown(period_seconds)
Calculates remaining time for each timeframe
Computes elapsed time in current period
Returns remaining time in hours, minutes, and seconds
Direction and Closing Price Calculation:
Separate functions for each timeframe (get_direction_and_close_1m(), get_direction_and_close_5m(), etc.)
Each function:
Gets current closing price
Compares with previous closing price
Determines direction (up: 1, down: -1, sideways: 0)
Returns direction and closing price
Table Creation and Updates:
Creates a table in the top right corner
Table consists of 4 columns:
Period (Timeframe)
Time Left (Remaining time)
Direction (Shown with arrows)
Close (Closing price)
Each row has a different background color
Direction arrows:
Green up arrow (▲): Price rising
Red down arrow (▼): Price falling
Gray line (―): Price sideways
Dynamic Data Structures:
pineCopyvar timeframes = array.new_int()
var timeframe_names = array.new_string()
var show_array = array.new_bool()
Uses dynamic arrays for timeframes
Adds selected timeframes to arrays on first run
Key Features:
Shows remaining time until period close
Displays price direction for each timeframe
Shows current closing prices
All information in a single, easy-to-read table
This indicator helps traders by providing a comprehensive view of:
When each timeframe will close
The direction of price movement
Current closing prices
across multiple timeframes in a single table, making it easier to track market movements across different time periods.
The color-coding and arrow system makes it visually intuitive to understand market direction at a glance, while the countdown timer helps with timing decisions.
Percentual Variation This script is an indicator for plotting percentage-based lines using the previous day's closing price. It is useful for traders who want to visualize support and resistance levels derived from predefined percentages. Here's what the script does:
Calculates percentage levels:
It uses the previous day's closing price to calculate two positive levels (above the close) and two negative levels (below the close) based on fixed percentages:
+0.25% and +0.50% (above the close).
-0.25% and -0.50% (below the close).
Plots the lines on the chart:
Draws four horizontal lines representing the calculated levels:
Green lines indicate levels above the closing price.
Red lines indicate levels below the closing price.
Displays labels on the chart:
Adds labels near the lines showing the corresponding percentage, such as "+0.25%", "+0.50%", "-0.25%", and "-0.50%".
This script provides a clear visual representation of key percentage-based levels, which can be used as potential entry, exit, or target points in trading strategies.
Compare TOTAL, TOTAL2, TOTAL3, and OTHERSCompare TOTAL, TOTAL2, TOTAL3, and OTHERS
This indicator compares the performance of major cryptocurrency market cap indices: TOTAL, TOTAL2, TOTAL3, and OTHERS. It normalizes each index's performance relative to its starting value and visualizes their relative changes over time.
Features
- Normalized Performance: Tracks the percentage change of each index from its initial value.
- Customizable Timeframe: Allows users to select a base timeframe for the data (e.g., daily, weekly).
- Dynamic Labels: Displays the latest performance of each index as a label on the chart, aligned to the right of the corresponding line for easy comparison.
- Color-Coded Lines: Each index is assigned a distinct color for clear differentiation:
-- TOTAL (Blue): Represents the total cryptocurrency market cap.
-- TOTAL2 (Green): Excludes Bitcoin.
-- TOTAL3 (Orange): Excludes Bitcoin and Ethereum.
-- OTHERS (Red): Represents all cryptocurrencies excluding the top 10 by market cap.
- Baseline Reference: Includes a horizontal line at 0% for reference.
Use Cases:
- Market Trends: Identify which segments of the cryptocurrency market are outperforming or underperforming over time.
- Portfolio Insights: Assess the impact of Bitcoin and Ethereum dominance on the broader market.
- Market Analysis: Compare smaller-cap coins (OTHERS) with broader indices (TOTAL, TOTAL2, and TOTAL3).
This script is ideal for traders and analysts who want a quick, visual way to track how different segments of the cryptocurrency market perform relative to each other over time.
Note: The performance is normalized to highlight percentage changes, not absolute values.
The Ultimate strategy by ATK**The Ultimate Strategy by ATK**
This comprehensive trading script is designed to enhance market analysis and trading strategies by integrating advanced tools for market structure, SMT (Separation and Divergence), Fair Value Gaps (FVG), and session-based insights. With customizable features, real-time alerts, and multi-timeframe functionality, this script caters to both scalpers and long-term traders seeking deeper market insights.
### 🔵 **Key Features**
**🔹 SMT (Divergence) Detection:**
- **High/Low SMT Analysis:** Compares highs and lows between a primary symbol (e.g., NQ1!) and a user-defined comparison symbol (e.g., ES1!).
- Automatically visualizes discrepancies with red (highs) and green (lows) lines.
- Supports two modes: real-time comparison and historical range checks.
- Alerts for detected SMT conditions.
- **Close Price SMT Analysis:** Compares closing prices to highlight divergences.
- Includes user-defined lookback periods and granular cycle-based SMT detection.
**🔹 PSP (Precision Swing Point):**
- Detects and highlights price divergences between symbols, such as NQ and ES, with multi-timeframe compatibility (15-minute, 1-hour, 4-hour).
- Integrated PSP table for visualizing divergences across timeframes.
- Configurable for first PSP detection only or all patterns without lower timeframe interference.
**🔹 Session Analysis with ASIA Session Insights:**
- Tracks high and low prices during the Asia session (1:00–7:00 AM Israel time).
- Draws horizontal lines marking session highs and lows.
- Alerts when prices cross session boundaries.
**🔹 FFMS (First Five-Minute Strategy):**
- Utilizes the high and low of the first five minutes of the trading day.
- Generates buy or sell signals based on retracement and breakout conditions around the previous day’s high/low.
- Real-time alerts for long and short opportunities.
**🔹 Multi-Timeframe Tables and Alerts:**
- Displays SMT and PSP conditions across multiple timeframes (1-minute, 15-minute, 1-hour, etc.).
- Alerts for SMT divergences and PSP patterns across selected time intervals.
**🔹 Visual Enhancements and Customizability:**
- Color-coded lines and labels for easy interpretation of SMT, PSP, and session levels.
- User-friendly input settings for symbol selection, session tracking, and cycle configuration.
- Flexible session range adjustments with macro and micro cycle segmentation (90-minute and 6-hour sessions).
### 🎯 **Use Cases**
- **Scalping:** Analyze short-term divergences with real-time SMT and PSP detection on lower timeframes.
- **Swing Trading:** Leverage session-based insights and SMT conditions to identify potential reversal points.
- **Multi-Symbol Analysis:** Compare key indices or assets (e.g., NQ vs. ES) for SMT-based opportunities.
This script is perfect for traders looking to combine advanced tools into a seamless, actionable trading system. Stay ahead of the markets with **The Ultimate Strategy by ATK**!
Pi Cycle MACD Inverse OscillatorPi Cycle MACD Inverse Oscillator with Gradient and Days Since Last Top
This indicator is ideal for Bitcoin traders seeking a robust tool to visualize long-term and short-term trends with enhanced clarity and actionable insights.
This script combines the concept of the Pi Cycle indicator with a unique MACD-based inverse oscillator to analyze Bitcoin market trends. It introduces several features to help traders understand market conditions better:
Inverse Oscillator:
- Oscillator ranges between 1 and -1.
- A value of 1 indicates the two moving averages (350 MA and 111 MA) are equal.
- A value of -1 indicates the maximum observed distance between the moving averages during the selected lookback period.
- The oscillator dynamically adjusts to price changes using a configurable scaling factor.
Gradient Visualization:
The oscillator line transitions smoothly from green (closer to -1) to yellow (at 0) and red (closer to 1).
The color gradient provides a quick visual cue for market momentum.
Days Since Last Pi Cycle Top:
Calculates and displays the number of days since the last "Pi Cycle Top" (defined as a crossover between the two moving averages).
The label updates dynamically and appears only on the most recent bar.
Conditional Fill:
Highlights the area between 0 and 1 with a green gradient when the price is above the long moving average.
Enhances visual understanding of the oscillator's position relative to key thresholds.
Inputs:
- Long Moving Average (350 default): Determines the primary trend.
- Short Moving Average (111 default): Measures shorter-term momentum.
- Oscillator Lookback Period (100 default): Defines the range for normalizing the oscillator.
- Price Scaling Factor (0.01 default): Adjusts the normalization to account for large price fluctuations.
How to Use:
- Use the oscillator to identify potential reversal points and trend momentum.
- Look for transitions in the gradient color and the position relative to 0.
- Monitor the "Days Since Last Top" label for insights into the market's cycle timing.
- Utilize the conditional fill to quickly assess when the market is in a favorable position above the long moving average.
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.
Bidirectional Momentum Aggregator w/ Time Weighting Intrabar Data Extraction:
The script optionally harnesses lower time frame data (e.g., per-second intervals) for high and low prices within each primary bar. You can set it to the current chart time but if you want to use intrabar data it uses the request.security_lower_tf() to properly pull intrabar data.
This fine-grained data enables an in-depth examination of the price action that occurs within a standard timeframe, enhancing the ability to detect subtle market movements.
A key threshold based on Average True Range (ATR) is used to measure significant price changes intrabar, adding a robust filter for volatility sensitivity.
Cumulative Time-to-Threshold Analysis:
The indicator tracks how long it takes for price changes to reach specified thresholds, marking critical time points when upward or downward price movements exceed these levels. This approach provides insights into the speed and intensity of directional shifts within the market.
The calculated time-to-threshold values act as temporal markers that influence subsequent momentum weighting.
Bidirectional Momentum Calculation:
Momentum is assessed in two directions (upward and downward) using a comprehensive array of price changes.
Adaptive Weighting Mechanism:
Each momentum value is weighted by the calculated time-to-threshold, giving preference to momentum that occurs more rapidly and aligning with potential breakout conditions.
The script also factors in correlations between momentum and price change, ensuring that only the most relevant signals contribute to the final analysis.
Iterative Length Analysis:
By iterating over a range of lengths (e.g., 100 to 200 periods), the script aggregates data to assess momentum across different time scales. This provides a more holistic view of market behavior, accommodating both short-term fluctuations and longer-term trends.
Each length is evaluated using moving averages and correlations to determine its contribution to the total weighted momentum.
Final Aggregated Output:
The weighted sums of upward and downward momentum are normalized by the total weight to produce a final composite metric.
The indicator plots these results as separate upward and downward momentum lines, offering traders a visual representation of which direction holds more momentum strength over various intervals.
Practical Application:
This indicator's advanced design is tailored for traders who require a deeper understanding of price movement dynamics and the underlying forces driving market momentum. By incorporating intrabar data, adaptive time-to-threshold calculations, and iterative analysis, this tool seeks to provide a clearer view of potential market direction shifts and their timing.
The indicator can be used to:
Identify potential breakout or reversal points by observing significant shifts in weighted momentum.
Gauge the relative strength of uptrends and downtrends through the plotted momentum lines.
Enhance decision-making with an additional layer of granularity from intrabar data.
In essence, this script is an ambitious attempt to blend multi-scale analysis, momentum dynamics, and time-weighted evaluation, creating a unique approach to understanding market behavior beyond conventional indicators.