Natural Gas 1H EMA-SMA StrategyKey Fixes & Explanation
✅ Combined SMA & EMA Conditions:
You can now trigger a long trade if either the EMA or SMA condition is met.
If you want only one, use longCondition1 (EMA) or longCondition2 (SMA).
Educational
ICT Breakers (BOS / MSS - Market Structure) [ICTProTools]The Breakers (Market Structure) indicator is designed to help traders identify true breaker structures , a key concept in Inner Circle Trader (ICT) methodology. In market structure, Breakers represent powerful shifts where a key high or low is broken, leading to a reversal in market direction. Most tools misinterpret structure shifts, using internal structure , leading to fake breakouts. This tool solves that problem by filtering out false signals , providing clear & structured insights , all with multi-timeframe compatibility.
💎 Key Features
⚡️ Breakers in action
The indicator shows the structure following ICT instructions. A breaker is defined by two lines:
The first line confirms the previous trend (it could be interpreted as a BOS).
The second line highlights the moment price breaks structure (with candle body or wick based on your chosen settings), signaling a shift in trend direction (like an MSS).
Furthermore, it’s important to note that a breaker not only shows the structure, but also defines a potential Point of Interest (POI), an area where price may retrace before continuing its trend.
Here, we can observe two clear structure shifts.
On the far left, the market was in a bearish trend, illustrated by the first visible (dotted and red) line. Shortly after, the second (solid and green) line appears, showing a break that initiates a new bullish trend.
This upward movement continues, with the last confirmation marked by a top structure line. And finally, the structure is broken once again indicating a transition back into a bearish trend.
💪 Real Structure with True Highs / Lows
Unlike many indicators that detect internal breakouts , this tool follows ICT’s true market structure rules .
In a bearish trend , a bullish breaker is only confirmed when the high that created the low is broken , and conversely for a bullish scenario.
Fake breakouts are ignored, preventing misleading signals.
In the image above, the white breakout is correctly ignored by the indicator, as it doesn't align with ICT’s structural rules. That white high is simply part of the internal structure, not the true swing point. Instead, the green line highlights the key level that truly matters, the one whose rupture would have confirmed a real change in market structure.
🔔 Smart Alerts for Structure Updates
Stay one step ahead with customizable alerts designed to notify you instantly when market structure changes occur.
Get notified for BOS (Continuation) and / or MSS (Breaker) events.
Set alerts for bullish , bearish , or both directions.
Choose between once or repeated alerts , based on your strategy.
This feature allows traders to remain focused and reactive , even when monitoring multiple markets.
In the alert settings, select which structure shifts you want to be notified of. Whether you're a scalper or a swing trader, the alerts keep you connected to key moments without needing to constantly monitor the chart.
⏳ Multi-Timeframe Structure
All features of the indicator are fully compatible with higher timeframes .
Get a broader view of market structure without switching timeframes.
Monitor higher timeframe structures and receive alerts, all without leaving your analysis chart .
In this example, the market structure of the 30m timeframe is displayed while on a 5m chart, providing a clearer perspective.
✨ Customization & User Control
Make it yours! The indicator allows full customization:
Swing bars (to confirm high / low)
Select your mode for Breakers (MSS) , using the candle body only or body / wick
Line style (type, width, color)
Choice of displayed timeframe
Activate any alert , with the frequency you want
🎯 Conclusion
✅ Avoid false signals by focusing on true ICT Breakers
✅ Smart alerts to never miss a structural shift
✅ Multi-timeframe support for enhanced analysis
✅ Clean & professional design for an optimal trading experience
Trade size calculatorOverview
The Trade Size Calculator helps traders determine optimal trade sizes based on risk management principles. It calculates the number of shares to buy, stop-loss levels, and target prices while analyzing market trends and volatility.
How It Works
Risk & Allocation: Users input their account size, risk percentage per trade, and allocation percentage to determine capital exposure. ATR-based stop-loss can be enabled for volatility-adjusted risk management.
Market Trend Detection: Uses 9 & 21 EMA to identify short-term trend direction. Bollinger Bands and ATR help detect consolidation phases (low volatility).
Trade Calculations: Computes position size, stop-loss, shares to buy, and target price (2:1 Risk-Reward Ratio).
On-Chart Table: Displays key trading metrics:
Current Price
Shares to Buy
Stop-Loss Price
Target Price (2:1 RRR)
Short-Term Trend
How to Use
Add to Chart: Paste this script into TradingView's Pine Script Editor and click Add to Chart.
Adjust Settings: Modify account size, risk percentage, and ATR stop-loss multiplier as needed.
Use the Table Data: Follow the trade size, stop-loss, target price, and trend indicator to plan trades effectively.
IU Bigger than range strategyDESCRIPTION
IU Bigger Than Range Strategy is designed to capture breakout opportunities by identifying candles that are significantly larger than the previous range. It dynamically calculates the high and low of the last N candles and enters trades when the current candle's range exceeds the previous range. The strategy includes multiple stop-loss methods (Previous High/Low, ATR, Swing High/Low) and automatically manages take-profit and stop-loss levels based on user-defined risk-to-reward ratios. This versatile strategy is optimized for higher timeframes and assets like BTC but can be fine-tuned for different instruments and intervals.
USER INPUTS:
Look back Length: Number of candles to calculate the high-low range. Default is 22.
Risk to Reward: Sets the target reward relative to the stop-loss distance. Default is 3.
Stop Loss Method: Choose between:(Default is "Previous High/Low")
- Previous High/Low
- ATR (Average True Range)
- Swing High/Low
ATR Length: Defines the length for ATR calculation (only applicable when ATR is selected as the stop-loss method) (Default is 14).
ATR Factor: Multiplier applied to the ATR to determine stop-loss distance(Default is 2).
Swing High/Low Length: Specifies the length for identifying swing points (only applicable when Swing High/Low is selected as the stop-loss method).(Default is 2)
LONG CONDITION:
The current candle’s range (absolute difference between open and close) is greater than the previous range.
The closing price is higher than the opening price (bullish candle).
SHORT CONDITIONS:
The current candle’s range exceeds the previous range.
The closing price is lower than the opening price (bearish candle).
LONG EXIT:
Stop-loss:
- Previous Low
- ATR-based trailing stop
- Recent Swing Low
Take-profit:
- Defined by the Risk-to-Reward ratio (default 3x the stop-loss distance).
SHORT EXIT:
Stop-loss:
- Previous High
- ATR-based trailing stop
- Recent Swing High
Take-profit:
- Defined by the Risk-to-Reward ratio (default 3x the stop-loss distance).
ALERTS:
Long Entry Triggered
Short Entry Triggered
WHY IT IS UNIQUE:
This strategy dynamically adapts to different market conditions by identifying candles that exceed the previous range, ensuring that it only enters trades during strong breakout scenarios.
Multiple stop-loss methods provide flexibility for different trading styles and risk profiles.
The visual representation of stop-loss and take-profit levels with color-coded plots improves trade monitoring and decision-making.
HOW USERS CAN BENEFIT FROM IT:
Ideal for breakout traders looking to capitalize on momentum-driven price moves.
Provides flexibility to customize stop-loss methods and fine-tune risk management parameters.
Helps minimize drawdowns with a strong risk-to-reward framework while maximizing profit potential.
Higher Highs and Lower Lows Strategy with RSI Filtergives buys sell signals on basis of charts hh ll price action with the help of rsi
Trendline Breaks with Multi Fibonacci Supertrend StrategyTMFS Strategy: Advanced Trendline Breakouts with Multi-Fibonacci Supertrend
Elevate your algorithmic trading with institutional-grade signal confluence
Strategy Genesis & Evolution
This advanced trading system represents the culmination of a personal research journey, evolving from my custom " Multi Fibonacci Supertrend with Signals " indicator into a comprehensive trading strategy. Built upon the exceptional trendline detection methodology pioneered by LuxAlgo in their " Trendlines with Breaks " indicator, I've engineered a systematic framework that integrates multiple technical factors into a cohesive trading system.
Core Fibonacci Principles
At the heart of this strategy lies the Fibonacci sequence application to volatility measurement:
// Fibonacci-based factors for multiple Supertrend calculations
factor1 = input.float(0.618, 'Factor 1 (Weak/Fibonacci)', minval = 0.01, step = 0.01)
factor2 = input.float(1.618, 'Factor 2 (Medium/Golden Ratio)', minval = 0.01, step = 0.01)
factor3 = input.float(2.618, 'Factor 3 (Strong/Extended Fib)', minval = 0.01, step = 0.01)
These precise Fibonacci ratios create a dynamic volatility envelope that adapts to changing market conditions while maintaining mathematical harmony with natural price movements.
Dynamic Trendline Detection
The strategy incorporates LuxAlgo's pioneering approach to trendline detection:
// Pivotal swing detection (inspired by LuxAlgo)
pivot_high = ta.pivothigh(swing_length, swing_length)
pivot_low = ta.pivotlow(swing_length, swing_length)
// Dynamic slope calculation using ATR
slope = atr_value / swing_length * atr_multiplier
// Update trendlines based on pivot detection
if bool(pivot_high)
upper_slope := slope
upper_trendline := pivot_high
else
upper_trendline := nz(upper_trendline) - nz(upper_slope)
This adaptive trendline approach automatically identifies key structural market boundaries, adjusting in real-time to evolving chart patterns.
Breakout State Management
The strategy implements sophisticated state tracking for breakout detection:
// Track breakouts with state variables
var int upper_breakout_state = 0
var int lower_breakout_state = 0
// Update breakout state when price crosses trendlines
upper_breakout_state := bool(pivot_high) ? 0 : close > upper_trendline ? 1 : upper_breakout_state
lower_breakout_state := bool(pivot_low) ? 0 : close < lower_trendline ? 1 : lower_breakout_state
// Detect new breakouts (state transitions)
bool new_upper_breakout = upper_breakout_state > upper_breakout_state
bool new_lower_breakout = lower_breakout_state > lower_breakout_state
This state-based approach enables precise identification of the exact moment when price breaks through a significant trendline.
Multi-Factor Signal Confluence
Entry signals require confirmation from multiple technical factors:
// Define entry conditions with multi-factor confluence
long_entry_condition = enable_long_positions and
upper_breakout_state > upper_breakout_state and // New trendline breakout
di_plus > di_minus and // Bullish DMI confirmation
close > smoothed_trend // Price above Supertrend envelope
// Execute trades only with full confirmation
if long_entry_condition
strategy.entry('L', strategy.long, comment = "LONG")
This strict requirement for confluence significantly reduces false signals and improves the quality of trade entries.
Advanced Risk Management
The strategy includes sophisticated risk controls with multiple methodologies:
// Calculate stop loss based on selected method
get_long_stop_loss_price(base_price) =>
switch stop_loss_method
'PERC' => base_price * (1 - long_stop_loss_percent)
'ATR' => base_price - long_stop_loss_atr_multiplier * entry_atr
'RR' => base_price - (get_long_take_profit_price() - base_price) / long_risk_reward_ratio
=> na
// Implement trailing functionality
strategy.exit(
id = 'Long Take Profit / Stop Loss',
from_entry = 'L',
qty_percent = take_profit_quantity_percent,
limit = trailing_take_profit_enabled ? na : long_take_profit_price,
stop = long_stop_loss_price,
trail_price = trailing_take_profit_enabled ? long_take_profit_price : na,
trail_offset = trailing_take_profit_enabled ? long_trailing_tp_step_ticks : na,
comment = "TP/SL Triggered"
)
This flexible approach adapts to varying market conditions while providing comprehensive downside protection.
Performance Characteristics
Rigorous backtesting demonstrates exceptional capital appreciation potential with impressive risk-adjusted metrics:
Remarkable total return profile (1,517%+)
Strong Sortino ratio (3.691) indicating superior downside risk control
Profit factor of 1.924 across all trades (2.153 for long positions)
Win rate exceeding 35% with balanced distribution across varied market conditions
Institutional Considerations
The strategy architecture addresses execution complexities faced by institutional participants with temporal filtering and date-range capabilities:
// Time Filter settings with flexible timezone support
import jason5480/time_filters/5 as time_filter
src_timezone = input.string(defval = 'Exchange', title = 'Source Timezone')
dst_timezone = input.string(defval = 'Exchange', title = 'Destination Timezone')
// Date range filtering for precise execution windows
use_from_date = input.bool(defval = true, title = 'Enable Start Date')
from_date = input.time(defval = timestamp('01 Jan 2022 00:00'), title = 'Start Date')
// Validate trading permission based on temporal constraints
date_filter_approved = time_filter.is_in_date_range(
use_from_date, from_date, use_to_date, to_date, src_timezone, dst_timezone
)
These capabilities enable precise execution timing and market session optimization critical for larger market participants.
Acknowledgments
Special thanks to LuxAlgo for the pioneering work on trendline detection and breakout identification that inspired elements of this strategy. Their innovative approach to technical analysis provided a valuable foundation upon which I could build my Fibonacci-based methodology.
This strategy is shared under the same Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license as LuxAlgo's original work.
Past performance is not indicative of future results. Conduct thorough analysis before implementing any algorithmic strategy.
US Day Session Previous OHLCThis indicator is designed for US Market,
which shows the previous day session OHLC.
** Work ONLY in 1/3/5/15/30 minutes timeframe
** Default: Daylight Saving Time (DST)
** Untick the DST checkbox for Winter Time
Quantum Motion Oscillator-QMO (TechnoBlooms)Quantum Motion Oscillator (QMO) is a momentum indicator designed for traders who demand precision. Combining multi-timeframe weighted linear regression with EMA crossovers, QMO offers a dynamic view of market momentum, helping traders anticipate trend shifts with greater accuracy.
This oscillator is inspired by quantum mechanics and wave theory, where market movement is seen as a series of probabilistic waves rather than rigid structures.
The histogram is plotted in proportion to the price movement of the candlesticks.
KEY FEATURES
1. Multi-Timeframe Histogram - Integrates 1 to 5 weighted linear regression averages, reducing lag while maintaining accuracy.
2. EMA Crossover Signal - Uses a Short and Long EMA to confirm trend shifts with minimal noise.
3. Adaptive Trend Analysis - Self-adjusting mechanics make QMO effective in both ranging and trending markets.
4. Scalable for Different Trading Styles - Works seamlessly for scalping, intraday, swing and position trading.
ADVANCED PROFESSIONAL INSIGHTS
1. Wave Dynamics and Market Flow - Inspired by wave mechanics, QMO reflects the energy accumulation and dissipation in price movements.
Expanding histogram waves = Strong momentum surge
Contracting waves = Momentum weakening, potential reversal zone.
2. Liquidity and Order Flow Applications - QMO works well alongside liquidity concepts and smart money techniques:
Combine with Fair Value Gaps & Order Blocks -> Enter when QMO signals align with liquidity zones.
Avoid False Moves - If price sweeps liquidity, but QMO momentum diverges, it is a sign of potential smart money manipulation.
Lets be richMy indicator created in educational purpose. I combine several indicators from luxAlgo to one. I use this indicator for sharing to my api thats why i need to make it public
Ghost MA + Momentum + Fib TP/SL + DashboardSOP
1. Trend:
🟢 UPTREND – Price is forming higher highs and higher lows.
🔴 DOWNTREND – Price is forming lower highs and lower lows.
⚪️ SIDEWAYS or Wait – No clear structure, wait for confirmation.
✅ This helps determine your bias: Only Buy in uptrend, only Sell in downtrend.
Ultimate ICT + RTM + EMA Strategy (MTF + Volume + Alerts)MP strategy
This code is made by combining several Moving Average indicators and ICT and RTM styles.
Scalping Strategy by danzysScript Explanation:
Calculating Moving Averages (SMA):
short_sma: The short-term moving average (9 candles).
long_sma: The long-term moving average (21 candles).
Calculating the RSI Indicator:
rsi: Standard RSI using 14 candles.
Entry Conditions:
Long (Buy): The price should cross above the short-term SMA from below, and the RSI should be below 30 (indicating an oversold market).
Short (Sell): The price should cross below the short-term SMA from above, and the RSI should be above 70 (indicating an overbought market).
Stop Loss and Take Profit:
Stop Loss is set to 0.5% below the entry price for long positions, and 0.5% above the entry price for short positions.
Take Profit is set to 1% above the entry price for long positions, and 1% below the entry price for short positions.
Plotting the SMAs on the Chart:
Both the short-term and long-term SMA levels are plotted on the chart to visually monitor the positions.
Bidirectional Credit Spread StrategyTrend Spotter – Bidirectional Credit Spread Strategy
🔍 Identify Market Trends with Confidence
Trend Spotter is a powerful trading strategy designed to help traders pinpoint high-conviction trade opportunities by analyzing key market indicators. Instead of relying on a single signal, this strategy sequentially checks multiple conditions to confirm market direction before entering a trade.
How It Works:
✅ Market Sentiment Check – You manually assess whether the broader market is favorable for trading.
✅ Trend Confirmation Using Multiple Indicators:
1️⃣ VOLD Ratio – Measures market volume trends.
2️⃣ Advance-Decline Line (ADD) – Gauges overall market strength.
3️⃣ TICK Index – Tracks intraday market momentum.
4️⃣ Bollinger Band Squeeze (BB/KC) – Detects periods of low volatility before potential breakouts.
5️⃣ VWAP (Volume-Weighted Average Price) – Confirms trade direction.
6️⃣ ATR Stop Loss – Helps set dynamic risk levels.
7️⃣ MACD Crossover – Confirms momentum shifts.
Entry & Exit Rules:
📈 Trade Entries – The strategy automatically enters long (PUT) or short (CALL) positions based on user-defined account allocation once enough signals align.
📉 Trade Exits – Positions close based on:
✔ Target Profit – % increase/decrease in value or key indicator levels.
✔ Trailing Stop – Locks in profits dynamically.
✔ Stop Loss – % decrease/increase, VWAP breach, or ATR signal.
What You’ll See on the Chart:
🔢 Indicator Count – Instead of cluttering the chart with multiple indicators, a number is displayed below each candlestick, showing how many conditions are met.
🚀 Trade Signals – Buy/Sell triggers appear when enough criteria align.
📊 Profit & Stop Levels – Clearly marked target profit and stop-loss zones.
📌 Real-Time Market Data Box – Displays live values for VOLD, TICK, and ADD Line.
Who This Is For:
✅ Traders who want data-backed confirmations before entering trades.
✅ Those looking for automated trade execution based on market conditions.
✅ Anyone wanting clear, uncluttered signals for decision-making.
Important Disclaimer:
⚠️ For Research Purposes Only – This script is designed for educational and research purposes. It is not financial advice. Traders should conduct their own analysis and trade at their own risk. I am not responsible for any financial decisions based on this script.
🔎 Tags: #TrendSpotter #OptionsTrading #TradingStrategy #MACD #VWAP #BollingerBands #Volatility #MarketMomentum #ATR #DayTrading #SwingTrading
Moving Average Exponential (5, 8, 21 & 34)The Moving Average Exponential (5, 8, 21 & 34) indicator is a powerful tool for traders who want to visualize multiple Exponential Moving Averages (EMAs) on their charts, calculated on the daily timeframe for consistency across all chart timeframes. This indicator plots the 5 EMA, 8 EMA, 21 EMA, and 34 EMA, with customizable colors, projection lines, and color gradients between consecutive EMAs. It also includes labels for the EMA values and an optional smoothing MA with Bollinger Bands for additional analysis.
Designed for both intraday and swing traders, this indicator ensures that the EMA values remain consistent with the daily timeframe, even when viewed on lower timeframes (e.g., 1-minute, 5-minute, 1-hour). The projection lines and gradients provide a visual forecast of the EMA levels into the future, making it easier to identify potential support and resistance zones.
Features
Daily Timeframe EMAs: Calculates the 5 EMA, 8 EMA, 21 EMA, and 34 EMA using daily timeframe data, ensuring consistency across all chart timeframes.
Customizable Colors: Each EMA can be assigned a unique color through the settings, allowing for easy differentiation.
Projection Lines: Draws dashed horizontal lines for each EMA at their last confirmed daily values, extending 100 bars into the future for a visual forecast.
Color Gradients:
Displays customizable color gradients between consecutive EMAs (5 to 8, 8 to 21, and 21 to 34), with adjustable transparency.
The gradient between the 21 EMA and 34 EMA includes a background text displaying the 34 EMA value, blended with the gradient color for a seamless look.
Labels:
Shows the current values of the 5 EMA, 8 EMA, and 21 EMA as labels above the last bar, with background colors matching the user-selected EMA colors.
The 34 EMA value is displayed as background text within the 21 EMA to 34 EMA gradient area, avoiding clutter above the chart.
Smoothing MA and Bollinger Bands:
Optionally applies a smoothing Moving Average (MA) to the 8 EMA, with choices including SMA, EMA, SMMA (RMA), WMA, VWMA, or SMA with Bollinger Bands.
Bollinger Bands can be added around the smoothing MA, with adjustable standard deviation multiplier.
Settings
EMA Settings:
Length EMA 5/8/21/34: Set the length for each EMA (default: 5, 8, 21, 34).
Source EMA 5/8/21/34: Choose the data source for each EMA (default: close).
Offset EMA 5/8/21/34: Adjust the offset for each EMA plot (default: 0).
EMA 5/8/21/34 Color: Select the color for each EMA line (default: green, blue, red, purple).
Gradient Settings:
Use Color Gradient Between 5 & 8 EMAs / 8 & 21 EMAs / 21 & 34 EMAs: Toggle the gradient display for each EMA range (default: enabled).
Gradient Color (5 & 8 EMAs / 8 & 21 EMAs / 21 & 34 EMAs): Choose the gradient color for each range (default: orange, purple, teal).
Gradient Transparency (5 & 8 EMAs / 8 & 21 EMAs / 21 & 34 EMAs): Adjust the transparency of each gradient (default: 90, range: 0 to 100).
Smoothing:
Type: Select the type of smoothing MA to apply to the 8 EMA (options: None, SMA, SMA + Bollinger Bands, EMA, SMMA (RMA), WMA, VWMA; default: None).
Length: Set the length of the smoothing MA (default: 14).
BB StdDev: Adjust the standard deviation multiplier for Bollinger Bands (default: 2.0, only applies if "SMA + Bollinger Bands" is selected).
Usage
Add the Indicator: Add the "Moving Average Exponential (5, 8, 21 & 34)" indicator to your chart in TradingView.
Customize Settings:
Adjust the EMA lengths, sources, offsets, and colors to suit your trading strategy.
Enable or disable the color gradients and customize their colors and transparency for better visualization.
Optionally enable the smoothing MA and Bollinger Bands for additional analysis.
Interpret the Indicator:
EMA Lines: The 5 EMA, 8 EMA, 21 EMA, and 34 EMA are plotted on the chart, calculated using daily timeframe data. On lower timeframes, these lines will appear flat within each day, updating with new daily bars.
Projection Lines: Dashed lines extend 100 bars into the future, showing the last confirmed daily EMA values, useful for identifying potential support and resistance levels.
Gradients: Color gradients between consecutive EMAs highlight the range between them, with the 34 EMA value displayed as background text within the 21 EMA to 34 EMA gradient.
Labels: The 5 EMA, 8 EMA, and 21 EMA values are shown as labels above the last bar, while the 34 EMA value is integrated into the gradient area.
Smoothing MA and Bollinger Bands: If enabled, the smoothing MA and Bollinger Bands are applied to the 8 EMA, providing additional context for trend analysis.
Notes
The indicator is optimized for consistency across timeframes by using daily timeframe data for all EMA calculations.
The projection lines and gradients extend 100 bars into the future, which may need adjustment depending on your chart’s timeframe and zoom level.
The background text for the 34 EMA value blends with the gradient color for a clean look, but you can adjust the gradient transparency to make the text more or less prominent.
Author
Rajesh Muraleedharan
HK Futures Day Session Previous OHLCSpecially designed for Hong Kong HSI Futures.
This indicator shows the Previous Day OHLC within the Day Trading Session,
which means it only extract data from HKT 09:15-16:29.
Combined Up down with volumeDescription of the Script: "Combined Up Down with Volume"
This Pine Script v5 indicator is designed to analyze price movements, volume conditions, and trend direction using moving averages (MA). It overlays key indicators on the chart to help traders identify potential signals based on price momentum and volume levels.
Key Features & Functionality:
1. User Inputs
use → Enables or disables the combination of momentum and volume conditions.
vol → Defines the minimum volume threshold (default: 1,000,000).
per → Specifies the minimum price change percentage (default: 5%).
2. Momentum & Volume Conditions
Rate of Change (ROC) Check:
Uses ta.roc(close, 1), measuring the percentage change in price over one bar.
If the absolute value of ROC is greater than or equal to the input percentage, it triggers a signal.
Volume Check:
If the volume of the current candle is greater than or equal to the specified threshold, it triggers a signal.
Plot Signals (Circles Below Candles):
If use = false:
ROC-based condition → Plots a circle below bars where the price change meets the threshold.
Volume-based condition → Plots a circle for bars where the volume exceeds the threshold.
If use = true:
Plots a small purple circle only when both conditions (ROC & Volume) are met.
3. Moving Averages (Trend Analysis)
20-period SMA (ma20) → Short-term trend indicator.
50-period SMA (ma50) → Medium-term trend indicator.
Color-coded 20-period SMA:
If the SMA is rising for 3 bars, it is Green (Uptrend).
If the SMA is falling for 3 bars, it is Red (Downtrend).
Otherwise, it is Gray (Neutral/Sideways market).
Both 20 and 50 SMAs are plotted on the chart, helping traders identify crossovers and overall trend direction.
Use Case:
This indicator helps traders spot: ✅ Strong price movements (+/- 5%) along with high volume, which could indicate breakouts or reversals.
✅ Trends & momentum shifts using color-coded moving averages.
✅ Potential trading opportunities when volume and momentum align.
HALO Oracle - CoffeeKillerHALO Oracle - CoffeeKiller Indicator Guide
Hello traders! Today I'm going to walk you through how to use the HALO Oracle indicator, which is a powerful tool for identifying market trends and potential reversal points.
Basic Overview
The HALO Oracle is a trend-following indicator that combines Heiken Ashi candles with golden ratio calculations to help you identify market direction and key price levels.
Main Features
1. Time Settings
- You have two modes for time analysis:
- Normal Mode: The indicator analyzes each individual candle on your chart
- Custom Resolution Mode: You can use a different timeframe for calculations than what's shown on your chart
* For example, you could view a 5-minute chart but have the indicator calculate based on 1-hour data
* Available timeframes include Monthly (M), Weekly (W), Daily (D), 4 Hours (240), 1 Hour (60), etc.
2. Visual Components
Bands and Fill
- Two main bands: green and red
- The space between these bands is filled with colors:
- Green fill indicates a bullish trend
- Red fill indicates a bearish trend
- You can adjust the thickness of the bands and the transparency of the fill colors
Marker Lines
- High Marker Line (magenta): Tracks the highest opening price during bullish trends
- Low Marker Line (cyan): Tracks the lowest opening price during bearish trends
- These lines create a "zone" that helps identify potential support and resistance levels
- Diamond markers appear when the trend resets
Background Fill
- Optional full-chart background coloring
- Green background for bullish trends
- Red background for bearish trends
How to Read the Indicator
1. **Trend Identification**
- Green fill/background indicates a bullish trend
- Red fill/background indicates a bearish trend
- Watch for color changes as they signal potential trend changes
2. **Support and Resistance Levels**
- The bands create dynamic support and resistance zones
- Price tends to respect these levels during strong trends
- Watch for price reactions when it touches either band
3. **Marker Lines**
- These act as historical support/resistance levels
- The space between marker lines creates a "zone" where price might find support or resistance
- Diamond shapes appear when these levels reset, indicating potential trend changes
Trading Tips
1. **Trend Trading**
- Trade in the direction of the background color
- Look for pullbacks to the support/resistance bands in the trend direction
- Use marker lines as potential entry/exit points
2. **Reversal Signals**
- Watch for diamond markers as they indicate trend resets
- Confirm reversals with price action and other indicators
- Pay attention to how price reacts around marker lines
3. **Timeframe Analysis**
- Use custom resolution for a broader market perspective
- Higher timeframes for overall trend
- Lower timeframes for entry/exit timing
Customization Options
1. **Display Settings**
- Toggle bands and fill visibility
- Adjust line thickness
- Customize colors for all components
2. **Background Options**
- Toggle full-chart background
- Adjust background transparency
3. **Marker Line Settings**
- Toggle visibility of marker lines
- Toggle reset diamonds
- Customize marker line colors
Best Practices
1. Start with the default settings to understand how the indicator behaves
2. Gradually customize colors and settings to match your trading style
3. Use multiple timeframes to confirm trends
4. Don't trade solely based on the indicator - combine it with price action and other tools
5. Pay special attention to areas where marker lines and bands converge
6. Watch for diamond markers as they often precede significant moves
Remember, this indicator works best when used as part of a complete trading strategy, not in isolation.
The information and signals provided by this indicator are intended solely for educational and informational purposes. They do not constitute financial, legal, or any other professional advice. Past performance is not indicative of future results. Trading and investing involve significant risk, and it is strongly recommended that you use this indicator in conjunction with other analysis tools and indicators. Always consult with a qualified financial advisor or professional before making any investment decisions. The creators and distributors of this indicator expressly disclaim any liability for any losses incurred through the use of the indicator or reliance on the information provided. Use at your own risk.
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
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.
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