ADR% - Average Daily Range % by MikeC (AKA TheScrutiniser)This applies a 'corrected' formula to the version created by alpine_trader (which is slightly off). It calculates the Average Daily Range (in percent) over the previous 20 periods and plots it in a chart.
I am grateful to GlinckEastwoot for the 'corrected' formula.
Simple Moving Average (SMA)
Mayer MultipleThe script implements a custom version of the Mayer multiple and it may be useful for analyzing the price of Bitcoin in a historical context.
Note n.1: Mayer multiple does not tell whether to buy, sell or hold, but highlights the best long-term area when the bitcoin price is below a threshold value (2.4).
Note n.2: the threshold value (2.4) has been determined in the past by simulations performed.
The script user may decide whether to use the shown graph or another graph for the calculation of the Mayer multiple.
The script is very easy to use and it is possible to change the following parameters:
the period of SMA (default value is 200)
the threshold (default value 2.4)
Show or not the sell area
Use or not the shown graph to calculate the Mayer multiple (default value is true)
name of exchange to use for calculation of the Mayer multiple (default value is BNC)
name of chart to use for calculation of the Mayer multiple (default value is BLX)
Anticipated Simple Moving Average Crossover IndicatorIntroducing the Anticipated Simple Moving Average Crossover Indicator
This is my Pinescript implementation of the Anticipated Simple Moving Average Crossover Indicator
Much respect to the original creator of this idea Dimitris Tsokakis
This indicator removes one bar of lag from simple moving average crossover signals with a high degree of accuracy to give a slight but very real edge.
Moving Averages
A moving average simplifies price data by smoothing it out by averaging closing prices and creating one flowing line which makes seeing the trend easier.
Moving averages can work well in strong trending conditions, but poorly in choppy or ranging conditions.
Adjusting the time frame can remedy this problem temporarily, although at some point, these issues are likely to occur regardless of the time frame chosen for the moving average(s).
While Exponential moving averages react quicker to price changes than simple moving averages. In some cases, this may be good, and in others, it may cause false signals.
Moving averages with a shorter look back period (20 days, for example) will also respond quicker to price changes than an average with a longer look back period (200 days).
Trading Strategies — Moving Average Crossovers
Moving average crossovers are a popular strategy for both entries and exits. MAs can also highlight areas of potential support or resistance.
The first 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 and one shorter.
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. This is known as a "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. This is known as a "dead/death cross."
MA and MA Cross Strategy Disadvantages
Moving averages are calculated based on historical data, and while this may appear predictive nothing about the calculation is predictive in nature.
Moving averages are always based on historical data and simply show the average price over a certain time period.
Therefore, results using moving averages can be quite random.
At times, the market seems to respect MA support/resistance and trade signals, and at other times, it shows these indicators no respect.
One major problem is that, if the price action becomes choppy, the price may swing back and forth, generating multiple trend reversal or trade signals.
When this occurs, it's best to step aside or utilize another indicator to help clarify the trend.
The same thing can occur with MA crossovers when the MAs get "tangled up" for a period of time during periods of consolidation, triggering multiple losing trades.
Ensure you use a robust risk management system to avoid getting "Chopped Up" or "Whip Sawed" during these periods.
Golden Ratio Multiplier (x1.6; x2; x3)The script displays three multipliers (x1.618; x2; x3) of the Golden Ratio (starting with MA at 350 days) to identify the following levels of support:
the multiplier x1.618 is an accumulation high (green line)
the multiplier x2 is a support that identify a low bull high (red line)
the multiplier x3 is a support that identify an upper bull high (blu line)
Note: the orange line is the SMA at 350 days.
7EMA_5MA with Next Openbased on storwize's EMA/SMA script. Added a forecasting for the where the EMAs/SMAs will be in the next bar assuming a close where it currently is.
OnTheMoveWith this plot one is able to compare the different % change in the given time frame. It calculates the sma of a given period (defval = 7) for the close/open.
Strategy would be to choose (trade) from one to other asset in order to get higher rates when pumping or lower when dumping.
The Symbol & exchange has to be specified.
defSymbols = BTC, ETH and LINK
defExchange = BINANCE
Pi Cycle Bitcoin Top IndicatorThe script implements the Pi Cycle Top indicator
This indicator identifies tops in the bitcoin market cycle. Historically, the Pi Cycle Top indicator has called out tops in the price of bitcoin within three days.
The script is very easy to use and it is possible to change the following parameters:
the time interval (default value is day);
the days of long moving average (default value is 365)
the days of short moving average (default value is 111)
show the moving average plots
show the Pi Cycle Top label highlighting the cross-point
Beep Boop(Improved) Beep Boop Indicator for Trending Markets originally written by Trading Rush.
It is originally based on the MACD 12-26 and the 50 bar EMA.
The macd hist is color coded with green as buy and sell as red.
I added an option to use a couple of lower lag ema's (See line 13 - ema_signal).
Crypto EMA+MA+MACS by hobbeLeThis is an indicator that includes several EMAs and MAs (Used in Cryptotrading).
In addition, the Golden and Death Cross are also displayed.
Used MAs
MA 7 - Orange Line
MA 21 - Yellow Line
MA 25 - Grey Line
MA 99 - Blue Line
MA 200 - Green Line
Used EMAs
EMA 200 - Grey Dotted Line
EMA 222 - Pink Dotted Line
Golden Cross
Crossover MA25 + MA200
Death Cross
Crossunder MA25 + MA200
What is a Moving Average (MA) ?
A moving average (MA) is a widely used indicator in technical analysis that helps smooth out price action by filtering out the “noise” from random short-term price fluctuations.
Moving average is a trend-following, or lagging, indicator because it is based on past prices. The most common applications of moving averages are:
to identify the trend direction
to determine support and resistance levels
The two basic and commonly used moving averages are the simple moving average ( SMA ), which is the arithmetic average of a security over a defined number of time periods, and the exponential moving average ( EMA ), which gives greater weight to more recent prices.
What is a Golden Cross?
The golden cross is a candlestick pattern that is a bullish signal in which a relatively short-term moving average crosses above a long-term moving average. The golden cross is a bullish breakout pattern formed from a crossover involving a security's short-term moving average (such as the 15-day moving average) breaking above its long-term moving average (such as the 50-day moving average) or resistance level. As long-term indicators carry more weight, the golden cross indicates a bull market on the horizon and is reinforced by high trading volumes.
What Is a Death Cross?
The death cross is a technical chart pattern indicating the potential for a major selloff. The death cross appears on a chart when a stock’s short-term moving average crosses below its long-term moving average.
Source; Investopedia
Candle Body SizePlot bar size compare to SMA 50 bars back
1. Big Bar Size can be used as Support resistent level.
2. Working fine for futures market
BTC and ETH Long strategy - version 2I wrote my first article in May 2020. See below
BTC and ETH Long strategy - version1
After 6 months, it is now time to check the result of my script for the last 6 months.
XBTUSD (4H): 14/05/2020 --> 22/11/2020 = +78% in 4 trades
ETHXBT (4H): 14/05/2020 --> 22/11/2020 = +21% in 9 trades
ETHUSD (4H): 14/05/2020 --> 22/11/2020 = +90% in 6 trades
Using the signals from this strategy to trade manually has shown that this was a bit frustrating because of the low rate of winning trades.
If you have to enter 100 trades and see 75% of them failing and 25% winning, this is frustrating. For sure the strategy makes good money but it is difficult to hold this mentality.
So, I have reviewed and modified it to get a higher winning rate.
After few days of work, tests and validation, I managed to get a wining rate close to 60%.
The key element was also to decrease the number of trades by using a higher time frame. (4H candles instead of 2H candles).
- Entry in position is based on
MACD, EMA (20), SMA (100), SMA (200) moving up
AND EMA (20) > SMA (100)
AND SMA (100) > SMA (200)
- Exit the position if: Stoploss is reached OR EMA (20) crossUnder SMA (100)
The goal of this new script is to be able to follow the signals manually and only make few trades per years.
I have also validated it against some other altcoins where some are giving very good results.
Here are some results for 2020 (from 01/01/2020 until now (22/11/2020). Those results are the one I get when using 4H candles.
ETH/USD: +144% in 8 trades.
BTC/USD: +120% in 7 trades.
ETH/BTC: +33% in 9 trades.
ICX/USD: +123% in 10 trades.
LINK/USD: +155% in 11 trades.
MLN/USD: +388% in 8 trades.
ADA/USD: +180% in 7 trades.
LINK/BTC: +97% in 10 trades.
The best is that above results are without considering compound effect. If you re-invest all gains done in each new trade, this will give you the below results :)
ETH/USD: +189% in 8 trades.
BTC/USD: +260% in 7 trades.
ETH/BTC: +29% in 9 trades.
ICX/USD: +112% in 10 trades.
LINK/USD: +222% in 11 trades.
MLN/USD: +793% in 8 trades.
ADA/USD: +319% in 7 trades.
LINK/BTC: +103% in 10 trades.
As you can see, the results are good and the number of trades for 11 months is not big, which allows the trader to place orders manually.
But still, I'm lazy :), so, I have also coded this strategy in HaasScript language which allows you to automate this strategy using the HaasOnline software specialized in automated crypto trading.
I hope that this strategy will give you ideas or will be the starting point for your own strategy.
Let me know if you need more details.
MA+ADX+DMICOINBASE:BTCUSD
BINANCE:BTCUSDT
Use long and short moving average to look for a potential price in/out. (default as 14 and 7, bases on the history experience)
ADX and DMI to prevent the small volatility and tangling MA.
Test it in 4HR, "BINANCE:BTCUSDT"
From 12/1/2017- 11/1/2020 (Mixed Bull/Bear market)
Overall Profit: 560.89%
From 1/1/2018 - 1/1/2019 (Bear market)
Overall Profit: -2.19%
From 4/1/2020 - 11/1/2020 (Bull Market)
Overall Profit: 274.74%
Any suggestion is welcome to discuss.
Array SMACalcuating SMA on an Array
In this script i show you how to calculate SMA on an array.
Several values are plotted just for illustration.
Steps to follow:
- make sure you have an array with values (source array)
- create a blank array (pref. with the same size)
- call the function array_sma
This function fills the empty array with the SMA values of the source array.
Easy Loot Golden CrossGolden/Death Cross Moving Average Indicator
30, 100 & 200 period Simple Moving Average (SMA).
30 = Yellow
100 = Green
200 = Black
Black crosses mark the 'golden crosses' as well as the 'death crosses'. These black crosses appear when the 30 crosses the 100 & when the 100 crosses the 200. These black crosses don't tell you when to buy/sell, but simply indicate interest in the market.
This code is open-source so feel free to add this indicator to your chart and play around with the different moving average timeframes & color schemes.
Golden Cross
The golden cross occurs when a short-term moving average crosses over a major long-term moving average to the upside and is interpreted by analysts and traders as signaling a definitive upward turn in a market. Basically, the short-term average trends up faster than the long-term average, until they cross.
There are three stages to a golden cross:
A downtrend that eventually ends as selling is depleted
A second stage where the shorter moving average crosses up through the longer moving average
Finally, the continuing uptrend, hopefully leading to higher prices
Death Cross
Conversely, a similar downside moving average crossover constitutes the death cross and is understood to signal a decisive downturn in a market. The death cross occurs when the short term average trends down and crosses the long-term average, basically going in the opposite direction of the golden cross.
The death cross preceded the economic downturns in 1929, 1938, 1974, and 2008.
Public & Pro ActionBased on Larry Williams Pro-Go logic for public and pro actions. This indicator works on all timeframes.
The public action is previous close to today's open.
The pro action is today's close to today's open.
The series is smoothened with a simple moving average.
It works best after the candle is formed.
Bollinger Band+ Multi EMA, SMAHello Everyone.
I make Bollinger band , 3 ema and 3 sma combined.
I think this indicator can use all timeframe.
--------------------------------------------------------------
Indicator will show you
1. Trend follow
2. Pullback catch
2. Market bounce.
1. Trend Follow
- Trend Follow for I used 3 terms. They are short, Mid and Long Trend.
2. Pullback Catch
- EMA for Save, take care, alert Zones.
- Mid Term Trend can be catch also.
3. Market Bounce
- Bollinger Band will show you market re-bounce point.
Final Notes
Indicator will show Trend, Pullback, Market bounce and some support and resistant level.
Fib Cross Moving AveragesThe white line is the main 200-candle MA. The fibonacci ratio MAs are relative to that 200-day MA. Some lines change color based on the trend shown by this indicator.
So 61.8% for example, the orange/red line golden ratio MA is a 124 candle MA (~68% of 200). There is also a weighted 124 candle MA that works along-side the 100 candle MA.
Pisani BandsThis indicator is based on Historical Volatility.
It's plot the simple moving average with a upper and a lower band.
The bands are calculated like this:
UpperBand = 20 Simple moving average + 20% * Historical volatility
LowerBand = 20 Simple moving average - 20% * Historical volatility
But, you can change the paramters. I use the 200SMA with 100% of Historical Volatility either.
How to use:
If the price are negociating out of the bands, it's dangerous to trade this stock.
Hope you like it.
[Strategy] Simple Golden CrossSimple Golden Cross Strategy.
Works best on a daily chart on "Blue Chip" cryptos such as BTC, ETH, and LTC.
Entry Signal:
-50 day moving average crosses over the 100 day moving average.
Exit Signal:
-50 day moving average crosses under the 100 day moving average.
-Daily candle closes under the 100 day moving average (support).
-100 day moving average crosses under the 200 day moving average.
Improved On balance volume with BB channel and double MAThis is an improved version of the on balance volume indicator.
I made it inside a bollinger band channel, so we can define better the zones. At the same time I applied 2 moving averages on OBV, to get a better idea of the trend and at same time that change direction of the trend.
Green - > uptrend - > we look for buy positions
Red - > downtrend -> we look for sell positions.
At the same time we have to be aware of crosses on bollinger bands, which can indicate a change in the trend .
Displaced Moving Average Channel (DMA)What is This?
The Displaced Moving Average Channel (DMA) indicator is a combination of two moving averages calculated on the high and low of a set time period back which are displaced forward or backward with the center highlighted as a central channel.
What Information Can I Get Out of It?
This indicator can be used as a support or resistance as some moving averages are typically used as well as a tiny measure of recent volatility by looking at the spread between the top and bottom moving averages.
Where Did This Idea Come From?
I did not come up with the concept of this indicator since I was inspired to use this as a setup/trigger indicator in a potential trading strategy as seen in this whitepaper .
Golden & Death CrossThis indicator allows you to see Golden Cross and Death Cross.
Each Sma line can be hidden.
It is for educational purposes only.
Enjoy it.
Best Regards,
Bilgin , Kaptanin Seyir Defteri