[francrypto® strategy] 4 EMAs, P.SAR & Vol.Prof. (by kv4coins)(ENG)
This script consists of my own strategy for cryptocurrency (but can be adapted very well for stocks, forex, etc.)
Is a combination of:
- Four Exponentials Moving Average (EMA), configurables: by defect are 10, 21, 55 and 200 periods in yellow, aqua, orange and blue each of them
- Parabolic SAR System (PSAR), configurable
- Volume Profile (that has been developed by kv4coins - he has already authorized me to use it under the same OSS Licence Terms: MPL 2.0), configurable: with another default values and bilingual support for Spanish (SPA)
How it works
1) It is always better to detect specifics candlesticks or patrons: doji , pinbar or inverted pinbar , engulfing bars , morning star or evening star , harami , twizzer bottom or top , etc.
2) The 10 and 21 periods EMA help to identify the short-term behavior
3) The 55 periods EMA can be used like a support or resistance in medium-term, as 200 periods EMA in very long-term
4) It will convenient search for a double cross (10 & 21) or a triple cross (10, 21 & 55) to determine the medium-term change Downtrend to UpTrend (or viceversa)
5) Confirm the change patron with the Parabolic SAR and then identify potencials purchases or sales
6) Use Volume profile to detect potential supports or resistances areas, in order to set stop limit/loss and take profit orders.
Hope this helps!
Cheers,
FRANCRYPTO®
–––––– 0 ––––––
(ESP)
Este script consiste en mi propia estrategia para criptomonedas (pero puede adaptarse muy bien para acciones, forex, etc.)
Es la combinación de:
1) Cuatro Medias Móviles Exponenciales (EMA), configurables: por defecto son de 10, 21, 55 y 200 períodos en amarillo, turquesa, naranja y azul cada una de ellas
2) Sistema Parabolic SAR (PSAR), configurable
3) Perfil de Volumen (que fuera desarrollado por kv4coins - que ya me ha autorizado a su uso bajo las mismas condiciones de la Licencia OSS: MPL 2.0), configurable: con otros valores por defecto y soporte bilingüe para Español (SPA)
Cómo funciona
1) Siempre va a resultar mejor detectar velas japonesas específicas o patrones: doji , martillos o martillos invertidos , velas envolventes , patrón amanecer o atardecer , harami , velas gemelas , etcétera
2) La EMA de 10 y 21 períodos ayudan a identificar el comportamiento de corto plazo
3) La EMA de 55 períodos puede ser usada como un soporte o resistencia de mediano plazo, como así también, la EMA de 200 períodos en el muy largo plazo
4) Será conveniente buscar un doble cruce (10 & 21) o un triple cruce (10, 21 & 55) para determinar un cambio de la tendencia de mediano plazo de bajista hacia alcista (o viceversa)
5) Confirmá el patrón de cambio con la Parabólica de SAR y entonces identificá potenciales compras o ventas
6) Usá el perfil de volumen para detectar las potenciales zonas de soporte o resistencia, principalmente para establecer ordenes stop limit/loss o take profit.
¡Espero que pueda serles de utilidad!
Saludos,
FRANCRYPTO®
Exponentialmovingaverages
Shaded Tripple MAsThree moving averages that have shaded area between its sma and ema versions. Default lengths are 50, 100 and 200.
Custom Multi-Timeframe Screener with AlertsThis is a multi-timeframe screener with alerts. Use this way you can create a screener on indicators using 2 or more timeframes.
In TradingView there is a limit of 40 security function calls. Every timeframe requires another security call so you can screen fewer symbols with any additional timeframe.
In this example, I use 2 timeframes, so the maximum amount of symbols you can scan is 40/2 = 20.
For 3 timeframes - 13, 4tfs - 10, 5tfs - 8 symbols and so on.
In this simplistic example, I require a cross of EMAs on the current timeframe and confirmation that one EMA above/below another from the second timeframe.
Of course, you can create much more complicated functions for this screener.
Params
- higher timeframe
- ema params
- 20 symbol inputs for instruments you want to use in this screener
Alerts
You can create an alert from it easily by selecting the screener name from the list and then selecting "Any alert() function call".
No additional configuration is required, message and alert on close is generated in the code.
You should better change the default name for your alert. Sometimes because of big amount of inputs you might receive an error.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Moving Average Percentage Hunter by HassonyaIn this indicator study, we aim to capture the moving averages to which the bar close is closest. The indicator shows the moving averages, which are closest to the percentage value we selected, on the label. It indicates the names of the closest averages at the top of the label with a (near) note next to them. If none of the averages are close to the specified percentage value, there will be a no nearness warning. The indicator supports the heikin ashi candles. For this setting, check the I'm using heikin ashi candles box.
Thanks to this feature of the indicator, you will be able to see bar proximity to the moving averages you use continuously. You can make purchases and sales by using this feature to your advantage. This way you can easily catch reaction turns.
If you want, you can turn off moving averages in the settings section. You can open it whenever you need. You can do this in the show moving averages box. Appears if you check it, disappears if you uncheck it.
There are 5 moving average options. SMA, EMA, WMA, TMA and HullMA moving averages. Moving average names and values in the list are dynamically adjusted. When you change the settings, the moving average names and values in the list will change automatically. At the bottom of the settings, you can determine the lengths of the moving averages yourself. In the next update, each moving average will have a different average option.
You can enter percentage values, fractional figures. for example (3.5, 5.2 vb.) The indicator will show you the value you give and the proximity of the value below that value. You can adjust this setting in MA Percentage Nearness.
More detailed options will be available in the next update. Range of values, options below, above, and so on.
In the settings section, there is a Show distance option. If you check this option, you can continuously see the percentage values of the distance to the moving averages on the label. For this feature, you have to check the show distance box.
The alarm feature will come in the next update.
Thanks for support. Good Luck.
Custom WaterMark + 4EMA [SilentKreator]4 Ema + Custom Watermark, you can customize everything, in the watermark you can write your name, is a tool to visually protect your work, mainly for streamers and analysts.
Background Color Based on EMAHello Traders,
this is a very simple script. It paints the background color based on the close price in reference to an exponential moving average.
If the close is above the EMA the background color will be green.
If the close is under the EMA the background color will be red.
You can adjust colors and the EMA period by yourself.
This little indicator script is just to get a better overview, for example in combination with other indicators.
Hope you guys like this script. Wish you a great trading week.
Buy/Sell/Hold/Away? This script based on Simple Moving Average and Exponential Moving Average.
The Red Line is an exponential moving average with small length. It act as a main line.
The Black Line is an average of some past data of exponential moving average. Act as Trend Line
The green circles is an exponential moving average with medium length. It act as a signal line.
The Idea is, when the price move higher from it past,past,past, repeatedly in some duration, it will gain enough energy to fly to the highest.
Buy signal when red line cross down green circle. strong buy when red line cross down black line.
Sell signal when red line cross down green circle. strong buy when red line cross down black line.
Additional 1:
Triangle up(blue) indicate Buy Signal. it happen when the price break resistant with some condition and volume>1m
Triangle down(maroon) indicate Sell Signal. it happen when the price break support with some condition and volume>1m
The more triangle show in series, the strong the trend to move accordingly.
Additional 2:
Support and Resistance line.
Hope Benefit To You All.
Bjorgum EMAThis is an answer back to repeated requests for a simple version of Bjorgum Triple EMA Strat, which is not recommended for use with Heiken Ashi candles as it results in "double smoothing" of the averages and can give late signals as a result.
The inputs are raw and super basic. At its core its really just 3 EMAs that you can customize the source and length. The averages and shadowing change color based on if they are either rising or falling.
default values are 5, 9, and 21 EMA on open as source.
Bar color is dictated by the bar close over or under the 5 and 9 EMA.
This is suitable for use on HA candle.
Rainbow Trend IndicatorThis is an indicator based on the MA rainbow concept. It is possible to choose between 15 or 20 MA's and if all 15 MA's is picked, the calculation will be calculated on 15 MA's and if 20 is picked the calculation is calculated on 20 MA's. The indicator will then be a line which is assigned a value from the calculation based on the MA's. If the line is above the dashed zero line, meaning the line's last value is a positive value, the price is in a uptrend and if the line is below the dashed zero line, meaning the line's last value is a negative value, the price is in a downtrend.
In short
If the line is green, the price is in a uptrend. If the line is red, the price is in a downtrend.
EMA Cross Levels + Standard DeviationPlots the price level that the most recent EMA crossover occurred at(Green if bullish and red if bearish).
Also calculates standard deviation over a shorter window-length/lookback period (of 'n_std_fast' length) and another over a much longer span of periods(n='n_std_slow', > 'n_std_fast').
These are the two dotted lines appearing as bands around the cross-level line.
Buy/Sell Alert EMA with SuperFormula by zdmre*** Use it at your own risk
This indicator has 3 indicators and gives a buy/sell signal depending on the EMA.
3 indicators:
- Ichimoku
- Bollinger Band
- EMA
It also shows the value on the candle as a warning in the Buy and Sell signals. This value is calculated with a special formula I have created.
On the other hand Bollinger Band and Ichimoku Cloud are also included to check the accuracy of the signals.
For this indicator, I recommend a minimum of 4 hours chart.
Custom Moving Average (EMA & SMA)This script is a custom visualization tool to plot 4 Moving Averages (MA).
Each MA is customizable; you can:
enable (disable) the plot of MA;
select whether the MA is an EMA or an SMA;
the length;
the source (open, close, ...);
the offset value (default is 0).
Note:
The 1st MA is an EMA with length 50.
The others MAs are SMA with length 9, 30 and 100 respectively.
Multiple Time Frames Moving Averages (x3)This indicator is a set of 3 moving averages for which you can configure the type of the moving averages , their length , and of course the time frame . The moving averages you can choose from are:
- Simple Moving Average ( SMA )
- Exponential Moving Average ( EMA )
- Weighted Moving Average ( WMA )
- Running Moving Average (RMA)
- Hull Moving Average ( HMA )
- Volume Weighted Moving Average ( VWMA )
- Arnaud Legoux Moving Average ( ALMA )
The time-frames you can choose from - minutes (1, 3, 5, 15, 45), hours (1, 2, 3, 4, 12), days (1, 3), weekly or monthly .
Overall, it is a minimalistic indicator. No major improvements or trading logic like some of my other indicators, but I did make it slightly easier to use and visually appealing. The MAs' colors change from light to dark green/blue/red depending on the trend - bullish or bearish respectively. Initially, those were changing from green to red (based on direction) but it became a bit confusing when they started crossing each other. Anyway, feel free to change those colors to whatever you like.
If you have suggestions on how to improve this indicator or ideas about new ones, please drop me a line. Thanks.
Logistic EMA w/ Signals by DGTLogistic Map Equation - The logistic map connects fluid convection, neuron firing, the Mandelbrot set and so much more.
This study is an attempt to apply Logistic Map Equation in Trading
Logistic Map Equation
Xn+1 = r * Xn * (1 - Xn)
Where,
r - growth rate
Xn - percentage of theoretical maximum of measured event (from 0 to 1)
(1 - Xn) - represents constraints of the environment, presents the idea of negative feedback
For trading the measured event will be the price of the instrument (price is commonly reffered as source in mathematicall forumlations),
hence
r - growth rate can be expressed as => change(source, length) / source, expressing r in such manner mades the equation dynamic with regards to the growth rate
Xn - percentage of theoretical maximum of the price for given duration can be expressed as => source / highest(length)
Putting pieces together we are ready to plot
Printed alone does not seem to provide much useful visualization for trading, in fact not easy to interpret especially when the market is an uptrend
What it has numerically,
Provides a ratio, where sudden changes are much more reflected thanks to negative feedback nature of the logistic equation.
As we know moving average indicators are lagging and the logistic map may fit here to reduce the lag
With this study you will find application of Logistic Map Equation with combination of Exponential Moving Average (EMA)
Logistic EMA (LEMA) and LEMA COLORS
one line with user defined periods of length, where the colors of the line will change automatically depending where the value is compared to 50-100-200 moving average
Multiple LEMAs : optional – three fixed lenght of 50-100-200 period lines
LEMA Signals
Various signals are added by using LEMA and applying some common market approaches. Use with caution and with conjunction of other indicators
Thanks to @allanster for the idea
A fascinating YouTube video explaining the logistic map - “This equation will change how you see the world (the logistic map)”
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
CryptoSignalScanner - Advanced Moving Averages - Cross & RainbowDESCRIPTION:
With this script you can plot 6 moving averages.
You can decide which Moving Average you want to show or hide.
For every plot you can decide to display the Simple Moving Average ( SMA ) or Exponential Moving Average ( EMA ).
It provides CrossOver and CrossUnder labels when loading the script. Those labels you can show or hide.
You have the possibility to show or hide the rainbow colors. This rainbow function gives you a clear view of the current trend.
HOW TO USE:
• When one Moving Average crosses above another Moving Average it signals an uptrend.
• When one Moving Average crosses below another Moving Average it signals a downtrend.
• The higher to length of the Moving Average the stronger the trend.
FEATURES:
• You can show/hide the preferred Moving Averages.
• You can set the length, type and source for every Moving Average.
• You can show/hide the rainbow colors.
• You can show/hide the CrossUp labels.
• You can show/hide the CrossDown labels.
• You can set alerts for every Moving Average.
• Etc...
DEFAULT SETTINGS:
• MA1 => EMA5
• MA2 => EMA10
• MA3 => EMA20
• MA4 => SMA50
• MA5 => SMA100
• MA6 => SMA200
Simple Moving Average vs. Exponential Moving Average:
SMA and EMA are calculated differently. The exponential moving average ( EMA ) focuses more on recent prices than on a long series of data points, as the simple moving average required.
The calculation makes the EMA quicker to react to price changes and the SMA react slower. That is the main difference between the two.
One is not necessarily better than another. It comes down to personal preference. Plot an EMA and SMA of the same length on a chart and see which one helps you make better trading decisions.
Moving Average Trading Strategies:
The first strategy is a price crossover, when the price crosses above or below a moving average, it signals a potential change in trend.
The second strategy applies when one moving averages crosses another moving average.
• When the short-term MA crosses above the long-term MA, it signals a buy signal.
• When the short-term MA crosses below the long-term MA, it signals a sell signal.
REMARKS:
• This advice is NOT financial advice.
• We do not provide personal investment advice and we are not a qualified licensed investment advisor.
• All information found here, including any ideas, opinions, views, predictions, forecasts, commentaries, suggestions, or stock picks, expressed or implied herein, are for informational, entertainment or educational purposes only and should not be construed as personal investment advice.
• We will not and cannot be held liable for any actions you take as a result of anything you read here.
• We only provide this information to help you make a better decision.
• While the information provided is believed to be accurate, it may include errors or inaccuracies.
If you like this script please donate some coins to share your appreciation.
Good Luck,
SEOCO
One-Stop Trading SetupOne-Stop Trading Setup:
This script designed to identify up, down, and sideways trends. 200 HMA, 9 EMA, PSAR, and ATR are used to identify the strength of any instrument.
Candle Colors - Simpler approach to follow:
Green color indicates for up side trade signals
Red color indicates for down side trade signals
Yellow color can be interpreted for stop, sideways, and counter trade trade signals
Multiple Trade Setups:
Green Zone - Trading green candles within green zone has better odds of long trades
Red Zone - Trading red candles within red zone has better odds of short trades
200 HMA - Candles above 200 HMA mostly for long trades. Candles below 200 HMA usually for short trades. But the zone also very important to consider
9 EMA - Cross over above 200 HMA in Green zone, look for long trades. Cross over below 200 HMA in red zone, look for short trades
PSAR - This can be used as potential initial warning sign. Also can be used to exit partial or wait for it goes to opposite side for taking trade decisions
Candle Above all - If Green candle and above all the indicators, then very good sign of long side. If red candle and below all indicators, then very good sign of short side.
Multiple Time Frame:
This works very well with any instrument and on any time frame. Always its better to do analysis on multi time frame before entry, exit, and trade execution. Back test it with this setup and also observe it on live market. That will give edge in taking trade decisions. All the best and happy trading.
Disclaimer:
This script and setup is written with the sole purpose of identifying the strength of any instrument. Interpretation, trade decisions, and changing inputs are up to each individual users/trades.
Trends & RangesTrends & Ranges uses EMA ATR bands as a SuperTrend indicator.
How to use:
This indicator can be used to give you a direction bias, with the added function to create ranges which often lead to reversals or flat trading periods. Trade the break-out or wait for pull backs in the direction of the trend.
I'm not great at explaining stuff and will probably make things only more complicated, so I won't bother for now,
but if you have a question on how the script works I will gladly give it a try.
The option "Flexible Trends" will disable the min/max function (trailing or non trailing).
Flexible Trends enabled:
Flexible Trends disabled:
Settings are not optimized for any asset or time frame, you will have to do that for yourself. Feel free to share them in the comments.
Thanks for showing interest, enjoy and good luck! :)
Forward Backward EMA [Repaint]Perform forward-backward filtering using exponential averaging, thus providing a zero-phase exponential moving average. The output repaint and cannot be used as input for other indicators.
Settings
Length : moving average period
Src : data input of the moving average
Plot Color : the color of the displayed plot
Line Width : width of the plotted line
Usages
The main usage of moving averages is to provide an estimate of the underlying trend in the price by removing higher term variations from it. Non-causal (repainting) indicators are limited to offline applications, as such, they are most useful for summary analyses, note that it is still possible to infer from the output of repainting indicators, however since past outputs are subject to changes, it is extremely difficult to track the effectiveness of such indicators, and in online applications they only track the price, making them equally useful for predictive applications than following the direction of an individual candle.
Non-causal filters can be useful in order to have a better view of symbols with a relatively uninformative evolution.
Details
Causal filters have lag, this is the cost of using past observations as inputs, the more past observations you use, the more lag you will obtain (assuming these past observations have non-zero weights). There are various solutions to reduce the lag of a moving average, the most simple one relying on giving higher weights to more recent observations, another one relies on introducing gain in the filter passband, that is amplifying certain variations in the input signal while attenuating/removing higher term ones, finally, we can use adaptive moving averages to avoid excessive lag.
All these previous solutions can be used causally, but they are far from being perfect, as the lag reduction is often done at the cost of smoothness, if we were to keep the original smoothness of the filter while having no lag we would need to use non-causal solutions. The most common solution is to directly use future values as inputs, such moving averages are called "two-sided" moving averages since they use past values as input (left side) as well as future input values (right side), this is equivalent to shifting the results of a moving average backward.
The advantages of two-sided moving averages is that they conserve the original amplitude response of the moving average, however, it won't be possible to compute the most recent values of the moving average (since we won't have access to future values at a certain point), an alternative method heavily used in digital signal processing is forward-backward filtering.
The method consists of applying a filter forward in time, then we apply it once again backward. In order for you to have an easier understanding of this process think about applying a moving average normally starting at time t = 0 , then apply that moving average once again using the previous results as input but start from t = N-1 , that is from the most recent point, and proceed backward, plotting the result from left to right until you get back to t = 0 .
From this, it follows that forward-backward filtering applies a filter twice, the resulting filter is thus a two-passes filter, this results in an even smoother output (more precisely the filter amplitude response is squared).
Forward-backward filtering can be done in Pinescript by using the function "line.new" inside a loop, an exponential moving average is applied forward first, then once again backward inside the loop, "line.new" is used to plot the results backward.
Notes
It is important to note that forward-backward filtering is a repainting process, all the results of the indicator you see on the chart are subject to change over time. Since the method make use of line.new you will have around only 54 visible observations, with the impossibility of using them as input for other indicators. If you see indicators in the future with the same characteristics be aware that they will repaint.
Never purchase/rent filters that appear as having no lag, they are either repainting or the results are coming from a lucky shot or from an overfitted model, it is impossible to make both zero-lag and causal moving averages with pinescript, if you have doubt don't test your luck, better safe than sorry.
MTF EMA 3Set(Multi Time Frame Exponential Moving Averages 3 Set)Multi Time Frame Exponential Moving Averages 3 Set
One indicator displays the three types of moving averages of the top bar.
It can be used for environment recognition.
It is easy to repel when the 4 hour foot and the pivot overlap.
Three EMA Scalp Signals by kmderhamThis script looks for a set up condition where 5 consecutive candles have broken away from the fast EMA (set to 8 by default) followed by a "trigger" candle that crosses back over the fast EMA but not the medium EMA (set to 13 by default). It then determines the entry point based on the bar high or low (not tail or wick) depending on direction of the trend. Once the entry point is crossed, we can enter the position. Win or loss is determined whether the lower or upper levels are crossed (as per trend). After the position is won or lost and if the entry level is re-crossed before a new set up condition is found then a new entry signal is given.
Please note that this should really be used in conjunction with a higher timeframe "Anchor" chart with a fast and a slow EMA so setups and positions should should correspond to the trend of the higher timeframe chart. This was designed for a 5 minute timeframe and a 60 minute anchor chart.
[CP]6 EMA Multi Timeframe InceptionA collection of 6 EMAs.
Each EMA can be attached to a different timeframe and have a different offset.
Great for building strategies that combine EMAs from different timeframes.
Multiple Moving Averages in one indicatorHi, that's an "enhanced" version of this indicator gently published by myfye13 .
Here's the things I've implemented:
Up to 8 moving averages
Now you can set the source of each moving average
Now you can set the length of each moving average.
Hope this will help especially those who have an indicato limit or who use multiple emas and don't wan't to see a stack of indicators list on the upper left of the chart.