EMA + VWMA Crossover StrategyInterpretation:
Buy Signal: When the 9 EMA crosses above the 21 VWMA, it indicates a potential uptrend.
Sell Signal: When the 9 EMA crosses below the 21 VWMA, it indicates a potential downtrend.
Example of Strategy Logic
Buy Condition: 9 EMA > 21 VWMA.
Sell Condition: 9 EMA < 21 VWMA.
Advantages of This Strategy
Combines trend-following (EMA) and volume-weighted (VWMA) indicators.
Simple and easy to understand.
Can be used on any timeframe or asset.
المؤشرات والاستراتيجيات
"Multi-MA Trend Ribbon" 21+36,50,100,200,300 EMA
Below is a detailed description of the "Moving Average Explorer" indicator based on the provided Pine Script code. This description covers its purpose, features, and functionality, suitable for documentation or sharing with users:
Moving Average Explorer Indicator
Version: 5
License: Mozilla Public License 2.0
Author: traderview2
Last Updated: 12/19/24
Overview
The Moving Average Explorer is a versatile technical analysis indicator designed for TradingView that allows users to visualize and analyze multiple moving averages (MAs) on a price chart. It provides customizable MA lengths and types, visual ribbon coloring for trend identification, cross alerts, and an optional value table for quick reference. This indicator is ideal for traders who use multiple moving averages to identify trends, support/resistance levels, and potential entry/exit points.
Key Features
Customizable Moving Averages:
Supports up to 6 moving averages with user-defined lengths and types.
Default lengths: 21 EMA, 36 EMA, 50 MA, 100 MA, 200 MA, and 300 MA.
MA types include EMA (Exponential), SMA (Simple), HMA (Hull), WMA (Weighted), DEMA (Double Exponential), VWMA (Volume Weighted), and VWAP (Volume Weighted Average Price).
Option to disable individual MAs or set a global MA type for all lines.
Trend Visualization:
Displays MAs as colored lines on the chart, with customizable colors for each MA.
Optional ribbon mode fills the space between MAs with bullish (green) or bearish (red) colors based on trend direction.
Trend detection based on the relationship between the 21 EMA (MA #1) and 200 MA (MA #5), with alerts for bullish and bearish crosses.
Cross Detection:
Identifies bullish (21 EMA > 200 MA) and bearish (200 MA > 21 EMA) crosses.
Optional plotting of cross signals using green (bullish) and red (bearish) cross markers.
Alerts triggered on cross events (once per bar close) for timely notifications.
Value Table:
Optional table displaying current MA values, ATR (Average True Range), and trend status.
Customizable table location (Top Right, Top Left, Bottom Left, Bottom Right).
Table colors adapt to ribbon mode for better visibility.
Displays the length, type, and current value of each MA, along with the 14-period ATR.
User Customization:
Toggle individual MAs on/off for cleaner visualization.
Choose between line plots or colored ribbon fills.
Customize bullish and bearish ribbon colors (default: semi-transparent green and red).
Adjust MA lengths in increments of 10 for quick tuning.
How It Works
Moving Averages: The indicator calculates up to 6 MAs based on user inputs. The default setup includes:
21 EMA (fast)
36 EMA (fast-medium)
50 MA (medium)
100 MA (medium-long)
200 MA (long)
300 MA (very long)
Trend Detection: The indicator compares the 21 EMA (MA #1) and 200 MA (MA #5) to determine the trend:
Bullish trend: 21 EMA > 200 MA
Bearish trend: 200 MA > 21 EMA
Ribbon Mode: When enabled, the space between MAs is filled with colors to visually represent the trend direction.
Cross Alerts: Alerts are triggered when the 21 EMA crosses above (bullish) or below (bearish) the 200 MA.
ATR Display: The 14-period ATR is included in the table for volatility reference.
Inputs and Settings
Accessibility Settings:
Enable/disable ribbon mode for trend visualization.
Customize bullish and bearish ribbon colors.
Toggle cross markers and the value table.
Choose table location on the chart.
MA Settings:
Enable/disable individual MAs.
Set custom lengths for each MA (minimum 1, adjustable in steps of 10).
Choose MA type for each line or set a global type for all MAs.
Default MA types are EMA, but users can switch to other types as needed.
Usage Examples
Trend Following: Use the 21 EMA and 36 EMA for short-term trend confirmation, and longer MAs (200, 300) for major trend direction.
Cross Strategy: Trade bullish/bearish crosses between the 21 EMA and 200 MA, with alerts for timely entries.
Ribbon Analysis: Enable ribbon mode to visually identify trend strength based on the alignment of MAs.
Volatility Context: Use the ATR value in the table to gauge market volatility and adjust position sizing.
Visual Elements
MA Lines: Each MA is plotted with a distinct color (red, orange, yellow, green, blue, purple) for easy identification.
Ribbon Fills: Semi-transparent fills between MAs in ribbon mode, colored based on trend direction.
Cross Markers: Green (bullish) and red (bearish) cross symbols at crossing points.
Value Table: Displays trend status, MA values, and ATR in a customizable location.
Notes
The indicator is overlay-based and works best on price charts.
Performance may vary depending on the number of MAs enabled and the chart's timeframe.
For optimal visibility, adjust colors and table location based on your chart background (light/dark mode).
Changelog
03/23/23: Added ribbon functionality and value table.
04/02/23: Improved user inputs and added interactive MA length display in the table.
04/06/23: Added on/off toggle for each MA and customizable table location.
12/19/24: Added color customization for ribbon bands.
License
This indicator is released under the Mozilla Public License 2.0. See mozilla.org for details.
This description provides a comprehensive overview of the indicator's functionality and usage, making it suitable for sharing with other traders or including in documentation. Let me know if you'd like to refine any specific section!
Recurring Dotted Vertical LinesI want recurring vertical lines on the 00:00 and 18:00 times throughout the graph
BOĞA VE AYI GÜCÜ-TREND ÖLÇEN GÖSTERGE //@version=5
indicator("Boğa ve Ayı Etkinliği - Multi-Timeframe", overlay=true)
// Parametreler
rsiPeriod = input.int(14, title="RSI Periyodu")
emaShortPeriod = input.int(9, title="Kısa EMA Periyodu")
emaLongPeriod = input.int(21, title="Uzun EMA Periyodu")
macdShort = input.int(12, title="MACD Kısa Periyot")
macdLong = input.int(26, title="MACD Uzun Periyot")
macdSignal = input.int(9, title="MACD Sinyal Periyodu")
// Her Zaman Dilimi İçin Hesaplamalar
// 1 Dakika (1M) verisi
rsi1M = request.security(syminfo.tickerid, "1", ta.rsi(close, rsiPeriod))
emaShort1M = request.security(syminfo.tickerid, "1", ta.ema(close, emaShortPeriod))
emaLong1M = request.security(syminfo.tickerid, "1", ta.ema(close, emaLongPeriod))
= request.security(syminfo.tickerid, "1", ta.macd(close, macdShort, macdLong, macdSignal))
// 5 Dakika (5M) verisi
rsi5M = request.security(syminfo.tickerid, "5", ta.rsi(close, rsiPeriod))
emaShort5M = request.security(syminfo.tickerid, "5", ta.ema(close, emaShortPeriod))
emaLong5M = request.security(syminfo.tickerid, "5", ta.ema(close, emaLongPeriod))
= request.security(syminfo.tickerid, "5", ta.macd(close, macdShort, macdLong, macdSignal))
// 1 Saat (1H) verisi
rsi1H = request.security(syminfo.tickerid, "60", ta.rsi(close, rsiPeriod))
emaShort1H = request.security(syminfo.tickerid, "60", ta.ema(close, emaShortPeriod))
emaLong1H = request.security(syminfo.tickerid, "60", ta.ema(close, emaLongPeriod))
= request.security(syminfo.tickerid, "60", ta.macd(close, macdShort, macdLong, macdSignal))
// 4 Saat (4H) verisi
rsi4H = request.security(syminfo.tickerid, "240", ta.rsi(close, rsiPeriod))
emaShort4H = request.security(syminfo.tickerid, "240", ta.ema(close, emaShortPeriod))
emaLong4H = request.security(syminfo.tickerid, "240", ta.ema(close, emaLongPeriod))
= request.security(syminfo.tickerid, "240", ta.macd(close, macdShort, macdLong, macdSignal))
// Günlük (1D) verisi
rsi1D = request.security(syminfo.tickerid, "D", ta.rsi(close, rsiPeriod))
emaShort1D = request.security(syminfo.tickerid, "D", ta.ema(close, emaShortPeriod))
emaLong1D = request.security(syminfo.tickerid, "D", ta.ema(close, emaLongPeriod))
= request.security(syminfo.tickerid, "D", ta.macd(close, macdShort, macdLong, macdSignal))
// Trend Yönü Hesaplamaları
isBullish(rsi, emaShort, emaLong, macdLine, signalLine) =>
(rsi > 50) and (emaShort > emaLong) and (macdLine > signalLine)
isBearish(rsi, emaShort, emaLong, macdLine, signalLine) =>
(rsi < 50) and (emaShort < emaLong) and (macdLine < signalLine)
// Durumları Belirleme
trend1M = isBullish(rsi1M, emaShort1M, emaLong1M, macdLine1M, signalLine1M) ? "Boğalar Etkin" : isBearish(rsi1M, emaShort1M, emaLong1M, macdLine1M, signalLine1M) ? "Ayılar Etkin" : "Kararsız"
trend5M = isBullish(rsi5M, emaShort5M, emaLong5M, macdLine5M, signalLine5M) ? "Boğalar Etkin" : isBearish(rsi5M, emaShort5M, emaLong5M, macdLine5M, signalLine5M) ? "Ayılar Etkin" : "Kararsız"
trend1H = isBullish(rsi1H, emaShort1H, emaLong1H, macdLine1H, signalLine1H) ? "Boğalar Etkin" : isBearish(rsi1H, emaShort1H, emaLong1H, macdLine1H, signalLine1H) ? "Ayılar Etkin" : "Kararsız"
trend4H = isBullish(rsi4H, emaShort4H, emaLong4H, macdLine4H, signalLine4H) ? "Boğalar Etkin" : isBearish(rsi4H, emaShort4H, emaLong4H, macdLine4H, signalLine4H) ? "Ayılar Etkin" : "Kararsız"
trend1D = isBullish(rsi1D, emaShort1D, emaLong1D, macdLine1D, signalLine1D) ? "Boğalar Etkin" : isBearish(rsi1D, emaShort1D, emaLong1D, macdLine1D, signalLine1D) ? "Ayılar Etkin" : "Kararsız"
// Tabloyu Göster
var table trendTable = table.new(position.top_right, 2, 5)
if (bar_index % 10 == 0) // Tabloyu her 10 bar'da bir güncelle
table.cell(trendTable, 0, 0, "1M Trend", text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 1, 0, trend1M, text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 0, 1, "5M Trend", text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 1, 1, trend5M, text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 0, 2, "1H Trend", text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 1, 2, trend1H, text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 0, 3, "4H Trend", text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 1, 3, trend4H, text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 0, 4, "1D Trend", text_color=color.white, bgcolor=color.blue)
table.cell(trendTable, 1, 4, trend1D, text_color=color.white, bgcolor=color.blue)
// İndikatörleri Ekle
plot(emaShort1H, color=color.blue, title="Kısa EMA 1H", linewidth=2)
plot(emaLong1H, color=color.orange, title="Uzun EMA 1H", linewidth=2)
plot(macdLine1H - signalLine1H, color=color.purple, style=plot.style_histogram, title="MACD Histogram 1H")
berlinLibrary "berlin"
f_signalLib(lowSeries, highSeries, depth, deviation, backstep)
Parameters:
lowSeries (float)
highSeries (float)
depth (int)
deviation (int)
backstep (int)
manistra//@version=6
indicator("Supply & Demand Zones", overlay=true)
// Function to identify base candles
isBase(candleSize, prevHigh, prevLow, nextHigh, nextLow) =>
candleSize < (prevHigh - prevLow) * 0.5 and candleSize < (nextHigh - nextLow) * 0.5
// Identifying RBR, DBD, RBD, DBR
var float baseHigh = na
var float baseLow = na
var color baseColor = na
// Set limit to avoid exceeding 5000 bars back
limitBars = 5000
// Ensure the loop doesn't go beyond 5000 bars
for i = 2 to math.min(bar_index - 1, limitBars) by 1
// Ensure we're in a valid range and avoid array access out of bounds
if i > 1 and i < bar_index - 1
candleSize = high - low
if isBase(candleSize, high , low , high , low )
baseHigh := high
baseLow := low
if high > high and high > high // Bearish Drop
baseColor := color.red
else if low < low and low < low // Bullish Rally
baseColor := color.green
else if high > high and low < low // Bearish Drop with Bullish rally
baseColor := color.blue
else if low < low and high > high // Bullish Rally with Bearish drop
baseColor := color.orange
// Draw rectangles for the identified zones, ensuring the bar index is within the limit
if i < limitBars
// Use `bar_index - i` to reference bars within the 5000-bar limit
label.new(bar_index - i, baseHigh, "", color=baseColor, size=size.tiny, style=label.style_label_down)
label.new(bar_index - i, baseLow, "", color=baseColor, size=size.tiny, style=label.style_label_up)
BTC Strategy with High Accuracy (Example)BTC script BTC script BTC script BTC script BTC script BTC script BTC script BTC script
EMA9/EMA20 Crossover Signalssimple and best do not complicate trading, just take action on sell and buy signal make sure the rsi is closer to overbought and oversold level for longer trades and scalping if closer to 50, stay till it crosses back, should work best in trending market, range bound market add bbollinger band to see if it makes sense. enjoy and recommend.
On Balance Volume with Long-Term MAOBV+MA。红色长期MA(200日) 会显著平滑OBV曲线,形成「趋势基线」
当蓝色OBV线(原始值)持续运行在红色MA上方时,表明资金流入强劲
结合原有的黄色短期MA(14日)和布林带,可形成多时间维度分析:
短期MA交叉长期MA → 趋势强度信号
OBV突破布林带 → 超买/超卖预警
CSR Ultimate (Final)This indicator calculates and displays a "Candle Strength Ratio" (CSR) to help you gauge bullish versus bearish momentum on a given timeframe. Here’s what it does:
*Multiple Calculation Methods:*
*You can choose among three different methods:*
-Classic CSR: Compares the difference between the upper and lower parts of the candle relative to its total range.
-Weighted Body CSR: Gives more weight to the candle’s body relative to its wicks.
-Close-Focused CSR: Focuses on the net movement from open to close relative to the full range.
*Optional Enhancements:*
The indicator allows you to enable additional features to refine it:
-Volume Weighting: Adjusts the CSR based on the ratio of current volume to a moving average of volume, so a candle on higher-than-average volume might carry more weight.
-ATR Normalization: Normalizes the CSR using the Average True Range (ATR) to account for market volatility.
-Multi-Bar Averaging: Averages the CSR over a specified number of bars to smooth out noise.
-RSI Filter: Optionally checks an RSI condition (bullish if RSI > 50 or bearish if RSI < 50) to help filter out signals that might not be supported by overall momentum.
*Visual and Alert Features:*
The indicator plots the CSR line with color coding (green for bullish, red for bearish) and draws horizontal threshold lines. It also adjusts the chart background color when the CSR exceeds defined bullish or bearish levels and provides alerts when these thresholds are crossed.
Alerta de Entrada para NVDA y TSLAEste script es una herramienta útil para traders que buscan oportunidades de compra en acciones como NVIDIA y Tesla, utilizando indicadores técnicos como el RSI y el Stochastic. Proporciona alertas en tiempo real y gráficos visuales para facilitar la toma de decisiones. ¡Espero que te sea de gran ayuda en tu trading!
Crypto Scanner v4This guide explains a version 6 Pine Script that scans a user-provided list of cryptocurrency tokens to identify high probability tradable opportunities using several technical indicators. The script combines trend, momentum, and volume-based analyses to generate potential buying or selling signals, and it displays the results in a neatly formatted table with alerts for trading setups. Below is a detailed walkthrough of the script’s design, how traders can interpret its outputs, and recommendations for optimizing indicator inputs across different timeframes.
## Overview and Key Components
The script is designed to help traders assess multiple tokens by calculating several indicators for each one. The key components include:
- **Input Settings:**
- A comma-separated list of symbols to scan.
- Adjustable parameters for technical indicators such as ADX, RSI, MFI, and a custom Wave Trend indicator.
- Options to enable alerts and set update frequencies.
- **Indicator Calculations:**
- **ADX (Average Directional Index):** Measures trend strength. A value above the provided threshold indicates a strong trend, which is essential for validating momentum before entering a trade.
- **RSI (Relative Strength Index):** Helps determine overbought or oversold conditions. When the RSI is below the oversold level, it may present a buying opportunity, while an overbought condition (not explicitly part of this setup) could suggest selling.
- **MFI (Money Flow Index):** Similar in concept to RSI but incorporates volume, thus assessing buying and selling pressure. Values below the designated oversold threshold indicate potential undervaluation.
- **Wave Trend:** A custom indicator that calculates two components (WT1 and WT2); a crossover where WT1 moves from below to above WT2 (particularly near oversold levels) may signal a reversal and a potential entry point.
- **Scanning and Trading Zone:**
- The script identifies a *bullish setup* when the following conditions are met for a token:
- ADX exceeds the threshold (strong trend).
- Both RSI and MFI are below their oversold levels (indicating potential buying opportunities).
- A Wave Trend crossover confirms near-term reversal dynamics.
- A *trading zone* condition is also defined by specific ranges for ADX, RSI, MFI, and a limited difference between WT1 and WT2. This zone suggests that the token might be in a consolidation phase where even small moves may be significant.
- **Alerts and Table Reporting:**
- A table is generated, with each row corresponding to a token. The table contains columns for the symbol, ADX, RSI, MFI, WT1, WT2, and the trading zone status.
- Visual cues—such as different background colors—highlight tokens with a bullish setup or that are within the trading zone.
- Alerts are issued based on the detection of a bullish setup or entry into a trading zone. These alerts are limited per bar to avoid flooding the trader with notifications.
## How to Interpret the Indicator Outputs
Traders should use the indicator values as guidance, verifying them against their own analysis before making any trading decision. Here’s how to assess each output:
- **ADX:**
- **High values (above threshold):** Indicate strong trends. If other indicators confirm an oversold condition, a trader may consider a long position for a corrective reversal.
- **Low values:** Suggest that the market is not trending strongly, and caution should be taken when considering entry.
- **RSI and MFI:**
- **Below oversold levels:** These conditions are traditionally seen as signals that an asset is undervalued, potentially triggering a bounce.
- **Above typical resistance levels (not explicitly used here):** Would normally caution a trader against entering a long position.
- **Wave Trend (WT1 and WT2):**
- A crossover where WT1 moves upward above WT2 in an oversold environment can signal the beginning of a recovery or reversal, thereby reinforcing buy signals.
- **Trading Zone:**
- Being “in zone” means that the asset’s current values for ADX, RSI, MFI, and the closeness of the Wave Trend lines indicate a period of consolidation. This scenario might be suitable for both short-term scalping or as an early exit indicator, depending on further market analysis.
## Timeframe Optimization Input Table
Traders can optimize indicator inputs depending on the timeframe they use. The following table provides a set of recommended input values for various timeframes. These values are suggestions and should be adjusted based on market conditions and individual trading styles.
Timeframe ADX RSI MFI ADX RSI MFI WT Channel WT Average
5-min 10 10 10 20 30 20 7 15
15-min 12 12 12 22 30 20 9 18
1-hour 14 14 14 25 30 20 10 21
4-hour 16 16 16 27 30 20 12 24
1-day 18 18 18 30 30 20 14 28
Adjust these parameters directly in the script’s input settings to match the selected timeframe. For shorter timeframes (e.g., 5-min or 15-min), the shorter lengths help filter high-frequency noise. For longer timeframes (e.g., 1-day), longer input values may reduce false signals and capture more significant trends.
## Best Practices and Usage Tips
- **Token Limit:**
- Limit the number of tokens scanned to 10 per query line. If you need to scan more tokens, initiate a new query line. This helps manage screen real estate and ensures the table remains legible.
- **Confirming Signals:**
- Use this script as a starting point for identifying high potential trades. Each indicator’s output should be used to confirm your trading decision. Always cross-reference with additional technical analysis tools or market context.
- **Regular Review:**
- Since the script updates the table every few bars (as defined by the update frequency), review the table and alerts regularly. Market conditions change rapidly, so timely decisions are crucial.
## Conclusion
This Pine Script provides a comprehensive approach for scanning multiple cryptocurrencies using a combination of trend strength (ADX), momentum (RSI and MFI), and reversal signals (Wave Trend). By using the provided recommendation table for different timeframes and limiting the tokens to 20 per query line (with a maximum of four query lines), traders can streamline their scanning process and more effectively identify high probability tradable tokens. Ultimately, the outputs should be critically evaluated and combined with additional market research before executing any trades.
Pre-Market High & LowIndicator: Pre-Market High & Low
This indicator tracks the high and low price levels of a stock during the pre-market session (4:00 AM - 9:30 AM EST), before the official market open. It dynamically updates during pre-market hours, identifying the highest and lowest prices reached. Once the pre-market session ends, these levels are saved and plotted on the chart as reference points for the regular market session.
Key Features:
Dynamic Updates: Continuously tracks the high and low during pre-market hours.
Visual Indicators: Plots horizontal lines representing the pre-market high (green) and low (red).
Post-Market Reference: Once pre-market ends, these levels remain visible for the regular market session as reference points for potential breakout or breakdown levels.
How to Use:
Use this indicator to identify potential breakout or breakdown levels that may happen at the market open.
The green line represents the highest price reached during pre-market, while the red line indicates the lowest price.
The indicator will stop updating once the pre-market session closes (9:30 AM EST) and will remain visible as reference levels throughout the trading day.
Ideal for:
Day traders looking for pre-market support and resistance levels.
Traders analyzing the initial market reaction based on pre-market price action.
ATR Candle Marker By. Crypto_MatchИндикатор в TV который сравнивает размер дневной свечи со средним значением ATR за последние 14 дней.
CapitalManagementLibrary "CapitalManagement"
TODO: Manage the capital
order_volume(percent_risk, order_entry_price, stop_loss_price)
: Function to calculate order volume according to give risk percent_risk
Parameters:
percent_risk (float)
order_entry_price (float)
stop_loss_price (float)
calculate_takeprofit_price(entry_price, stop_loss_price, risk_reward)
: Function to calculate take profit price according to given risk:reward ratio
Parameters:
entry_price (float)
stop_loss_price (float)
risk_reward (float)
Returns: Return take profit value according to given risk:reward ratio
VSA Signals with Filters### **Key Adjustments to Reduce False Signals**
1. **Increase Volume Thresholds**: Require stronger volume confirmation.
2. **Trend Alignment**: Trade only in the direction of the higher timeframe trend.
3. **Volatility Filter**: Avoid signals in extremely low-volatility markets.
4. **Price Confirmation**: Wait for a follow-through candle.
5. **Time/Context Filters**: Avoid choppy sessions or irrelevant price levels.
---
### **Testing & Optimization**
1. **Backtest**: Use TradingView’s Strategy Tester to compare filtered vs. unfiltered signals.
2. **Parameter Optimization**: Adjust multipliers/thresholds for your asset (e.g., crypto may need higher volume thresholds).
3. **Walk-Forward Analysis**: Test parameters on historical data, then validate on unseen data.
kubebot533nxxcgfdgdfgdfgdfgdfgdfgdggdgddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddd dddddddddddd ddddddddddddddd ddddddd dddddddd dddddddddddddddddd dddddddddddddd ddd ddd ddddddddddddd dddddddddd ddddddddddd ddddddddd ddddddddd dddddd ddddd d d d d d dd d dd d dd ddddd d d d d
EMA Indicator with Dynamic Color & Crossovers_v003EMA Indicator with Dynamic Color & Crossovers_v003
9 EMA//@version=5
indicator("9 and 15 EMA", overlay=true)
ema9Length = 9
ema15Length = 15
ema9 = ta.ema(close, ema9Length)
ema15 = ta.ema(close, ema15Length)
plot(ema9, color=color.blue, title="9 EMA", linewidth=2)
plot(ema15, color=color.red, title="15 EMA", linewidth=2)
All in One with CCICCI with Stock ATR that shows the risk of the stock and the present that the stock can move in one day of trade
Dual MTF MADescription:
Parameters:
MA Type: Choose between Simple (SMA) and Exponential (EMA) Moving Average
MA Length: Number of periods for calculation (default 20)
Source: Price source for calculations (Close/Open/High/Low)
Offset: Shift lines forward/backward in time
Features:
Works on any timeframe without code modifications
Displays overlay on price chart (overlay=true)
Customizable visual settings (color, thickness)
Usage:
Trend identification
Price crossover detection
Support/resistance analysis
Dk// Custom Indicator: EMA (21, 51, 101) + VWAP
//@version=5
indicator("EMA + VWAP Indicator", overlay=true)
/**
* Description:
* This custom TradingView indicator combines three Exponential Moving Averages (EMAs) and VWAP
* to help traders identify trends and key price levels.
*
* Features:
* - EMA 21 (Short-term trend)
* - EMA 51 (Medium-term trend)
* - EMA 101 (Long-term trend)
* - VWAP (Volume Weighted Average Price for institutional activity tracking)
* - Background color changes to indicate bullish or bearish trends
* - Alerts for EMA crossovers and VWAP breakouts/breakdowns
*
* Usage:
* - If EMA 21 > EMA 51 > EMA 101 → Bullish trend
* - If EMA 21 < EMA 51 < EMA 101 → Bearish trend
* - If price crosses above VWAP → Potential breakout
* - If price crosses below VWAP → Potential breakdown
*/
// Define EMAs
ema21 = ta.ema(close, 21)
ema51 = ta.ema(close, 51)
ema101 = ta.ema(close, 101)
// Define VWAP
vwapValue = ta.vwap
// Plot EMAs
plot(ema21, color=color.blue, linewidth=2, title="EMA 21")
plot(ema51, color=color.orange, linewidth=2, title="EMA 51")
plot(ema101, color=color.purple, linewidth=2, title="EMA 101")
// Plot VWAP
plot(vwapValue, color=color.red, linewidth=2, title="VWAP")
// Background Color for Trend Confirmation
bullish = ema21 > ema51 and ema51 > ema101
bearish = ema21 < ema51 and ema51 < ema101
bgcolor(bullish ? color.green : bearish ? color.red : na, transp=90)
// Alerts for EMA Crossovers
alertcondition(ta.crossover(ema21, ema51), title="Bullish Crossover", message="EMA 21 crossed above EMA 51")
alertcondition(ta.crossunder(ema21, ema51), title="Bearish Crossover", message="EMA 21 crossed below EMA 51")
alertcondition(ta.crossover(close, vwapValue), title="VWAP Breakout", message="Price crossed above VWAP")
alertcondition(ta.crossunder(close, vwapValue), title="VWAP Breakdown", message="Price crossed below VWAP")