All Forex Sessions (SAST Accurate) + LabelsFor traders in South Africa
Uses timestamp("Africa/Johannesburg", ...) — this locks the session window to true SAST time
The session now perfectly aligns from 14:00 to 18:00 local time no matter what time zone your TradingView chart is in
Also shows start and end vertical lines only when the session opens and closes
Indicators and strategies
Min-Max | Buy-Sell Alert with LevelsMin-Max | Buy-Sell Alert with Levels
Description:
The Min-Max | Buy-Sell Alert with Levels indicator is a powerful tool designed to help traders identify key levels of support and resistance based on the previous day's high and low prices. It plots horizontal lines for the previous day's minimum (Min) and maximum (Max) prices, along with four intermediate levels (Stop Loss 1 to Stop Loss 4) calculated as equal percentage steps between the Min and Max.
This indicator is perfect for traders who want to:
Identify potential entry points when the price returns within the Min-Max range.
Set stop-loss levels based on the calculated intermediate levels.
Receive alerts for buy, sell, and stop-loss conditions.
Key Features:
Previous Day's Min and Max Lines:
Automatically plots the Min (red line) and Max (green line) of the previous day.
These levels act as dynamic support and resistance zones.
Intermediate Stop Loss Levels:
Calculates and plots four intermediate levels (Stop Loss 1 to Stop Loss 4) between the Min and Max.
Each level is equally spaced, representing potential stop-loss or take-profit zones.
Customizable Alerts:
Buy Alert: Triggered when the price returns within the Min-Max range after breaking below the Min.
Sell Alert: Triggered when the price returns within the Min-Max range after breaking above the Max.
Stop Loss Alerts: Triggered when the price reaches any of the four intermediate levels (Stop Loss 1 to Stop Loss 4).
Customizable Appearance:
Adjust the thickness, color, and style (solid, dashed, dotted) of the lines.
Customize the colors of the Stop Loss labels for better visualization.
Labels on the Chart:
Displays "Buy" and "Sell" labels on the chart when the respective conditions are met.
Labels for Stop Loss levels are also displayed for easy reference.
How to Use:
Add the indicator to your chart.
Customize the settings (line colors, thickness, and alert preferences) in the indicator's settings panel.
Use the Min and Max lines as dynamic support and resistance levels.
Monitor the intermediate levels (Stop Loss 1 to Stop Loss 4) for potential stop-loss or take-profit zones.
Set up alerts for Buy, Sell, and Stop Loss conditions to stay informed about key price movements.
Why Use This Indicator?
Simple and Effective: Focuses on the most important levels from the previous day.
Customizable: Tailor the indicator to match your trading style and preferences.
Alerts: Never miss a trading opportunity with customizable alerts for key conditions.
Settings:
Line Thickness: Adjust the thickness of the Min, Max, and intermediate lines.
Line Colors: Customize the colors of the Min, Max, and intermediate lines.
Line Style: Choose between solid, dashed, or dotted lines.
Stop Loss Label Colors: Customize the colors of the Stop Loss labels.
Alerts: Enable or disable alerts for Buy, Sell, and Stop Loss conditions.
Ideal For:
Day traders and swing traders.
Traders who rely on support and resistance levels.
Anyone looking for a clear and customizable tool to identify key price levels.
Disclaimer:
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always conduct your own analysis and trade responsibly.
Get Started Today!
Add the Min-Max | Buy-Sell Alert with Levels indicator to your chart and take your trading to the next level. Customize it to fit your strategy and never miss a key trading opportunity again!
Bullish Reversal Patterns (With Labels)**Title:** Bullish Reversal Patterns (With Labels)
**Description:**
This TradingView indicator detects strong bullish reversal candlestick patterns and plots them on the chart with labels. It combines key candlestick patterns with trend confirmation using the **50-period EMA** and **14-period RSI** to filter out weak signals.
### Features:
✅ **Identifies key bullish reversal patterns:**
- **Bullish Engulfing**
- **Hammer**
- **Morning Star**
- **Piercing Pattern**
- **Tweezer Bottom**
- **Three White Soldiers**
✅ **Filters signals for accuracy:**
- Price must be **above the 50 EMA** (indicating an uptrend).
- RSI must be **above 40** (showing strength).
✅ **Visual & Alerts:**
- Displays triangle markers below bars when a pattern is detected.
- Labels each pattern for easy identification.
- Alerts notify users when a strong bullish signal appears.
This script helps traders spot high-probability bullish reversals and make informed trading decisions. 🚀
StatPivot- Dynamic Range Analyzer - indicator [PresentTrading]Hello everyone! In the following few open scripts, I would like to share various statistical tools that benefit trading. For this time, it is a powerful indicator called StatPivot- Dynamic Range Analyzer that brings a whole new dimension to your technical analysis toolkit.
This tool goes beyond traditional pivot point analysis by providing comprehensive statistical insights about price movements, helping you identify high-probability trading opportunities based on historical data patterns rather than subjective interpretations. Whether you're a day trader, swing trader, or position trader, StatPivot's real-time percentile rankings give you a statistical edge in understanding exactly where current price action stands within historical contexts.
Welcome to share your opinions! Looking forward to sharing the next tool soon!
█ Introduction and How it is Different
StatPivot is an advanced technical analysis tool that revolutionizes retracement analysis. Unlike traditional pivot indicators that only show static support/resistance levels, StatPivot delivers dynamic statistical insights based on historical pivot patterns.
Its key innovation is real-time percentile calculation - while conventional tools require new pivot formations before updating (often too late for trading decisions), StatPivot continuously analyzes where current price stands within historical retracement distributions.
Furthermore, StatPivot provides comprehensive statistical metrics including mean, median, standard deviation, and percentile distributions of price movements, giving traders a probabilistic edge by revealing which price levels represent statistically significant zones for potential reversals or continuations. By transforming raw price data into statistical insights, StatPivot helps traders move beyond subjective price analysis to evidence-based decision making.
█ Strategy, How it Works: Detailed Explanation
🔶 Pivot Point Detection and Analysis
The core of StatPivot's functionality begins with identifying significant pivot points in the price structure. Using the parameters left and right, the indicator locates pivot highs and lows by examining a specified number of bars to the left and right of each potential pivot point:
Copyp_low = ta.pivotlow(low, left, right)
p_high = ta.pivothigh(high, left, right)
For a point to qualify as a pivot low, it must have left higher lows to its left and right higher lows to its right. Similarly, a pivot high must have left lower highs to its left and right lower highs to its right. This approach ensures that only significant turning points are recognized.
🔶 Percentage Change Calculation
Once pivot points are identified, StatPivot calculates the percentage changes between consecutive pivot points:
For drops (when a pivot low is lower than the previous pivot low):
CopydropPercent = (previous_pivot_low - current_pivot_low) / previous_pivot_low * 100
For rises (when a pivot high is higher than the previous pivot high):
CopyrisePercent = (current_pivot_high - previous_pivot_high) / previous_pivot_high * 100
These calculations quantify the magnitude of each market swing, allowing for statistical analysis of historical price movements.
🔶 Statistical Distribution Analysis
StatPivot computes comprehensive statistics on the historical distribution of drops and rises:
Average (Mean): The arithmetic mean of all recorded percentage changes
CopyavgDrop = array.avg(dropValues)
Median: The middle value when all percentage changes are arranged in order
CopymedianDrop = array.median(dropValues)
Standard Deviation: Measures the dispersion of percentage changes from the average
CopystdDevDrop = array.stdev(dropValues)
Percentiles (25th, 75th): Values below which 25% and 75% of observations fall
Copyq1 = array.get(sorted, math.floor(cnt * 0.25))
q3 = array.get(sorted, math.floor(cnt * 0.75))
VaR95: The maximum expected percentage drop with 95% confidence
Copyvar95D = array.get(sortedD, math.floor(nD * 0.95))
Coefficient of Variation (CV): Measures relative variability
CopycvD = stdDevDrop / avgDrop
These statistics provide a comprehensive view of market behavior, enabling traders to understand the typical ranges and extreme moves.
🔶 Real-time Percentile Ranking
StatPivot's most innovative feature is its real-time percentile calculation. For each current price, it calculates:
The percentage drop from the latest pivot high:
CopycurrentDropPct = (latestPivotHigh - close) / latestPivotHigh * 100
The percentage rise from the latest pivot low:
CopycurrentRisePct = (close - latestPivotLow) / latestPivotLow * 100
The percentile ranks of these values within the historical distribution:
CopyrealtimeDropRank = (count of historical drops <= currentDropPct) / total drops * 100
This calculation reveals exactly where the current price movement stands in relation to all historical movements, providing crucial context for decision-making.
🔶 Cluster Analysis
To identify the most common retracement zones, StatPivot performs a cluster analysis by dividing the range of historical drops into five equal intervals:
CopyrangeSize = maxVal - minVal
For each interval boundary:
Copyboundaries = minVal + rangeSize * i / 5
By counting the number of observations in each interval, the indicator identifies the most frequently occurring retracement zones, which often serve as significant support or resistance areas.
🔶 Expected Price Targets
Using the statistical data, StatPivot calculates expected price targets:
CopytargetBuyPrice = close * (1 - avgDrop / 100)
targetSellPrice = close * (1 + avgRise / 100)
These targets represent statistically probable price levels for potential entries and exits based on the average historical behavior of the market.
█ Trade Direction
StatPivot functions as an analytical tool rather than a direct trading signal generator, providing statistical insights that can be applied to various trading strategies. However, the data it generates can be interpreted for different trade directions:
For Long Trades:
Entry considerations: Look for price drops that reach the 70-80th percentile range in the historical distribution, suggesting a statistically significant retracement
Target setting: Use the Expected Sell price or consider the average rise percentage as a reasonable target
Risk management: Set stop losses below recent pivot lows or at a distance related to the statistical volatility (standard deviation)
For Short Trades:
Entry considerations: Look for price rises that reach the 70-80th percentile range, indicating an unusual extension
Target setting: Use the Expected Buy price or average drop percentage as a target
Risk management: Set stop losses above recent pivot highs or based on statistical measures of volatility
For Range Trading:
Use the most common drop and rise clusters to identify probable reversal zones
Trade bounces between these statistically significant levels
For Trend Following:
Confirm trend strength by analyzing consecutive higher pivot lows (uptrend) or lower pivot highs (downtrend)
Use lower percentile retracements (20-30th percentile) as entry opportunities in established trends
█ Usage
StatPivot offers multiple ways to integrate its statistical insights into your trading workflow:
Statistical Table Analysis: Review the comprehensive statistics displayed in the data table to understand the market's behavior. Pay particular attention to:
Average drop and rise percentages to set reasonable expectations
Standard deviation to gauge volatility
VaR95 for risk assessment
Real-time Percentile Monitoring: Watch the real-time percentile display to see where the current price movement stands within the historical distribution. This can help identify:
Extreme movements (90th+ percentile) that might indicate reversal opportunities
Typical retracements (40-60th percentile) that might continue further
Shallow pullbacks (10-30th percentile) that might represent continuation opportunities in trends
Support and Resistance Identification: Utilize the plotted pivot points as key support and resistance levels, especially when they align with statistically significant percentile ranges.
Target Price Setting: Use the expected buy and sell prices calculated from historical averages as initial targets for your trades.
Risk Management: Apply the statistical measurements like standard deviation and VaR95 to set appropriate stop loss levels that account for the market's historical volatility.
Pattern Recognition: Over time, learn to recognize when certain percentile levels consistently lead to reversals or continuations in your specific market, and develop personalized strategies based on these observations.
█ Default Settings
The default settings of StatPivot have been carefully calibrated to provide reliable statistical analysis across a variety of markets and timeframes, but understanding their effects allows for optimal customization:
Left Bars (30) and Right Bars (30): These parameters determine how pivot points are identified. With both set to 30 by default:
A pivot low must be the lowest point among 30 bars to its left and 30 bars to its right
A pivot high must be the highest point among 30 bars to its left and 30 bars to its right
Effect on performance: Larger values create fewer but more significant pivot points, reducing noise but potentially missing important market structures. Smaller values generate more pivot points, capturing more nuanced movements but potentially including noise.
Table Position (Top Right): Determines where the statistical data table appears on the chart.
Effect on performance: No impact on analytical performance, purely a visual preference.
Show Distribution Histogram (False): Controls whether the distribution histogram of drop percentages is displayed.
Effect on performance: Enabling this provides visual insight into the distribution of retracements but can clutter the chart.
Show Real-time Percentile (True): Toggles the display of real-time percentile rankings.
Effect on performance: A critical setting that enables the dynamic analysis of current price movements. Disabling this removes one of the key advantages of the indicator.
Real-time Percentile Display Mode (Label): Chooses between label display or indicator line for percentile rankings.
Effect on performance: Labels provide precise information at the current price point, while indicator lines show the evolution of percentile rankings over time.
Advanced Considerations for Settings Optimization:
Timeframe Adjustment: Higher timeframes generally benefit from larger Left/Right values to identify truly significant pivots, while lower timeframes may require smaller values to capture shorter-term swings.
Volatility-Based Tuning: In highly volatile markets, consider increasing the Left/Right values to filter out noise. In less volatile conditions, lower values can help identify more potential entry and exit points.
Market-Specific Optimization: Different markets (forex, stocks, commodities) display different retracement patterns. Monitor the statistics table to see if your market typically shows larger or smaller retracements than the current settings are optimized for.
Trading Style Alignment: Adjust the settings to match your trading timeframe. Day traders might prefer settings that identify shorter-term pivots (smaller Left/Right values), while swing traders benefit from more significant pivots (larger Left/Right values).
By understanding how these settings affect the analysis and customizing them to your specific market and trading style, you can maximize the effectiveness of StatPivot as a powerful statistical tool for identifying high-probability trading opportunities.
rizvan scalpingTitle: Rizvan Scalping Strategy – SMA + Engulfing Pattern
Description:
This scalping strategy combines the 22-period Simple Moving Average (SMA) and Engulfing Candlestick Patterns to generate trade signals.
✅ How It Works:
A Buy Signal appears when a Bullish Engulfing pattern forms below the SMA, indicating a potential upward reversal.
A Sell Signal appears when a Bearish Engulfing pattern forms above the SMA, signaling a possible downtrend.
The SMA dynamically changes color:
Green: When the trend is moving up.
Red: When the trend is moving down.
This strategy helps traders identify potential trend reversals using a combination of price action (engulfing patterns) and trend confirmation (SMA direction). Suitable for short-term scalping in trending markets.
Horizontal EMADesigned to plot a horizontal Exponential Moving Average (EMA) line on a TradingView chart. The script allows users to specify the period and source for the EMA calculation. The line remains fixed at the calculated EMA value, providing a visual reference for the trend over the specified period. The script uses version 5 of Pine Script and draws a blue horizontal line at the EMA value on the chart, updating as new data is available.
Daily Range %The Daily Range % Indicator calculates and plots a percentage of the daily range (high to low) based on a custom lookback period. It identifies outside bars from past daily data, prioritizing the most recent unbroken range. If no outside bar is found, it defaults to yesterday's range. The selected percentage of this range is then displayed on the chart, updating once per 5-minute bar (or the chosen resolution).
PierrePressure TTM Squeeze OscillatorThis indicator is a TTM Squeeze oscillator that plots the difference between the Keltner Channel width and the Bollinger Band width. When the oscillator is negative, the market is in a low-volatility "squeeze." When it turns positive, it signals that the squeeze has released, suggesting a potential breakout. The indicator also marks a bullish or bearish breakout based on the breakout candle's direction, providing a clear, concise momentum confirmation to complement your ORB strategy.
How It Works:
TTM Squeeze Oscillator:
The oscillator is calculated as the difference between the width of the Keltner Channels and the width of the Bollinger Bands.
Negative values indicate that the Bollinger Bands are inside the Keltner Channels (squeeze is on).
Positive values indicate that the squeeze has released.
Breakout Signal:
When the oscillator turns positive (i.e., a squeeze release occurs), the script checks the current candle:
Bullish Breakout: If the candle closes above its open.
Bearish Breakout: If the candle closes below its open.
A corresponding label ("Bull" or "Bear") is plotted on the chart.
Usage:
Monitor the Histogram:
Below zero: Market is in a low-volatility squeeze.
Above zero: Squeeze has released, signaling a potential breakout.
Breakout Confirmation:
Use the breakout signal (bullish or bearish) to time your entries along with your ORB strategy.
Fixed EMA/MA Trend Signal (1st Bar Only)This is a short long signal for a multi timeframe stratergy, this rule is only the requirement for 15m
Buy/Sell on Second Candle after EMA BreakoutHow to use this EMA Breakout Strategy and how it works:
This strategy can be used to scalp quick 1:1 or 2:1 trades or take longer time frame trades.
Use higher time frames that being the 1day and 1 hour to confirm the direction of the market
trend and then execute trades on the 5 min or 15 min time frame.
Based on the higher time frame analysis filter out signals on 5 or 15 min time frame based on the direction of the market. So if the market is bullish based on higher time frames put signals only to show buy signals and same for sell signals if the market is bearish.
You will get a buy signal on second candle that breaks and closes above the ema and you will get sell signals on second candles that forms and closes below the ema.
Only take trades on buy signals when there is a clear upward direction
or downward movement for sell signals.
Don't take buy or sell signals when the market is consolidating.
When taking long positions aim for previous day highs
and when taking short positions aim for previous day lows.
MACD Trend Reversal Breakout Strategyuse this script for short trade only.
please be noted that use it only in uptrend situation.
EMA Civic Signal V2This is a trend-following trading system using three EMAs, effective on M15 and M30 timeframes.
Buy/Sell on Second Candle after EMA Breakout with ExitHow to use this EMA Breakout Strategy and how it works:
This strategy can be used to scalp quick 1:1 or 2:1 trades or take longer time frame trades.
Use higher time frames that being the 1day and 1 hour to confirm the direction of the market
trend and then execute trades on the 5 min or 15 min time frame.
Based on the higher time frame analysis filter out signals on 5 or 15 min time frame based on the direction of the market. So if the market is bullish based on higher time frames put signals only to show buy signals and same for sell signals if the market is bearish.
You will get a buy signal on second candle that breaks above and retests the ema and you will get sell signals on second candles that form below the ema.
Only take trades on buy signals when there is a clear upward direction
or downward movement for sell signals.
Don't take buy or sell signals when the market is consolidating.
When taking long positions aim for previous day highs
and when taking short positions aim for previous day lows.
Distancia entre EMAs con UmbralIt's used to display the threshold between two EMAs for different assets. By having separate thresholds, you can configure:
An absolute value suitable for higher-priced assets (such as BTC)
A percentage value that will work correctly regardless of the asset price
EMA & VWAP Indicatorindicates signal ema trend confirming ema and vwap for confirmation in one indicator
it can be used for identifying the trend and help to get best analysis of chart
CZ Basic Strategy V11. Indicator Components & Features
This indicator includes:
Buy/Sell Signals using ATR-based trailing stop.
Linear Regression Candles (Optional smoothing of price data).
Market Sentiment Dashboard displaying biases across multiple timeframes.
Multiple Moving Averages (MA) with customizable settings.
2. How to Use the Indicator
A. Configuring Buy/Sell Signals
Signal Smoothing: Adjust the "Signal Smoothing" input to control signal sensitivity.
Heikin Ashi Option: Enable “Signals from Heikin Ashi Candles” if you want signals to be based on Heikin Ashi data.
ATR Period: Adjust the ATR period to fine-tune the trailing stop.
Key Value: Increases or decreases sensitivity for trade signals.
🔹 BUY Signal: Appears when the price moves above the ATR trailing stop.
🔻 SELL Signal: Appears when the price moves below the ATR trailing stop.
B. Market Sentiment Dashboard
This dashboard helps you see market trends across different timeframes (1min, 3min, 5min, etc.).
Green = Bullish trend (Upward momentum)
Red = Bearish trend (Downward momentum)
Blue = Neutral (Sideways market)
You can adjust:
Panel Position (Top, middle, or bottom of the chart)
Sentiment Colors (Customizable bullish/bearish colors)
Label Size (Adjust text size for better visibility)
C. Customizing Moving Averages
The script includes four customizable moving averages:
Choose the MA Type: SMA, EMA, WMA, VWMA, etc.
Adjust the Length: Shorter MAs react faster; longer ones smooth out trends.
Set the Color: Differentiate each MA visually.
You can enable or disable each MA as needed.
3. Alerts & Notifications
The script provides buy/sell alerts whenever a new signal is detected.
Alerts are also set for market sentiment changes on multiple timeframes.
To activate:
Go to Alerts in TradingView.
Select "CZ Basic Strategy Signal" to get notified of buy/sell conditions.
Set alerts for sentiment shifts in different timeframes.
4. Recommended Trading Approach
Trend Confirmation: Use MAs and sentiment dashboard to validate trades.
Avoid False Signals: Increase the ATR period for better filtering.
Timeframe Selection: The strategy works on all timeframes but is best tested on 15m, 1H, and 4H.
5. Summary
✅ Use Buy/Sell signals to identify trade entries.
✅ Monitor the Market Sentiment Dashboard for trend direction across timeframes.
✅ Utilize customizable Moving Averages for trend confirmation.
✅ Set up alerts to receive real-time notifications of trade opportunities.
Engulfing Candles with WickThis is just simply Engulfing Candles but including the wick as well, so the entire previous candle is engulfed.
VuManChu B DivergencesThis will be a comprehensive metric for ai analysis, now in its first version.
VolumeThis volume indicator is a customizable tool designed to help traders analyze volume trends effectively. It highlights key metrics such as the average dollar volume, current dollar volume, highest up volume, rising volume, and falling volume in reference to the 50-day moving average. Users can set predetermined color schemes based on customizable volume increase thresholds, allowing for enhanced visual clarity and improved decision-making in trading strategies.
Hammer & Shooting Star Alerts (Large Markers)Hammer
Small body (Open-Close difference is small).
Long lower wick (Lower Wick > 2 × Body).
Upper wick is small (Upper Wick < Body).
Bullish or bearish hammer.
Shooting Star
Small body (Open-Close difference is small).
Long upper wick (Upper Wick > 2 × Body).
Lower wick is small (Lower Wick < Body).
Bullish or bearish shooting star.