Exponential Moving Average (EMA)
Ultimate Total MA + ATRIndicator Description (English)
Name: Tendencias FX - Multi-Line with Customizable Offsets (1x..6x)
This script is a multi-purpose trend-following indicator that calculates a central Moving Average (Mid Line) plus a set of 6 different bands (1x to 6x) above and below that average. Each band is determined by a user-defined ATR length and multiplier. Key features include:
Independent MA Types
Choose different moving average methods for the Mid Line and for the ATR calculation.
Available types: SMA, EMA, WMA, RMA, HMA, and ALMA.
Separate Lengths
Configure the length of the Mid Line independently from the ATR length.
This allows fine-tuning of both the central average and the volatility measure.
6 Customizable Multipliers
Bands are calculated for 1x, 2x, 3x, 4x, 5x, and 6x multiples of the chosen ATR.
Each level has its own checkbox in the Inputs tab so you can show or hide them at will.
Color Dynamics
The Mid Line automatically changes color to green when its current value is higher than the previous bar’s value, and red otherwise.
All upper/lower bands are rendered in a neutral gray (#787b86) for easy distinction.
Time Shift (Offset)
An offset parameter allows shifting the entire indicator (Mid Line plus bands) forward (to the right) or backward (to the left) by a certain number of bars.
This can help evaluate leads/lags, or compare the past behavior of these lines against future price developments.
Check Boxes for Visibility
Checkboxes in the Inputs let you toggle 1x..6x band levels.
By default, 1x, 2x, and 3x are visible, while 4x, 5x, and 6x are off.
Overlay with Shared Price Scale
The script is set as overlay=true and uses scale=scale.right, so it draws directly on the main chart and shares the same price axis as your candles.
This indicator is ideal if you want:
A central MA for trend detection.
ATR-based volatility bands (up to 6 multipliers).
Full control over the type and length of both the Mid Line MA and the ATR.
An optional offset to shift the lines in time for backtesting or forward-projection.
Usage Tips
In the Inputs tab, customize:
Mid Line length and ATR length independently.
MA methods for both Mid Line and ATR (SMA, EMA, WMA, RMA, HMA, ALMA).
Band visibility via checkboxes for 1x..6x.
Offset for shifting lines in time.
In the Style tab, you can further customize colors, line widths, and visibility of each element (Mid line, ±1x..±6x).
Enjoy exploring different settings to best match your preferred trading style and timeframe!
Multi Timeframe MAsThis Pine Script indicator, titled "Multi Timeframe MAs," allows you to plot Exponential Moving Averages (EMAs) or Simple Moving Averages (SMAs) from multiple timeframes on a single chart. This helps traders and analysts visualize and compare different moving averages across various timeframes without having to switch between charts.
Key Features:
Multiple Timeframes:
The script supports six different timeframes, ranging from minutes to weekly intervals.
Users can input their desired timeframes, including custom settings such as "60" (60 minutes), "D" (daily), and "W" (weekly).
Moving Average Types:
Users can choose between Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) for each timeframe.
The script utilizes a ternary operator to determine whether to calculate an EMA or an SMA based on user input.
Customizable Periods:
Each moving average can have a different period, allowing for flexibility in analysis.
The default periods are set to commonly used values (e.g., 15, 20, 5, 12).
Visibility Controls:
Users can toggle the visibility of each moving average line, enabling or disabling them as needed.
This feature helps declutter the chart when specific moving averages are not required.
Black Stepped Lines:
All moving averages are plotted as black, stepped lines to provide a clear and consistent visual representation.
This makes it easy to distinguish these lines from other elements on the chart.
Example Use Cases:
Trend Analysis: Compare short-term and long-term trends by visualizing moving averages from different timeframes on a single chart.
Support and Resistance Levels: Identify key support and resistance levels across multiple timeframes.
Cross-Timeframe Strategy: Develop and test trading strategies that rely on the confluence of moving averages from different timeframes.
This script offers a powerful tool for traders and analysts who want to gain deeper insights into market movements by examining moving averages across multiple timeframes. With its customizable settings and user-friendly interface, it provides a versatile solution for a wide range of trading and analytical needs.
Emergent Rays - NovaTheMachineEmergent Rays
An emergent ray is a refracted ray of light that exits a medium or channel. Emergent rays can be created when light passes through a prism, glass slab, or mirror
This visual indicator has been designed to aid in developing psychological understanding of price action. Many traders often struggle with developing strategy that they can act on, repeatedly. The difference between gambling and trading successfully comes down to following a plan, that you have tested and determined to be profitable over the long term.
Some traders experience anxiety when trading trends, trying to time a reversal, or entering a trade based on emotions and are unsure where they should place a stop - if they bother to place one at all.
I developed this indicator to help traders practice responsible trading practices and develop discipline. When applied to a chart an array of light rays will be plotted, similarly to those that are emitted from light passing through a medium such as a prism. These rays are a series of EMAs high & low values, filled with an assigned color.
The indicator does not suggest an entry or exit, it allows for freedom of user interpretation, however - when in a trending market you may notice that the rays are tested multiple times when the market is trending in the same direction. When trading trends it makes sense to enter at the discounted value (pullbacks) and exit on extensions. There are two main reasons for this; first is manage risk, second is to profit from a successful trade.
To practice discipline and remove emotions from trading, one must be willing to accept the outcome of a trade - regardless of whether it was profitable or not, based on their strategy.
The visual gradient of the rays signifies the pullback to stoploss risk. As price expands it is clear to see that the distance from red to blue rays increases, which means entering a trade on a touch of the red ray requires a larger stoploss than entering a pullback to the green or blue rays. When price closes on the opposite side of a ray from where it was trending - we accept the trend may have ended and must wait for the next trend cycle. If the price action is range bound we will notice the rays melting together to create a grey ray that signifies this is not the best place to be trading any type of trend following strategy.
Using this indicator in an uptrend (price expansion upwards), we look to enter long positions of retests (pullbacks) into the rays - with a stoploss set below the lowest rays; as we do not believe the uptrend is over until the trend has been broken.
Using this indicator in a downtrend (price expansion downwards), we look to enter short positions of retests (pullbacks) into the rays - with a stoploss set below the lowest rays; as we do not believe the uptrend is over until the trend has been broken.
When price is range bound or consolidating, we do not enter trades; wait for clear trend to be established.
By practicing discipline, we are able to overcome the emotions involved with trading, remove hesitation, and trade our plans more confidently through appropriate risk management and radical acceptance.
Tandem EMA TrendsThis indicator helps to identify trends using 2 (tandem) EMAs: a fast EMA and a slow EMA. Set the lengths of the EMAs in the inputs (fast EMA should be a smaller number than the slow EMA).
The trend is bullish if the current value of the fast EMA > current value of the slow EMA AND the current value of the fast EMA > the prior bar's value of the fast EMA.
The trend is bearish if the current value of the fast EMA < current value of the slow EMA AND the current value of the fast EMA < the prior bar's value of the fast EMA.
The fast EMA is countertrend to the slow EMA if either of the following 2 conditions exist:
The current value of the fast EMA > current value of the slow EMA AND the current value of the fast EMA < the prior bar's value of the fast EMA (bullish countertrend).
-OR-
The current value of the fast EMA < current value of the slow EMA AND the current value of the fast EMA > the prior bar's value of the fast EMA (bearish countertrend).
Use this script to set custom alerts based off of the current trend like sending webhooks when specific conditions exist.
Customize the colors of the plots.
Timeframe-Based Dynamic MA [odnac]
This code is a Timeframe-Based Dynamic MA indicator, written in Pine Script, that dynamically calculates and displays the Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Moving Average (VWMA) based on a 24-hour period, according to the selected timeframe. It automatically adjusts the length of the moving averages for each timeframe, showing the appropriate value optimized for that specific timeframe.
Code Explanation:
Settings:
inputLength: A user input that allows setting the base time (24 hours by default). This value determines the reference for calculating the length of the moving averages according to the timeframe.
transp: A setting for the transparency of the moving average lines. It can accept values from 0 to 100 (0 is opaque, 100 is fully transparent).
Timeframe-Based Moving Average Calculation:
The length variable is dynamically calculated based on the current chart's timeframe.
For shorter timeframes like 1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, and 45-minute, the length is calculated by multiplying 60 / selected timeframe to obtain the moving average length based on a 24-hour period.
For longer timeframes like 1 hour, 4 hours, and 1 day, fixed values are used to set the moving average length.
Moving Average Calculation:
sma, ema, vwma: These are the Simple Moving Average, Exponential Moving Average, and Volume Weighted Moving Average calculated based on the length.
else_sma, else_ema, else_vwma: These represent the moving averages fetched from the 1-hour chart. For timeframes that are not calculated directly, the values are taken from the 1-hour chart.
Displaying the Moving Averages:
The moving averages are plotted according to the length calculated for the current timeframe.
If the length for the current timeframe is valid, the corresponding SMA, EMA, and VWMA values are displayed. Otherwise, the values fetched from the 1-hour chart are used.
The moving averages are displayed with the transparency (transp) value set by the user, controlling their opacity on the chart.
How to Use:
Base Time: The user sets a base time. For example, setting inputLength to 24 will calculate the moving average length based on a 24-hour period, which will be dynamically adjusted and displayed according to the selected timeframe.
Transparency Setting: The transparency of the moving average lines can be adjusted using the transp value.
Supported Timeframes:
For shorter timeframes (1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, 45-minute), the moving average lengths are dynamically calculated and displayed.
For longer timeframes (1 hour, 4 hours, 1 day), fixed length values are used.
This indicator allows you to dynamically calculate daily moving averages across different timeframes and visually check which moving average is the most appropriate for the selected timeframe.
200 ema dangezone This script tracks price interaction with the 200 EMA on the 1-minute chart and highlights key regions:
Purple: No-trade zone, indicating recent proximity to the 200 EMA.
Green: Trending upward, price above the 200 EMA.
Red: Trending downward, price below the 200 EMA.
Use this indicator to identify safe trading opportunities while avoiding high-risk zones near the EMA.
GpPa - Φ EMAsThe GpPaΦ EMAs are a complementary optional tool for the GpPa Strategy, and they serve to take a first look at the price momentum.
Let's trade,
Richie
.
.
.
Ricardo M. Olivares Guajardo (a.k.a. Richie) created the GpPa Strategy, a documented process, tools, and concepts. Please follow us at '@thewayofrichie' if you want quality and professional financial, economic, and trading content.
JR_EMAResearchThis indicator creates an Exponential Moving Average (EMA) with customizable bands around it.
The bands can be based on three different calculation methods:
1. Full Average Bar Range (high-low)
2. Body Average Bar Range (open-close)
3. Standard Deviation of the EMA
Users can display up to three bands above and below the EMA, with options to customize the colors, transparency, and whether to fill the area between bands. The indicator serves both as a research tool for studying price action around EMAs and as a potential trading tool for identifying volatility zones.
Key features:
- Configurable EMA period and color
- Three different band calculation methods
- Up to 3 standard deviations of band display
- Optional band filling with customizable color and transparency
- Overlay display for easy price action analysis
Custom MA + Parabolic SAR + ACDescription:
This trading strategy is designed for traders who want a systematic and rule-based approach to identifying potential buy and sell opportunities. It combines three popular technical analysis tools—Exponential Moving Averages (EMAs), Parabolic SAR, and the Accelerator Oscillator (AC)—to provide clear signals for entry and exit points. The strategy operates on the 4-hour timeframe by default but can be adjusted to suit different trading styles and timeframes.
Entry Rules for Long Trades:
1. The price must close above the EMA(120), indicating a strong upward trend.
2. The price must also close above EMA(14 High), confirming bullish momentum.
3. The Parabolic SAR must be positioned below the candle, signaling upward support.
4. The Accelerator Oscillator (AC) must be green and have a positive value, reflecting bullish acceleration.
5. The candle must close as a bullish candle (close > open), confirming buyer dominance.
Entry Rules for Short Trades:
1. The price must close below the EMA(120), indicating a strong downward trend.
2. The price must also close below EMA(14 Low), confirming bearish momentum.
3. The Parabolic SAR must be positioned above the candle, signaling downward pressure.
4. The Accelerator Oscillator (AC) must be red and have a negative value, reflecting bearish acceleration.
5. The candle must close as a bearish candle (close < open), confirming seller dominance.
Exit Rules:
• Stop loss is calculated dynamically based on key support and resistance levels:
• For long trades, the stop loss is set at EMA(14 Low).
• For short trades, the stop loss is set at EMA(14 High).
• Take profit is set using a Risk-Reward Ratio, which is customizable (default is 1:2).
• This ensures that risk is managed effectively, and rewards are maximized over time.
Additional Features:
• Trade Mode Selection: Traders can choose to trade Long Only, Short Only, or Both, depending on their market outlook.
• Visual Signals: Buy and sell signals are clearly displayed as labels on the chart, making it easy to identify trading opportunities at a glance.
• Customizable Parameters: All key settings, including EMA periods, Parabolic SAR parameters, and risk-reward ratio, are fully adjustable to suit different market conditions and preferences.
• Multi-Timeframe Compatibility: While optimized for the 4-hour timeframe, this strategy can be adapted to other timeframes for swing or intraday trading.
This script is ideal for traders who value a structured approach to trading and want to leverage the power of multiple indicators in a unified strategy. Whether you’re a beginner or an experienced trader, this tool provides clear rules and flexibility to help you make informed trading decisions.
PD/EMA by L00T3RThis indicator calculates the distance between the closing price and its Exponential Moving Average (EMA) over a user-defined period. It plots the distance as a line, along with histograms to highlight positive and negative values, and optionally overlays the EMA on the chart.
SD/OB/EMA - Energy CandlesThis will plot supply and demand box with energy candle on chart with exponential moving average.
Triple MATriple Moving Average (TMA) Indicator
Discover the power of trend analysis with the Triple Moving Average (TMA) indicator! This tool is designed to give you a clear and dynamic view of market trends using multiple simple moving averages (SMAs). Whether you're a beginner or an experienced trader, this indicator can help you identify potential market reversals, key price levels, and long-term trends.
Features:
5 Configurable Moving Averages: Customize the lengths to suit your trading strategy.
Dynamic Color Coding: Easily spot the relationships between short-, medium-, and long-term trends.
Clean Visualization: Transparent overlays ensure clarity without cluttering your chart.
Why Use TMA?
Moving averages are fundamental tools for traders, and TMA brings together multiple SMAs to help you stay ahead of the market. It’s perfect for identifying momentum shifts and filtering out noise, giving you the edge in any market condition.
If you find this indicator helpful, please support me by sharing your feedback and suggestions. Together, we can build tools that make trading simpler and more efficient for everyone!
Happy trading, and thank you for your support! 😊
Trend Map For TradersThis indicator maps out EMAs of various lengths into a visual map and allows you to configure the map's sensitivity with two simple settings. The color scheme is straightforward: observe the colors from top to bottom. The top represents the short-term trend, while the bottom reflects the long-term trend. Overall, the map provides a visual overview of the current short- and long-term trends. Simple but effective.
Smart Moving AveragesSmart Moving Averages analyzes the dynamic interplay between price action and multiple moving averages to identify high-probability support and resistance zones.
The script's distinguishing features include:
Bounce detection that filters out noise by requiring specific penetration thresholds (0.1-1.5%), helping traders identify genuine support tests versus false signals
Real-time MA clustering analysis that reveals zones where multiple moving averages converge, indicating potentially stronger support/resistance levels
Statistical tracking of bounce success rates for each MA, allowing traders to identify which moving averages are most reliable for the current market conditions
Power bounce detection that combines EMA spread analysis with trend confirmation, highlighting especially strong bullish setups
Visual stack status system that instantly communicates market health through an intuitive color-coded display showing how many MAs are below price
The script helps traders make more informed decisions by quantifying the historical reliability of different moving averages while providing real-time analysis of MA interactions with price. This systematic approach moves beyond simple MA crossovers to identify higher probability trading opportunities.
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.
Dekkapok Premium Prices and EMA360Overview:
The EMA360 Premium Levels indicator is designed to help traders identify key price levels above the EMA360 (Exponential Moving Average) on a daily timeframe. These levels, referred to as "premium levels" are calculated as multiples of the EMA360 and can act as potential resistance or support zones for price action analysis.
Features:
EMA360 Calculation:
The script calculates the EMA360 using the daily timeframe (or any user-specified timeframe).
EMA360 is plotted as a bold blue line for clear visibility.
Premium Levels:
Multiple levels above the EMA360 are plotted as horizontal green lines.
These levels are calculated by multiplying the EMA360 value by user-defined multipliers (e.g., 1.2x, 1.3x, etc.).
Premium levels can help identify overbought or extended price zones relative to EMA360.
Customizable Inputs:
EMA Length: Default is set to 360, but users can adjust the EMA length as needed.
Timeframe: EMA360 is calculated using the daily timeframe by default, but any timeframe can be selected.
Multipliers: Traders can input their desired multipliers (e.g., 1.2, 1.3, 1.5) as a comma-separated list.
Clean Visualization:
EMA360 and premium levels are plotted directly on the price chart for intuitive analysis.
Premium level lines are semi-transparent green to minimize clutter while maintaining focus on critical levels.
Use Cases:
Trend Analysis: Use the EMA360 to identify the broader market trend. Prices above the EMA360 generally indicate an uptrend, while prices below may indicate a downtrend.
Overextension Zones: Premium levels help traders identify zones where the price may be overbought or overextended relative to EMA360.
Dynamic Support/Resistance: The premium levels can act as dynamic resistance zones during uptrends and support zones during pullbacks.
How to Use:
Apply the indicator to your chart in TradingView.
Observe the EMA360 line to understand the market trend.
Use the green premium level lines to identify potential resistance zones as the price moves above the EMA360.
Customization Options:
Adjust the EMA Length and Timeframe to match your trading style.
Modify the Premium Multipliers to suit your market analysis needs (e.g., add or reduce levels like 1.1x, 1.8x, etc.).
This indicator is especially useful for trend-following traders who want to leverage EMA-based levels for strategic decision-making.
- Dekkapok
Dekkapok Premium Prices and EMA360 [Clean Ver.]Overview:
The EMA360 Premium Levels indicator is designed to help traders identify key price levels above the EMA360 (Exponential Moving Average) on a daily timeframe. These levels, referred to as "premium levels" are calculated as multiples of the EMA360 and can act as potential resistance or support zones for price action analysis.
Features:
EMA360 Calculation:
The script calculates the EMA360 using the daily timeframe (or any user-specified timeframe).
EMA360 is plotted as a bold blue line for clear visibility.
Premium Levels:
Multiple levels above the EMA360 are plotted as horizontal green lines.
These levels are calculated by multiplying the EMA360 value by user-defined multipliers (e.g., 1.2x, 1.3x, etc.).
Premium levels can help identify overbought or extended price zones relative to EMA360.
Customizable Inputs:
EMA Length: Default is set to 360, but users can adjust the EMA length as needed.
Timeframe: EMA360 is calculated using the daily timeframe by default, but any timeframe can be selected.
Multipliers: Traders can input their desired multipliers (e.g., 1.2, 1.3, 1.5) as a comma-separated list.
Clean Visualization:
EMA360 and premium levels are plotted directly on the price chart for intuitive analysis.
Premium level lines are semi-transparent green to minimize clutter while maintaining focus on critical levels.
Use Cases:
Trend Analysis: Use the EMA360 to identify the broader market trend. Prices above the EMA360 generally indicate an uptrend, while prices below may indicate a downtrend.
Overextension Zones: Premium levels help traders identify zones where the price may be overbought or overextended relative to EMA360.
Dynamic Support/Resistance: The premium levels can act as dynamic resistance zones during uptrends and support zones during pullbacks.
How to Use:
Apply the indicator to your chart in TradingView.
Observe the EMA360 line to understand the market trend.
Use the green premium level lines to identify potential resistance zones as the price moves above the EMA360.
Customization Options:
Adjust the EMA Length and Timeframe to match your trading style.
Modify the Premium Multipliers to suit your market analysis needs (e.g., add or reduce levels like 1.1x, 1.8x, etc.).
This indicator is especially useful for trend-following traders who want to leverage EMA-based levels for strategic decision-making.
- Dekkapok
Skull TradingThe Skull Trading Indicator is designed to help traders identify potential buy and sell opportunities based on the crossover of two Exponential Moving Averages (EMA). This indicator also integrates adaptive exit signals to lock in profits based on a customizable percentage threshold.
EMAs by ccrisanThis indicator provides confluience for EMA12 with EMA 26 and SMA 100 with SMA 200 in a single indicator.
4EMAs+OpenHrs+FOMC+CPIThis script displays 4 custom EMAs of your choice based on the Pine script standard ema function.
Additionally the following events are shown
1. Opening hours for New York Stock exchange
2. Opening Time for London Stock exchange
3. US CPI Release Dates
4. FOMC press conference dates
5. FOMC meeting minutes release dates
I have currently added FOMC and CPI Dates for 2025 but will keep updating in January of every year (at least as long as I stay in the game :D)
5-Min EMA Signalthis is a learning and testing indicator , do not follow this for trading or investment purpose