Triple Moving AveragesVery basic, just allows for 3 different moving averages in one indicator. Set the defaults to 50, 100 and 200 day, but numbers and colors can be adjusted to taste. Mashed this together from what I found online for a few people who were interested in having this in a community I belong to. Shout out to the Data Dash community!
単純移動平均 (SMA)
[naoligo] 12x MA DT (5, 15, 30 & 60)This indicator is based on "Generic 8x MA Plotter", by @LazyBear.
It is also based on my own indicator "10x MA (H, D, W, M)", which is good for Swing Trading and/or Position.
This one is focused in daytrade and it will plot three Moving Averages based on current time interval (under 5 minutes) and nine based on chosen periods by 5, 15, 30 and 60 minutes. You will be able to see where is, for example, a 50 period's SMA of 15 minutes when using a 2 minutes time interval chart. I find it very useful to analyze, in a snap, possible price ranges and enter/exit points. All reference values are from setups known and used by daytraders.
you can choose between EMA or SMA (default: SMA) for each time interval, that are distributed in:
3x MA current time interval;
3x MA 5 minutes;
2x MA 15 minutes;
2x MA 30 minutes;
2x MA 60 minutes.
I've tried to keep the code as simple as possible, so you can increase the number of MA or modify the type for each time interval.
Cons: Use it wisely, because if you choose to plot all the 12 Moving Averages, it will may consume a lot of your navigator resources.
Enjoy!
Mayer Multiple v2.0 - Klahr ThresholdThis is a simple update to the Mayer Multiple script by Unbound , which charts an indicator created by Trace Mayer and popularized by Preston Pysh.
The original post identified any price below 2.4x the 100-day MA as the BTC buy threshold. While the logic there is historically sound, it does not account for the fact that the BTC trend is parabolic in nature. With that in mind, I've attempted to update the 2.4x multiple to react based on the moving average of the Mayer Multiple itself. To do so, I simply found the number that, when added to the MM moving average, historically hit the 2.4x multiple during periods of low volatility. This turns out to be 1.17.
The green line represents the Klahr Threshold (is it obnoxious if I call it that? I've always wanted an indicator named after me). As you can see from the above chart, it hovers around 2.4x in late 2012 to early 2013, rises above it until mid 2014, and then stays below until 2016. It then stays almost exactly at 2.4x until April 2017, when it rises significantly above it for the first time since July 2014. The convergence in late 2012 and 2016-2017 is what leads me to believe that this should be the basis for the updated threshold.
It's entirely possible that there's a more robust method of calculating a reactive threshold (or a different number that should be added to the multiple's MA), but I think this is a good first step in refining the multiple to withstand the test of time.
Mayer MultipleFollowing Preston Pysh's "Bitcoin Mayer Multiple" study, I made this simple script to plot the Mayer multiple by calculating the ratio between bitcoin price and its 200-day moving average. It also plots the moving average of ratio itself.
DepthHouse - Moving Average ChannelsThe indicator Moving Average Channels was created for experimental purposes due to the parabolic moves BTC has made in the recent past.
How it works:
The basis, or center line, is a standard moving average that is set by the user.
The bands are then a customizable percentage of the basis.
Which based on the settings, could serve as possible support and resistance.
DepthHouse – Moving Average Channels has been published for you all to see and try for yourselves.
Maybe this indicator has uses elsewhere? If you find something feel free to post it in the comments below!
If you like this indicator, please drop a like or comment!
They are very much appreciated!
Be sure to go to my profile and check out my other indicators!
Multi SMA'sRepublished: The original script violated house rules by including an external link to Backtest Rookies.
Background
This is a simple “multi” SMA indicator so that multiple SMA’s can be monitored whilst only using a single indicator slot. It also has a couple of features that let you mix time frames and de-clutter the chart.
The code is open for anyone to modify and a copy
About the Indicator
Although the indicator does nothing more than it says on the tin, There are a couple of points worth mentioning:
The indicator will let you view up to 4 SMA’s
You can set the period for each SMA independently
You can set the resolution for each SMA independently (So you can see the see the daily SMA level when on the 15-minute chart for example)
Each SMA can be turned on/off independently to avoid clutter.
Screenshot - Default Settings
Log-space Moving AverageOn charts with medium or low volatility, this indicator behaves identically to standard Moving Average. On highly volatile charts, this indicator is more stable because the calculation is performed in log space. For convenience, the indicator starts from the second candle (much earlier than regular MA).
EMA and SMA SpreadI had hard time to find a simple script to show EMA and SMA spread.
Bonus add for PT users :)
Set "buy_value" as you have in PAIRS.properties to show you when your buys will become potential.
Moving Average Cross & Bollinger BandsPut this together for users using the free version of tradingview. Combines MA Cross and Bollinger Bands into one indicator.
Triple MASuper simple.
Three simple moving averages all in a single indicator for your convenience.
Default values:
MA 1 - 20
MA 2 - 50
MA 3 - 100
If you like this or any of my other scripts - please consider chucking some BTC my way ;) 1LbFxAYJSVPxirT8eW31QHaGbySHyPYgMq
Multi Time Frame Simple Moving AverageBase on existing multi time frame script for EMA. Used to see a higher time frame SMA on lower timeframes
SlingShot + MTF + Open Close Cross StrategyIt's a merge of three really good scripts CM sling shot, CM MTC and Open Close Cross
Indicates open and close with Sling shot and shots after peaks by MTC and OCC.
Yellow zones before drop prices, green bar, red bar for open and close.
imgur.com
Simple and Exponential Moving AveragesThis script graphs 5 SMAs (20, 50, 100, 150, 200) and 5 EMAs (20, 50, 100, 150, 200). The first group uses blue and orange colors whereas the second one uses green and red. When a bar closes below a moving average, either orange or red will be used depending on which type of moving average and which period. In bullish mode, we show blue and green. Moving average periods are configurable, and you can hide the MAs you don't want.
MAX MA FibonacciIn un unico indicatore visualizza 4 medie mobili di default (55, 89, 144, 233) numeri di Fibonacci
[naoligo] 10x MA (H, D, W, M)This one is based on "Generic 8x MA Plotter" indicator, by @LazyBear.
It will plot three Moving Averages based on current time interval and seven based on chosen periods by hour, day, week and month. You will be able to see where is, for example, a 50 days SMA when using a 5 minutes time interval chart. I find it very useful to analyze, in a snap, possible price ranges and enter/exit points. All reference values are from setups known and used by traders.
Cons: Use it wisely, because if you choose to plot all the 10 Moving Averages, he will consume a lot of the computer resources.
Enjoy!!
Edit: I forgot to mention that you can choose between EMA or SMA for each time interval, that are distributed in:
2x MA Hour;
2x MA Day;
2x MA Week;
1x MA Month.
I've tried to keep the code as simple as possible, so you can increase that number or modify the Moving Average that each time interval will use.
Peace!
Help needed with strategy - Entry is off by 2 candlesHi,
I'm new to TradingView, and would greatly appreciate some help with figuring out where I'm going wrong with this script.
This is a overly simplified version of what I'm actually trying to do, but hopefully it's easier to see the problem.
Here I'd like to create a Buy signal when the fast moving average crosses over the slow moving average, and Sell when the reverse happens.
If I draw arrows when the condition is met then they are one candle later than expected (probably because I'm using the closing values ??).
That not great, but workable.
My real problem comes when I try turning this into a strategy.
Now the signal only triggers 2 candles after the crossover.
What am I doing wrong here?
Thanks,
Gordon
LONG TERM INVESTMENT TECHNICAL STRATEGY SCRIPT200 - WEEKLY MOVING AVERAGE
GREEN LINE IS 200 WEEKS MOVING AVERAGE OF CLOSE
BLUE LINE IS 200 WEEKS MOVING AVERAGE OF LOW MULTIPLIED BY 0.90
RED LINE IS 100 WEEKS MOVING AVERAGE OF CLOSE
CONDITION: GREEN LINE SHOULD BE ABOVE RED LINE AND PRICE SHOULD BE ABOVE GREEN LINE
BUY ONCE THE PRICE IS ABOVE GREEN LINE AND FULFILLS THE CONDITION.
TARGET 1 FOR TIME FRAME 1 YEAR= 2 X GREEN LINE VALUE WHEN PRICE CROSSED IT
TARGET 2 FOR TIME FRAME 3 YEARS= 3 X GREEN LINE VALUE WHEN PRICE CROSSED IT
TARGET 3 FOR TIME FRAME 5 YEARS= 5 X GREEN LINE VALUE WHEN PRICE CROSSED IT
TARGET 4 FOR TIME FRAME 10 YEARS= 10 X GREEN LINE VALUE WHEN PRICE CROSSED IT
STOP LOSS IS TRAILING TO BLUE LINE
Moving Average RibbonThis is an extension of the Madrid Moving Average Ribbon public script to allow for different kinds of moving averages (the original allows only exponential and simple). Possible entries in the MA Type argument field are:
sma (simple moving average)
ema (exponential moving average)
wma (weighted moving average)
trima (triangular moving average)
zlema (zero-lag exponential moving average)
dema (double exponential moving average)
tema (triple exponential moving average)
hma (hull moving average)
If the argument given by the user does not match anything from the above list, it will default to ema.
Golden Cross, SMA 200 Moving Average Strategy (by ChartArt)This famous moving average strategy is very easy to follow to decide when to buy (go long) and when to take profit.
The strategy goes long when the faster SMA 50 (the simple moving average of the last 50 bars) crosses above the slower SMA 200. Orders are closed when the SMA 50 crosses below the SMA 200. This simple strategy does not have any other stop loss or take profit money management logic. The strategy does not short and goes long only!
Here is an article explaining the "golden cross" strategy in more detail:
www.stockopedia.com
On the S&P 500 index (symbol "SPX") this strategy worked on the daily chart 81% since price data is available since 1982. And on the DOW Jones Industrial Average (symbol "DOWI") this strategy worked on the daily chart 55% since price data is available since 1916. The low number of trades is in both cases not statistically significant though.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
Yacine MA Bands ModMashed together the ema-bands from IvanLabrie with some moving average script stuff from ChrisMoody and LazyBear and this is the result. Credit goes to them, 'cause I don't know to how to code tbh. Just copy/pasted stuff untill I got the result I wanted.
Bands work as support/resistance among other things. You can use them to trade breakouts or reversals or whatever.
Combining them with a momentum indicator would probably be useful for timing divergence or OB/OS and stuff like that.
Included moving average types;
SMA
EMA
RMA
WMA
VWMA
HullMA
TilsonMA
TEMA
Not sure if all of them works as they should... y'know since I cant code/script. Looks good to me though.¨
Default should work pretty good for the DAX, But you'll probably want to fiddle a bit with the settings.
Here's a pic of how they can be used. Ofc everything looks simple in hindsight, but you get the point.
Simple Moving Average StrategyThis is a modification of MOVINGAVG CROSS with different inputs of bar lengths that work with a great average percentage with not much drawdown. I ran the strategy tester with GBPUSD on 1 hour time frame.