JC blended MAs v3The best, simplest moving averages you'll find.
Well not really. But it does have SMA, WMA, and EMA in one place. Plus an additional one that averages those, that might give you a leg up because it's not really a standard thing and you won't create a massive worldwide machine-driven feedback loop that crashes the markets (instead profit from them). Or something like that.
Each moving average has their own definable averaging length.
The master time resolution is also definable, or you can use the chart's. (The latter which is not very useful for moving averages, yet so many of them on trading view don't let you specify otherwise.)
For example you can set the master resolution to 5 minutes, 1 hour, 1 day, etc. (Default is 1 hour.) The graphs don't change, only the resolution.
Note: There are a few rare, extreme edge cases where the graphs won't render, which are obvious. In which case all you need to do is choose a more sane resolution. This is more about the limits of Trading View than specific script bugs.
Exponential Moving Average (EMA)
EMA Levels, Multi-TimeframeThe exponential moving average (EMA) tracks price over time, giving more importance to recent price data than simple moving average (SMA). EMAs for larger timeframes are generally considered to be stronger supports/resistances for price to move through than smaller timeframes. This indicator allows you to specify two different EMA lengths that you want to track. Additionally, this indicator allows you to display not just the EMA levels of your currently viewed timeframe on the chart, but also shows the EMA levels of up to 4 different timeframes on the same chart. This allows you to quickly see if multiple EMA levels are aligning across different timeframes, which is an even stronger indication that price is going to meet support or resistance when it meets those levels on the chart. There are a lot of nice configuration options, like:
Ability to customize the EMA lengths you want to track
Style customization (color, thickness, size)
Hide any timeframes/levels you aren't interested in
Labels on the chart so you can tell which plots are the EMA levels
Optionally display the plot as a horizontal line if all you care about is the EMA level right now
3 Moving Average Exponential with multi TFThis is a simple Exponential Moving Average indicator. It allows you to have 3 Exponential Moving Averages and set a specific TimeFrame for each. Feel free to cope code LOL!
Price Action [Morty]This price action indicator uses the higher timeframe SSL channel to identify trends.
The long entry signal is a bullish candlestick pattern when the price retraces to EMA20 in an uptrend.
The short entry signal is a bearish candlestick pattern when the price retraces to the EMA20 in a downrend.
Currently, this indicator shows engulfing patterns, pin bar patterns, 2 bar reversal patterns and harami patterns.
It also shows a volatility squeeze signal when the Bollinger bands is within the Kelter channels.
The buy and sell signal can also be filter by the ADX indicator greater than a threshold.
You can set your stoploss to the previous low/high when you go long/short.
The risk/reward ratio could be 1 to 1.5.
This indicator can be used in any market.
EMA 20/50/100/200 Daily-WeeklyHello!
In case this helps others when using EMA's on multiple timeframes, I decided to publish this script I modified.
It adds the EMA for 20/50/100/200 timeframes and gives them the color white, orange, red, green respectively.
The weekly timeframe will get the corresponding weekly EMA.
The monthly timeframe will get the corresponding monthly EMA.
The daily timeframe, and all timeframes below this, will get the daily timeframe. The idea that that a ticker symbol might respect with strength the daily EMA's - you'll be able to move to a smaller timeframe and still view the daily EMA's in an effort to better view how close the ticker came to taking a specific EMA.
Média 8, 21, 56, 200 SEMANAL - Augusto BackesFique tranquilo, aqui tem todas as médias que o Backes utiliza dentro de um indicador só, aproveite :)
Aggregated BTC SpreadThis script is used to aggregate the bitcoin spread on futures contracts on different platforms.
It works by averaging the for every selected exchange, and apply an EMA of .
It is supporting
Binance (USD / USDT)
Okex
FTX
Huobi
Deribit
Ascendex
CME (BTC1!)
Cloud Ribbon ++ by [JohnnySnow]Inspired by my favorite EMA ribbon - "EMA Ribbon " by fskrypt.
This Ribbon ADD the option to choose the avarage algorithm of the ribbon .
Created also to be more friendly to read along with trendlines and Fibonacci retracements.
For those like me that NOT use this ribbon to find exact price action but instead, to have a grasp of possible Support/Resistance strenght ahead.
High transparency lines and a configurable color palette for filling the background give the ribbon a look of support/ Resistance cloud Strenght.
Each MA length, line, and background color can be easily configured.
GreatBlueTradingTeam FibDev SignalsScript Purpose:
This script was designed to look for trend reversals and be used with other TA tools to help build confluence for day traders.
TA Used:
Without diverging too much information, this script relies on Highs, Lows, Opens, EMAs, Standard Deviations, Fib Numbers, and Fib Levels.
Script Overview:
First we look at the price action found on the Daily chart to create a set of zones using Fibs and Standard Deviations thats serves as our gauge on how far the price will move on any given day. Then, we create another set of zones ("intraday" zones if you will) that are built on much faster price action and relevant to the chart time period that is selected. These zones are also created using a combination of Fibs and Standard Deviations. From here, we compare the intraday price action with these two zones and look for areas where we feel overbought or oversold conditions are forming to create the bullish or bearish signals provided by the indicator.
Script Shortcomings:
Due to the fact this script is looking for breaks in trends, or trend reversals, it is subject to high risk especially in times of strong market trends where it could experience repeated failed signals. We recommend using this script in combination with other forms of TA for additional confluence as well as general market awareness that may influence trends and market behavior.
Script Access:
Please PM us to obtain information about accessing this script, or view our profile for contact information.
LoTek - Horizontal Multi Time-Frame EMAsThis script retrieves user definable EMA values from different timeframes and plots a Horizontal Line on the chart for the corresponding timeframe. Labels are switchable as well. This can help you identify an EMA squeeze on lower time frames quickly. In this image, I'm viewing QRDO on 1HR and can tell that the price is just above the D10.
Indicator Functions with Factor and HeikinAshiHello all,
This indicator returns below selected indicators values with entered parameters.
Also you can add factorization, functions candles, function HeikinAshi and more to the plot.
VERSION:
Version 1: returns series only source and Length with already defined default values
Version 2: returns series with source, Length, p1 and p2 parameters according to the indicator definition (ex: )
PARAMETERS p1 p2
for defining multi arguments (See indicators list) indicator input value usable with verison=V2 selected.. ex: for alma( src , len ,offset=0.85,sigma=6), set source=source, len=length, p1=0.85 an p2=6
FACTOR:
Add double triple, Quadruple factors to selected indicator (like converting EMA to 2-DEMA, 3-TEMA, 4-QEMA...)
1-Original
2-Double
3-Triple
4-Quadruple
LOG
Log: Use log, log10 on function entries
PLOTTING:
PType: Plotting type of the function on the screen
Original :use original values
Org. Range (-1,1): usable for indicators between range -1 and 1
Stochastic: Convert indicator values by using stochastic calculation between -1 & 1. (use AT/% length to better view)
PercentRank: Convert indicator values by using Percent Rank calculation between -1 & 1. (use AT/% length to better view)
ST/%: length for plotting Type for stochastic and Percent Rank options
Smooth: Use SWMA for smoothing the function
DISPLAY TYPES
Plot Candles: Display the selected indicator as candle by implementing values
Plot Ind: Display result of indicator with selected source
HeikinAshi: Display Selected indicator candles with Heikin Ashi calculation
INDICATOR LIST:
hide = 'DONT DISPLAY', //Dont display & calculate the indicator. (For my framework usage)
alma = 'alma( src , len ,offset=0.85,sigma=6)', // Arnaud Legoux Moving Average
ama = 'ama( src , len ,fast=14,slow=100)', //Adjusted Moving Average
acdst = 'accdist()', // Accumulation/distribution index.
cma = 'cma( src , len )', //Corrective Moving average
dema = 'dema( src , len )', // Double EMA (Same as EMA with 2 factor)
ema = 'ema( src , len )', // Exponential Moving Average
gmma = 'gmma( src , len )', //Geometric Mean Moving Average
hghst = 'highest( src , len )', //Highest value for a given number of bars back.
hl2ma = 'hl2ma( src , len )', //higest lowest moving average
hma = 'hma( src , len )', // Hull Moving Average .
lgAdt = 'lagAdapt( src , len ,perclen=5,fperc=50)', //Ehler's Adaptive Laguerre filter
lgAdV = 'lagAdaptV( src , len ,perclen=5,fperc=50)', //Ehler's Adaptive Laguerre filter variation
lguer = 'laguerre( src , len )', //Ehler's Laguerre filter
lsrcp = 'lesrcp( src , len )', //lowest exponential esrcpanding moving line
lexp = 'lexp( src , len )', //lowest exponential expanding moving line
linrg = 'linreg( src , len ,loffset=1)', // Linear regression
lowst = 'lowest( src , len )', //Lovest value for a given number of bars back.
pcnl = 'percntl( src , len )', //percentile nearest rank. Calculates percentile using method of Nearest Rank.
pcnli = 'percntli( src , len )', //percentile linear interpolation. Calculates percentile using method of linear interpolation between the two nearest ranks.
rema = 'rema( src , len )', //Range EMA (REMA)
rma = 'rma( src , len )', //Moving average used in RSI . It is the exponentially weighted moving average with alpha = 1 / length.
sma = 'sma( src , len )', // Smoothed Moving Average
smma = 'smma( src , len )', // Smoothed Moving Average
supr2 = 'super2( src , len )', //Ehler's super smoother, 2 pole
supr3 = 'super3( src , len )', //Ehler's super smoother, 3 pole
strnd = 'supertrend( src , len ,period=3)', //Supertrend indicator
swma = 'swma( src , len )', //Sine-Weighted Moving Average
tema = 'tema( src , len )', // Triple EMA (Same as EMA with 3 factor)
tma = 'tma( src , len )', //Triangular Moving Average
vida = 'vida( src , len )', // Variable Index Dynamic Average
vwma = 'vwma( src , len )', // Volume Weigted Moving Average
wma = 'wma( src , len )', //Weigted Moving Average
angle = 'angle( src , len )', //angle of the series (Use its Input as another indicator output)
atr = 'atr( src , len )', // average true range . RMA of true range.
bbr = 'bbr( src , len ,mult=1)', // bollinger %%
bbw = 'bbw( src , len ,mult=2)', // Bollinger Bands Width . The Bollinger Band Width is the difference between the upper and the lower Bollinger Bands divided by the middle band.
cci = 'cci( src , len )', // commodity channel index
cctbb = 'cctbbo( src , len )', // CCT Bollinger Band Oscilator
chng = 'change( src , len )', //Difference between current value and previous, source - source.
cmo = 'cmo( src , len )', // Chande Momentum Oscillator . Calculates the difference between the sum of recent gains and the sum of recent losses and then divides the result by the sum of all price movement over the same period.
cog = 'cog( src , len )', //The cog (center of gravity ) is an indicator based on statistics and the Fibonacci golden ratio.
cpcrv = 'copcurve( src , len )', // Coppock Curve. was originally developed by Edwin "Sedge" Coppock (Barron's Magazine, October 1962).
corrl = 'correl( src , len )', // Correlation coefficient . Describes the degree to which two series tend to deviate from their ta. sma values.
count = 'count( src , len )', //green avg - red avg
dev = 'dev( src , len )', //ta.dev() Measure of difference between the series and it's ta. sma
fall = 'falling( src , len )', //ta.falling() Test if the `source` series is now falling for `length` bars long. (Use its Input as another indicator output)
kcr = 'kcr( src , len ,mult=2)', // Keltner Channels Range
kcw = 'kcw( src , len ,mult=2)', //ta.kcw(). Keltner Channels Width. The Keltner Channels Width is the difference between the upper and the lower Keltner Channels divided by the middle channel.
macd = 'macd( src , len )', // macd
mfi = 'mfi( src , len )', // Money Flow Index
nvi = 'nvi()', // Negative Volume Index
obv = 'obv()', // On Balance Volume
pvi = 'pvi()', // Positive Volume Index
pvt = 'pvt()', // Price Volume Trend
rise = 'rising( src , len )', //ta.rising() Test if the `source` series is now rising for `length` bars long. (Use its Input as another indicator output)
roc = 'roc( src , len )', // Rate of Change
rsi = 'rsi( src , len )', // Relative strength Index
smosc = 'smi_osc( src , len ,fast=5, slow=34)', //smi Oscillator
smsig = 'smi_sig( src , len ,fast=5, slow=34)', //smi Signal
stdev = 'stdev( src , len )', //Standart deviation
trix = 'trix( src , len )' , //the rate of change of a triple exponentially smoothed moving average .
tsi = 'tsi( src , len )', //True Strength Index
vari = 'variance( src , len )', //ta.variance(). Variance is the expectation of the squared deviation of a series from its mean (ta. sma ), and it informally measures how far a set of numbers are spread out from their mean.
wilpc = 'willprc( src , len )', // Williams %R
wad = 'wad()', // Williams Accumulation/Distribution .
wvad = 'wvad()' //Williams Variable Accumulation/Distribution
I will update the indicator list when I will update the library
Thanks to tradingview, @RodrigoKazuma for their open source indicators
Moving Average Gradient (MAG) The Moving Average Gradient Indicator uses multiple Moving Averages to create a gradient. It creates continually more faint MAs, filled upwards or downwards to the price at a certain opacity. It can be used efficiently for stocks, forex, crypto, and more. This indicator combines numerous Moving Averages of your choice, a few of which include:
EMA
SMA
WMA
HMA
RMA
DMA
LSMA
VAMA
TMA
MF
Using this indicator will make entries more simple because crossovers and crossovers can more easily be detected, either manually or using alerts. These multiple Moving Averages allow for a smoothed out price trend, and the filtering of irregular and odd short-term price fluctuations. Due to the ample count of price trends that are widely used, it is difficult to view the market through the eyes of all types of investors/traders. This indicator manages to counter exactly that, you will be able to see all existing trends and enter/exit positions accordingly. This indicator can be used with all chart types and works well with many other indicators. It allows for complete customization and offers easy-to-understand settings which can be designated to a certain individual. You can modify every single factor of the MAs which allows for an even more personalized and adapted Indicator that reflects your trading/ investing inquiries. Most importantly, it looks cool.
A few of the technical settings you can change are:
Moving Average Count (Select how many do you want to be displayed.)
Moving Average Type (EMA, SMA, WMA, etc.)
Source (close, open, high, low)
Separate MA Length (The length of each Moving Average, its lookback. How many previous candles should it be based on? Choose each Moving Average's lookback length.)
You can also change the style settings of the indicators like:
Progressive opacity percentage (By how much will the next MAs fill affect the other? 1st: 50%, 3rd: 30%, 4th: 20%, 5th: 10%)
Bullish Candle Color
Bearish Candle Color
This indicator is unique because it can be used for all strategies and all trading styles, for example, day trading or long-term investing, really anything if used correctly. The reason it can be used in so many instances is a result of the detailed and in-depth settings tab. This allows the indicator to be used and to be useful in various situations and allows you to dominate the market. You can either increase the MA length difference by progressively small amounts for day trading and create bigger gaps in the MA length difference for swing trading or long-term investing. Integrated alerts also enhance your efficiency while using this indicator because you can choose to be notified at the crossovers and crossunders of a pair of Moving Averages.
The technical portion of the indicator creates and plots the chosen amount or count of Moving Averages as specified in the settings tab. Then it fills each MA using the selected color and opacity. Afterward, it adapts the moving Averages to use the inputted data from the settings tab and uses it to plot them accordingly.
(Short)EMA 4H + Stochastic RSI By Nussara (strategy)This is a back test for "(Short)EMA 4H + Stochastic RSI" used for a short position. It uses EMA and stochastic RSI.
The 4-hour EMA is a trend indicator in smaller timeframes. For a short position, EMA slow is above EMA fast and uses stochastic RSI to predict price turning points. Through the formula, traders can identify overbought or oversold.
Default setting
1. The 4-hour EMA defaults to EMA fast =24 and EMA slow = 33.
2. Stochastic RSI defaults K=3, D=3, RSI Length=16, and Stochastic Length = 5.
You should adjust the settings to be suitable for the products that you trade.
(Short)EMA 4H + Stochastic RSI formula
Short Entry :
1. The timeframe of the chart must be less than or equal to 4 hours. If the timeframe is set higher than 4 hours, this strategy will not work.
2. 4-hour slow EMA line must be above fast EMA line, indicating an downtrend.
3. Stochastic RSI K line cross down D line and the intersection must be above 80.
If all three are true, the indicator will have a short signal.
Short Exit: Stochastic RSI K line cross up D line
This indicator is just a tool for technical analysis. It shouldn't be used as the only indication of trade because it causes you to lose your money. You should use other indicators to analyze together.
(Short)EMA 4H + Stochastic RSI By Nussara(study)This strategy is called "(Short)EMA 4H + Stochastic RSI" used for a short position. It uses EMA and stochastic RSI.
The 4-hour EMA is a trend indicator in smaller timeframes. For a short position, EMA slow is above EMA fast and uses stochastic RSI to predict price turning points. Through the formula, traders can identify overbought or oversold.
Default setting
1. The 4-hour EMA defaults to EMA fast =24 and EMA slow = 33.
2. Stochastic RSI defaults K=3, D=3, RSI Length=16, and Stochastic Length = 5.
You should adjust the settings to be suitable for the products that you trade.
(Short)EMA 4H + Stochastic RSI formula
Short Entry :
1. The timeframe of the chart must be less than or equal to 4 hours. If the timeframe is set higher than 4 hours, this strategy will not work.
2. 4-hour slow EMA line must be above fast EMA line, indicating an downtrend.
3. Stochastic RSI K line cross down D line and the intersection must be above 80.
If all three are true, the indicator will have a short signal.
Short Exit: Stochastic RSI K line cross up D line
This indicator is just a tool for technical analysis. It shouldn't be used as the only indication of trade because it causes you to lose your money. You should use other indicators to analyze together.
(Long)EMA 4H + Stochastic RSI By Nussara(strategy)This is a back test for "(Long)EMA 4H + Stochastic RSI " used for a long position. It uses EMA and stochastic RSI.
The 4-hour EMA is a trend indicator in smaller timeframes. For a long position, EMA fast is above EMA slow and uses stochastic RSI to predict price turning points. Through the formula, traders can identify overbought or oversold.
Default setting
1. The 4-hour EMA defaults to EMA fast =24 and EMA slow = 33.
2. Stochastic RSI defaults K=3, D=3, RSI Length=16, and Stochastic Length = 5.
You should adjust the settings to be suitable for the products that you trade.
(Long)EMA 4H + Stochastic RSI formula
Long Entry :
1. The timeframe of the chart must be less than or equal to 4 hours. If the timeframe is set higher than 4 hours, this strategy will not work.
2. 4-hour fast EMA line must be above slow EMA line, indicating an uptrend.
3. Stochastic RSI K line cross up D line and the intersection must be below 20.
If all three are true, the indicator will have a long signal.
Long Exit: Stochastic RSI K line cross down D line
This indicator is just a tool for technical analysis. It shouldn't be used as the only indication of trade because it causes you to lose your money. You should use other indicators to analyze together.
(Long)EMA 4H + Stochastic RSI By Nussara(study)This strategy is called "(Long)EMA 4H + Stochastic RSI" used for a long position. It uses EMA and stochastic RSI.
The 4-hour EMA is a trend indicator in smaller timeframes. For a long position, EMA fast is above EMA slow and uses stochastic RSI to predict price turning points. Through the formula, traders can identify overbought or oversold.
Default setting
1. The 4-hour EMA defaults to EMA fast =24 and EMA slow = 33.
2. Stochastic RSI defaults K=3, D=3, RSI Length=16, and Stochastic Length = 5.
You should adjust the settings to be suitable for the products that you trade.
(Long)EMA 4H + Stochastic RSI formula
Long Entry :
1. The timeframe of the chart must be less than or equal to 4 hours. If the timeframe is set higher than 4 hours, this strategy will not work.
2. 4-hour fast EMA line must be above slow EMA line, indicating an uptrend.
3. Stochastic RSI K line cross up D line and the intersection must be below 20.
If all three are true, the indicator will have a long signal.
Long Exit: Stochastic RSI K line cross down D line
This indicator is just a tool for technical analysis. It shouldn't be used as the only indication of trade because it causes you to lose your money. You should use other indicators to analyze together.
SEMA-XSEMA-X (sema cross)
It's a simple EMA cross strategy
Rules of strategy
1. 2 EMA crossing
2. Long (Golden Cross), Short (Dead Cross)
3. Target profit, stop loss setting
You can also get big trend gains if you set a long target price.
* * *
SEMA-X (세마크로스)
간단한 EMA 교차 전략 입니다.
전략의 규칙
1. 2개의 EMA 교차
2. 매수(골든 크로스), 매도(데드 크로스)
3. 목표가, 손절가 설정
목표가를 길게 설정하면 큰 추세 이익도 얻을 수 있습니다.
5min MACD scalp by JoelThis strategy is inspired by a youtuber called Joel on Crypto. He trades this using Ema, MACD indicators and his own experience. For more information, check out his Best Crypto Scalping Strategy for the 5 Min Time Frame video. I have tried to automate this a little.
Long or Short trades are determined with a crossing of the fast Ema over the slow Ema for Long and the opposite for Short. Trades should only happen close to the crossovers. Then for Long we use the MACD indicator with a 1min TF (I had better results using the 5min) where we look for high peaks in negative values for Long and vice versa for Shorts. These should be significantly higher than other peaks (or if you will lower peaks for a Long).
Hence, the key is to detect high peaks on the histogram, which I try to achieve by checking if the last 2 values were higher than X bars back. If you want to make it even more specific, then you can turn on the additional checkbox which compares the current value to the average value of X bars back, and if it is greater than, say, 50% the value of the average (= 1.5x the average), then it's ok for the trade.
I also noticed that the strategy often bought at the top or bottom, so I added a check that compares whether the last evaluated bar is the first rising bar (for Long) or falling bar (for Short). This can be turned on or off.
Target profit 0,5% and stop loss 0,4% are based on his recommendation. The strategy is set to take only 1 trade at a time , and you can have a back tester table on.
I'm still a pine script beginner, so the strategy is certainly not perfect and could be improved. If you have any tips on how to improve it further, please let me know. I will try to update it when I have time.
I would also like to thank Joel on Crypto for sharing the strategy and @ZenAndTheArtOfTrading for his great library and code (thanks to him we have a back tester table in here), but especially his educational videos on youtube, which taught me a lot about pine script.
WhaleCrew AccumulationThis script was built for the BTC weekly chart.
Purpose: Accumulation of longterm (spot) holdings.
Bull Market Support-Band:
Bundle of the 20 EMA & SMA
Often acted as support during previous bullmarkets
Some people like to trade retests/breaks of this band
Accumulation-Band (+ alerts):
Green: Possible Accumulation/DCA Opportunity
Color might change while candle is still open (e.g. Weekly Candle - 19 Jul '21, flipped green -> closed red)
Labels (+ alerts):
Break of the 200 Weekly EMA
Oversold RSI (< 30)
Highs-Lows Bands Trend FollowingTwo bands formed by moving averages of highs and lows.
The lower band should provide zone of support in uptrends while the upper band should provide zone of resistance during downtrends.
Bands that turn green in bullish trends should provide buy signals while bands that turn red in bearish trends should provide sell signals.
Simple EMA20 Strategy + StochasticThis is a Trend Following Strategy.
The intent of this strategy is to catchthe price as it trends higher than the 20-period EMA and sell immediately after the price closes below it.
I have implemented calculations from Stochastic to make sure the price is coming from an oversold area.
There is also a check to see if the 20-period EMA is trending higher than before.