Machine Learning SupertrendThe Machine Learning Supertrend is an advanced trend-following indicator that enhances the traditional Supertrend with Gaussian Process Regression (GPR) and kernel-based learning. Unlike conventional methods that rely purely on historical ATR values, this indicator integrates machine learning techniques to dynamically estimate volatility and forecast future price movements, resulting in a more adaptive and robust trend detection system.
At the core of this indicator lies Gaussian Process Regression (GPR), which utilizes a Radial Basis Function (RBF) kernel to model price distributions and anticipate future trends. Instead of simply looking at past price action, it constructs a kernel matrix, enabling a probabilistic approach to price forecasting. This allows the indicator to not only detect current trends but also project potential trend reversals with greater accuracy.
By applying machine learning to ATR estimation, the ML Supertrend dynamically adjusts its thresholds based on predicted values rather than a fixed multiplier. This makes the trend signals more responsive to market conditions, reducing false signals and minimizing whipsaws often seen with traditional Supertrend indicators. The upper and lower bands are no longer static but evolve based on the underlying price structure, improving the reliability of trend shifts.
When the price crosses these adaptive levels, the indicator detects a trend change and plots it accordingly. Green signifies a bullish trend, while red indicates a bearish one. Alerts can also be triggered when the trend shifts, allowing traders to react quickly to potential reversals.
What makes this approach powerful is its ability to adapt to different market conditions. Traditional ATR-based methods use fixed parameters that might not always be optimal, whereas this ML-driven Supertrend continuously refines its estimations based on real-time data. The result is a more intelligent, less lagging, and highly adaptive trend-following tool.
This indicator is particularly useful for traders looking to enhance trend-following strategies with AI-driven insights. It reduces noise, improves signal reliability, and even offers a degree of trend forecasting, making it ideal for those who want a more advanced and dynamic alternative to standard Supertrend indicators.
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, and past performance is not indicative of future results. Trading involves risk, and users should conduct their own research and use proper risk management before making investment decisions.
Indicators and strategies
SmoothBrain Deviation BandsSmoothBrain Deviation Bands & Status Overlay
This indicator implements Dr. Sebastian Purcell's (aka SmoothBrain) 20/40 and 30/60 rules for crypto trading relative to the 200-day SMA. The indicator includes both deviation bands and a status overlay to help traders identify potential market tops.
Key Features:
Tracks price deviation from 200-day SMA
Large coin thresholds: 20% (warning) and 40% (critical)
Small coin thresholds: 30% (warning) and 60% (critical)
Real-time status overlay with color-coded alerts
Percentage deviation display
How to Use:
Large coins: Consider avoiding entries above 20% and expect potential tops above 40%
Small coins: Consider avoiding entries above 30% and expect potential tops above 60%
Use in conjunction with other technical analysis tools for best results
Credit: Original concept by Dr. Sebastian Purcell (SmoothBrain) as part of his Bubble Trading strategy .
Specta2 Bull SupportOverview
The Specta2 Strategy is a comprehensive trading system designed to generate buy and sell signals based on a combination of technical indicators: Bollinger Bands, Moving Average Convergence Divergence (MACD), Relative Strength Index (RSI), and Average True Range (ATR). It incorporates advanced risk management techniques, including ATR-based stop loss and take profit levels, as well as a cooldown mechanism to prevent rapid re-entries after exiting a position.
Target markets
The Specta2 Strategy is best suited for bullish market instruments that exhibit strong upward trends and consistent momentum. Ideal tickers typically include:
Large-Cap Stocks: Companies with substantial market capitalization and liquidity, such as those in the S&P 500.
High-Volume ETFs: Exchange-Traded Funds that track major indices or sectors.
Forex Pairs: Major currency pairs like EUR/USD, GBP/USD, which generally exhibit strong trends.
Commodities: Trending commodities like Gold, Oil, which can experience sustained movements.
Market Behaviors
This strategy thrives under the following market conditions:
Bullish Trends: Clearly defined upward trends where prices consistently make higher highs and higher lows.
High Volatility Periods: Times when ATR indicates increased volatility, allowing ATR-based stop loss and take profit levels to adapt effectively.
Strong Momentum: Situations where indicators like MACD and RSI confirm robust upward momentum, reducing the likelihood of false signals.
Low to Moderate Sideways Movement: While not optimal, the strategy can handle some consolidation as long as overarching bullish momentum is present.
Final Note
The Specta2 Strategy is a robust system that leverages multiple technical indicators to generate trading signals while incorporating essential risk management tools. By understanding its components and carefully configuring its parameters, users can adapt the strategy to various market conditions and trading styles. Continuous monitoring, backtesting, and optimization are recommended to ensure sustained performance and alignment with individual trading goals.
200-Week EMA % Difference200-Week EMA Percentage Difference Indicator – Understanding Market Stretch & Reversion
What This Indicator Does
Even if an individual stock is delivering strong earnings and solid fundamentals, it is still influenced by overall market sentiment. When the broader market begins reverting to its long-term mean, stocks—no matter how strong—are often pulled down along with it. Unrealized gains can erode if one ignores these macro movements.
The 200-Week EMA Percentage Difference indicator measures how far the price of an asset or index has moved away from its 200-week Exponential Moving Average (EMA) in percentage terms. This provides a reliable gauge of whether the market is overstretched (overbought) or pulling back to support (oversold) relative to a long-term trend.
How It Helps Investors
Identifying Market Extremes:
When the indicator moves into the 50-80% range, historical trends show that broad-based indices like BSE Smallcap, Nifty 500, Nifty Microcap, and Nifty Smallcap 250 have often experienced corrections.
This suggests that the market may be overextended, and investors should exercise caution.
Spotting Support Zones:
Past data indicates that when the percentage difference falls back to around 30%, the market often finds a new support level, leading to fresh buying opportunities.
This can help long-term investors identify favorable entry points.
Mean Reversion & Market Cycles:
The indicator essentially measures how far these indices have stretched from their long-term mean (200-week EMA).
Extreme deviations from the EMA often result in mean reversion, where prices eventually return to more sustainable levels.
How to Use It in Broad-Based Indices
Above 50-80% → Caution Zone: Historically associated with market tops or overheated conditions.
Around 30% → Support Zone: A potential level where corrections stabilize and new market uptrends begin.
By applying this indicator to indices like BSE Smallcap, Nifty 500, Nifty Microcap, and Nifty Smallcap 250, investors can gauge market strength, anticipate corrections, and position themselves strategically for long-term opportunities.
Stunden/Halbstunden-WarnungTradingview does not enable time-based alarms. However, the indicator can be used to remind you five minutes before a new hour and five minutes before a new half hour that a new hour or half hour is about to begin. Simply activate the warning in the indicator and then create an alarm for the indicator.
NDTECH Tool-N1CPR (Central Pivot Range) is a popular trading indicator used in technical analysis to identify potential support and resistance levels. It is based on the concept of pivot points, which are calculated using the high, low, and close prices of the previous trading session. The CPR indicator provides three key levels: the Central Pivot (P), the Bottom Central Pivot (BC), and the Top Central Pivot (TC).
Key Components of CPR:
Central Pivot (P): This is the primary level and is calculated as the average of the high, low, and close prices of the previous session.
P=High+Low+Close3
P=3High+Low+Close
Bottom Central Pivot (BC): This level acts as a support level and is calculated as the average of the Central Pivot and the low of the previous session.
BC=P+Low2
BC=2P+Low
Top Central Pivot (TC): This level acts as a resistance level and is calculated as the average of the Central Pivot and the high of the previous session.
TC=P+High2
TC=2P+High
Explanation:
request.security: This function is used to fetch the high, low, and close prices of the previous day. The "D" parameter specifies the daily timeframe.
plot: This function is used to plot the CPR levels on the chart.
fill: This function is used to highlight the area between the BC and TC levels, providing a visual representation of the CPR range.
Usage:
Support and Resistance: Traders use the CPR levels to identify potential support (BC) and resistance (TC) levels. Price action around these levels can provide insights into market sentiment.
Trend Identification: If the price is consistently above the Central Pivot (P), it may indicate a bullish trend, while prices below P may indicate a bearish trend.
Breakout Trading: Breakouts above TC or below BC can signal potential trading opportunities.
Conclusion:
The CPR indicator is a versatile tool that can be used in various trading strategies. By implementing it in Pine Script, traders can customize and automate their analysis on the TradingView platform, making it easier to identify key levels and make informed trading decisions.
WFO Cloud-Optimized MomentumThis strategy is based on the Ichimoku Cloud indicator, designed to identify potential buy and sell signals in a market (like HWM stock). Here's a breakdown of the components and logic behind it:
Ichimoku Cloud Components:
Tenkan-sen: The moving average of the highest high and lowest low. It is used as a short-term trend indicator.
Kijun-sen: The moving average of the highest high and lowest low. It is considered the medium-term trend line.
Senkou Span A: The average of Tenkan-sen and Kijun-sen, shifted forward. It forms the leading edge of the cloud (Kumo).
Senkou Span B: The moving average of the highest high and lowest low, shifted forward. It forms the trailing edge of the cloud.
Chikou Span: The closing price shifted backward. It is used to confirm the trend.
Bahubali indicatorIndicator: Last Daily Candle High, Low, and Close
This TradingView script plots horizontal lines on the chart representing the high, low, and close values of the previous day's candle. Here’s how it works:
indicator("Last Daily Candle High, Low, and Close", overlay=true)
This line defines the name of the indicator ("Last Daily Candle High, Low, and Close") and specifies that the indicator will be displayed on the main price chart (overlay=true).
2. Fetching Data from the Previous Day
pinescript
Copy
Edit
prev_day_high = ta.valuewhen(timeframe.change("D"), high , 0) // Fetch yesterday's high
prev_day_low = ta.valuewhen(timeframe.change("D"), low , 0) // Fetch yesterday's low
prev_day_close = ta.valuewhen(timeframe.change("D"), close , 0) // Fetch yesterday's close
Fetching the High, Low, and Close:
The script fetches the high, low, and close of the previous day’s completed candle.
timeframe.change("D"): Detects when the day changes.
high , low , close : These references access the high, low, and close of the previous day's candle (using to access the prior bar's values).
ta.valuewhen: This function ensures the values are only fetched when the daily candle changes (i.e., once per day).
3. Initializing Line Variables
pinescript
Copy
Edit
var line high_line = na
var line low_line = na
var line close_line = na
Initializing Line Variables:
Three variables are declared to store the line objects for the high, low, and close levels of the previous day.
These variables are initialized as na, which means "Not Available," until the lines are created.
4. Updating Lines at the Start of Each Day
pinescript
Copy
Edit
if timeframe.change("D")
// Remove old lines
line.delete(high_line)
line.delete(low_line)
line.delete(close_line)
Detecting New Day:
The if timeframe.change("D") block ensures the script detects when a new day starts.
When a new day starts, it deletes the previous day's lines to ensure no overlap.
5. Drawing New Lines
pinescript
Copy
Edit
// Create new lines extending fully across the chart
high_line := line.new(x1=bar_index - 500, y1=prev_day_high, x2=bar_index + 500, y2=prev_day_high, color=color.red, width=2, extend=extend.both)
low_line := line.new(x1=bar_index - 500, y1=prev_day_low, x2=bar_index + 500, y2=prev_day_low, color=color.black, width=2, extend=extend.both)
close_line := line.new(x1=bar_index - 500, y1=prev_day_close, x2=bar_index + 500, y2=prev_day_close, color=color.blue, width=2, extend=extend.both)
Creating Horizontal Lines:
High Line: Drawn at the previous day's high, using a red color.
Low Line: Drawn at the previous day's low, using a black color.
Close Line: Drawn at the previous day's close, using a blue color.
Line Extensions:
The lines are extended from x1=bar_index - 500 to x2=bar_index + 500, meaning they will span a wide section of the chart from far left to far right, ensuring visibility.
extend=extend.both ensures the lines extend beyond the current bar in both directions.
Summary:
This TradingView indicator draws horizontal lines representing the high, low, and close levels of the previous day's candle. The lines are updated daily, with each new day resetting the previous lines and drawing new ones at the appropriate levels for that day’s high, low, and close prices.
This tool helps traders quickly identify important price levels from the previous trading day, which can act as potential support or resistance levels.
Pua's Weekly TemplateThis indicator plots the Current weekly open and uses the first day of the week as the opening range for the week. It plots the high, low and median for this range as well as standard deviations.
DrNon EMA5 Cross-Up EMA200 ATR Stop📌 EMA5 Cross-Up EMA200 Strategy with ATR Trailing Stop & Take-Profit
This TradingView strategy enters a long trade when the 5 EMA crosses above the 200 EMA, signaling an uptrend. It uses an ATR-based trailing stop-loss and exits at a predefined take-profit percentage.
How It Works
1. Entry Condition → A long position is triggered when the 5 EMA crosses above the 200 EMA.
2. Stop-Loss (ATR-Based Trailing Stop) → The stop price is dynamically set at Close - (ATR * Multiplier), adjusting as the price moves up.
3. Take-Profit → The strategy exits if the price reaches 5% above entry.
4. Exit Condition → The trade closes when either the ATR trailing stop or the take-profit target is hit.
Why Use This?
✅ Trend-Following – Catches strong uptrends with EMA crossover.
✅ Dynamic Stop-Loss – Uses ATR to adapt to market volatility.
✅ Automated Risk Management – Ensures systematic exits.
This strategy works well in trending markets but may require filters to avoid false signals in sideways conditions. Traders can adjust ATR multipliers and take-profit % for optimization. 🚀
Cloud-Optimized MomentumThis strategy is based on the Ichimoku Cloud indicator, designed to identify potential buy and sell signals in a market (like HWM stock). Here's a breakdown of the components and logic behind it:
Ichimoku Cloud Components:
Tenkan-sen: The moving average of the highest high and lowest low. It is used as a short-term trend indicator.
Kijun-sen: The moving average of the highest high and lowest low. It is considered the medium-term trend line.
Senkou Span A: The average of Tenkan-sen and Kijun-sen, shifted forward. It forms the leading edge of the cloud (Kumo).
Senkou Span B: The moving average of the highest high and lowest low, shifted forward. It forms the trailing edge of the cloud.
Chikou Span: The closing price shifted backward. It is used to confirm the trend.
Multi-Timeframe Open/Close LevelsThis level indicator can be used to help traders understand where Weekly, Daily, and 4 Hour closures happen. It allows level traders to buy at support and sell at resistance for most of their trades. As they understand where price action will move to, they can assume a price point will likely reverse or congest at different levels.
Example would be a seeing a weekly level directly above your current price action, therefore you will make your decision to short at the weekly level and allow your stop loss to be just over the weekly level.
337 Day EMA with buy/selll and uptrend downtrend Notifications!337 Day EMA with buy/selll and uptrend downtrend Notifications!
A a sophisticated trading tool designed to help traders identify significant market trends and make informed decisions. By leveraging the 337-day Exponential Moving Average (EMA), this indicator provides a clear visual representation of the long-term price trend of an asset. The EMA gives more weight to recent prices, making it a responsive and reliable indicator.
Key Features
337-day EMA Calculation
The indicator calculates the 337-day EMA, which smooths out price data and highlights the overall trend by giving greater significance to recent price changes.
Trend Identification
Uptrend: An uptrend is detected when the price crosses above the 337 EMA, signaling a potential bullish market. This is visually represented with a green "Uptrend" label below the corresponding bar.
Downtrend A downtrend is identified when the price crosses below the 337 EMA, indicating a potential bearish market. This is marked with a red "Downtrend" label above the corresponding bar.
Alert Notifications
The indicator includes built-in alert conditions for both uptrends and downtrends. Traders receive real-time notifications when the price crosses above or below the 337 EMA, ensuring they are promptly informed of significant market movements.
Customizable Visuals
The uptrend and downtrend labels are designed to be easily readable, with green "Uptrend" text boxes and red "Downtrend" text boxes, enhancing the clarity of the trend signals.
Benefits
Timely Alerts: Receive instant notifications about key trend changes, allowing for timely trading decisions.
Long-Term Perspective: The 337-day EMA provides a comprehensive view of the market's long-term trend, reducing the noise of short-term fluctuations.
Enhanced Readability: The clear visual labels for uptrends and downtrends make it easy to interpret the market conditions at a glance.
By integrating the "337 EMA with Uptrend/Downtrend Notifications" into your trading strategy, you can stay ahead of market trends and make more informed trading decisions. This tool is particularly useful for traders looking for a reliable way to identify long-term trends and react to significant market movements effectively.
Let me know if there's anything else you need or if you want more details! 📈
Price Difference CheckThis code calculates the difference between the highest and lowest values of the current candle, and if this difference is equal to or greater than the percentage value set in the settings, it displays a marker on the chart. Additionally, it shows the difference as a line on the chart.
MA Crossover Forex Bot by BomoloThis a simple trading strategy. MA cross overs. When the 21 Moving average cross over 50 moving average "GOLDEN CROSS" the bot take long trade. and when 50 moving average crosses over 21 moving average "DEATH" cross. The bot takesshort trade
BLAKFX Trading SystemYour indicator is an advanced Smart Money Concepts (SMC) trading system that combines multiple technical analysis approaches. Here's a detailed breakdown:
1. Core Components:
Market Structure Analysis:
- Break of Structure (BOS) detection
- Change of Character (CHOCH) identification
- Smart Money movement patterns
- Elliott Wave pattern tracking
Liquidity Analysis:
- Identifies buy and sell liquidity zones
- Marks liquidity points with circles (green for buy, red for sell)
- Tracks historical liquidity levels
Order Blocks:
- Detects bullish and bearish order blocks
- Shows them as colored boxes on the chart
- Uses volume confirmation for validation
Fair Value Gaps (FVG):
- Identifies both bullish and bearish FVGs
- Displays them as colored boxes
- Tracks historical FVG levels
2. Technical Elements:
Smart Money Technique (SMT):
- Uses EMA crossovers (50 and 200)
- Volume confirmation
- Shown as diamond shapes on the chart
Central Risk Transfer (CRT):
- Calculates equilibrium levels
- Shows as a yellow line on the chart
- Helps identify potential reversal zones
Elliott Wave Integration:
- Tracks wave counts
- Labels waves on the chart
- Helps with trend structure analysis
3. Trade Signals:
Entry Conditions:
- Long entries shown with green up arrows
- Short entries shown with red down arrows
- Combines multiple confirmations (SMT, liquidity, order blocks)
Visual Indicators:
- Color-coded for easy interpretation
- Historical signals maintained
- Clear entry and exit points
4. Risk Management:
- Built-in risk-reward ratio calculations
- ATR-based volatility consideration
- Clear trade information display
5. Customization Options:
Colors:
- Bullish/Bearish colors
- FVG colors
- Order block colors
Parameters:
- Lookback period
- Risk-reward ratio
- Various technical settings
6. Additional Features:
- Memory management (periodic array clearing)
- Alert conditions for entries
- Detailed trade information labels
- Historical pattern tracking
This indicator is particularly useful for traders who:
- Follow Smart Money Concepts
- Use institutional trading methods
- Need multiple confirmation layers
- Want clear visual signals
- Trade based on order flow and liquidity
Would you like me to elaborate on any particular aspect or explain how specific components work together?
Normalized PVTNormalization of the PVT to avoid escalation problems.
The PVT is often lost when the timing of the graph changes, so valuable time is lost adjusting it. With this configuration, the adjustment is automatic to be displayed in the chosen time frame.
------------------------------------------------------------------------------------------------------
Normalización del PVT para evitar problemas de escala.
El PVT suele perderse al cambiar la temporalidad del gráfico, por lo que se pierde valioso tiempo para ajustarlo. Con esta configuración, el ajuste es automático para ser visualizado en la temporalidad elegida.
WMA 15 Cross EMA 50 with Stop Loss and EntryExplanation of the Code:
Inputs:
wma_length: Length for the Weighted Moving Average (default: 15).
ema_length: Length for the Exponential Moving Average (default: 50).
stop_loss_percent: Percentage for the stop loss level (default: 1%).
Indicators:
ta.wma(close, wma_length): Calculates the Weighted Moving Average.
ta.ema(close, ema_length): Calculates the Exponential Moving Average.
Signals:
buy_signal: Generated when WMA crosses above EMA.
sell_signal: Generated when WMA crosses below EMA.
Stop Loss and Entry Price:
For a buy signal, the stop loss is calculated as entry_price * (1 - stop_loss_percent).
For a sell signal, the stop loss is calculated as entry_price * (1 + stop_loss_percent).
The entry price is the closing price at the time of the signal.
Plotting:
WMA and EMA are plotted on the chart.
Buy and sell signals are marked with labels.
Stop loss and entry price levels are plotted as horizontal lines.
Alerts:
Alerts are triggered when buy or sell signals are generated.
Previous 4H Candle Open and Close Vertical LinesPrevious 4H open and close for entry.
This indicator is useful for traders who want to visualize the start and end of the previous 4-hour candle. It can help identify key levels, such as support and resistance, or analyze price action around these times.
Let me know if you need further assistance!
Swing High/Low Breach Without CloseThis indicator helps traders identify potential reversal opportunities by detecting precise wick-based swing level breaks. It specifically looks for:
1. Swing highs/lows that formed with significant wicks
2. Current price action that wicks through (but doesn't close beyond) these levels
Key Features:
- Automatically identifies swing points that formed with substantial wicks
- Detects when price wicks through these levels without closing beyond them
- Dynamic marker positioning that scales with your chart
- Customizable swing length and wick size parameters
- Clean, uncluttered visual signals
- Built-in alert conditions for both high and low breaks
Customizable Inputs:
- Swing Length: Number of bars to calculate swing points
- Minimum Wick Size %: Required wick size as percentage of candle body
- ATR Period: Used for dynamic marker positioning
- ATR Multiplier: Adjusts marker distance from price
Trading Applications:
- Identify potential reversal points
- Spot failed breakouts early
- Recognize price rejection at key levels
- Filter out weak swing levels by focusing on significant wicks
Note: This indicator works best when combined with other forms of analysis and proper risk management.
- Initial release
- Added dynamic scaling for better visibility
- Implemented wick percentage filtering
Scalper Strategy 15M V3This script combines two popular indicators, MACD and RSI, to provide more accurate trading signals. Additionally, it displays Support & Resistance levels based on the last 50 candles, helping traders identify potential price reversal areas.
Intraday & Swing traders looking to optimize their entry & exit points
TradingView users seeking stronger confirmation in trading signals.
Traders who incorporate support & resistance into their strategies.
How to Use:
1. Adjust the MACD & RSI parameters to match your strategy.
2. Use Support & Resistance levels to spot potential price reversals.
3. Watch for Buy/Sell signals appearing on the chart.
Always use proper risk management. No strategy is perfect, so backtest before using it on a live account.
Volume Reversal Arrowsthis indicator look at 3 candel if the first one is red and the third one is green and have more volume then the first one he plot a green arrow and the red arrow when the first candel is green but the third on is red and have more volume
200 Day EMA Slow Ema with uptrend and downtrend signal!
The 200 Exponential Moving Average (EMA) is a widely-used technical indicator in trading. It helps traders identify the overall direction of the market by smoothing out price data over a longer period. The 200 EMA gives more weight to recent prices, making it more responsive to new information compared to a simple moving average.
Identifying Market Trends:
Uptrend: When the price of an asset is consistently above the 200 EMA, it suggests that the market is in an uptrend. Traders often interpret this as a sign of bullish sentiment and may look for buying opportunities.
Downtrend: Conversely, when the price is consistently below the 200 EMA, it indicates a downtrend. This is typically seen as a bearish signal, and traders might consider selling or shorting the asset.
Setting Up Notifications:
To stay informed about these key movements, you can set up notifications on your trading platform to alert you when the price crosses the 200 EMA:
Uptrend Notification: This alert triggers when the price crosses above the 200 EMA, signaling a potential uptrend.
Downtrend Notification: This alert triggers when the price crosses below the 200 EMA, signaling a potential downtrend.
By setting these notifications, you can ensure that you are promptly informed about significant market changes, allowing you to make timely trading decisions without constantly monitoring the charts.