Простое скользящее среднее (SMA)
SuperMega Static/Dynamic EMA & SMA MultiComboAll the moving averages you'll ever need!!!
5 EMAs
5 SMAs
3 static EMAs
3 static SMAs
Static EMAs and SMAs are shown on every timeframe. For example, you can set static EMAs or SMAs to show 21 day, 50 week and 200 week on every timeframe of the chart. Plus standard 5 EMAs and 5 SMAs (user-defined) is showing for that specific timeframe.
Moving Average x10 (SMA, EMA)10 configurable Simple and Exponential moving averages combined in one indicator
55 EMA Swing TradingA simple Buy and sell strategy using 55 EMA - " 55 EMA Swing Trading"
The source code is publicly available to for further modification.
Multiple MAs - 1ema, 4smaSimple script that allows you to customize the MA's length & color
(1) EMA - exponential moving average
(4) SMA - slow moving averages
Common SMA's are: 10, 50, 100, 200
Multiple lines EMA/SMA [AKUBI] Ver.2 - 5本の指数平滑・移動平均線単純移動平均線と指数平滑移動平均線(SMA/EMA)を最大5本引けるインジケーターです。
これまでのものとの違いは
・線の太さ
・名前の変更←これ重要
です。いままでのものをそのまま使用いただいても、問題はありません。
通常、トレーディングビューでは、
移動平均線を5本同時に表示させるには「5つのインジケーターを必要とします」。
しかし、 このインジケーターは1つ使えば最大5本まで同時に表示させることができます 。
また、余計なオプションは一切ありませんので、 どなたにでも、すぐにご使用いただけます 。
1)まず、この画面の右下にある「お気に入りに追加」をクリックしてください。
そうすると、インジケーターの「お気に入り」からいつでも呼び出せます。
もしくはインジケーターの検索欄から「AKUBI」と検索しても見つけられます。
使い方は簡単。
2)EMA(指数平滑移動平均線)か SMA(単純移動平均線)のいずれかを選択。
3)その後、お好きな期間を入力してください。
単純移動平均線(SMA)というのは、「5」と入力すれば、5本分のローソク足の終値の平均が表示され、それを結んだ線です。
指数平滑移動平均線(EMA)というのは、少し計算を複雑にして、より素早い動作を実現したものです。
デフォルトでは期間として(7,28,84,100,500)の5種類があらかじめ入力されています。
このまま使っても問題ありませんが、ネットで「移動平均線 設定」と検索すれば、いろいろな設定が紹介されていますので、参考にしてみてください。
不要な線があれば、チェックを外すだけです。
とっても簡単、便利です。
It is all in one. You can use 5 moving average lines with this one indicator only.
It is so easy. Just add this indicator. Next step, please add your favorite periods.
If you think this is an unnecessary line, you just remove in the check box.
Thank you!
5 MAs w. alerts [LucF]Is this gazillionth MA indicator worth an addition to the already crowded field of contenders? I say yes! This one shows up to 5 MAs and 6 different marker conditions that can be used to create alerts, among many other goodies.
Features
MAs can be darkened when they are falling.
MAs from another time frame can be displayed, with the option of smoothing them.
Markers can be filtered to Longs or Shorts only.
EMAs can be selected for either all or the two shortest MAs.
The background can be colored using any of the marker states except no. 3.
Markers are:
1. On crosses between any two user-defined MAs,
2. When price is above or below an MA,
3. On Quick Flips (a specific setup involving a cross, multiple MA states and increasing volume, when available),
4. When the difference between two MAs is within a % of its high/low historic values,
5. When an MA has been rising/falling for n bars,
6. When the difference between two MAs is greater than a multiple of ATR.
Some markers use similar visual cues, so distinguishing them will be a challenge if they are used concurrently.
Alerts
Alerts can be created on any combination of alerts. Only non-consecutive instances of markers 5 and 6 will trigger the alert condition. Make sure you are on the interval you want the alert to run at. Using the “Once Per Bar Close” trigger condition is usually the best option.
When an alert is created in TradingView, a snapshot of the indicator’s settings is saved with the alert, which then takes on a life of its own. That is why even though there is only one alert to choose from when you bring up the alert creation dialog box and choose “5 MAs”, that alert can be triggered from any number of conditions. You select those conditions by activating the markers you want the alert to trigger on before creating the alert. If you have selected multiple conditions, then it can be a good idea to record a reminder in the alert’s message field. When the alert triggers, you will need the indicator on the chart to figure out which one of your conditions triggered the alert, as there is currently no way to dynamically change the alert’s message field from within the script.
Background settings will not trigger alerts; only marker configurations.
Notes
MAs are just… averages. Trader lure would have them act as support and resistance levels. I’m not sure about that, and not the only one thinking along these lines. Adam Grimes has studied moving averages in quite a bit of detail. His numbers point to no evidence indicating they act as support/resistance, and to specific MA lengths not being more meaningful than others. His point of view is debated by some—not by me. Mean reversion does not entail that price stops when it reaches its MA; rather, it makes sense to me that price would often more or less oscillate around its MA, which entails the MA does not act as support/resistance. Aren’t the best mean reversion opportunities when price is furthest away from its MA? If so, it should be more profitable to identify these areas, which some of this indicator’s markers try to do.
I think MAs can be much more powerful when thought of as instruments we can use to situate price events in contexts of various resolutions, from the instantaneous to the big picture. Accordingly, I use the relative positions and slopes of MAs in both discretionary and automated trading; but never their purported ability to support/resist.
Regardless of how you use MAs, I hope you will find this indicator useful.
Biased References
The Art and Science of Technical Analysis: Market Structure, Price Action, and Trading Strategies, Adam Grimes, 2012.
Does the 200 day moving average “work”?
Moving averages: digging deeper
8 MA + 4 Bollinger Bands by Theo ParkThis indicator contains :
- 8 Moving Averages
- 4 Bollinger Bands
- 1 Fibonnaci
8 Separate Moving AveragesCOINBASE:BTCUSD Combine all your moving averages into one indicator.
This indicator allows for 8 separate moving averages, which can individually be configured as simple or exponential to any lengths you wish.
Allowing you to make room for other indicators.
Since is just moving averages, it can be used in any market.
Find me on twitter. Handle @Samih .
5 lines_Moving Average EMA/SMA 5本の移動平均線It is all in one. You can use 5 moving average lines with this one indicator only.
The way is easy. Just add this one indicator. Continue to enter your favorite periods in the setting.
If there is unnecessary lines, just remove the check boxes.
オールインワンです。
この1つのインジケーターを追加するだけで 5つの移動平均線 が使えます。
追加したら、設定から好きな期間を入力してください。不要な線があれば、チェックを外すだけです。
無料プランの人は移動平均線を3本追加するだけで、制限いっぱいになってしまいます。
これを使えば、最大5本分の移動平均線を引くことができます。
もっとたくさん線を引きたい方はご相談ください。
増やします(笑)
High Timeframe SMA & EMAThis indicator adds daily and weekly SMA & EMA to whatever your current timeframe is.
SMA/pivot/Bollinger/MACD/RSI en pantalla gráficoMulti-indicador con los indicadores que empleo más pero sin añadir ventanas abajo.
Contiene:
Cruce de 3 medias móviles
La idea es no tenerlas en pantalla, pero están dibujadas también. Yo las dejo ocultas salvo que las quiera mirar para algo.
Lo que presento en pantalla es la media lenta con verde si el cruce de las 3 marca alcista, amarillo si no está claro y rojo si marca bajista.
Pivot
Normalmente los tengo ocultos pero los muestro cuando me interesa. Están todos aunque aparezcan 2 seguidos.
Bandas de Bollinger
No dibujo la línea central porque empleo la media como tal.
Parabollic SAR
Lo empleo para dibujar las ondas de Elliott como postula Matías Menéndez Larre en el capítulo 11 de su libro "Las ondas de Elliott". Así que, aunque se puede mostrar, lo mantengo oculto y lo que muestro es dónde cambia (SAR cambio).
MACD
No está dibujado porque necesitaría sacarlo del gráfico.
Marco en la parte superior cuándo la señal sobrepasa al MACD hacia arriba o hacia abajo con un flecha indicando el sentido de esta señal.
RSI
Similar al MACD pero en la parte inferior.
Probablemente, programe otro indicador para visualizar en una ventanita MACD, RSI y volumen todo junto. El volumen en la principal hay veces que no te permite ver bien alguna sombra y los otros 2 te quitan mucho espacio para graficar si los tienes permanentemente en 2 ventanas separadas.
Zero Phase Filtering [Repaint] - ExperimentalImportant !
The indicator is for experimental purpose only, it must not be used as a decisional tool but only as a visual one (like Zig-Zag, Fractal etc). The information this indicator display is uncertain and subject to drastic changes over time. If you have further question feel free to pm me.
Introduction
Most of the filters you will find are causal, this mean that they depend on present and past input values, this explain the lag they produce. Non causal filters however will use future input values. A well know way to get a zero-phase filter is by using the forward backward method, but this is not possible in pinescript as i recall. So we have to use some kind of function that will display future values, this is possible using the security function in version 2 or the one in version 3 using barmerge.lookahead_on .
The Use Of A Repainting Indicator
Its always better to filter data in order to have a clearer view of what is happening, this can be useful when doing some forecasting or doing less formal kind of analysis. However since it repaint you cant use it as a signal provider or use signals of other indicators using this filter as source.
For example if you want to forecast a smooth indicator, the forecast of this indicator under normal circumstances could still have lag associated with it, so you would have to react before your forecast, this wont happen if you apply this filter as your indicator source.
The Filter
We smooth with a simple moving average the price provided by the security function twice, length control the smoothing level. Since security depend on the time frame you are in you must select your time frame in the indicator parameter selection window.
Filtering using 45 minutes time frame close price in a 5 minutes chart, we fix this by selecting our time frame.
Consider the fact that the input of the indicator is just periodic price, so sometimes the lag can sometimes be less or more than 0 and the estimation not centered.
The indicator can work on time frames up to 1h, after that the filter have some lag, i tried fixing this and i ended up having data errors.
Applying our filter as source for the rsi oscillator.
Conclusion
It is possible to have a kind of zero-phase filters, but it would be better if pinescript could support backward indexing thus making us able to do forward backward filtering.
Since noise can affect our analysis, applying smoothing without having to use offset in plot can be considered useful.
CryptoSimmons SMA and TrendThis was made trying to match the indicator Kazonomics uses on his charts.
I think it comes pretty close.
I made it by combining AK Trend indicator and Madrid Moving Average indicator.
Telmo Setup - T26 (D'Amorim)Setup T26 para o TradingView, baseado no uso de HILO 4, RSI 14 (limite 50), Media 26. Setup desenvolvido por Telmo Morais e codigo compilado por D'Amorim.
Video explicativo so SETUP para tradingview:
www.youtube.com
Video em que o funcionamento e criação do SETUP é explicado:
www.youtube.com
Custom Band Strategy1. Trend
if ema200 > ema30 Long entry only
else Short entry only
2. Custom Band
Upper band = sma(period) + max(close, period) * multiplier
Lower band = sma(period) - max(close, period) * multiplier
Multiplier can be either 1.3 or 1.1 depending on the trend.
(If trend is long, upper band's factor would be 1.3, lower band be 1.1)
2. Long entry condition
- Cross over the lower band and band width is greater than (close price)*2.2%(assume this band width as an expected ROE)
- Previous candle change rate((close-open)/open*100) is less than 3%.
3. Short entry condition
- Cross under the upper band and band width is greater than (close price)*2.2%
- Previous candle change rate is less than 3%.
4. Long/Short exit condition
- cross over/under the lower/upper band and roe is higher than 2%.
5. Stop/Target condition
- Target 10%, Stoploss 3%
- Previous candle change rate is higher than 3%.
Most variables can be set manually.
Test period changeable.
RSI + SMAx3Ceci est un script assez simple, un RSI comme celui qui est intégré mais avec la possibilité de tracer 3 droites de plus permettant ainsi de soulager certains chartiste qui pourrant régler la position de ces droites (horizontales) avec une parfaite précision.
S'ajoute à celà 3 moyennes mobiles arithmétique intégrées à l'indicateur RSI.
__________________________________________
This is a pretty simple script, with three lines to help relieve some chartists that make it possible to position these (horizontal) positions with perfect precision.
Add to this 3 arithmetic moving averages integrated in the RSI indicator.
__________________________________________
Este es un script bastante simple, un RSI como el que está integrado pero con la posibilidad de dibujar 3 líneas más, lo que permite liberar a algunos chartistas que pueden ajustar la posición de estas líneas (horizontal) con una precisión perfecta.
Agregue a esto 3 promedios móviles aritméticos integrados en el indicador RSI.
__________________________________________
Dies ist ein ziemlich einfaches Skript, ein RSI wie der, der integriert ist, aber mit der Möglichkeit, 3 weitere Linien zu zeichnen, wodurch einige Chartisten entlastet werden können, die die Position dieser Linien (horizontal) mit einer perfekten Genauigkeit einstellen können.
Hinzu kommen 3 in den RSI-Indikator integrierte arithmetische gleitende Durchschnitte.
Multi SMA EMA WMA HMA BB (5x8 MAs Bollinger Bands) MAX MTF - RRBMulti SMA EMA WMA HMA 4x7 Moving Averages with Bollinger Bands MAX MTF by RagingRocketBull 2019
Version 1.0
All available MAX MTF versions are listed below (They are very similar and I don't want to publish them as separate indicators):
ver 1.0: 4x7 = 28 MTF MAs + 28 Levels + 3 BB = 59 < 64
ver 2.0: 5x6 = 30 MTF MAs + 30 Levels + 3 BB = 63 < 64
ver 3.0: 3x10 = 30 MTF MAs + 30 Levels + 3 BB = 63 < 64
ver 4.0: 5(4+1)x8 = 8 CurTF MAs + 32 MTF MAs + 20 Levels + 3 BB = 63 < 64
ver 5.0: 6(5+1)x6 = 6 CurTF MAs + 30 MTF MAs + 24 Levels + 3 BB = 63 < 64
ver 6.0: 4(3+1)x10 = 10 CurTF MAs + 30 MTF MAs + 20 Levels + 3 BB = 63 < 64
Fib numbers: 8, 13, 21, 34, 55, 89, 144, 233, 377
This indicator shows multiple MAs of any type SMA EMA WMA HMA etc with BB and MTF support, can show MAs as dynamically moving levels.
There are 4 MA groups + 1 BB group, a total of 4 TFs * 7 MAs = 28 MAs. You can assign any type/timeframe combo to a group, for example:
- EMAs 9,12,26,50,100,200,400 x H1, H4, D1, W1 (4 TFs x 7 MAs x 1 type)
- EMAs 8,13,21,30,34,50,55,89,100,144,200,233,377,400 x M15, H1 (2 TFs x 14 MAs x 1 type)
- D1 EMAs and SMAs 8,13,21,30,34,50,55,89,100,144,200,233,377,400 (1 TF x 14 MAs x 2 types)
- H1 WMAs 13,21,34,55,89,144,233; H4 HMAs 9,12,26,50,100,200,400; D1 EMAs 12,26,89,144,169,233,377; W1 SMAs 9,12,26,50,100,200,400 (4 TFs x 7 MAs x 4 types)
- +1 extra MA type/timeframe for BB
There are several versions: Simple, MTF, Pro MTF, Advanced MTF, MAX MTF and Ultimate MTF. This is the MAX MTF version. The Differences are listed below. All versions have BB
- Simple: you have 2 groups of MAs that can be assigned any type (5+5)
- MTF: +2 custom Timeframes for each group (2x5 MTF) +1 TF for BB, TF XY smoothing
- Pro MTF: 4 custom Timeframes for each group (4x3 MTF), 1 TF for BB, MA levels and show max bars back options
- Advanced MTF: +4 extra MAs/group (4x7 MTF), custom Ticker/Symbols, Timeframe <>= filter, Remove Duplicates Option
- MAX MTF: +2 subtypes/group, packed to the limit with max possible MAs/TFs: 4x7, 5x6, 3x10, 4(3+1)x10, 5(4+1)x8, 6(5+1)x6
- Ultimate MTF: +individual settings for each MA, custom Ticker/Symbols
MAX MTF version tests the limits of Pinescript trying to squeeze as many MAs/TFs as possible into a single indicator.
It's basically a maxed out Advanced version with subtypes allowing for mixed types within a group (i.e. both emas and smas in a single group/TF)
Pinescript has the following limits:
- max 40 security calls (6 calls are reserved for dupe checks and smoothing, 2 are used for BB, so only 32 calls are available)
- max 64 plot outputs (BB uses 3 outputs, so only 61 plot outputs are available)
- max 50000 (50kb) size of the compiled code
Based on those limits, you can only have the following MAs/TFs combos in a single script:
1. 4x7, 5x6, 3x10 - total number of MTF MAs must always be <= 32, and you can still have BB and Num Levels = total MAs, without any compromises
2. 5(4+1)x8, 6(5+1)x6, 4(3+1)x10 - you can use the Current Symbol/Timeframe as an extra (+1) fixed TF with the same number of MTF MAs
- you don't need to call security to display MAs on the Current Symbol/Timeframe, so the total number of MTF MAs remains the same and is still <= 32
- to fit that many MAs into the max 64 plot outputs limit you need to reduce the number of levels (not every MA Group will have corresponding levels)
Features:
- 4x7 = 28 MAs of any type
- 4x MTF groups with XY step line smoothing
- +1 extra TF/type for BB MAs
- 2 MA subtypes within each group/TF
- 4x7 = 28 MA levels with adjustable group offsets, indents and shift
- supports any existing type of MA: SMA, EMA, WMA, Hull Moving Average (HMA)
- custom tickers/symbols for each group
- show max bars back option
- show/hide both groups of MAs/levels/BB and individual MAs
- timeframe filter: show only MAs/Levels with TFs <>= Current TF
- hide MAs/Levels with duplicate TFs
- support for custom TFs that are not available in free accounts: 2D, 3D etc
- support for timeframes in H: H, 2H, 4H etc
Notes:
- Uses timeframe textbox instead of input resolution dropdown to allow for 240 120 and other custom TFs
- Uses symbol textbox instead of input symbol to avoid establishing multiple dummy security connections to the current ticker - otherwise empty symbols will prevent script from running
- Possible reasons for missing MAs on a chart:
- there may not be enough bars in history to start plotting it. For example, W1 EMA200 needs at least 200 bars on a weekly chart.
- for charts with low/fractional prices i.e. 0.00002 << 0.001 (default Y smoothing step) decrease Y smoothing as needed (set Y = 0.0000001) or disable it completely (set X,Y to 0,0)
- for charts with high price values i.e. 20000 >> 0.001 increase Y smoothing as needed (set Y = 10-20). Higher values exceeding MAs point density will cause it to disappear as there will be no points to plot. Different TFs may require diff adjustments
- TradingView Replay Mode UI and Pinescript security calls are limited to TFs >= D (D,2D,W,MN...) for free accounts
- attempting to plot any TF < D1 in Replay Mode will only result in straight lines, but all TFs will work properly in history and real-time modes. This is not a bug.
- Max Bars Back (num_bars) is limited to 5000 for free accounts (10000 for paid), will show error when exceeded. To plot on all available history set to 0 (default)
- Slow load/redraw times. This indicator becomes slower, its UI less responsive when:
- Pinescript Node.js graphics library is too slow and inefficient at plotting bars/objects in a browser window. Code optimization doesn't help much - the graphics engine is the main reason for general slowness.
- the chart has a long history (10000+ bars) in a browser's cache (you have scrolled back a couple of screens in a max zoom mode).
- Reload the page/Load a fresh chart and then apply the indicator or
- Switch to another Timeframe (old TF history will still remain in cache and that TF will be slow)
- in max possible zoom mode around 4500 bars can fit on 1 screen - this also slows down responsiveness. Reset Zoom level
- initial load and redraw times after a param change in UI also depend on TF. For example: D1/W1 - 2 sec, H1/H4 - 5-6 sec, M30 - 10 sec, M15/M5 - 4 sec, M1 - 5 sec. M30 usually has the longest history (up to 16000 bars) and W1 - the shortest (1000 bars).
- when indicator uses more MAs (plots) and timeframes it will redraw slower. Seems that up to 5 Timeframes is acceptable, but 6+ Timeframes can become very slow.
- show_last=last_bars plot limit doesn't affect load/redraw times, so it was removed from MA plot
- Max Bars Back (num_bars) default/custom set UI value doesn't seem to affect load/redraw times
- In max zoom mode all dynamic levels disappear (they behave like text)
- Dupe check includes symbol: symbol, tf, both subtypes - all must match for a duplicate group
- For the dupe check to work correctly a custom symbol must always include an exchange prefix. BB is not checked for dupes
Good Luck! Feel free to learn from/reuse the code to build your own indicators.