単純移動平均 (SMA)
Multiple Standard Moving Averages {CyberNetwork}Multiple standard moving average plots in a single script, with golden cross (GX) and death cross (DX) indicators.
Momentum filters of each MA can be applied to the GX/DX indicators -- i.e. such that the 50 SMA /200 SMA GX will only trigger if the momentum of the 200 SMA is positive, etc.
Note: User can set the triggering criterion, scaled to the % of the respective MA value.
Setting this value to negative allows the triggering of GX when MA momentum is negative (-ve), and vice versa for DX.
Each plots and indicators can be individually enabled/disabled.
This script is base on the following Multiple Moving Averages script: which allows users to set their own preferred MA candle lengths.
Multiple Moving Averages {Cybernetwork}
MA Cross 50/100, 100/50 Moving Average Cross tool using MA 50 / MA 100 / MA 200
I have found these settings useful on Bitcoin & other markets
Alerts Added,
Breakout = MA 50 crossing above MA 100
Breakdown = MA 100 crossing under MA 50
MA 200 added as a useful area for overall support
No repaint.
GMS: Keltner ChannelsBasically I wanted to make this into one indicator instead of three while adding in some extra options as well... So this is just a Keltner Channel with three channels, all of which have the same length. I have also added in an option to select the moving average for the channel, the original is based on the EMA.
The source code should be open so take a look around and enjoy!
Andre
MATP, Moving Average Trend predictorMATP prepared based on moving average lines to predict Short term, mid term and long term trends. B for Buy and S for Sell character printed to take position based on short term and long term trend lines .
Call: Take Long (B) or Short (S) position when respective Char printed.
Please do tune indicators values from setting based on your script to get accurate call.
Happy Trade
By
Gops
[LunaOwl] Moving average Bias Ratio作品: 均線乖離率 (Moving average Bias Ratio)
The concept of Moving average Bias Ratio is according to the difference between the long/short-term MA changes, determine the direction of buy or sell. Long if the short-term MAs is above the long-term MAs; Conversely, if the short-term MAs is below the long-term MAs, it is not held.
均線乖離率的概念,是根據長短期均線變化之間的乖離來確定多空方向。如果短期高於長期,則買進;相反的~如果短期低於長期,則空手。
Using the deviation rate alone will have the disadvantage of unclear signals, which can only explain the increased chance of market reversal. It needs to cooperate with the rule of thumb and other analytical tools.
單獨使用乖離率會有信號不明確的缺點,只能解釋市場發生反轉的機會增加,需要配合經驗法則和其他分析工具。
--------------------------*
Formula - 公式
Avg. BIAS = ( MA(short) - MA(long) ) ÷ MA(long) × 100 %
均線乖離率 =(短期平均-長期平均) ÷ 長期平均 × 100 %
--------------------------*
The greater the distance between the two moving averages, the greater the Bias Ratio.
ProfitBee59 v5.0ProfitBee59 v5.0 for TradingView (pb5 ai) helps you do tedious works on your technical charts. It does CC59 counting and prints out positive or negative number on each price bar. When the counting arrives at -9 or +9, it creates respectable support and resistance ( SNR ) levels on the chart. It draws a pair of fast/slow average lines with pink/red colors for corresponding downtrend and yellow/green for uptrend. A yellow cross sign shows a crossing point between these fast/slow average line. It also draws a mega average line in gray to give a mega trend picture. Pb5 ai provides time/price analyseses. Up/Dn arrows are printed out at high probability buy/sell regions. In addition, other auxiliary tools such as Max/Min finder used to find the candlesticks with local max/min prices or Gap finder used to locate discontinuity between candlesticks.
For Forex trading, other intraday parameters are also available including the day opening level, high/low of yesterday and intraday brown background marking time interval for key trading hours in Asian-London-New York markets.
Smart phone/tablet and PC notifications of events occurring in the chart can be sent to you by server-side alerts so that you don't have to stay in front of the screen all the time.
=================================================================
The script ProfitBee59 v5.0 for TradingView (pb5 ai) is locked and protected. Contact the author for your access.
=================================================================
How to install the script:
------------------------------
*Go to the bottom of this page and click on "Add to Favorite Scripts".
*Remove older version of the script by clicking on the "X" button behind the indicator line at the top left corner of the chart window.
*Open a new chart at and click on the "Indicators" tab.
*Click on the "Favorites" tab and choose "ProfitBee59 v5.0".
*Right click anywhere on the graph, choose "Color Theme", the select "Dark".
*Right click anywhere on the graph, choose "Settings".
*In "Symbol" tab, set "Precision" to 1/100 for stock price or 1/100000 for Forex and set "Time Zone" to your local time.
*In "Scales" tab, check "Indicator Last Value Label".
*In "Events" tab, check "Show Dividends on Chart", "Show Splits on Chart" and "Show Earnings on Chart".
*At the bottom of settings window, click on "Template", "Save As...", then name this theme of graph setting for future call up such as "My chart setting".
*Click OK.
Golden Ratio MultiplesI call this "Phi Ribbons." The Golden Ratio, also known as Phi, is fantastic at predicting areas of price reversal.
Every moving average is a fibonacci multiple of the base function 355 SMA .
The rainbow above is an array of fibonacci multiples that are greater than one (1.618, 2, 2.618, 3, 5, 8, 13, 21)
The rainbow below is an array of fibonacci multiples that are less than one (0.786, 0.618, 0.5, 0.382, 0.236, 0.14)
Notice the precision of marking areas of potential price reversals
EASTER EGG: The two moving averages at the top of the script are 355 SMA & 113 SMA . This is one of the lowest ratios that closely approximates Pi (3.14159).
Simply plotting the 133 SMA will add a unique feature:
355/133 = 3.14159
When the 113 crosses below the 355 it tends to mark the end of major bullish impulses, and a crossover is a bullish sign.
Leading Trader Trend - Reverse EngineerMy attempt to replicate the functionality of the 'LT Trend' based on information available in Alessio Rastani's videos.
Turn off borders and wicks, and make the bodies transparent, on the chart itself) in order to view the OHLC bars with my guess at the way the LT Trend interprets the price data.
I believe the basis indicator is a combination of the 2 and 11 day EMA. that is what my trend indicator is based on. I have also added 5 moving averages to this indicator based on their usefulness. the included MAs are the 8, 21, 50, 100 Exp MAs and the 200 Simple MA. the line graph of the close price is also included (to use for triggering) but I usually turn it off in the MT trend settings.
This version also has a version of the PerfectCDA buy signals included as i am testing that at the moment. PCDA appears to throw a signal if the average of the last 9 closes changes more than 5% from the previous value.
MA 10,20,50,200Indicator consist of moving averages (MA).
This indicator make it easier for me to switch between few MA lines.
1. MA10
- used for intraday.
2. MA50 and Ichimoku
- to analyze swing trend
- display only MA50 and ichimoku cloud
3. MA20, MA50 and MA200
- to analyze the trend
- for swing trade
4. Lines 52 Week High / Low
- display both lines as guide when trading
SMA STRATEGYIt is a simple strategy to show a possible combination of a simple moving average and Fast-SMA published earlier.
It goes long only when the price is over sma 50 and FSMA and closes the trade when it crosses down FSMA. The same logic is for the shorting.
At this time this strategy does not take in count slow crossing and fuss that needs additional confirmation. I described such cases in Fast SMA script.
The strategy does not repaint. Bars color when a candle closes.
Fast SMAFast SMA is based on the simple moving average and adds to it more flexibility.
It is a composite indicator, as it uses sma and counts factor that gives more weight for a more recent price index.
The difference between sma (thin line) and fast sma (bold line) you can see on the chart.
Fast sma with default parameters with this script is faster then ema with the same length.
It has flexibility almost as HMA with the same length has.
After using it for two months I found this ma very interesting and decided to share its code and the way it can be used.
FSMA and price index interact:
1) FSMA acts as support or resistance giving price line good pullbacks.
2) If price breaks through FSMA the stop of this move form strong support or resistance level.
3) if price cross FSMA without cutting move of make fuss on FSMA it forms range. In this case, FSMA break must be considered only after price leaves the range. In such cases, FSMA usually shows the direction by giving additional price pullback confirmations.
On the chart I added some comments and marked SR lvls, zones and strong moves of BTC since 2018 till now with submitted FSMA strategy.
I wish you good trades.
examples:
Monthly MA Close Generates buy or sell signal if monthly candle closes above or below the signal MA.
Long positions only.
Inputs:
-Change timeframe MA
-Change period MA
-Use SMA or EMA
-Display MA
-Use another ticker as signal
-Select time period for backtesting
This script is not necessarily written to maximize profits, but to minimize losses.
Although it can outperform 'Buy & Hold' on some occasions when there is a multiple month bearisch trend.
You can optimise this strategy by changing the signal MA inputs.
I would suggest aiming for the best Profit Factor starting from the monthly ("M") setting.
You can always fine-tune the results at a lower timeframe.
The option to use another ticker for providing signals can give you a more stable and unified results.
For example using AMEX:SPY as signal with default parameters gives better results with NASDAQ:AAPL than if you would use NASDAQ:AAPL itself.
I used the anti-repainting function from PineCoders to prevent repainting.
This script is best used for multi-month trading positions & Daily or 4H setting of your chart.
VolHMA [sluggishmoney]Currently published volume scripts typically plot volume as a positive value. This one is different.
---WHAT IS IT---
If the close is greater than the open, the volume is considered positive, and if the close is less than the open, the volume is made negative. I have taken the HMA (Hull Moving Average) of this positive or negative volume with a default length of 100, and have plotted it as a histogram that is green if positive, and red if negative. The signal line is an SMA of this volume HMA with a default length of 10. The purple background is a suggested holding period for a potential long position.
---HOW TO USE IT---
When the HMA100 crosses above 0, this is considered a buy signal. This means that the smoothed volume is starting to become bullish (but delayed due to length of moving averages). When the HMA100 crosses under the signal, this is considered a sell signal.
---WHICH MARKETS---
I wrote this script specifically for cryptocurrency markets. The indicator does best with continuous volume data that's typically found in crypto markets, although I can picture this working well in FOREX as well. A volatile and continuous market can provide volume data that best captures the magnitude and direction of a move.
TTS Triple Threat SMA10-30-200 TLTTS Triple Threat SMA10-30-200 TL is a crossover and crossunder trading system that is based on three simple moving averages (SMA).
The default settings are optimized for 4-hour charts.
The TTS Triple Threat trading system works as follows:
1. Enters BULLISH trade when LE Trade & LONG signals are shown on the chart.
2. Enters BEARISH trade when SE Trade & SHORT signals are shown on the chart.
3. LONG and SHORT signals are shown based on SMA crosses for visual inspection but doesn't mean they are trades. Either LE Trade or SE Trade signals need to be present for a trade to take place.
4. TTS Triple Threat SMA10-30-200 TL uses trailing stop loss settings. The ratios between the profit taking settings and trailing loss stops are important to the strategy. Trailing stop loss exits are shown on the chart as XL STOP LOSS or XS STOP LOSS. Profit exits are shown as XL PROFIT EXIT and XS PROFIT EXIT.
Dazzling BoltsThis is three moving average based strategy focused on trend-following. Targets and stops are set based on ATR. Following image pictures the strategy with all mas plotted:
Buying conditions are:
►A smoothened moving average (red) is above the exponential moving average (yellow)
►An exponential moving average is above simple moving average (black)
►Low five candles ago was still above the exponential moving average
►Low two candles ago reached below the exponential moving average
►Close of the previous candle was above the exponential moving average
►Ema force is disabled or exponential moving average set candles ago (orange) is still above simple moving average now.
If these conditions are met, Dazzling Bolts will always give you a signal. However, it holds only one position at a time and it will not buy again until it is closed or exited.
There are two ways exiting may happen. Smoothened moving average crosses below simple moving average or it reaches value based on your settings of average true range and its multiplier.
Settings 10/76/200/true/50/true/true/5/5 shows perfect results on EURUSD 15m chart but it does not guarantee the results. It is only 62 trades which is barely a useful statistical source. It is also highly optimized which means its settings filters out bad trades that may be bad only because of randomnation rather than set market behaviour. You need to test it on 200 trades + before using.
Variable Length Moving AverageThe Variable Length Moving Average was created by George R. Arrington Ph.D. (Stocks & Commodities V. 9:6 (219-223)) and I'm really loving this indicator. It is a great moving average that hugs the price very closely and it is fully adjustable to your needs. It detects signals extremely well and I have color coded the moving average line to make it very easy to interpret.
This is not to be confused with the Variable Moving Average created by Tushar S. Chande and as of now I haven't seen any other script for this moving average out there yet.
Please let me know if you would like me to write any other scripts for indicators you would like to see!
VT SMA 50 DC with FractalsBuying or Selling levels are identified with SMA 50 along with Fractals for breakouts and reversals.
SMA will be green when the trend is Bullish
SMA will be red when the trend is Bearish
The color is set GREEN and RED for Bullish and Bearish trend
Triple SMA/EMAThis indicator displays the 50, 100 and 200 period SMA and EMA and shades the area between the corresponding SMAs and EMAs
Strategija 2Hello
This strategy is based on Steve Primo's No. 4 with added entry conditions. I will describe long trades only, conversely is valid for shorts.
1. Price has to be above basis SMA and fast EMA
2. Fast EMA has to be above basis EMA
3. ADX has to be above 20 (settings 14,20, fixed)
4. RSI has to be above 50 and above its 21 EMA
5. A pullback has to occur with the touch of the fast EMA
6. A bounce from that level has to occur and close above the control EMA
7. We compare N (1) bars for reverse for fast EMA bounce
Please use it on your own risk. Will add some strategy rules afterwards. My proposal is to use it on Daily and Weekly TF.
Moving Average RibbonMoving Average Ribbon:
-----------------------------------------------------------
A series of moving averages of different lengths to create a ribbon-like indicator. Traders can determine trend strength by the distance between the moving averages, the overall balance of the coloured lines and determine price points. Price movements through the ribbon can be used to identify trend changes.
SMA, EMA, WMA with user defined length, starting plot, number of plots to show, theme choice and colour calculation toggle.
Inputs:
-----------------------------------------------------------
Source: input value for MAs (close)
Type: moving average type (ema)
Theme: multiple colours/themes (theme 2)
Length: MA length (13)
Start: MA plot number to start ribbon on (1)
No. of MAs: number of plots to show; maximum 32 (32)
Colour option: unchecked then line colour is based on the source value crossing current MA otherwise the moving average below (false)
Example:
-----------------------------------------------------------
multiple MAs overlaid with different values give interesting results e.g.
Ribbon1 :
length: 13
start: 1
Ribbon2:
length:1
start: 26
Notes:
-----------------------------------------------------------
if increasing the length beyond around 150 results in "references too many candles in history" error then reduce the no. of MAs value to show less MA plots; the longer length MAs will go beyond the 5k max candle history..
eha Moving Averages StrategyMoving Average based strategies are very popular ones among both long-term investors and short-term traders as they can be tailored to any time frame. One of the main moving average strategies are crossovers. The very simple type is a price crossover , which is when the price crosses above or below a moving average to signal a potential change in trend.
Another strategy is to apply two moving averages to a chart: one longer (or slow) and one shorter (or fast). When the shorter-term MA crosses above the longer-term MA, it's a buy signal, as it indicates that the trend is shifting up (also known as “ Golden Cross ”). Meanwhile, when the shorter-term MA crosses below the longer-term MA, it's a sell signal, as it indicates that the trend is shifting down (which is also known as “ Dead/Death Cross ”).
This is a study to find a suitable trading strategy for 4-6 hour time frames. As you can see the performance is currently very poor. It has just generated almost 90 trades in a very long period from January 2017 to the time of publishing the study for the first time.
Moving averages work quite well in strong trending conditions but poorly in choppy or ranging conditions. Adjusting the time frame can correct this problem temporarily, although, at some point, these issues are likely to occur regardless of the time frame chosen for the moving average(s).
I am working on this basic strategy to make its performance better and I will update the post in the future. So keep in touch by following the post.
Why have I republished my study?
It sounds like TradingView stores and indexes scripts based on the title of the post rather than the actual title of the scripts and if one chose general terms as the title of the post, the TradingView script search engine may be unable to find it. So I decided to repost the strategy with a more searchable and unique prefix of " eha ".
Please provide me with your precious feedback.