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.
Индикаторы и стратегии
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!
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.
KARRY ETH 5HStrategy Overview:
This Ethereum trading system combines trend-following and breakout logic with volatility adaptation:
Core Logic
Buy Signals: Trigger when:
Price breaks above upper channel (bullish breakout)
Supertrend confirms bullish trend (green)
Price stays above 20-period EMA (trend filter)
RSI < 65 (avoids chasing overbought moves)
Sell Signals: Activate when:
Price breaks below lower channel (bearish breakdown)
Supertrend confirms bearish trend (red)
Price holds below 20-period EMA
RSI > 35 (avoids panic-selling oversold conditions)
Key Features
⏰ 5-hour cooldown between signals to prevent overtrading
📊 Uses Supertrend (volatility) + EMA (trend) + RSI (momentum) confluence
🎯 Self-adjusting via dynamic price channels and trend confirmation
⚖️ Balances aggression (breakouts) with caution (RSI filters)
Ideal for swing trading ETH across all market conditions, emphasizing disciplined entries while respecting volatility.
RSI买入信号//@version = 6
indicator("RSI买入信号", overlay = true)
// 声明buyCondition变量
var bool buyCondition = false
// 用于标记是否重置状态
var bool needReset = false
// 获取3分钟K线周期下的RSI值,在3分钟周期内计算
= request.security(syminfo.tickerid, "3", )
// 确保获取到至少2个3分钟周期的RSI数据
var int count = na(rsiValue3m)? 0 : na(rsiValue3m )? 1 : 2
// 新增变量用于记录RSI小于10的状态
var bool rsiBelow10 = false
// 如果需要重置,重置相关变量
if needReset
rsiBelow10 := false
needReset := false
// 定义买入条件
if count >= 20
if rsiValue3m < 10
rsiBelow10 := true
if rsiBelow10 and rsiValue3m > 90
buyCondition := true
needReset := true
else
buyCondition := false
// 绘制买入信号
plotshape(buyCondition, style = shape.labelup, location = location.belowbar, color = color.green, text = "买")
MACD with Background ColorThis is used for 20Min trader strategy.
it turns green when the MACD points up.
ADR by CTL modelled on TREPENG'sThis is an ADR indicator, a modified version of trepengs.
New ADR levels added 100/150/200/250/300%
Arrow functions and labels option, added to show when candles touch the above levels
MFX temptimes for asia session, liquidity trading times for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity trading
Degen Rogue CM Williams Vix Fix Modified ( Highs & Lows )Modified Version of CM Williams Vix Fix, This version shows both lows and highs of the market. Original version only shows market lows.
Overnight vs Intra-day Performance█ STRATEGY OVERVIEW
The "Overnight vs Intra-day Performance" indicator quantifies price behaviour differences between trading hours and overnight periods. It calculates cumulative returns, compound growth rates, and visualizes performance components across user-defined time windows. Designed for analytical use, it helps identify whether returns are primarily generated during market hours or overnight sessions.
█ USAGE
Use this indicator on Stocks and ETFs to visualise and compare intra-day vs overnight performance
█ KEY FEATURES
Return Segmentation : Separates total returns into overnight (close-to-open) and intraday (open-to-close) components
Growth Tracking : Shows simple cumulative returns and compound annual growth rates (CAGR)
█ VISUALIZATION SYSTEM
1. Time-Series
Overnight Returns (Red)
Intraday Returns (Blue)
Total Returns (White)
2. Summary Table
Displays CAGR
3. Price Chart Labels
Floating annotations showing absolute returns and CAGR
Color-coded to match plot series
█ PURPOSE
Quantify market behaviour disparities between active trading sessions and overnight positioning
Provide institutional-grade attribution analysis for returns generation
Enable tactical adjustment of trading schedules based on historical performance patterns
Serve as foundational research for session-specific trading strategies
█ IDEAL USERS
1. Portfolio Managers
Analyse overnight risk exposure across holdings
Optimize execution timing based on return distributions
2. Quantitative Researchers
Study market microstructure through time-segmented returns
Develop alpha models leveraging session-specific anomalies
3. Market Microstructure Analysts
Identify liquidity patterns in overnight vs daytime sessions
Research ETF premium/discount mechanics
4. Day Traders
Align trading hours with highest probability return windows
Avoid overnight gaps through informed position sizing
Candle Volume DisplayCandle Volume Display Indicator
Version: 1.0
Author: pool_shark
Pine Script Version: v5
Description:
The Candle Volume Display Indicator overlays real-time trading volume on each candlestick by displaying a small label above the candle.
Features:
Displays volume as a label above each candle.
Uses dynamic text conversion to ensure accurate volume representation.
Labels are positioned at the high of each bar for clear visibility.
Customizable label color, text color, and size for easy readability.
Ideal for traders who want a quick volume reference on their price chart.
How to Use:
Add this script to your TradingView chart.
The indicator will automatically overlay volume labels on each candlestick.
Use it to quickly spot high or low volume trends without looking at the volume panel.
FShariar_Engulfing Pattern with Dynamic LevelsThis Pine Script indicator, created by Fshariar, detects Bullish and Bearish Engulfing patterns and plots dynamic Fibonacci retracement levels based on recent price action. It uses customizable lookback periods to identify engulfing candles and calculate the highest high/lowest low for Fibonacci levels. A volume filter is included to potentially improve signal quality. Fibonacci levels are automatically drawn upon engulfing pattern detection, extending to the right. Traders can customize Fibonacci levels and the volume factor. Alerts are triggered for bullish and bearish engulfing signals. This indicator aims to help traders identify potential reversal points. Remember, no indicator is perfect, and proper risk management is essential. Backtesting is highly recommended.
Quadruple EMAThese 4EMA will help you assess the trend from a Higher Timeframe perspective.
The shorter the length of the EMA, the more it is adaptive to price.
The longer the length of the EMA, the more significant it is as a historical resistance.
This indicator will help you zoom out and assess the trend's posture, especially if you are a long term investor.
The idea is simple:
You want the shorter period EMAs to be above the historical EMAs for a bullish High Timeframe posture.
Otherwise, as a long-term investor, it is better to close your position if it is open and wait for a bullish crossover to re-enter.
This is not an indicator for those who seek to catch exact tops and bottoms.
Monday RangeThis indicator highlights the high and low of the previous Monday on the chart, making it easy to identify key levels for the start of the trading week.
CM_Stochastic_MTF_3TimeframesSame as the original CM_Stochastic_MTF but with 3 timeframes, slightly improved signals.
Multi TimeFrame Stochastic Loaded With Features.
Basics:
Ability to turn On/Off Crosses Only Above or Below High/Low Lines.
User sets Values Of High/Low lines.
Ability to turn On/Off All Crosses, Both BackGround Highlights and “B”, “S” Letters.
Ability to turn On/Off BackGround Highlights if Stoch is Above Or Below High/Low Lines.
Ability to All or Any Combination of these Features.
Multi Timeframe Capabilities:
Stoch defaults to current timeframe. You can change to many other timeframes.
Ability to turn On/Off Plotting 2nd Stoch on same TimeFrame with different settings
Ability to turn On/Off Plotting 2nd Stoch on Different TimeFrame
Much More…All Inputs and Options are Adjustable in Inputs Tab.
Hammer & Inverted Hammer DetectorThis Pine Script indicator detects Hammer and Inverted Hammer candlestick patterns based on price action and VWAP (Volume Weighted Average Price). It evaluates the relationship between the current and previous candles, checking shadow lengths and body size to confirm the pattern. If a Hammer is identified, a green upward label appears below the candle, while an Inverted Hammer is marked with a red downward label above the candle.
Johnny's Volatility-Driven Trend Identifier w/ Reversal SignalsJohnny's Volatility-Driven Trend Identifier w/ Reversal Signals is designed to identify high-probability trend shifts and reversals by incorporating volatility, momentum, and impulse-based filtering. It is specifically built for traders who want to capture strong trend movements while minimizing false signals caused by low volatility noise.
By leveraging Rate of Change (ROC), Relative Strength Index (RSI), and Average True Range (ATR)-based volatility detection, the indicator dynamically adapts to market conditions. It highlights breakout trends, reversals, and early signs of momentum shifts using strategically placed labels and color-coded trend visualization.
Inspiration taken from Top G indicator .
What This Indicator Does
The Volatility-Driven Trend Identifier works by:
Measuring Market Extremes & Momentum:
Uses ROC normalization with standard deviation to identify impulse moves in price action.
Implements RSI filtering to determine overbought/oversold conditions that validate trend strength.
Utilizes ATR-based volatility tracking to ensure signals only appear when meaningful market movements are occurring.
Identifying Key Trend Events:
Power Peak (🔥): Marks a confirmed strong downtrend, ideal for shorting opportunities.
Surge (🚀): Indicates a confirmed strong uptrend, signaling a potential long entry.
Soft Surge (↗): Highlights a mild bullish reentry or early uptrend formation.
Soft Peak (↘): Shows a mild bearish reentry or early downtrend formation.
Providing Adaptive Filtering for Reliable Signals:
Filters out weak trends with a volatility check, ensuring signals appear only in strong market conditions.
Implements multi-level confirmation by combining trend strength metrics, preventing false breakouts.
Uses gradient-based visualization to color-code market sentiment for quick interpretation.
What This Indicator Signals
Breakouts & Impulse Moves: 🚀🔥
The Surge (🚀) and Power Peak (🔥) labels indicate confirmed momentum breakouts, where the trend has been validated by a combination of ROC impulse, RSI confirmation, and ATR volatility filtering.
These signals suggest that the market is entering a strong trend, and traders can align their entries accordingly.
Early Trend Formation & Reentries: ↗ ↘
The Soft Surge (↗) and Soft Peak (↘) labels indicate areas where a trend might be forming, but is not yet fully confirmed.
These signals help traders anticipate potential entries before the trend gains full strength.
Volatility-Adaptive Trend Filtering: 📊
Since the indicator only activates in volatile conditions, it avoids the pitfalls of low-range choppy markets where false signals frequently occur.
ATR-driven adaptive windowing allows the indicator to dynamically adjust its sensitivity based on real-time volatility conditions.
How to Use This Indicator
1. Identifying High-Probability Entries
Bullish Entries (Long Trades)
Look for 🚀 Surge signals in an uptrend.
Confirm with RSI (should be above 50 for momentum).
Ensure volatility is increasing to validate the breakout.
Use ↗ Soft Surge signals for early entries before the trend fully confirms.
Bearish Entries (Short Trades)
Look for 🔥 Power Peak signals in a downtrend.
RSI should be below 50, indicating downward momentum.
Volatility should be rising, ensuring market momentum is strong.
Use ↘ Soft Peak signals for early entries before a full bearish confirmation.
2. Avoiding False Signals
Ignore signals when the market is ranging (low ATR).
Check RSI and ROC alignment to ensure trend confirmation.
Use additional confluences (e.g., price action, support/resistance levels, moving averages) for enhanced accuracy.
3. Trend Confirmation & Filtering
The stronger the trend, the higher the likelihood that Surge (🚀) and Power Peak (🔥) signals will continue in their direction.
Soft Surge (↗) and Soft Peak (↘) act as early warning signals before major breakouts occur.
What Makes This a Machine Learning-Inspired Moving Average?
While this indicator is not a direct implementation of machine learning (as Pine Script lacks AI/ML capabilities), it mimics machine learning principles by adapting dynamically to market conditions using the following techniques:
Adaptive Trend Selection:
It does not rely on fixed moving averages but instead adapts dynamically based on volatility expansion and momentum detection.
ATR-based filtering adjusts the indicator’s sensitivity to real-time conditions.
Multi-Factor Confirmation (Feature Engineering Equivalent in ML):
Combines ROC, RSI, and ATR in a structured way, similar to how ML models use multiple inputs to filter and classify data.
Implements conditional trend recognition, ensuring that only valid signals pass through the filter.
Noise Reduction with Data Smoothing:
The algorithm avoids false signals by incorporating trend intensity thresholds, much like how ML models remove outliers to refine predictions.
Adaptive filtering ensures that low-volatility environments do not produce misleading signals.
Why Use This Indicator?
✔ Reduces False Signals: Multi-factor validation ensures only high-confidence signals are triggered.
✔ Works in All Market Conditions: Volatility-adaptive nature allows the indicator to perform well in both trending and ranging markets.
✔ Great for Swing & Intraday Trading: It helps spot momentum shifts early and allows traders to catch major market moves before they fully develop.
✔ Visually Intuitive: Color-coded trends and clear signal markers make it easy to interpret.
Average Candle Size (Points)ATR but with the ability to add threshold lines (UP TO 3) that help gauge how volatile the market is. Also, note that the default threshold values are set up for NQ Futures so you will need to change your values to your specific needs.
Moving Average Condition StrategyA bot strategy I use on octobot using macd and moving average conditions.
High/Low LabelsThis simple Version 6 script labels each bar on the chart with Green labels noting HH for higher highs and HL for higher lows. And Red labels noting LH for lower highs and LL for lower lows. Works on any Trading View chart and any time frame. Any comments or suggestions, please do!
Gold Pro StrategyHere’s the strategy description in a chat format:
---
**Gold (XAU/USD) Trend-Following Strategy**
This **trend-following strategy** is designed for trading gold (XAU/USD) by combining moving averages, MACD momentum indicators, and RSI filters to capture sustained trends while managing volatility risks. The strategy uses volatility-adjusted stops to protect gains and prevent overexposure during erratic price movements. The aim is to take advantage of trending markets by confirming momentum and ensuring entries are not made at extreme levels.
---
**Key Components**
1. **Trend Identification**
- **50 vs 200 EMA Crossover**
- **Bullish Trend:** 50 EMA crosses above 200 EMA, and the price closes above the 200 EMA
- **Bearish Trend:** 50 EMA crosses below 200 EMA, and the price closes below the 200 EMA
2. **Momentum Confirmation**
- **MACD (12,26,9)**
- **Buy Signal:** MACD line crosses above the signal line
- **Sell Signal:** MACD line crosses below the signal line
- **RSI (14 Period)**
- **Bullish Zone:** RSI between 50-70 to avoid overbought conditions
- **Bearish Zone:** RSI between 30-50 to avoid oversold conditions
3. **Entry Criteria**
- **Long Entry:** Bullish trend, MACD bullish crossover, and RSI between 50-70
- **Short Entry:** Bearish trend, MACD bearish crossover, and RSI between 30-50
4. **Exit & Risk Management**
- **ATR Trailing Stops (14 Period):**
- Initial Stop: 3x ATR from entry price
- Trailing Stop: Adjusts to lock in profits as price moves favorably
- **Position Sizing:** 100% of equity per trade (high-risk strategy)
---
**Key Logic Flow**
1. **Trend Filter:** Use the 50/200 EMA relationship to define the market's direction
2. **Momentum Confirmation:** Confirm trend momentum with MACD crossovers
3. **RSI Validation:** Ensure RSI is within non-extreme ranges before entering trades
4. **Volatility-Based Risk Management:** Use ATR stops to manage market volatility
---
**Visual Cues**
- **Blue Line:** 50 EMA
- **Red Line:** 200 EMA
- **Green Triangles:** Long entry signals
- **Red Triangles:** Short entry signals
---
**Strengths**
- **Clear Trend Focus:** Avoids counter-trend trades
- **RSI Filter:** Prevents entering overbought or oversold conditions
- **ATR Stops:** Adapts to gold’s inherent volatility
- **Simple Rules:** Easy to follow with minimal inputs
---
**Weaknesses & Risks**
- **Infrequent Signals:** 50/200 EMA crossovers are rare
- **Potential Missed Opportunities:** Strict RSI criteria may miss some valid trends
- **Aggressive Position Sizing:** 100% equity allocation can lead to large drawdowns
- **No Profit Targets:** Relies on trailing stops rather than defined exit targets
---
**Performance Profile**
| Metric | Expected Range |
|----------------------|---------------------|
| Annual Trades | 4-8 |
| Win Rate | 55-65% |
| Max Drawdown | 25-35% |
| Profit Factor | 1.8-2.5 |
---
**Optimization Recommendations**
1. **Increase Trade Frequency**
Adjust the EMAs to shorter periods:
- `emaFastLen = input.int(30, "Fast EMA")`
- `emaSlowLen = input.int(150, "Slow EMA")`
2. **Relax RSI Filters**
Adjust the RSI range to:
- `rsiBullish = rsi > 45 and rsi < 75`
- `rsiBearish = rsi < 55 and rsi > 25`
3. **Add Profit Targets**
Introduce a profit target at 1.5% above entry:
```pine
strategy.exit("Long Exit", "Long",
stop=longStopPrice,
profit=close*1.015, // 1.5% target
trail_offset=trailOffset)
```
4. **Reduce Position Sizing**
Risk a smaller percentage per trade:
- `default_qty_value=25`
---
**Best Use Case**
This strategy excels in **strong trending markets** such as gold rallies during economic or geopolitical crises. However, during sideways or choppy market conditions, the strategy might require manual intervention to avoid false signals. Additionally, integrating fundamental analysis—like monitoring USD weakness or geopolitical risks—can enhance its effectiveness.
---
This strategy offers a balanced approach for trading gold, combining trend-following principles with risk management tailored to the volatility of the market.