Trend Duration (Top-Right) — Fixed//@version=5
indicator("Trend Duration (Top-Right) — Fixed", overlay=true)
// === Input ===
maLen = input.int(50, "MA Length", minval=1)
maType = input.string("EMA", "MA Type", options= )
showBox = input.bool(true, "Show status box (top-right)")
// === MA calculation ===
ma = maType == "EMA" ? ta.ema(close, maLen) : ta.sma(close, maLen)
plot(ma, "MA", color=color.orange, linewidth=2)
// === Trend detection ===
isUp = close > ma
isDown = close < ma
// === Persistent state ===
var string curTrend = "NONE"
var int startBarIndex = na
if barstate.isconfirmed
if isUp and curTrend != "UP"
curTrend := "UP"
startBarIndex := bar_index
else if isDown and curTrend != "DOWN"
curTrend := "DOWN"
startBarIndex := bar_index
// === Duration calculation ===
// Hitung jumlah bar sejak trend mulai
barsPassed = na(startBarIndex) ? 0 : bar_index - startBarIndex
// Konversi ke menit sesuai TF chart
minutesPassed = barsPassed * timeframe.multiplier
hours = math.floor(minutesPassed / 60)
mins = minutesPassed - hours * 60
durText = (hours > 0 ? str.tostring(hours) + "h " : "") + str.tostring(mins) + "m"
// === Build table (top-right) ===
var table t = table.new(position.top_right, 1, 2, border_width = 1)
if showBox
bg = curTrend == "UP" ? color.new(color.green, 0) : curTrend == "DOWN" ? color.new(color.red, 0) : color.new(color.gray, 0)
table.cell(t, 0, 0, "Trend: " + curTrend, text_color = color.white, bgcolor = bg, text_size = size.normal)
table.cell(t, 0, 1, "Duration: " + durText, text_color = color.white, bgcolor = bg, text_size = size.normal)
Breadth Indicators
Previous Periods $ EMA S/R Levels with Pivot Points [GNX]this is very useful indicator, this draw support and resistance level according to previous day/week/month low/high and most useful EMA based support and resistance levels with pivot points and also draw dynamic support and resistance, this could help you to take intraday trades.
KhoiHV - Bollinger Bands Buy/Sell Area ProBollinger Bands Buy/Sell Area Pro is a professional-grade indicator designed to identify potential trading opportunities based on Bollinger Bands. It highlights dynamic buy and sell areas by combining price action with volatility, helping traders quickly visualize market conditions.
✨ Key Features
Automatically plots upper, middle, and lower Bollinger Bands.
Marks Buy Areas when price enters oversold zones near the lower band.
Marks Sell Areas when price enters overbought zones near the upper band.
Configurable inputs for length, source, and multiplier to fit any trading style.
Easy-to-read chart visuals with colored zones for instant recognition.
💡 How to Use
Look for Buy Areas near the lower band in trending markets to catch potential rebounds.
Watch for Sell Areas near the upper band to anticipate possible pullbacks.
Combine with volume, momentum, or trend indicators for stronger confirmation.
This tool is especially useful for traders who want a clear, visual edge in spotting volatility-based entries and exits without constantly recalculating signals.
Alpha BThis is just another indicator for RSI plotting.
It calculates the RSI based on a custom formula.
The Periods are to be provided for 2 types of RSI confluences.
The divergence can also be plotted.
Structural HL/LL Trade [gold/crypto/index] [GNX]this indicator auto deduct Higher High/ Higher Low / Lower High / Lower Low and give buy/sell signals on those points, you can modify the value and set structured candles according to your need, well worked with small timeframe like 1 minute for GOLD/CRYPTO/INDEX trading.
F160 YAZ1LI8"Our updates continue on a regular basis. The advanced extensions applied on daily bars are renewed every week to ensure the most up-to-date and efficient performance." ✅
Scalping Smart Strategy [Refined Reversal SL] [GNX]this indicator is designed for quick scalping with protection of market reversal, after buy it will hit set target or it will be auto exit due to market reversal, this indicator includes auto trading webhook features. it can auto entry and exit and identify perfect scalping setups. will work on all type of market and assets.
[GNX] Multi-Timeframe EMA Crossoversidentify EMA crossover bull or bear in a single screen, its show multi timeframes data on all major EMAs on all Major Timeframes.
This indicator cover EMA9 / EMA 21/ EMA50/ EMA 99/ EMA 200 in all major timeframes 1m/5m/15m/60m/240m/1day
Crypto Order Flow Dashboard [GNX]Get live orders detail (buy/sell) to identify Green or Red candle would form. It will show past 4 candles data and 1 current forming candle data in realtime, also show carry orders from one candle to next one. it will help you out to predict next candle would be green or red. this script includes all major crypto exchange data, you can enable or disable their data and color output on chart.
Breakout/Breakdown Level Identifier [GNX]This indicator identify the breakout and breakdown levels, this indicator using major non lagging indicators to identify the Major levels for breakout and breakdown. This identify levels in realtime market and predict levels at before reaching price at that point.
Real-Time Liquidity Sweep & Bulk Order Detection [GNX]Get real time liquidity sweep detection on candle. it will help you out to identify a better trade zone. Liquidity sweeps are institutional activity, this indicator identify those sweeps on live market.
Multi-Timeframe Trend Analysis [GNX]Get Trend Analysis on multi timeframe and multi parameters like ema/btcdom/macd. get detail on a single table this will help you out to take trade either a swing or scalping.
ROBUST INSTITUTIONAL SIGNALS [GNX PRO]Get notify Institutional Bulk Buying on candle to get trade. Webhook Trade enabled system, Complete trading BOT for auto trading, you can set target price. besides this there are multiple non lagging indicators parameter to set your trade.
Pips Promedio 20 días - AutoEste indicador muestra la media diaria que mueve un par en pips en los ultimos 20 dias .
DRKSCALPER Strategy"This indicator is designed to help traders identify market structure shifts, order blocks, and liquidity zones. It is useful for scalping and swing trading, and works on multiple timeframes."
DRKSCALPER Strategycoded by Russian coders
this indicators is based coded by buy and sell via price action and fundamental analysis
Pro Market Toolkit (TH) v2.4 — S/R + Zones + ATR Bands + Alertsรายละเอียด (ภาษาไทย):
อินดิเคเตอร์ชุดเครื่องมือครบวงจรสำหรับนักเทรด
คำนวณ แนวรับ–แนวต้าน (Support / Resistance) อัตโนมัติจากสวิง (Pivot High/Low)
สร้าง Supply/Demand Zones จาก ATR เพื่อหาพื้นที่กลับตัวสำคัญ
วาดเส้น Moving Average และ ATR Bands เพื่อประเมินแนวโน้มและความผันผวน
แสดงสัญญาณ Breakout และ Bounce/Reject อย่างชัดเจนบนกราฟ
รองรับ Alerts สำหรับ 4 เงื่อนไขสำคัญ: Breakout ขึ้น/ลง, Demand Bounce, Supply Reject
มีตารางแสดง Trend และค่า ATR ปัจจุบัน
เหมาะสำหรับผู้ที่ต้องการดูแนวโน้ม, หาจุดเข้า/ออก และรับการแจ้งเตือนอัตโนมัติ โดยไม่ต้องเฝ้ากราฟตลอดเวลา
Description (English):
A comprehensive trading toolkit indicator for professional traders.
Automatically detects Support/Resistance levels using swing pivots
Generates Supply/Demand Zones based on ATR to highlight potential reversal areas
Plots Moving Average and ATR Bands for trend and volatility analysis
Displays clear signal markers for Breakouts and Zone Bounces/Rejects
Provides Alerts for 4 key conditions: Breakout Up/Down, Demand Bounce, Supply Reject
Includes an on-chart table showing the current Trend and ATR value
Ideal for traders who want automatic key levels, zones, and signal alerts without the need to monitor the chart constantly.
Stocklopedia Indicator Version 1Indicator Description & Disclaimer
This indicator has been developed and shared on TradingView for educational and research purposes only. It is designed to help users learn and explore technical analysis concepts within Pine Script. It is not a financial product, nor does it provide any form of financial, investment, or trading advice.
Trading financial markets involves substantial risk, including the possible loss of capital. By using this indicator, you acknowledge and agree to the following:
No Guarantee of Accuracy
While this indicator is intended to provide useful insights, Pine Script calculations and TradingView data feeds may, at times, produce inaccurate, delayed, or incomplete results.
Market conditions (such as volatility, liquidity gaps, or technical limitations of the platform) can also affect the reliability of the signals generated.
No guarantee, warranty, or assurance is provided that the indicator will function as expected at all times.
No Liability
The author of this indicator shall not be held responsible or liable for any profits, losses, damages, or other outcomes—direct or indirect—that may arise from the use of this script.
Any trading or investment decisions taken based on this indicator are entirely your own responsibility.
Educational Use Only
This script is intended as a tool to support learning and experimentation with Pine Script and technical indicators.
It should not be considered as a buy/sell signal generator or relied upon for live trading decisions.
User Responsibility
By applying or modifying this indicator, you fully accept that you are solely accountable for your trading decisions and their consequences.
You should always conduct your own research, consult with a qualified financial advisor if needed, and use appropriate risk management practices.
⚠️ Final Note:
Use this indicator at your own discretion. The author assumes no responsibility in any form or manner for how this tool is used, interpreted, or applied in real-world trading.
Stocklopedia Indicator Version 1Indicator Description & Disclaimer
This indicator has been developed and shared on TradingView for educational and research purposes only. It is designed to help users learn and explore technical analysis concepts within Pine Script. It is not a financial product, nor does it provide any form of financial, investment, or trading advice.
Trading financial markets involves substantial risk, including the possible loss of capital. By using this indicator, you acknowledge and agree to the following:
No Guarantee of Accuracy
While this indicator is intended to provide useful insights, Pine Script calculations and TradingView data feeds may, at times, produce inaccurate, delayed, or incomplete results.
Market conditions (such as volatility, liquidity gaps, or technical limitations of the platform) can also affect the reliability of the signals generated.
No guarantee, warranty, or assurance is provided that the indicator will function as expected at all times.
No Liability
The author of this indicator shall not be held responsible or liable for any profits, losses, damages, or other outcomes—direct or indirect—that may arise from the use of this script.
Any trading or investment decisions taken based on this indicator are entirely your own responsibility.
Educational Use Only
This script is intended as a tool to support learning and experimentation with Pine Script and technical indicators.
It should not be considered as a buy/sell signal generator or relied upon for live trading decisions.
User Responsibility
By applying or modifying this indicator, you fully accept that you are solely accountable for your trading decisions and their consequences.
You should always conduct your own research, consult with a qualified financial advisor if needed, and use appropriate risk management practices.
⚠️ Final Note:
Use this indicator at your own discretion. The author assumes no responsibility in any form or manner for how this tool is used, interpreted, or applied in real-world trading.
liquidity reversalThis script detects liquidity sweeps and confirms reversals based on price action. It looks for:
- A sweep of a recent high or low
- A reversal candle closing back inside range
- (Optional) Confirmation via market structure break (MSB)
When confirmed, it plots:
- BUY signals after low sweep + bullish break
- SELL signals after high sweep + bearish break
Works on any timeframe. Designed for MNQ scalping during NY open.
EMA + SMA - R.AR.A. Trader - Multi-MA Suite (EMA & SMA)
1. Overview
Welcome, students of R.A. Trader!
This indicator is a powerful and versatile tool designed specifically to support the trading methodologies taught by Rudá Alves. The R.A. Trader Multi-MA Suite combines two fully customizable groups of moving averages into a single, clean indicator.
Its purpose is to eliminate chart clutter and provide a clear, at-a-glance view of market trends, momentum, and dynamic levels of support and resistance across multiple timeframes. By integrating key short-term and long-term moving averages, this tool will help you apply the R.A. Trader analytical framework with greater efficiency and precision.
2. Core Features
Dual Moving Average Groups: Configure two independent sets of moving averages, perfect for separating short-term (EMA) and long-term (SMA) analysis.
Four MAs Per Group: Each group contains four fully customizable moving averages.
Multiple MA Types: Choose between several types of moving averages for each group (SMA, EMA, WMA, HMA, RMA).
Toggle Visibility: Easily show or hide each group with a single click in the settings panel.
Custom Styling: Key moving averages are styled for instant recognition, including thicker lines for longer periods and a special dotted line for the 250-period SMA.
Clean and Efficient: The code is lightweight and optimized to run smoothly on the TradingView platform.
Group 1 (Default: EMAs)
This group is pre-configured for shorter-term Exponential Moving Averages but is fully customizable.
Setting Label Description
MA Type - EMA Select the type of moving average for this entire group (e.g., EMA, SMA).
EMA 5 Sets the period for the first moving average.
EMA 10 Sets the period for the second moving average.
EMA 20 Sets the period for the third moving average.
EMA 400 Sets the period for the fourth moving average.
Show EMA Group A checkbox to show or hide all MAs in this group.
Exportar para as Planilhas
Group 2 (Default: SMAs)
This group is pre-configured for longer-term Simple Moving Averages, often used to identify major trends.
Setting Label Description
MA Type - SMA Select the type of moving average for this entire group.
SMA 50 Sets the period for the first moving average.
SMA 100 Sets the period for the second moving average.
SMA 200 Sets the period for the third moving average.
SMA 250 Sets the period for the fourth moving average (styled as a dotted line).
Show SMA Group A checkbox to show or hide all MAs in this group.