Ultimate Trend Indicator with High Accuracy//@version=6
indicator("Ultimate Trend Indicator with High Accuracy", overlay=true)
// تنظیمات پارامترها
maShortLength = input.int(50, title="Short Moving Average Length")
maLongLength = input.int(200, title="Long Moving Average Length")
maSource = input.source(close, title="MA Source")
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
macdFastLength = input.int(12, title="MACD Fast Length")
macdSlowLength = input.int(26, title="MACD Slow Length")
macdSignalLength = input.int(9, title="MACD Signal Length")
atrLength = input.int(14, title="ATR Length")
pmaxATRLength = input.int(10, title="PMax ATR Length")
pmaxMultiplier = input.float(3.0, title="PMax ATR Multiplier")
pmaxMAType = input.string("EMA", title="PMax Moving Average Type", options= )
compressionThreshold = input.float(0.5, title="Compression Threshold") // حد فشردگی
volumeFilter = input.float(1.5, title="Volume Filter Multiplier") // فیلتر حجم معاملات
// محاسبه اندیکاتورها
maShort = ta.sma(maSource, maShortLength)
maLong = ta.sma(maSource, maLongLength)
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, macdFastLength, macdSlowLength, macdSignalLength)
atr = ta.atr(atrLength)
volumeSMA = ta.sma(volume, 20)
// تشخیص فشردگی خطوط
maCompression = math.abs(maShort - maLong) < compressionThreshold
macdCompression = math.abs(macdLine - signalLine) < compressionThreshold
// PMax
getMA(src, length, type) =>
if type == "SMA"
ta.sma(src, length)
else if type == "EMA"
ta.ema(src, length)
else if type == "WMA"
ta.wma(src, length)
else if type == "TMA"
ta.sma(ta.sma(src, math.ceil(length / 2)), math.floor(length / 2) + 1)
else
na
pmaxMA = getMA(close, pmaxATRLength, pmaxMAType)
longStop = pmaxMA - pmaxMultiplier * atr
shortStop = pmaxMA + pmaxMultiplier * atr
dir = 1
dir := nz(dir , dir)
dir := dir == -1 and pmaxMA > shortStop ? 1 : dir == 1 and pmaxMA < longStop ? -1 : dir
pmax = dir == 1 ? longStop : shortStop
// تشخیص واگرایی
rsiBullishDivergence = ta.valuewhen(ta.crossover(rsi, rsiOversold), close, 0) > ta.valuewhen(ta.crossover(rsi, rsiOversold), close, 1) and close < close
rsiBearishDivergence = ta.valuewhen(ta.crossunder(rsi, rsiOverbought), close, 0) < ta.valuewhen(ta.crossunder(rsi, rsiOverbought), close, 1) and close > close
// تشخیص شکست سطوح کلیدی
breakoutUp = close > ta.highest(high, 20) // شکست مقاومت
breakoutDown = close < ta.lowest(low, 20) // شکست حمایت
// شرایط تشخیص شروع روند صعودی و نزولی با فیلترهای بیشتر
startUptrend = (maCompression and macdCompression and rsi > 50 and close > pmaxMA and volume > volumeSMA * volumeFilter and close > maShort and close > maLong) or (rsiBullishDivergence and breakoutUp)
startDowntrend = (maCompression and macdCompression and rsi < 50 and close < pmaxMA and volume > volumeSMA * volumeFilter and close < maShort and close < maLong) or (rsiBearishDivergence and breakoutDown)
// نمایش برچسبها فقط در شرایط قوی
plotshape(series=startUptrend and not startUptrend , title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="خرید", textcolor=color.white, size=size.small)
plotshape(series=startDowntrend and not startDowntrend , title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="فروش", textcolor=color.white, size=size.small)
// نمایش سطوح PMax و میانگینهای متحرک
plot(pmax, color=color.orange, title="PMax", linewidth=2)
plot(maShort, color=color.blue, title="Short MA", linewidth=2)
plot(maLong, color=color.red, title="Long MA", linewidth=2)
Candlestick analysis
ATR Zen V2ATR Candle Zen V2
This is extremely useful for day traders in particular as it allows you to gauge the average range of candles during certain times of day
Volume Scalping Signal aaaGiải thích:
SMA Price: Được sử dụng để xác định xu hướng của giá. Khi giá đóng cửa nằm trên SMA, có thể xác nhận một xu hướng tăng.
SMA Volume: Được sử dụng để tính toán khối lượng giao dịch trung bình trong một khoảng thời gian nhất định.
Volume Spike: Khi khối lượng giao dịch vượt quá một ngưỡng nhất định (ví dụ: gấp 2 lần khối lượng trung bình), cho thấy sự tăng cường hoạt động giao dịch, có thể dẫn đến một động thái giá lớn.
Tín hiệu Mua: Khi khối lượng giao dịch tăng đột biến và giá đóng cửa nằm trên SMA của giá.
Tín hiệu Bán: Khi khối lượng giao dịch tăng đột biến và giá đóng cửa nằm dưới SMA của giá.
Tinh chỉnh và tối ưu:
Bạn có thể thay đổi các tham số như SMA Length cho cả giá và khối lượng, cùng với Volume Multiplier, để phù hợp với phong cách giao dịch của mình.
Phân tích biểu đồ và thử nghiệm với các giá trị khác nhau để tối ưu hóa chiến lược scalping này cho các điều kiện thị trường cụ thể.
Chỉ báo này sẽ giúp bạn phát hiện các Volume Spikes có thể dẫn đến các biến động giá lớn, rất hữu ích trong chiến lược scalping trên khung thời gian 1 phút.
Bộ Tố Lệnh Fomo của Nuly-Mother and Break Candles - Gần giống như nến inside bar. Bộ tố lệnh này giúp các bạn fomo theo xu hướng. Cây nến mẹ bao trùm nến con, nến con bị nén giá. Trong 1 xu hướng mạnh, thì cây nến quyết định xu hướng sẽ là cây thứ 3. Giá phá vỡ đỉnh/ đáy cây mẹ sẽ tạo ra hướng đi quán tính cho giá. Vào lệnh tại điểm break cây mẹ hoặc trong thân cây mẹ. Dừng lỗ ở đỉnh/ đáy cây nến mẹ +1,5 point.
Hãy tuân thủ xu hướng. Ưu tiên nến m5 m15 trở lên.
Trong chỉ báo này nến mẹ được setup là nến vàng.
Almost similar to an inside bar pattern. This script helps traders follow the trend without succumbing to FOMO. The mother candle engulfs the inside candle, compressing the price within the inside candle. In a strong trend, the candle that determines the direction will be the third one. When the price breaks the high/low of the mother candle, it creates a momentum-driven price movement. The stop loss is placed at the high/low of the mother candle plus 1.5 points.
Always follow the trend. Prioritize using the M5 or M15 timeframe or higher.
In this indicator, the mother candle is highlighted in yellow.
MACD + 200 EMA Strategy(Raju Basnet)this strategy uses MACD and 200 EMA
Strategy Logic:
Buy Signal: The strategy will generate a buy signal when the MACD line crosses above the signal line and the price is above the 200 EMA. This indicates upward momentum in an overall bullish market trend.
Sell Signal: A sell signal will be generated when the MACD line crosses below the signal line and the price is below the 200 EMA. This suggests downward momentum in a bearish market trend.
Visual Indicators:
200 EMA Line: Plotted in blue, it represents the long-term trend and helps filter signals by showing whether the market is in a bullish or bearish state.
Buy and Sell Signals: Plotted as green labels below the bar for buy signals and red labels above the bar for sell signals. Arrows may also appear to clearly mark the signal points.
Order Flow Indicator//@version=5
indicator("Order Flow Indicator", overlay=false)
// Inputs
length = input.int(20, title="Smoothing Length")
showDelta = input.bool(true, title="Show Delta Volume")
showCumulativeDelta = input.bool(true, title="Show Cumulative Delta")
// Volume calculation
buyVolume = volume * (close > open ? 1 : 0) // Volume when the close is above open
sellVolume = volume * (close < open ? 1 : 0) // Volume when the close is below open
deltaVolume = buyVolume - sellVolume
// Cumulative Delta
var float cumulativeDelta = na
cumulativeDelta := na(cumulativeDelta ) ? deltaVolume : cumulativeDelta + deltaVolume
// Smoothed Delta
smoothedDelta = ta.sma(deltaVolume, length)
smoothedCumulativeDelta = ta.sma(cumulativeDelta, length)
// Plot Delta Volume
plot(showDelta ? deltaVolume : na, color=color.new(color.blue, 0), title="Delta Volume", style=plot.style_histogram)
// Plot Cumulative Delta
plot(showCumulativeDelta ? cumulativeDelta : na, color=color.new(color.green, 0), title="Cumulative Delta")
plot(showCumulativeDelta ? smoothedCumulativeDelta : na, color=color.new(color.red, 0), title="Smoothed Cumulative Delta")
// Alerts
alertcondition(deltaVolume > smoothedDelta, title="High Delta Volume", message="Delta Volume is unusually high!")
alertcondition(cumulativeDelta > smoothedCumulativeDelta, title="High Cumulative Delta", message="Cumulative Delta is rising rapidly!")
Consecutive Candles TestIt sends a buy signal when it detects 3 positive candles in a row and sell after the fourth
Dynamic HTF Candles with Timeframe by ChrisPlots the respective HTF candles next to the chart, so you have idea whats where all the time.
1min plots 15min
5min plots 1h
15min plots 4hours
EMA 5 & EMA 20 with Buy/Sell Alerts//@version=5
indicator("EMA 5 & EMA 20 with Buy/Sell Alerts", overlay=true)
// Define the 5-period EMA
ema5 = ta.ema(close, 5)
plot(ema5, color=color.blue, linewidth=2, title="EMA 5")
// Define the 20-period EMA
ema20 = ta.ema(close, 20)
plot(ema20, color=color.orange, linewidth=2, title="EMA 20")
// Generate Buy Signal (5 EMA crosses above 20 EMA)
buySignal = ta.crossover(ema5, ema20)
plotshape(buySignal, color=color.green, style=shape.labelup, location=location.belowbar, text="BUY", title="Buy Signal")
// Generate Sell Signal (5 EMA crosses below 20 EMA)
sellSignal = ta.crossunder(ema5, ema20)
plotshape(sellSignal, color=color.red, style=shape.labeldown, location=location.abovebar, text="SELL", title="Sell Signal")
// Alert conditions for Buy and Sell signals
alertcondition(buySignal, title="Buy Alert", message="5 EMA crossed above 20 EMA - Buy Signal!")
alertcondition(sellSignal, title="Sell Alert", message="5 EMA crossed below 20 EMA - Sell Signal!")
TWO EMA CROSSThis script uses Pine Script version 5 and is designed for a 5-minute time frame. The script plots the EMA 7, EMA 21, and ZLMA, and generates buy and sell signals one candle before the crossover of EMA 7 and EMA 21.
Supertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell Signals. Supertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell Signals
Candlestick Pattern DetectorFeatures
Reversal Patterns:
Bullish Patterns:
Bullish Engulfing: A strong reversal signal when a bullish candle completely engulfs the previous bearish candle.
Hammer: Indicates a potential bottom reversal with a small body and a long lower wick.
Morning Star: A three-candle pattern signaling a transition from a downtrend to an uptrend.
Bearish Patterns:
Bearish Engulfing: A bearish candle fully engulfs the prior bullish candle, indicating a potential downtrend.
Shooting Star: A potential top reversal with a small body and a long upper wick.
Evening Star: A three-candle pattern signaling a shift from an uptrend to a downtrend.
Continuation Patterns:
Bullish Continuation:
Rising Three Methods: A consolidation pattern within an uptrend, indicating the trend is likely to continue.
Bearish Continuation:
Falling Three Methods: A consolidation pattern within a downtrend, suggesting further downside movement.
Visual Highlights:
Bullish Reversal Patterns: Labeled below candles with a green "Bullish" marker.
Bearish Reversal Patterns: Labeled above candles with a red "Bearish" marker.
Bullish Continuation Patterns: Displayed as blue triangles pointing upward.
Bearish Continuation Patterns: Displayed as orange triangles pointing downward.
Real-Time Alerts:
Get notified when a specific candlestick pattern is detected, enabling you to act quickly in dynamic market conditions.
Monday JumpThe "Monday Candles with Percentage Difference" indicator calculates the percentage difference between the opening and closing prices for each Monday and displays this difference. This indicator visually shows the user whether the price movement on Mondays is positive or negative.
Simple Moving Average Cross StrategyCondiciones de compra:
Se ejecuta una compra cuando el precio cruza la SMA de abajo hacia arriba.
La barra correspondiente se colorea en verde.
Condiciones de venta:
Se ejecuta una venta cuando el precio cruza la SMA de arriba hacia abajo.
La barra correspondiente se colorea en rojo.
Visualización:
La SMA se grafica en color azul para facilitar la identificación de los cruces.
Simple Moving Average Cross StrategyCondiciones de compra:
Se ejecuta una compra cuando el precio cruza la SMA de abajo hacia arriba.
La barra correspondiente se colorea en verde.
Condiciones de venta:
Se ejecuta una venta cuando el precio cruza la SMA de arriba hacia abajo.
La barra correspondiente se colorea en rojo.
Visualización:
La SMA se grafica en color azul para facilitar la identificación de los cruces.
Candle Counter by ComLucro - Multi-Timefram - 2025_V01Candle Counter by ComLucro - Multi-Timeframe - 2025_V01
The Candle Counter by ComLucro - Multi-Timeframe is a highly customizable tool designed to help traders monitor the number of candles across various timeframes directly on their charts. Whether you're analyzing trends or tracking specific market behaviors, this indicator provides a seamless and efficient way to enhance your technical analysis.
Key Features:
Flexible Timeframe Selection: Track candle counts on yearly, monthly, weekly, daily, or hourly intervals to suit your trading style.
Dynamic Label Positioning: Choose to display labels above or below candles, offering greater control over your chart layout.
Customizable Colors: Adjust label text colors to match your chart's aesthetics and improve visibility.
Clean and Organized Visualization: Automatically generates labels for each candle without overcrowding your chart.
How It Works:
Select a Timeframe: Choose from yearly, monthly, weekly, daily, or hourly intervals based on your analysis needs.
Automatic Counting: The indicator calculates and displays the number of candles for the selected period directly on your chart.
Label Customization: Adjust the position (above or below the candles) and color of the labels to align with your preferences.
Why Use This Indicator?
This script is perfect for traders who need a clear and visual representation of candle counts in specific timeframes. Whether you're monitoring trends, evaluating price action, or developing strategies, the Candle Counter by ComLucro adapts to your needs and helps you make informed decisions.
Disclaimer:
This script is intended for educational and informational purposes only. It does not constitute financial advice. Always practice responsible trading and ensure this tool aligns with your strategies and risk management practices.
About ComLucro:
ComLucro is dedicated to providing traders with practical tools and educational resources to improve decision-making in the financial markets. Discover other scripts and strategies developed to enhance your trading experience.
20% Move in 5 DaysThis script is used to mark the 20% move in 5 days. The main intention of the script is that to study the charts why that happened.
Here is the script
//@version=5
indicator("20% Move in 5 Days", overlay=true)
// Inputs
lookbackDays = 5 // Number of days to look back
moveThreshold = 20.0 // Percentage move threshold
// Calculations
startPrice = ta.valuewhen(bar_index >= bar_index , close , 0)
priceChange = ((close - startPrice) / startPrice) * 100
// Conditions for 20% move
isBigMoveUp = priceChange >= moveThreshold
isBigMoveDown = priceChange <= -moveThreshold
// Plotting signals on the chart
bgcolor(isBigMoveUp ? color.new(color.green, 80) : na)
bgcolor(isBigMoveDown ? color.new(color.red, 80) : na)
plotshape(isBigMoveUp, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="20% Up Move")
plotshape(isBigMoveDown, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="20% Down Move")
// Optional debugging labels for moves
if isBigMoveUp
label.new(bar_index, high, str.tostring(priceChange, "#.##") + "%", style=label.style_circle, color=color.new(color.green, 80))
if isBigMoveDown
label.new(bar_index, low, str.tostring(priceChange, "#.##") + "%", style=label.style_circle, color=color.new(color.red, 80))
My script1. The body is used to determine the size of the reversal wick. A wick
that is between 2.5 to 3.5 times larger than the size of the body is
ideal.
2. For a bullish reversal wick to exist, the close of the bar should fall
within the top 35 percent of the overall range of the candle.
3. For a bearish reversal wick to exist, the close of the bar should fall
within the bottom 35 percent of the overall range of the candle.
BENSIG//@version=5
indicator("Swing High/Low Entry Strategy with SL/TP", overlay=true)
// Input for the time range (10:30am to 16:45pm UTC-5)
startTime = timestamp("GMT-5", year, month, dayofmonth, 10, 30)
endTime = timestamp("GMT-5", year, month, dayofmonth, 16, 45)
// Variables to store the highest and lowest swing points within a specific time range
var float swingHigh = na
var float swingLow = na
// Lookback period for calculating swing high and low
lookbackPeriod = 10
// Calculate swing high and low between the specified time period
if (time >= startTime and time <= endTime)
swingHigh := na
swingLow := na
else
swingHigh := ta.highest(high, lookbackPeriod) // Highest high in the last 10 bars
swingLow := ta.lowest(low, lookbackPeriod) // Lowest low in the last 10 bars
// Detect when swing high is broken (swept)
sweepHigh = not na(swingHigh) and high > swingHigh
// Bearish Order Block Detection (simple method using previous bearish candle)
bearishOrderBlock = close > open and close < open
// Buy and Sell logic based on swing high being swept and a bearish order block detected
buyCondition = sweepHigh and bearishOrderBlock
sellCondition = sweepHigh and bearishOrderBlock
// Stop loss and take profit logic
SL_buy = swingHigh
SL_sell = swingLow
TP_buy = swingLow
TP_sell = swingHigh
// Plot Buy and Sell Signals with labels and lines for SL and TP
if (buyCondition)
label.new(bar_index, low, text="BUY", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
line.new(x1=bar_index, y1=SL_buy, x2=bar_index + 10, y2=SL_buy, color=color.red, width=2, extend=extend.right)
line.new(x1=bar_index, y1=TP_buy, x2=bar_index + 10, y2=TP_buy, color=color.green, width=2, extend=extend.right)
if (sellCondition)
label.new(bar_index, high, text="SELL", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
line.new(x1=bar_index, y1=SL_sell, x2=bar_index + 10, y2=SL_sell, color=color.green, width=2, extend=extend.right)
line.new(x1=bar_index, y1=TP_sell, x2=bar_index + 10, y2=TP_sell, color=color.red, width=2, extend=extend.right)
// Alerts
alertcondition(buyCondition, title="Buy Signal", message="Buy signal triggered")
alertcondition(sellCondition, title="Sell Signal", message="Sell signal triggered")