Buy Signal Forex & Crypto v0 ImprovedPurpose of the Script:
This script is designed to generate buy and sell signals for trading Forex and cryptocurrencies by analyzing price trends using exponential moving averages (EMAs), volatility, and volume filters. The signals are displayed as arrows on the chart.
What the Script Does
Input Settings:
The script allows the user to configure various settings, such as the lengths of EMAs, a higher timeframe for trend confirmation, and thresholds for volume and volatility (ATR - Average True Range).
Key settings:
5 EMA Length – Length of the short-term EMA.
13 EMA Length – Length of the medium-term EMA.
26 EMA Length – Length of the long-term EMA.
21 EMA Length – Used for trend confirmation on a higher timeframe.
Higher Timeframe – Lets you select a timeframe (e.g., daily) for confirming the overall trend.
ATR Threshold – Filters out signals when the market's volatility is too low.
Volume Filter – Ensures sufficient trading activity before generating signals.
Calculating EMAs (Exponential Moving Averages):
Four EMAs are calculated:
ema5 (short-term), ema13 (medium-term), ema26 (long-term), and ema21 (higher timeframe confirmation).
These EMAs help determine price trends and crossovers, which are critical for identifying buy and sell opportunities.
Trend Confirmation Using a Higher Timeframe:
The 21 EMA on the higher timeframe (e.g., daily) is used to confirm the overall direction of the market.
Defining Signal Conditions:
Buy Signal:
A buy signal is generated when:
ema5 crosses above ema13 (indicating a bullish trend).
ema5 crosses above ema26 (stronger bullish confirmation).
The closing price is above ema5, ema13, ema26, and the 21 EMA on the higher timeframe.
The market's volatility (ATR) is above the defined threshold.
The volume meets the conditions or volume filtering is disabled.
Sell Signal:
A sell signal is generated when:
ema5 crosses below ema13 (indicating a bearish trend).
ema5 crosses below ema26 (stronger bearish confirmation).
The closing price is below ema5, ema13, ema26, and the 21 EMA on the higher timeframe.
The market's volatility (ATR) is above the defined threshold.
The volume meets the conditions or volume filtering is disabled.
Volume Filtering:
Ensures there’s enough trading activity by comparing the current volume to a 20-period moving average of volume.
Persistent Variables:
These variables (crossed13 and crossed13Sell) help track whether the short-term EMA (ema5) has crossed the medium-term EMA (ema13). This prevents false or repeated signals.
Displaying Signals on the Chart:
Buy signals are displayed as green upward arrows below the price.
Sell signals are displayed as red downward arrows above the price.
How It Helps Traders:
This script provides visual cues for potential entry and exit points by combining moving average crossovers, volatility, volume, and higher timeframe trend confirmation. It works well for trending markets and ensures signals are filtered for stronger conditions to reduce noise.
אינדיקטורים ואסטרטגיות
RSI Strategy with 125-Day High and Volume Filter//@version=6
strategy("RSI Strategy with 125-Day High and Volume Filter", overlay=true)
// Input variables
length = input(14, title="RSI Length")
overSold = input(30, title="Oversold Level")
overBought = input(70, title="Overbought Level")
price = close
// RSI Calculation
vrsi = ta.rsi(price, length)
// Conditions for RSI crossover
co = ta.crossover(vrsi, overSold)
cu = ta.crossunder(vrsi, overBought)
// 125-day high calculation
high_125 = ta.highest(high, 125)
// Crossing conditions for 125-day high
cross_above_high_125 = ta.crossover(price, high_125)
cross_below_high_125 = ta.crossunder(price, high_125)
// Volume condition: Check if current volume is at least 2 times the previous volume
volume_increased = volume > 2 * volume
// Entry logic for RSI and 125-day high with volume filter
if (not na(vrsi))
if (co and volume_increased)
strategy.entry("RsiLE", strategy.long, comment="RsiLE")
if (cu and volume_increased)
strategy.entry("RsiSE", strategy.short, comment="RsiSE")
// Entry logic for 125-day high crossing with volume filter
if (cross_above_high_125 and volume_increased)
strategy.entry("BuyHigh125", strategy.long, comment="BuyHigh125")
if (cross_below_high_125 and volume_increased)
strategy.entry("SellHigh125", strategy.short, comment="SellHigh125")
// Plot the 125-day high for visualization
plot(high_125, title="125-Day High", color=color.orange, linewidth=2, style=plot.style_line)
NAMA Stochastic RSI - Quan DaoThanks for many follows in the beginning of 2025.
I would love to share publicly a new indicator with all of you to show my gratitude.
It's a simple oscillator, using my NAMA moving average at the core of the RSI of the Stochastic RSI indicator.
Probably should be used for long-term investment, as I set the default period for the stochastic pretty big.
The use is pretty forward:
- When you have the green arrow at the bottom, it's time to consider a buy.
- When you have the red arrow at the top, it's time to consider a sell.
I would love to hear your feedback on how you used it and if it's useful for you at all.
Cheers,
Relative Volume Index [PhenLabs]Relative Volume Index (RVI)
Version: PineScript™ v6
Description
The Relative Volume Index (RVI) is a sophisticated volume analysis indicator that compares real-time trading volume against historical averages for specific time periods. By analyzing volume patterns and statistical deviations, it helps traders identify unusual market activity and potential trading opportunities. The indicator uses dynamic color visualization and statistical overlays to provide clear, actionable volume analysis.
Components
• Volume Comparison: Real-time volume relative to historical averages
• Statistical Bands: Upper and lower deviation bands showing volume volatility
• Moving Average Line: Smoothed trend of relative volume
• Color Gradient Display: Visual representation of volume strength
• Statistics Dashboard: Real-time metrics and calculations
Usage Guidelines
Volume Strength Analysis:
• Values > 1.0 indicate above-average volume
• Values < 1.0 indicate below-average volume
• Watch for readings above the threshold (default 6.5x) for exceptional volume
Trading Signals:
• Strong volume confirms price moves
• Divergences between price and volume suggest potential reversals
• Use extreme readings as potential reversal signals
Optimal Settings:
• Start with default 15-bar lookback for general analysis
• Adjust threshold (6.5x) based on market volatility
• Use with multiple timeframes for confirmation
Best Practices:
• Combine with price action and other indicators
• Monitor deviation bands for volatility expansion
• Use the statistics panel for precise readings
• Pay attention to color gradients for quick assessment
Limitations
• Requires quality volume data for accurate calculations
• May produce false signals during pre/post market hours
• Historical comparisons may be skewed during unusual market conditions
• Best suited for liquid markets with consistent volume patterns
Note: For optimal results, use in conjunction with price action analysis and other technical indicators. The indicator performs best during regular market hours on liquid instruments.
20 SMA Crossing 200 SMA with Volume and RSI Conditionsindicator for 20 sma crossing 200 sma from below with volume more than double of earlier with rsi less than 70 but trending upward
Y 1//@version=5
indicator("RSI Bull and Bear + ADX Indicator", shorttitle="RSI_ADX_Indicator", overlay=true)
// Input settings
SMA_long = input.int(50, title="SMA Long", minval=1)
SMA_short = input.int(20, title="SMA Short", minval=1)
MA_type = input.string("EMA", title="MA Type", options= )
BULL_RSI = input.int(7, title="Bull RSI", minval=1)
BEAR_RSI = input.int(10, title="Bear RSI", minval=1)
BULL_RSI_high = input.int(70, title="Bull RSI High")
BULL_RSI_low = input.int(30, title="Bull RSI Low")
BEAR_RSI_high = input.int(60, title="Bear RSI High")
BEAR_RSI_low = input.int(20, title="Bear RSI Low")
ADX_period = input.int(10, title="ADX Period", minval=1)
ADX_high = input.int(50, title="ADX High")
ADX_low = input.int(20, title="ADX Low")
ATR_period = input.int(14, title="ATR Period", minval=1)
ATR_threshold = input.float(1.5, title="ATR Threshold")
Volume_multiplier = input.float(1.5, title="Volume Multiplier")
// Moving Average Selection
maSlow = MA_type == "SMA" ? ta.sma(close, SMA_long) : MA_type == "EMA" ? ta.ema(close, SMA_long) : ta.wma(close, SMA_long)
maFast = MA_type == "SMA" ? ta.sma(close, SMA_short) : MA_type == "EMA" ? ta.ema(close, SMA_short) : ta.wma(close, SMA_short)
// Calculations
bull_rsi = ta.rsi(close, BULL_RSI)
bear_rsi = ta.rsi(close, BEAR_RSI)
= ta.dmi(ADX_period, adxSmoothing=14)
atr = ta.atr(ATR_period)
avg_volume = ta.sma(volume, 20)
high_volume_condition = volume > avg_volume * Volume_multiplier
// Conditions
bull_trend = maFast > maSlow
bear_trend = maFast < maSlow
bull_rsi_high = bull_rsi > BULL_RSI_high
bull_rsi_low = bull_rsi < BULL_RSI_low
bear_rsi_high = bear_rsi > BEAR_RSI_high
bear_rsi_low = bear_rsi < BEAR_RSI_low
adx_high_condition = adx > ADX_high
atr_condition = atr > ATR_threshold
long_condition = ((bull_trend and bull_rsi_low and adx_high_condition) or (bear_trend and bear_rsi_low and adx_high_condition)) and atr_condition and high_volume_condition
short_condition = ((bull_trend and bull_rsi_high) or (bear_trend and bear_rsi_high)) and atr_condition and high_volume_condition
// Plotting
plot(maSlow, color=bull_trend ? color.green : color.red, title="SMA Long")
plot(maFast, color=bull_trend ? color.green : color.red, title="SMA Short")
hline(BULL_RSI_high, title="Bull RSI High", color=color.green)
hline(BULL_RSI_low, title="Bull RSI Low", color=color.green)
hline(BEAR_RSI_high, title="Bear RSI High", color=color.red)
hline(BEAR_RSI_low, title="Bear RSI Low", color=color.red)
bgcolor(bull_trend ? color.new(color.green, 90) : bear_trend ? color.new(color.red, 90) : na, title="Trend Background")
// Signal Plotting
plotshape(series=long_condition, location=location.belowbar, color=color.green, style=shape.labelup, title="Long Signal")
plotshape(series=short_condition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Short Signal")
Rosiz Support 2### **Indicator Name**: Custom RSI, Stochastic, and ADX
### **Description**:
This is a multi-functional indicator that combines three popular technical analysis tools—**RSI (Relative Strength Index)**, **Stochastic Oscillator**, and **ADX (Average Directional Index)**—into a single, customizable pane. This indicator helps traders analyze momentum, overbought/oversold conditions, and trend strength simultaneously, making it a powerful tool for making informed trading decisions.
---
### **Features**:
1. **RSI (Relative Strength Index)**:
- Measures the speed and change of price movements.
- Helps identify overbought (>70) and oversold (<30) conditions.
- Includes customizable length and source options.
- Background shading visually highlights overbought and oversold zones.
2. **Stochastic Oscillator**:
- Determines momentum by comparing a security's closing price to its price range over a specific period.
- Includes %K and %D lines for crossovers, which signal potential entry or exit points.
- Highlights overbought (>80) and oversold (<20) zones with background fill.
3. **ADX (Average Directional Index)**:
- Measures trend strength (higher values indicate stronger trends).
- Includes customizable smoothing and DI (Directional Indicator) length.
---
### **How to Use**:
- **RSI**: Look for overbought or oversold conditions for potential reversal points. Divergences between price and RSI may signal weakening trends.
- **Stochastic Oscillator**: Watch for %K and %D crossovers near overbought or oversold zones to confirm buy or sell signals.
- **ADX**: Use ADX values to assess trend strength:
- **ADX > 25**: Strong trend.
- **ADX < 20**: Weak or ranging market.
---
### **Customization Options**:
- **RSI Settings**: Adjust length, source, and visual parameters.
- **Stochastic Settings**: Modify %K and %D lengths and smoothing factors.
- **ADX Settings**: Fine-tune smoothing and directional index lengths.
---
### **Advantages**:
- Combines three indicators into one, reducing chart clutter.
- Customizable inputs for flexibility in various trading strategies.
- Visual enhancements (background fills and lines) for better readability.
This indicator is perfect for traders looking to combine momentum analysis, overbought/oversold signals, and trend strength in a single tool!
Precision Trade Zone By KittisakThis indicator is designed for Money Management calculations, helping to facilitate risk management in trading, determining suitable leverage based on acceptable risk, and adjusting the Stop Loss level to align with the calculated leverage.
Abbreviation Descriptions
LR : Suitable Leverage.
EP : Entry Price.
BEP : Break-Even Point (a point where you can move your Stop Loss to prevent losses once the price reaches a certain level).
SL : Stop Loss (a recalculated Stop Loss level to match the leverage. You should use this as the Stop Loss price instead of the initial level you set).
TP : Take Profit (a point where you take profit based on the defined risk-reward ratio).
Note
When first activating the indicator, an error may occur, and no output will be displayed. This happens because you must first specify the Entry Price and Stop Loss in the indicator settings.
How Much Leverage Should You Use?
It may seem like a simple question but is difficult to answer.
Method for Calculating Suitable Leverage
Use the formula:
Leverage = Acceptable Loss / (Distance between Entry Price and Stop Loss + (Buy Fee + Sell Fee))
Calculating the Correct Stop Loss Point
(Stop Loss levels will be slightly adjusted or extended)
For Long Positions :
New Stop Loss = Entry Price * (1 - Acceptable Loss / (Calculated Leverage * 100))
For Short Positions :
New Stop Loss = Entry Price * (1 + Acceptable Loss / (Calculated Leverage * 100))
Calculating the Correct Take Profit Point
(Take Profit levels will be slightly adjusted or extended)
For Long Positions :
Take Profit = Entry Price * (1 + (Acceptable Loss / (Calculated Leverage * 100) * RR) + ((Buy Fee + Sell Fee) / 100))
For Short Positions :
Take Profit = Entry Price * (1 - (Acceptable Loss / (Calculated Leverage * 100) * RR) + ((Buy Fee + Sell Fee) / 100))
Benefits of This Calculation
1. Accurate Risk Assessment
The calculated leverage accounts for trading fees. For example, if you aim for a 2% loss, this method ensures the actual loss is exactly 2%, not more (e.g., 2% plus fees).
2. Eliminates Guesswork
Randomly setting leverage can lead to risks because the Stop Loss level may not align with your position. This calculation ensures that the leverage aligns precisely with your desired Stop Loss level.
3. Realistic Profit Targets
For example, with a 2% acceptable loss and a 1:2 RR, you expect a 4% profit. However, without this calculation, fees may reduce your profit below 4%. This method includes fees, ensuring your profit matches the intended target.
Caution
This indicator does not account for slippage or requotes. Use it with caution and allow a buffer for slippage in your calculations.
Indicator นี้มีไว้สำหรับคำนวณ Money Management ซึ่งจะช่วยอำนวยความสะดวกในการจัดการความเสี่ยงในการเทรด การคำนวณ Leverage ที่เหมาะสมกับความเสี่ยงที่คุณยอมรับได้ และจัดการจุด Stop Loss ให้เหมาะสมกับ Leverage นั้น
คำอธิบายเกี่ยวกับคำย่อ
LR หมายถึง Leverage ที่เหมาะสม
EP หมายถึง Entry Price หรือราคาเข้าซื้อ
BEP หมายถึง Break-Even Point หรือจุดคุ้มทุน (คุณสามารถย้าย Stop Loss มาที่จุดนี้เมื่อราคาไปถึงจุดหนึ่งเพื่อป้องกันการขาดทุนได้)
SL หมายถึง Stop Loss (ซึ่งเป็น Stop Loss ที่คำนวณใหม่เพื่อให้ตำแหน่งเหมาะสมกับ Leverage ที่คำนวณได้ คุณควรใช้จุดนี้เพื่อเป็นราคา Stop Loss แทนจุด Stop Loss ที่คุณกำหนดไว้ในตอนแรก)
TP หมายถึง Take Profit (เป็นจุดที่คุณจะขายทำกำไรตาม RR ที่กำหนดไว้)
* หมายเหตุ เมื่อเริ่มเปิด Indicator จะเกิด Error ขึ้น และไม่มีผลลัพท์ใด ๆ แสดงให้เห็น นั่นเป็นเพราะคุณต้องเข้าไปกำหนด Entry Price และ Stop Loss ในการตั้งค่าของ Indicator เสียก่อน
ต้องใช้ Leverage เท่าไหร่? มันเป็นคำถามที่ดูเหมือนง่าย แต่ตอบยาก
วิธีคำนวณ Leverage ที่เหมาะสม ใช้สมการคือ
Levarage = การขาดทุนที่ยอมรับได้ / (ระยะห่างระหว่าง Entry Price และ Stop Loss + (ค่าธรรมเนียมซื้อ + ค่าธรรมเนียมขาย))
นำผลลัพท์ Leverage ที่ได้มาคำนวณเพื่อหาจุด Stop Loss ที่ถูกต้อง (จุดของ Stop Loss จะมีการยืดขยายออกไปเล็กน้อย) โดยใช้สมการ
ตำแหน่ง Stop Loss ใหม่ = Entry Price * (1 - การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100)) // สำหรับ Long
ตำแหน่ง Stop Loss ใหม่ = Entry Price * (1 + การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100)) // สำหรับ Short
นำผลลัพท์ Leverage ที่ได้มาคำนวณเพื่อหาจุด Take Profit ที่ถูกต้อง (จุดของ Take Profit จะมีการยืดขยายออกไปเล็กน้อย) โดยใช้สมการ
ตำแหน่ง Take Profit = Entry Price * (1 + (การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100) * RR) + ((ค่าธรรมเนียมซื้อ + ค่าธรรมเนียมขาย) / 100)) // สำหรับ Long
ตำแหน่ง Take Profit = Entry Price * (1 - (การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100) * RR) + ((ค่าธรรมเนียมซื้อ + ค่าธรรมเนียมขาย) / 100)) // สำหรับ Short
ข้อดีของการคำนวณคือ
1. คุณจะได้ค่า Leverage ที่เหมาะสมกับความเสี่ยงที่คุณยอมรับได้โดยรวมค่าธรรมเนียมเข้าไปในนั้นแล้ว นั่นหมายความว่า ความสูญเสียจะเป็น 2% (ตามตัวอย่าง) จริง ๆ ไม่ใช่ 2% และถูกหักค่าธรรมเนียมเพิ่มอีก กลายเป็นสูญเสียมากกว่า 2%
2. การตั้ง Leverage มั่ว ๆ กลายเป็นความเสี่ยง นั่นเพราะตำแหน่งของ Stop Loss ไม่ได้อยู่ในจุดที่ควรจะเป็น การคำนวณนี้ช่วยให้คุณได้ Leverage ในตำแหน่ง Stop Loss ที่คุณต้องการโดยแท้จริง
3. ผลกำไรที่ได้รับตรงกับความต้องการจริง ๆ เช่น การขาดทุนที่ยอมรับได้ 2% และ RR 1:2 สิ่งที่คุณคิดคือกำไร 4% แต่จริง ๆ แล้วไม่ถึง 4% นั่นเพราะว่าโดนหักค่าธรรมเนียมไปส่วนหนึ่ง การคำนวณนี้ได้รวมค่าธรรมเนียมให้แล้ว คุณจึงได้กำไรที่ 4% อย่างถูกต้องตามต้องการ
ข้อควรระวัง
Indicator นี้ไม่ได้มีการควบคุมความเสี่ยงในเรื่องของ slippage หรือ requote โปรดใช้งานอย่างระมัดระวังและมีการเผื่อระยะสำหรับ slippage ด้วย
Rosiz Support 1### Description of the Custom Indicator: MACD + CMF + MOM
This custom indicator combines three powerful technical analysis tools: **MACD (Moving Average Convergence Divergence)**, **CMF (Chaikin Money Flow)**, and **MOM (Momentum)**, to provide a comprehensive view of market trends, momentum, and money flow in a single pane. Here's what each component offers:
---
#### 1. **MACD (Moving Average Convergence Divergence)**
The **MACD** is a trend-following momentum indicator that shows the relationship between two moving averages of an asset’s price.
- **Purpose**: Identifies trend direction and momentum strength.
- **Key Components**:
- **MACD Line**: Difference between the fast and slow exponential moving averages (EMA).
- **Signal Line**: A smoothed moving average of the MACD line, acting as a trigger for buy/sell signals.
- **Histogram**: The difference between the MACD line and the signal line. Positive values indicate bullish momentum, while negative values indicate bearish momentum.
- **Usage**: Look for crossovers (MACD crossing the signal line) to identify potential trend changes.
---
#### 2. **CMF (Chaikin Money Flow)**
The **CMF** measures the volume-weighted average of accumulation and distribution over a specific period. It shows whether money is flowing into or out of an asset.
- **Purpose**: Detects buying or selling pressure based on price and volume.
- **Key Components**:
- **Positive CMF**: Indicates that the asset is being accumulated (buying pressure).
- **Negative CMF**: Indicates that the asset is being distributed (selling pressure).
- **Usage**: Values above 0 suggest bullish strength, while values below 0 suggest bearish strength.
---
#### 3. **MOM (Momentum)**
The **Momentum Indicator** measures the rate of change of an asset's price over a specified period. It helps traders identify the speed of price movements.
- **Purpose**: Highlights the strength and direction of price momentum.
- **Key Components**:
- **Momentum Line**: Positive values indicate upward momentum, while negative values indicate downward momentum.
- **Usage**: A rising momentum line suggests strengthening price trends, while a falling line indicates weakening trends.
---
### Benefits of Combining These Indicators:
1. **Trend Confirmation**: MACD provides a clear picture of trend direction and potential reversals.
2. **Volume-Based Insights**: CMF adds a layer of confirmation by analyzing money flow based on price and volume.
3. **Momentum Analysis**: MOM reveals the speed and strength of price movements, helping traders confirm breakouts or trend exhaustion.
4. **Enhanced Decision-Making**: The combination of these indicators allows traders to make more informed decisions by evaluating different aspects of market behavior in one pane.
---
### How to Use:
- **Identify Trends**: Use MACD to identify overall trend direction and reversals.
- **Confirm Momentum**: Check MOM to validate the strength of the trend.
- **Gauge Buying/Selling Pressure**: Refer to CMF to confirm whether the price movement is backed by accumulation or distribution.
- **Entry/Exit Points**: Look for MACD crossovers, CMF shifts above/below zero, and momentum changes to refine entry and exit strategies.
This powerful tool integrates the strengths of three indicators, making it ideal for traders looking to analyze market conditions holistically and improve their timing and accuracy.
measure last swing [keypoems]MEASURE LAST SWING
Version: v0.0.7
An indicator for measuring market swings and calculating position sizing based on pivot points and risk parameters. Helps traders visualize price swings and automatically compute position sizes based on their desired risk amount.
FEATURES:
• Identifies and tracks last pivot point in price action
• Displays visual measurements of price swing
• Calculates position sizes based on risk parameters
• Supports major futures contracts with automatic multiplier detection
HOW IT WORKS:
The indicator detects pivot highs and lows using your specified pivot strength, then draws measurement lines and calculates position sizes based on your risk parameters. It automatically cleans up old drawings when new pivot points are identified.
INPUT PARAMETERS:
General Settings:
• Risk Amount - Amount you want to risk per trade
• Pivot Strength - Bars required on either side to confirm a pivot
• Offset - Number of bars to offset the vertical line
Visual Settings:
• Horizontal and Vertical Lines - Customizable colors, widths (1-4), and styles
• Labels - Adjustable text color and size
CONTRACT MULTIPLIERS:
Automatically detects and applies the correct multiplier:
• ES (E-mini S&P 500): 50.0
• MES (Micro E-mini S&P 500): 5.0
• NQ (E-mini Nasdaq): 20.0
• MNQ (Micro E-mini Nasdaq): 2.0
• YM (E-mini Dow): 5.0
• MYM (Micro E-mini Dow): 0.5
• Other symbols: 1.0 (default)
DISPLAY ELEMENTS:
1. Horizontal line showing the level of the last pivot point
2. Vertical line measuring the distance to current price
3. Distance label showing point distance
4. Risk/Position label showing risk amount and calculated position size
POSITION SIZING:
Position Size = Floor(Risk Amount / (Distance in Points × Contract Multiplier))
IDEAL FOR:
• Measuring price swings for technical analysis
• Position sizing based on risk management rules
• Identifying potential entry and exit points
• Visual analysis of market structure
• Risk management automation
Smoothed Gaussian Trend Filter [AlgoAlpha]Experience seamless trend detection and market analysis with the Smoothed Gaussian Trend Filter by AlgoAlpha! This cutting-edge indicator combines advanced Gaussian filtering with linear regression smoothing to identify and enhance market trends, making it an essential tool for traders seeking precise and actionable signals.
Key Features :
🔍 Gaussian Trend Filtering: Utilizes a customizable Gaussian filter with adjustable length and pole settings for tailored smoothing and trend identification.
📊 Linear Regression Smoothing: Reduces noise and further refines the Gaussian output with user-defined smoothing length and offset, ensuring clarity in trend representation.
✨ Dynamic Visual Highlights: Highlights trends and signals based on volume intensity, allowing for real-time insights into market behavior.
📉 Choppy Market Detection: Identifies ranging or choppy markets, helping traders avoid false signals.
🔔 Custom Alerts: Set alerts for bullish and bearish signals, trend reversals, or choppy market conditions to stay on top of trading opportunities.
🎨 Color-Coded Visuals: Fully customizable colors for bullish and bearish signals, ensuring clear and intuitive chart analysis.
How to Use :
Add the Indicator: Add it to your favorites and apply it to your TradingView chart.
Interpret the Chart: Observe the trend line for directional changes and use the accompanying buy/sell signals for entry and exit opportunities. Choppy market conditions are flagged for additional caution.
Set Alerts: Enable alerts for trend signals or choppy market detections to act promptly without constant chart monitoring.
How It Works :
The Smoothed Gaussian Trend Filter uses a combination of advanced smoothing techniques to identify trends and enhance market clarity. First, a Gaussian filter is applied to price data, using a user-defined length (Gaussian length) and poles (smoothness level) to calculate an alpha value that determines the degree of smoothing. This creates a refined trend line that minimizes noise while preserving key market movements. The output is then further processed using linear regression smoothing, allowing traders to adjust the length and offset to flatten minor oscillations and emphasize the dominant trend. To incorporate market activity, volume intensity is analyzed through a normalized Hull Moving Average (HMA), dynamically adjusting the trend line's color transparency based on trading activity. The indicator also identifies trend direction by comparing the smoothed trend line with a calculated SuperTrend-style level, generating clear trend regimes and highlighting ranging or choppy conditions where trends are less reliable and avoiding false signals. This seamless integration of Gaussian smoothing, regression analysis, and volume dynamics provides traders with a powerful and intuitive tool for market analysis.
Daily Close Levels with ATR and Custom OffsetsDescription:
This Pine Script visualizes daily close levels, calculates key price zones based on custom offsets and ATR (Average True Range), and is an essential tool for traders analyzing support and resistance zones.
Features
Close Value Line: Displays the daily close value as a line on the chart.
ATR Values: Shows the ATR value in both price and tick format.
Custom Offsets:
Calculates positive and negative price levels based on a user-defined tick offset.
Supports multipliers for extended zones (e.g., 2x offset).
Labels:
Displays the close value and ATR on the chart.
Annotates calculated price levels directly on the corresponding lines.
Time Control: Calculates levels at a user-defined hour (e.g., 20:00).
Customizable Parameters:
Close Time (Hour): Choose the specific hour for analyzing the close price.
Custom Line Offset: Define the price offset in ticks.
ATR Length: Adjust the ATR calculation length.
Timezone Offset: Supports time adjustments for different time zones.
Enable/Disable Labels and Values: Toggle the display of labels and values on the chart.
Ultimate RSI with VWMA and ADX ( Hamza ŞAHİN )LuxAlgo'nun yeni mütiş indikatörünü HAHO indikatörü ile kombine ederek hazırladım sizdeğerli kullanıcılarıma sunuyorum
PCHLM with TimeframeThis indicator plots the previous candle's high, low, and midpoint on the chart with customizable line thickness and distinct colors for better visualization. It allows traders to choose the timeframe from which these levels are derived, providing flexibility to adapt to different trading strategies.
Features:
Timeframe Selection: Users can select any desired timeframe (e.g., daily, weekly) to define the previous candle's high, low, and midpoint.
Color-Coded Lines:
The high level is marked with a red line.
The low level is marked with a green line.
The midpoint is marked with a grey line.
Adjustable Line Thickness: Traders can set the thickness of the lines between 1 and 5, allowing for better visual customization according to their preferences.
Dynamic Updates: The lines update automatically with each new candle, ensuring the levels are always current based on the selected timeframe.
Chart InfoOVERVIEW
What would a general summary of the symbol on the chart look like? Here’s an example: This script was created to help you easily access the essential details of a symbol, which I believe are critical for daily use.
CONCEPTS
When using any indicator or analysing price movement, the characteristics of the chart become important. Each symbol has a unique character and the more we can quickly find out about it, the better. Instead of embedding those details within each individual indicator, it is often more practical to access these data through an external tool. This indicator presents the following results related to the symbol on your chart in a table format:
ID : Ticker ID (Exchange, Base Currency, and Quote Currency)
TIMEFRAME : The chart's time period
START : The starting date of the chart
FINISH : The finishing date of the chart
INTERVAL : The total time between the start and finish dates (based on timeframe). The current bar is not included in the total time until it is closed.
BAR INDEX : The total number of bars on the chart (can also be viewed in both forward and backward directions in the data window as a series type).
VOLATILITY : Percentage ratio of 14-bar ATR to close.
CHANGE : The daily percentage change.
HODL : The percentage return that would be gained if the symbol had been bought and held since the first bar.
DAILY BUY : The percentage return that would be gained if the same amount of buying was made daily (a kind of DCA).
MECHANICS
This is a very simple script. I didn't add user-defined timestamp inputs because I didn’t want to overwhelm the indicator with parameters. However, if requested, i can make improvements in this direction in a second version.
NOTES
I live in Istanbul, so I designed the default timezone offset as GMT+3. Please remember to adjust it according to your own timezone to ensure the date results are accurate.
I hope it helps everyone. Do not forget to manage your risk. And trade as safely as possible. Best of luck!
VWAP Divergence | dobofulopOverview :
This script identifies potential bullish and bearish divergence signals using the Volume Weighted Average Price (VWAP). It calculates VWAP resets based on a selected “Anchor Period” (Session, Week, Month, Quarter, Year, Decade, Century, or corporate events like Earnings, Dividends, Splits). When price action and VWAP move in opposite directions with a sufficiently large ATR-based move over a chosen lookback period, the script plots divergence dots on the chart.
Key Features:
VWAP Anchoring : Choose an anchor period for resetting VWAP. This could be daily, weekly, monthly, or based on specific corporate events (Earnings, Dividends, Splits).
Divergence Detection : Looks for instances where the price is moving up while VWAP moves down (potential bullish divergence), and vice versa for bearish divergence.
ATR Filter : Uses the ATR (Average True Range) to filter out minor or insignificant price moves, helping to reduce noise.
Gap Check : Automatically invalidates signals if large price gaps occur within the lookback range.
Visual Signals : Bullish divergences are plotted below the bar, while bearish divergences are plotted above, making it easy to spot potential reversal zones.
How to Us
Inputs:
- Anchor Period (Session, Week, Month, etc.) – determines when the VWAP calculation restarts.
- Source (Default: HLC3) – Price source for the VWAP.
- ATR Multiplier and Lookback Period – Fine-tune the threshold for detecting significant moves vs. VWAP.
Interpretation:
- Bullish Divergence Dot: Suggests potential price strength when price moves higher but VWAP moves lower.
- Bearish Divergence Dot: Suggests potential price weakness when price moves lower but VWAP moves higher.
Disclaimer:
This script is provided for educational purposes only and should not be interpreted as financial advice. Past performance does not guarantee future results. Always conduct your own analysis and consider consulting a financial professional before making trading decisions.
Order Blocks with Volume Heatmap & Clusters - VK TradingOrder Blocks with Volume Heatmap & Clusters - VK Trading
This script is designed to identify and highlight Order Blocks, a key concept in institutional trading, and combines it with powerful tools like volume heatmaps and accumulation clusters for enhanced market analysis. Suitable for traders of all experience levels, this script provides a clear and customizable visualization to help identify significant market zones effectively.
What Does This Script Do?
Order Block Identification: Highlights bullish and bearish order blocks directly on the chart, making it easier to spot key supply and demand zones.
Volume Heatmap: A dynamic heatmap adjusts colors based on relative volume, allowing you to quickly identify areas of heightened activity.
Institutional Accumulation Clusters: Zones of potential institutional accumulation are calculated using a combination of ATR (Average True Range), standardized volume, and RSI (Relative Strength Index).
Automatic Clearing: Invalidated order blocks are automatically removed, ensuring your charts remain clean and focused.
Key Features
Customizable Sensitivity: Adjust the script’s sensitivity to tailor order block detection to different market conditions and strategies.
Advanced Volume Display Options: Toggle volume visibility on or off. Customize the position, size, and color of volume labels for better integration with your chart's design.
Dynamic Heatmap Intensity: Fine-tune the heatmap’s intensity and color to highlight areas of interest based on trading volume.
Dual Order Block Detection: Uses two independent detection settings to analyze the market from multiple perspectives.
Visual Alerts: Automatically draws key level lines based on detected order blocks for better clarity.
User Benefits:
Clear Market Analysis: Helps pinpoint institutional activity and key levels with minimal effort.
Increased Efficiency: Automates plotting and analysis, allowing you to focus on decision-making.
Versatile Compatibility: Complements strategies like Smart Money Concepts, Wyckoff, and Price Action approaches.
Disclaimer
This script is intended as an analytical and educational tool. It does not guarantee specific outcomes or eliminate trading risks. Use this tool at your own discretion and always practice proper risk management.
BTCUSDT Premium Prices and EMA360The Exponential Moving Average (EMA) is a widely used technical indicator in trading that helps analysts and traders identify price trends over a specified period. Unlike the Simple Moving Average (SMA), which treats all data points equally, the EMA gives more weight to recent prices, making it more sensitive to recent price movements. This characteristic allows the EMA to react quickly to changes in market conditions, providing timely insights into potential trends.
## **Key Features of EMA**
- **Weighting Mechanism**: The EMA uses a smoothing factor that emphasizes recent price data while still considering older observations. This leads to a more dynamic representation of price trends compared to the SMA .
- **Trend Identification**: The EMA is particularly effective for identifying the direction of a stock's price movement. A rising EMA indicates an uptrend, while a declining EMA suggests a downtrend. Traders often use multiple EMAs with different periods to spot crossovers, which can signal potential buy or sell opportunities .
- **Calculation**: To calculate the EMA, one typically starts with an initial Simple Moving Average (SMA) for the first period, then applies the following formula for subsequent periods:
$$
\text{EMA}_{\text{today}} = \left(\text{Price}_{\text{today}} \times \left(\frac{2}{N + 1}\right)\right) + \left(\text{EMA}_{\text{yesterday}} \times \left(1 - \frac{2}{N + 1}\right)\right)
$$
Where $$N$$ is the number of periods .
## **Applications in Trading**
Traders utilize the EMA in various strategies, including:
- **Crossover Strategies**: By monitoring two EMAs of different lengths (e.g., 50-day and 200-day), traders can identify bullish or bearish signals when one crosses above or below the other .
- **Combining Indicators**: The EMA can be combined with other indicators like the Relative Strength Index (RSI) or Moving Average Convergence Divergence (MACD) for enhanced decision-making .
In summary, the Exponential Moving Average is a crucial tool for traders seeking to navigate market trends effectively. Its ability to prioritize recent data makes it an essential component of many trading strategies, providing insights that can lead to informed investment decisions.
Chained Inside BarsThis script identifies consecutive inside bars by referencing only the most recent non-inside bar, so it avoids excessive lookback. An “inside” bar means its high is lower than the reference bar’s high, and its low is higher than the reference bar’s low. If the current bar is inside, it’s colored white; once price breaks outside, the script updates that new bar as the next reference.
Key Points
• Bars are compared against the last non-inside bar, chaining consecutive inside bars off that same reference bar.
• Inside bars are highlighted in white (non-inside bars retain default chart colors).
• Includes an alert condition for when a new inside bar forms.
• Prevents large dynamic indexing, making it more stable and efficient.
Use this indicator to quickly spot consecutive inside-bar formations without needing to track every single bar-to-bar relationship.
Doji Double Top & Double Bottom
FUNCTION :
This indicator checks if 2 consecutive candlesticks are formed in such a way that both the lows or both the highs of the consecutive candlesticks are almost at the same level and either of them is a doji
TIMEFRAMES :
it works on daily, weekly, monthly and higher timeframes
CRITERIA :
There is maximum difference value between 2 consecutive candlesticks' lows or 2 consecutive candlesticks' highs
Minimum value of the doji's wick size
Maximum value of the doji's body size
These 3 conditions need to be fulfilled for the 2 consecutive candlesticks to be considered as a Double top or Double bottom by this indicator
EXAMPLES :
Here the indicator is giving only double Bottom signals on CRUDE OIL chart
Here the indicator is giving only double top signals on GOLD chart
Here the indicator gives both double top & double bottom signals on EUR/USD Daily chart
Here the indicator is giving both double top & double bottom signals on EUR/USD Half-Yearly chart
DEFINITIONS :
There are 2 types -
DOJI DOUBLE BOTTOM - if the lows of 2 consecutive candlesticks are almost at the same level & either of them is doji then it is called Double Bottom and market is supposed to go higher after forming it.
DOJI DOUBLE TOP - if the highs of 2 consecutive candlesticks are almost at the same level & either of them is doji then it is called Double Top and market is supposed to go lower after forming it.
SETTINGS :
There are options to change the value of each of the 3 parameters within the indicator's settings for daily, weekly & monthly chart [
LIMITATIONS :
You should not trade based on the signals from this indicator solely, you should check other parameters too before making trading decision
Mxwll Hedge Suite [Mxwll]Hello Traders!
The Mxwll Hedge Suite determines the best asset to hedge against the asset on your chart!
By determining correlation between the asset on your chart and a group of internally listed assets, the Mxwll Hedge Suite determines which asset from the list exhibits the highest negative correlation, and then determines exactly how many coins/shares/contracts of the asset must be bought to achieve a perfect 1:1 hedge!
The image above exemplifies the process!
The purple box on the chart shows the eligible price action used to determine correlation between the asset on my chart (BTCUSDT.P) and the list of cryptocurrencies that can be used as a hedge!
From this price action, the coin determined to have to greatest negative correlation to BTCUSDT.P is FTMUSD.
The image above further outlines the hedge table located in the bottom-right corner of your chart!
The hedge table shows exactly how many coins you’d need to purchase for the hedge asset at various leverages to achieve a perfect 1:1 hedge!
Hedge Suite works on any asset on any timeframe!
And that’s all! A short and sweet script that is hopefully helpful to traders looking to hedge their positions with a negatively correlated asset!
Thank you, Traders!
[blackcat] L1 Small Wave Operation L1 Small Wave Operation
Overview
Are you looking to catch those elusive small waves in the market? Look no further than " L1 Small Wave Operation." This script offers a unique way to identify potential buying opportunities by analyzing price movements, volume changes, and trend directions. With customizable inputs and clear visual indicators, it’s designed to help traders spot favorable entry points with precision.
Features
Dynamic Signal Identification: Automatically detects two types of buy signals labeled "S" and "B."
Adaptable Parameters: Allows users to adjust low period, high period, EMA periods, SMA period, and various threshold values to fine-tune the strategy.
Visual Clarity: Plots K and D lines along with four distinct threshold levels for easy visualization.
Condition-Based Signals: Uses multiple conditions including volume increases, price actions, and crossover events to confirm signals.
How It Works
Calculate Percent Range: Determines where the current closing price lies within the recent low and high range.
Compute Moving Averages: Calculates Exponential Moving Average (EMA) and Simple Moving Average (SMA) of the percent range.
Define Conditions: Checks for bullish or strong bullish patterns, uptrends, and specific crossover events between K and D lines.
Generate Signals: Marks potential buying opportunities when predetermined conditions are met.
How To Use
Add this script to your TradingView chart.
Adjust the input parameters according to your preferred settings.
Monitor the plotted lines and look for "S" and "B" labels indicating buy signals.
Consider incorporating these signals into a broader trading strategy that includes risk management techniques.
What Makes It Special
Flexibility: Users can easily modify parameters to adapt the script to different markets or personal preferences.
Automation: Saves time by automatically scanning for trade setups based on predefined rules.
Comprehensive Analysis: Combines multiple factors like volume, price action, and moving averages to provide reliable signals.
Limitations
Past performance does not guarantee future results.
Market conditions can vary, affecting signal reliability.
Not suitable for very short-term trades without additional refinements.
Notes
Always perform backtesting on historical data before implementing live trades.
Understand the underlying logic of the script to avoid misinterpretation of signals.
Regularly review and adjust parameters based on changing market dynamics.
Golden/Death Cross HighlighterThis indicator helps you easily identify and visualize Golden Cross and Death Cross patterns combined with price action confirmation. It highlights chart backgrounds when specific conditions are met, making it easy to spot potential trend changes.
🔑 Key Features:
Highlights Golden Cross conditions (50 SMA crosses above 200 SMA) when price closes above both MAs
Highlights Death Cross conditions (50 SMA crosses below 200 SMA) when price closes below both MAs
Customizable MA lengths (default: 50 and 200)
Adjustable highlight opacity
Built-in alerts for cross events
Clear visualization of both moving averages
📈 Color Guide:
Yellow Background: Golden Cross active + price above both MAs
Red Background: Death Cross active + price below both MAs
⚙️ Settings:
Fast MA Length: Length of faster moving average (default 50)
Slow MA Length: Length of slower moving average (default 200)
Golden Cross Highlight Opacity: Adjust visibility of bullish highlights
Death Cross Highlight Opacity: Adjust visibility of bearish highlights
💡 Usage Tips:
Use in combination with other indicators for confirmation
Set up alerts for potential trend changes
Adjust opacity to match your chart style
Works best on higher timeframes (4H, Daily, Weekly)