Indicators and strategies
Previous_DWMQY_High/Low & PivotsThis script calculates high/low pivots for different timeframes (daily, weekly, monthly, quarterly, and yearly). You have various pivot point calculation methods (Traditional, Fibonacci, Woodie, Classic, DM, Camarilla) and have inputs that allow customization of the indicator. The script also accounts for custom year-based calculations (bi-yearly, tri-yearly, quinquennially, decennially).
The first part of your code calculates the high and low levels for different timeframes, which are plotted on the chart as crosses. The second part involves the pivot point calculations, where the user selects the type of pivot point calculation (Traditional, Fibonacci, etc.), the timeframe for pivots, and other display settings.
SMA Crossover Strategy with VWAPSMA Crossover Strategy with VWAP swing trade for 1hr chart and intraday for 1min chart
Data TransformerIt is a data transformer. Is something TradingView lacks right now.
It is simple, it lets you transform the symbol of the chart into this options:
% change
change
QoQ change
QoQ change %
YoY change
YoY change %
Drawdawn %
Drawdawn
Cumulative
4EMA + H/L Pivot Points + Killzonesjust a simple 4 ema with high and low pivot points with a 7-9:30 am Killzone
thinkCNE - VolumeWorks the same as Relative volume - colour volume bars based on average volume.
i.e. if volume is 2x higher than the 10 day average, the volume bar is coloured blue.
4 EMA Lines with Labels V.0This Pine Script displays 4 Exponential Moving Averages (EMAs) with dynamic labels directly on the chart.
The EMAs help traders identify short to long-term trends.
✅ EMA Details:
EMA 20 (Blue): Very short-term trend
EMA 50 (Green): Short-term trend
EMA 100 (Yellow): Mid-term trend
EMA 200 (Red): Long-term trend
📊 How It Works:
Plots 4 EMA lines with different colors for easy identification.
Adds dynamic labels that update automatically based on price movement.
💡 Benefits:
Quickly spot market trends.
Identify dynamic support/resistance levels.
Improve decision-making with clear visual cues.
Custom ATR + RSI with ColorsHow It Works:
ATR Indicator:
ATR is calculated based on the selected smoothing method (RMA, SMA, or EMA).
The ATR line changes color dynamically based on whether it is above or below the user-defined threshold.
A horizontal dotted line marks the threshold level.
RSI Indicator:
RSI is calculated with the chosen smoothing method (SMA or EMA).
The line changes color dynamically based on its value relative to the four user-defined levels.
Includes a middle line (default: 50) to show the neutral RSI zone, displayed as a dashed line.
Custom Timeframes:
Both ATR and RSI can be configured to use the chart’s current timeframe or any custom interval.
How to Use:
Input Parameters:
Adjust ATR and RSI calculation settings, thresholds, levels, and colors in the input menu.
Visualization:
Observe ATR and RSI together on one chart with distinct colors and levels.
Analysis:
Use this combined indicator to identify volatility (ATR) and momentum (RSI) at the same time.
Background SMA 100 with Signalsuse for 15mnt timeframe, dont use in higher timeframe, just use for scalping strategy, use RR 1:1
Detecting Sideways Market or Strong Trends| Copy Trade Tungdubai**Tool Description**:
The **"Detecting Sideways Market or Strong Trends | Copy Trade Tungdubai"** tool is designed to help traders identify two key market conditions:
1. **Sideways Market**:
- This condition is detected when the ADX is below 20, the price stays within the Bollinger Bands, and the RSI is between 45 and 55.
- When the market is sideways, the chart background will turn yellow as a visual alert.
2. **Strong Trend Market**:
- This condition is identified when the ADX is above 25, and either the price breaks out of the Bollinger Bands or the RSI surpasses the overbought (70) or oversold (30) levels.
- When the market is in a strong trend, the chart background will turn blue as a visual alert.
**Key Components of the Tool**:
- **ADX**: Measures the strength of the market trend, with key thresholds at 20 and 25.
- **Bollinger Bands**: Helps determine volatility and checks if the price is within or outside the bands.
- **RSI**: Measures momentum, helping identify overbought and oversold levels.
**Visual Features on the Chart**:
- ADX, RSI, and Bollinger Bands are clearly plotted with their respective key thresholds for easier recognition of market conditions.
- The chart background changes color to reflect the current market condition (yellow for sideways, blue for strong trends).
**Alerts**:
- Alerts are triggered when the market enters either a sideways or strong trend phase, providing notifications to help users act promptly.
This tool serves as a practical aid in recognizing market conditions, allowing traders to make informed decisions aligned with their strategies.
**Mô tả công cụ**:
Công cụ **"Detecting Sideways Market or Strong Trends | Copy Trade Tungdubai"** được thiết kế để giúp các nhà giao dịch xác định hai trạng thái chính của thị trường:
1. **Thị trường đi ngang (Sideways)**:
- Điều kiện được xác định dựa trên chỉ số ADX thấp hơn ngưỡng 20, giá nằm trong dải Bollinger Bands, và chỉ số RSI dao động trong khoảng từ 45 đến 55.
- Khi thị trường đi ngang, nền của biểu đồ sẽ chuyển sang màu vàng để cảnh báo trực quan.
2. **Thị trường bùng nổ sóng mạnh (Strong Trend)**:
- Điều kiện được xác định khi ADX vượt qua ngưỡng 25 và giá phá vỡ dải Bollinger Bands (hoặc) chỉ số RSI vượt ngưỡng quá mua 70 hoặc quá bán 30.
- Khi thị trường bùng nổ sóng mạnh, nền biểu đồ sẽ chuyển sang màu xanh để cảnh báo trực quan.
**Các thành phần chính của công cụ**:
- **ADX**: Được sử dụng để đo sức mạnh xu hướng thị trường, với các ngưỡng quan trọng là 20 và 25.
- **Bollinger Bands**: Được sử dụng để xác định mức độ biến động và kiểm tra giá nằm trong hay ngoài dải.
- **RSI**: Dùng để đo mức độ quá mua/quá bán, xác định động lượng giá.
**Hiển thị trên biểu đồ**:
- Các đường ADX, RSI, và Bollinger Bands được vẽ rõ ràng, cùng với các ngưỡng quan trọng (hỗ trợ nhận biết trạng thái thị trường).
- Nền biểu đồ thay đổi màu sắc tương ứng với điều kiện thị trường.
**Cảnh báo**:
- Cảnh báo sẽ được kích hoạt khi thị trường rơi vào trạng thái đi ngang hoặc bùng nổ sóng mạnh, với các thông báo giúp người dùng hành động kịp thời.
Công cụ này là một trợ thủ hữu ích trong việc nhận biết trạng thái thị trường, từ đó giúp các nhà giao dịch đưa ra quyết định phù hợp với chiến lược của mình.
BELIKENOOTHER34 EMA BULL BEAR COLOUREste indicador sirve de confirmación cuando mi indicador principal me dice en que sentido debo entrar a mercado, la combinación de mis 3 indicadores me da una gran probabilidad de entradas exitosas
ORB opening range breakoutThis indicator plots the opening range high and low for a selected period of time in minutes after the market opens on an intraday chart to allow the user to visualize the high and low of the opening range for use in the Opening Range Breakout (ORB) strategy.
The Opening Range Breakout (ORB) strategy is a trading approach that involves identifying the price range within the first few minutes of a market session and then waiting for the price to break out of that range. This indicator facilitates this strategy through the use of shaded regions and/or price levels.
Features
Able to plot the high and low for any opening range above 1 min on any intraday timeframe
Fully customizable ORB region, price level, price axis, label
The inclusion of the Bollinger band along with it's Moving Average serves multiple purposes to assist the user in the opening range breakout strategy
Highlights to the user the deviation from the Moving Average due to an opening range breakout so that the user is better informed on whether to avoid entering a position, exit a position, or monitor the situation more closely
Highlights area of support or resistance formed by the Moving Average of Bollinger Band
Inform the user of the current trend direction to serve as confluence during an opening range breakout
What sets this indicator apart from others
In other ORB indicators, the opening range must be a multiple of the current chart's timeframe, restricting users on the intraday timeframes that can be used. E.g. if the user is using the 15 minutes opening range, they are restricted to use the 1, 3, 5, 15 minute(s) chart.
This indicator gives the user the flexibility to set any opening range above 1 min on any intraday timeframe. E.g. if the user is using the 15 minutes opening range, they are free to use any intraday timeframe on their chart, such as 1 hour or 2 hours chart.
How to use
Input the opening time range of interest in minutes
Check the "ORB region" checkbox to shade the ORB region
Check the "PRICE LEVEL" checkbox to draw a horizontal line of the high and low
Check the "PRICE AXIS" checkbox to plot the values on the price axis
Check the "LABEL" checkbox to draw a label of the high and low
GocchiMulti-Indicator: RSI & Moving Averages
This versatile TradingView indicator combines two essential tools for technical analysis—Relative Strength Index (RSI) and Moving Averages (MAs)—into one comprehensive solution. It is designed for traders seeking flexibility, customization, and efficiency in their charting experience.
Features:
Relative Strength Index (RSI):
Customizable RSI length.
Adjustable overbought and oversold levels.
Selectable source input (e.g., close, open, high, low).
Visual levels for overbought and oversold zones, aiding in quick trend and momentum identification.
Three Moving Averages:
Three independently customizable moving averages.
Options for Simple Moving Average (SMA) or Exponential Moving Average (EMA) for each line.
Adjustable lengths for short-, medium-, and long-term trend tracking.
Visual Enhancements:
Clear, color-coded plots for RSI and each moving average.
Overbought and oversold zones are highlighted with horizontal dotted lines.
Alerts:
Get notified when RSI crosses above the overbought level or below the oversold level.
Alerts help traders stay on top of potential market reversals or breakout opportunities.
Use Cases:
RSI Analysis: Spot overbought or oversold conditions to identify potential reversals.
Trend Following: Use moving averages to confirm trends or identify crossovers for potential entry and exit points.
Custom Strategies: Tailor the settings to fit specific trading styles, such as scalping, swing trading, or long-term investing.
This all-in-one indicator streamlines your analysis by reducing the need for multiple overlays, making your charts cleaner and more actionable. Whether you're a novice or an experienced trader, this tool provides the flexibility and insights you need to succeed in any market condition.
Cameron's 1m Swing Structure IndicatorThis is based off of Pips2Profit's www.youtube.com
I am no programmer, took the CC and had ChatGPT do the coding. I found it amazing, thought I would share.
For educational use only. :P
Dan-Machine Learning: Lorentzian Classification with AlertsAlerts by any colour change in smoothed Heikin Ashi candles.
MVRV Z-Score (Topos e Fundos)No MVRV Z-Score, a linha roxa (que representa o valor do indicador) atingir ou ultrapassar a faixa vermelha geralmente indica que o ativo está em uma zona de sobrevalorização. Isso significa que o mercado pode estar próximo de um topo, e historicamente, esses momentos tendem a ser seguidos por correções de preço.
O que acontece quando a linha roxa atinge a faixa vermelha?
Zona Vermelha (Topo):
Quando a linha roxa entra na faixa vermelha, o ativo está sendo negociado muito acima do seu valor realizado (Realized Value).
Isso sugere que muitos investidores estão com lucros não realizados significativos, o que pode levar a vendas em massa e, consequentemente, a uma correção de preço.
Sinal para traders e investidores:
Para traders, pode ser um sinal de que o preço está próximo de um topo e que pode ser um bom momento para realizar lucros.
Para investidores de longo prazo, pode ser um alerta para evitar compras nesse momento, aguardando uma possível correção.
E se a linha roxa não atingir a faixa vermelha?
Se a linha roxa não atingir a faixa vermelha, o ativo pode ainda ter espaço para valorização antes de atingir um topo. No entanto, é importante observar outros fatores do mercado, como volume, sentimento e contexto macroeconômico.
CMS-Inspired SMC Strategy with Liquidity and FVG//@version=5
indicator("CMS-Inspired SMC Strategy with Liquidity and FVG", overlay=true)
// === إعدادات المستخدم ===
capital = input.float(1000, title="رأس المال ($)", step=10) // رأس المال الكلي
risk_percent = input.float(1, title="نسبة المخاطرة (%)", step=0.1) // نسبة المخاطرة
max_trades = input.int(2, title="عدد الصفقات اليومية", step=1) // الحد الأقصى للصفقات اليومية
session_start = input.time(timestamp("0000-01-01 08:00 +0000"), title="بداية الجلسة") // جلسة لندن
session_end = input.time(timestamp("0000-01-01 16:00 +0000"), title="نهاية الجلسة") // جلسة لندن
news_time = input.time(timestamp("0000-01-01 09:00 +0000"), title="وقت الأخبار المهمة") // الوقت المتوقع للأخبار
// === أدوات إضافية ===
session_active = (time >= session_start and time <= session_end) // الجلسة الزمنية
atr = ta.atr(14) // مؤشر ATR
// === تحديد مناطق السيولة ===
highest_liq = ta.highest(high, 20) // أعلى نقطة في الـ 20 فترة
lowest_liq = ta.lowest(low, 20) // أدنى نقطة في الـ 20 فترة
// === فجوات القيمة العادلة (FVG) ===
fvg_condition = close > high and close < high // عندما يكون هناك فجوة بين الإغلاق والارتفاع
// === إشارات التداول ===
// كسر الهيكل (BOS)
high_break = ta.highest(high, 5) < close
low_break = ta.lowest(low, 5) > close
// مناطق Order Block
bullish_ob = close < open // إشارات الشراء بناءً على الإغلاق
bearish_ob = close > open // إشارات البيع بناءً على الإغلاق
// إشارات الشراء والبيع بناءً على جميع الشروط
long_signal = session_active and high_break and bullish_ob and fvg_condition and not (time >= news_time and time <= news_time + 3600000) // تجنب الأخبار
short_signal = session_active and low_break and bearish_ob and fvg_condition and not (time >= news_time and time <= news_time + 3600000) // تجنب الأخبار
// === إدارة رأس المال ===
capital_per_trade = (capital * risk_percent / 100) // نسبة رأس المال في الصفقة
lot_size = capital_per_trade / (atr * 1.5) // حجم اللوت بناءً على الـ ATR ووقف الخسارة
stop_loss = atr * 1.5 // وقف الخسارة بناءً على ATR
take_profit = stop_loss * 2 // الهدف (نسبة مخاطرة/عائد 1:2)
// === رسم الإشارات ===
var trade_count = 0 // عداد الصفقات اليومية
if session_active
if trade_count < max_trades
if long_signal
label.new(bar_index, high, "شراء", color=color.green, style=label.style_label_down)
trade_count += 1
if short_signal
label.new(bar_index, low, "بيع", color=color.red, style=label.style_label_up)
trade_count += 1
// === تنبيه إشارات ===
if long_signal or short_signal
alert("إشارة جديدة: " + (long_signal ? "شراء" : "بيع"), alert.freq_once_per_bar)
Close Within Top or Bottom 10%For all the boys that like to see 10% candles and require them for more in depth backtesting purposes
Uptrend Rainbow Song EMA ver.1 🎵Description for EMA Label & Cross Indicator (Pelangi Theme)
This indicator plots 4 EMA lines (200, 100, 50, and 20 periods) on the chart with dynamic labels that follow each EMA line. The labels update in real-time to reflect their relative position on the chart and provide useful insights based on market conditions.
🚩 Key Features:
Dynamic EMA Labels
The labels display the names of each EMA (e.g., "EMA 200") and will change text dynamically if the EMAs are in a specific bullish order:
EMA 20 (Blue): Displays "Di langit yang biru 🎵" (translated: "In the blue sky 🎵") if it's at the top.
EMA 50 (Green): Displays "Hijau" ("Green").
EMA 100 (Yellow): Displays "Kuning" ("Yellow").
EMA 200 (Red): Displays "Merah" ("Red").
Crossover Detection
The indicator detects and marks crossover and crossunder points between the EMA lines with colored circles:
Red Circle: EMA 200 crossing with EMA 100.
Yellow Circle: EMA 200 crossing with EMA 50.
Green Circle: EMA 200 crossing with EMA 20.
Blue Circle: EMA 100 crossing with EMA 50.
Purple & Orange Circles: Custom colors for other crossovers.
🎯 Usage:
This indicator helps traders identify EMA crossovers and track the relative position of EMAs in real-time. The dynamic labels make it easy to visualize when the market is in a bullish or bearish trend.
The label text changes based on the order of the EMAs:
If EMA 20 > EMA 50 > EMA 100 > EMA 200, it indicates a strong bullish trend, and the labels will change to a colorful theme.
🎨 Theme:
The indicator follows a "Pelangi" (Rainbow) theme, inspired by the song:
"Merah, Kuning, Hijau, di langit yang biru"
("Red, Yellow, Green, in the blue sky").
Bullish Doji Star and TristarThis command will detect the Doji candlestick on your chart.
The purpose of this code is to automatically identify two popular bullish reversal patterns in price charts:
Bullish Doji Star: A candlestick pattern that can appear after a downtrend and signals a bullish reversal.
Bullish Tristar: A pattern formed by three consecutive doji candlesticks, indicating a potential trend change.
These patterns are used in technical analysis to identify potential trend reversal points.
This code is ideal for technical analysts and traders looking to identify trend reversals in the markets.
It is especially effective on daily or 4-hour charts.
Alerts:
Bullish Doji Confirmed: Sends an alert when the pattern is confirmed.
Bullish Doji Failed: Sends an alert to indicate that the pattern is invalid.
Turkish
Bu komut, grafiğinizdeki Doji mum çubuğunu tespit edecektir.
Kodun amacı, fiyat grafiklerinde iki popüler boğa dönüş formasyonunu otomatik olarak tanımlamaktır:
Bullish Doji Star (Boğa Doji Yıldızı): Düşüş trendinin ardından görülebilen ve yükseliş dönüşü sinyali veren bir mum çubuğu formasyonu.
Bullish Tristar (Boğa Üçlü Yıldız): Arka arkaya üç doji mum çubuğunun görüldüğü ve trend değişimini işaret eden bir formasyon.
Bu formasyonlar, potansiyel trend dönüş noktalarını belirlemek için teknik analizde kullanılır.
Kod, piyasalardaki trend dönüşlerini tespit etmek isteyen teknik analistler ve traderlar için idealdir.
Özellikle günlük veya 4 saatlik grafiklerde etkili sonuçlar verir.
Uyarılar (Alerts):
Bullish Doji Confirmed: Formasyon doğrulandığında bir alarm gönderir.
Bullish Doji Failed: Formasyonun geçersiz olduğunu belirten bir alarm gönderir.
CandelaCharts - Equal Highs/Lows (EQH/EQL) 📝 Overview
The Equal Highs/Lows indicator is a specialized tool for detecting equal highs and lows within price movements.
These levels hold importance as they frequently signal possible reversal zones or consolidation phases in the market. By leveraging Average True Range (ATR) thresholds, the indicator employs tailored settings to pinpoint these critical price levels with precision.
Visual Markings: Lines and labels highlight equal highs and lows directly on the chart.
Dynamic Adaptability: It adjusts in real time to market volatility, ensuring accurate level identification through ATR-based thresholds.
Equal Highs are not used as entry and exit points; instead, they are used as confirmation that the current market trend will reverse. This means that when an EQH is formed on a chart, traders can adapt a bearish bias and look for only short entries.
📦 Features
Key features of the indicator include:
Visual Markings: Lines and labels highlight equal highs and lows directly on the chart.
Dynamic Adaptability: It adjusts in real time to market volatility, ensuring accurate level identification through ATR-based thresholds.
Styling
⚙️ Settings
Show: Controls whether EQH/EQL are displayed on the chart.
Line Style: Controls the line type and line width
Bullish Color: Color of the bullish EQH/EQL
Bearish Color: Color of the bearish EQH/EQL
⚡️ Showcase
Short Term
Intermediate Term
Long Term
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the price forms an EQH.
Bullish Signal
A bullish signal is triggered when the price forms an EQL.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.