Variety N-Tuple Moving Averages [Loxx]Variety N-Tuple Moving Averages is a moving average indicator that allows you to create 1- 30 tuple moving average types; i.e., Double-MA, Triple-MA, Quadruple-MA, Quintuple-MA, ... N-tuple-MA. This version contains 5 different moving average types including T3. A list of tuples can be found here if you'd like to name the order of the moving average by depth: Tuples extrapolated
You'll notice that this is a lot of code and could normally be packed into a single loop in order to extract the N-tuple MA, however due to Pine Script limitations and processing paradigm this is not possible ... yet.
If you choose the EMA option and select a depth of 2, this is the classic DEMA; EMA with a depth of 3 is the classic TEMA, and so on and so forth this is to help you understand how this indicator works. This version of NTMA is restricted to a maximum depth of 30 or less. Normally this indicator would include 50 depths but I've cut this down to 30 to reduce indicator load time. In the future, I'll create an updated NTMA that allows for more depth levels.
This is considered one of the top ten indicators in forex. You can read more about it here: forex-station.com
How this works
Step 1: Run factorial calculation on the depth value,
Step 2: Calculate weights of nested moving averages
factorial(nemadepth) / (factorial(nemadepth - k) * factorial(k); where nemadepth is the depth and k is the weight position
Examples of coefficient outputs:
6 Depth: 6 15 20 15 6
7 Depth: 7 21 35 35 21 7
8 Depth: 8 28 56 70 56 28 8
9 Depth: 9 36 34 84 126 126 84 36 9
10 Depth: 10 45 120 210 252 210 120 45 10
11 Depth: 11 55 165 330 462 462 330 165 55 11
12 Depth: 12 66 220 495 792 924 792 495 220 66 12
13 Depth: 13 78 286 715 1287 1716 1716 1287 715 286 78 13
Step 3: Apply coefficient to each moving average
For QEMA, which is 5 depth EMA, the caculation is as follows
ema1 = ta.ema(src, length)
ema2 = ta.ema(ema1, length)
ema3 = ta.ema(ema2, length)
ema4 = ta.ema(ema3, length)
ema5 = ta.ema(ema4, length)
qema = 5 * ema1 - 10 * ema2 + 10 * ema3 - 5 * ema4 + ema5
Included:
Alerts
Loxx's Expanded Source Types
Bar coloring
Double Exponential Moving Average (DEMA)
3EMATiranga3 EMAs 48 High, 48 Low and 10 Close
Trade can be taken when purple line crosses the high (green)
2 Ema Pullback StrategyHi everyone!
CAUTION... This is only an indicator. Do not rely 100% on it.
I made this indicator hoping to help everyone with this specific Pull Back Scalping Strategy.
RULES:
Time Chart of 5minuts
LONG Condition - "EMA Red Line" below the "EMA Blue Line" and wait for a green long signal.
SHORT Condition - "EMA Red Line" below the "EMA Blue Line" and wait for a red short signal
Feel free to add any adjustments or give feedback so we can improve.
The strategy idea and guidelines came from "The Master" Juan Luis.
Autor: © Germangroa
Price Action Signals V2Indicator that shows buy/sell signals based on price action and volume as it relates to a double EMA. If the candle is above the double EMA, we look for candles with long wicks on the top indicating selling pressure. If the candle is below the double EMA , we look for candles with a long bottom wick indicating buying pressure. The user defined parameters are the length of the double EMA and the length of the volume moving average. Lower timeframes such as 5 minutes and lower are better off using lower lengths while higher timeframes should user higher lengths. Your mileage will vary.
Note, while this indicator can signal the beginning of long term trends, it will also signal minor retracements. Do not blindly buy or sell based on a signal appearing, pay attention to where the candle is in the overall trend and wait for confirmation to avoid losses.
2 EMA PullbackHi everyone!
CAUTION... This is only an indicator. Do not rely 100% on it.
I made this indicator hoping to help everyone with this specific Pull Back Scalping Strategy.
RULES:
Time Chart of 5minuts
Long Condition - "EMA Red Line" below the "EMA Blue Line" and wait for a green long signal.
Short Condition - "EMA Red Line" below the "EMA Blue Line" and wait for a red short signal
Feel free to add any adjustments or give feedback so we can improve.
The strategy idea and guidelines came from the "Master Juan Luis"
Autor: © Germangroa
QUAD DEMAHey Folks,
Just created my first script, It's basically 4 DEMA in one indicator which helps you not to use multiple indicators.
It's more accurate than Exponential Moving Average & give signals much prior to the breakout, very helpful in short timeframes.
Tweak it according to your preference
Instructions to use
-When 55 DEMA crosses all the DEMA it's a clear signal for uptrend or downtrend which can potentially be a entry or exit points.
-Don't depend on this when all the DEMA's are entangled to each other.
-Use Stochastic RSI for better approach in entry.
-Most accurate in 1hr time frame for short term entry.
Enjoy!
HBDC Multiple EMAMultiple EMA indicator for trading view
This indicator can plot 6 emas using 1 indicator
ema gksthis strategy is very simple scripting to buy and sell based on crossover of exponential moving averages
ema_gkstesting my first script
this strategy is very simple scripting to buy and sell based on crossover of exponential moving averages
Support and Resistance with MACD IndicatorOriginal script from ©akpaswaniitk. I just added MACD to filter out bad trades and alert function so that we get notified whenever indicator gives us an entry signal. Most of the false breakout has been removed but the remaining ones only pop up during consolidation, so it's wait for the retest before entry. Works better in continuous market. Also look at the color of EMA for further confirmation, only focus on buy side when EMA is green and sell when EMA is red or when after the buy signal EMA changes color from red to green. These are the highly profitable setups I've found with this indicator.
Signals
Red or Green solid line with diamond are trailing stoploses
dotted black line is entry level
dotted white line is optimal exit
action zone - ATR stop reverse order strategy v0.1 by 9nckACTION ZONE-ATR MOD v0.1 DOCUMENTATION
Overview
This tradingview pine script strategy is mainly created to enrich my coding skill. It is a combination of “CDC-ACTIONZONE” and my personal studies of trading techniques in various sources e.g.book, course or blog. This strategy purposefully built to connect with my automatic trading bot. However, It will be very useful to aid your trading routine by diminishing mental distraction which possibly leads to bad trades.
How does it work?
This strategy will do a basic simple thing that most traders do by creating entry signals on both sides long/short and also set the stop loss. Furthermore, It will also reverse the order (from long to short and vice versa (if long/short conditions are met). Finally, it will recalculate the stop loss/take profit price in every complete bar to increase the chance of winning and limit our loss.
Entry rules(Long/Short)
If you have no open order, an order will be created when a fast EMA crosses(up(long)/down(short) the slow EMA(It’s as simple as that).
If you have an open order, the current order will be (sold if long, covered if short) and the opposite side order will be created.
Exit and Reverse rules(Long/Short)
If fast EMA cross (DOWN(long), UP(short)), the current order will be closed, THE OPPOSITE SIDE ORDER WILL ALSO BE CREATED.
Risk management
FLEX STOP PRICE : initial value will be set at the bar which order created. It is a fast ema (+/-) MIDDLE ATR value.
If MIDDLE ATR value rises, it will be our new stop price.
If MIDDLE ATR value falls, stop price unchanged
If Price OVERBOUGHT(long)/SOLD(short), LOW of that bar will be a new stop price.
Minimum position hold period
In order to eliminate risk of repeatedly open, close orders in sideway trends. Minimum hold period must be passed to start exit our position. However, It always respects stop loss prices. The value refers to the number of bars.
MUST READ!!!
This strategy uses only MARKET ORDER. If you trade with a bot, make sure you choose only enormous market cap tokens.
This strategy is bi-direction strategy. It will work best in the DERIVATIVE market.
It was initially designed to compete in the cryptocurrency market which has very high volume and volatility.
I only use this strategy in 1HR (acceptable change rate, optimum trade frequency)
How (should) we use it?
Choose crypto future pairs (recommend only top 10-15 market volume pairs in Binance, let’s say 1000M+ trade value)
Choose your time frame (1H is strongly recommended)
Setup your portfolio profile (Setting->Properties) such as Initial cap, order size, commission. DO NOT USE CAL ON EVERY TICK IT WILL CAUSE REPAINTING AND YOUR CAPITAL IS BLEEDING !!!
BACKTEST FIRST!! Back test is a combination of art, math and statis(and a bit of luck). You can apply to train and test methods or whatever you are familiar with. In my opinion, your test period should include UPTREND, SIDEWAY, DOWNTREND. Fine tune fast, slow ema first(my best ema length of 1H timeframe around 7-10, 17-22). Try to eliminate fault breakout trade and use other options only necessary. Hopefully we can use automatic optimization on Pine Script soon.
Don’t forget to turn off using a specific backtest date option to start your strategy.A
THIS IS NOT A PERFECT (OR EVEN PROFITABLE) STRATEGY. USE AT YOUR OWN RISK AND TRADE RESPONSIBLY. DYOR DUDE.
3 EMA/SMA + Colored Candles[C2Trends]// Indicator Features:
// 1) 3 Exponential Moving Averages and 3 Simple Moving Averages.
// 2) Additional EMA input for colored candles(EMA is hidden from chart, input used for coloring of candles only)
// 3) Turn colored candles on/off from main input tab of indicator settings.
// 4) Turn SMA's and EMA's on/off from main input tab of indicator settings.
// 5) Select single color or 2 color EMA and SMA lines from main input tab of indicator settings.
// Indicator Notes:
// 1) 'Candle EMA' input is the trend lookback period for the price candle colors. When price is above desired Candle EMA, price candles will color green. When price is below the Candle EMA, price candles will color fuchsia.
// 2) If you are using another indicator that colors the price candles it may overlap the candle colors applied by this indicator. Trying hiding or removing other indicators to troubleshoot if having candle color issues.
// 3) Using 2-color price moving averages: when price is above an average the average will color green, when price is below an average the average will color fuchsia.
Multi Range Pivots
Multi Range Pivots works by recognizing the high and low of the timeframe selected and plotting range high to MEAN averages and range low to MEAN averages.
This is essentially the VWAP pivots updated to include not only VWAP as a MEAN, but also SMA, EMA, VWMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3, H/L basis and Donchian basis.
Also, with high and low no longer repainting, I was able to add true reliable signals.
Enjoy
Double Exponential MACDA modification of the classic MACD to use Double EMAs which tends to have less lag than the standard indicator.
Alert conditions are pre-configured for simple line crosses and you can enable/disable the histogram from the indicator options menu.
Enjoy!
DEMA/EMA & VOL (Short strategy)Hello,
I am trying to build a short momentum strategy that is based off of the DEMA crossing under the EMA, but because many momentum strategies send too many signals, I have also implemented a volatility condition based on the average true range percentage (ATRP). Essentially, as momentum moves downwards + volatility (ATRP) moves upwards, it shorts the security. However, I am having an issue with exiting trades. I think this would be a great strategy if I could simply get the strategy to exit the trades. Does anyone mind looking through the source code and tell me what I might be doing wrong? In return, I would hope that this strategy could be useful to you in same way! Thank you for looking!
Devilpool Operational Moving Average ExponentialThis indicator contains the main exponential moving averages (9, 21, 80, 200, 305 and 610), which I use in my operational.
It was developed by my friend Giovani, who is a 10 note guy!
I hope he can help you on your journey to becoming a Professional Trader.
You can modify it the way you prefer, it is very simple.
Neste indicador estão reunidas as principais médias móveis exponenciais (9, 21, 80, 200, 305 e 610), que uso em meu operacional.
Ele foi desenvolvido por meu amigo Giovani, que é um cara nota 10!
Espero que ele possa ajudar a você na jornada para se tornar um Trader Profissional.
Você pode modifica-la do jeito que preferir, é muito simples.
Stacked Moving AveragesThe Stacked Moving Averages indicator lets you see if a ticker is in an uptrend, downtrend, or no trend based on the condition of the moving averages. If the moving averages are stacked such that MA1>MA2>MA3>MA4>MA5, then that is described as an uptrend. If the moving averages are stacked such that MA5>MA4>MA3>MA2>MA1, then that is defined as a downtrend.
The moving averages can be SMA, EMA, or DEMA, and it’s possible to view all the moving average series in the chart or hide all series and only see if there is an uptrend or downtrend according to the condition.
Note: If length 4 OR length 5 is zero the MA4 OR MA5 will be ignored.
Multi Timeframe Moving Average [xdecow]This indicator plots a moving average of 4 different timeframes.
The types of averages available are: SMA, EMA, DEMA, VWMA, RMA, WMA.