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
Биткоин (Криптовалюта)
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.
[5F ] Number of Bitcoin wallets-═════════════════════════-
This is a simple script that displays the total number of Bitcoins wallets based on the data provided by Quandl.
Use it in dayli resolution minimum
Refresh every day
Thanks to all Pinecoders who share their work with the community.
-═════════════════════════-
[5F] Aggregated Volume Spot BTC 10 Exchanges-══════════════════════════════-
10 exchanges aggregated spot volume of Bitcoin.
You can choose which exchanges to display.
Each color characterizes an exchange.
Sorry for my bad english
Note : The list of exchanges in the infopanel is always the same, even if you disable exchanges. If I have the time, I will try to fix this.
Here are the listed exchanges :
- Okex
- Huobi
- Binance
- Bitfinex
- Bitstamp
- Coinbase
- FTX
- Kraken
- Gemini
- Phemex
Thanks to all Pinecoders who share their work with the community.
-══════════════════════════════-
GBTC & BTCE Premium Indicator- This indicator illustrates the premium of GBTC and the European equivalent, BTCE. Relative to the spot price of Bitcoin
- It represents the premium investors are willing to pay to be able to gain exposure to Bitcoin . Whilst holding them in an investment vehicle such as a 401k or an ISA.
- The premiums can be plotted. GBTC vs BTCUSD and BTCE vs BTCEUR
OR
- The "real price" of BTCUSD , GBTC and BTCE (denominated in USD) can be plotted against each other
Percent Drop from Highest HighBuy and hold investors may decide to use trailing stops to protect profits and capital from market crashes, especially during bull markets.
The purpose of this indicator is to hep investors to identify a location to place them. The indicator plots the highest high from 'x' bars ago. It then plots a trailing stop loss 'y' percent below that line.
The indicator enables its users to input different 'x' and 'y' values to observe what they think works best for them in different markets.
Users might choose to pair the indicator with trend confirming indicators, such as moving average cross overs, to determine that the market is trending and not ranging.
There is no magic in this indicator, only maths. Like every indicator, it has no ability to predict anything. Just because the market is doing one thing now, it might do something different later. The past does not equal the present nor the future. Make your own decisions and be responsible for them.
All the best to you and your family.
BTC & ETH Alert SystemWith Tradingview's free plan, only one alert is allowed. The purpose of this indicator is to allow for two alerts--one for BTC and one for ETH.
How to use the alert system:
1. Set the desired value for BTC and ETH that you want to be alerted for
2. Set an alert on the indicator by clicking the three ellipses and then "Add Alert"
3. Set the alert to go off if the value of the indicator is greater than 0.
The example is of BTC using an alert of $10,000 and an alert of ETH at $2,000 (untriggered)
The script can be easily modified to be used for different assets
Bitcoin M2 supply adjusted priceThis script plots bitcoin candles adjusted by M2 supply (blue line), helping the trader to obtain insight of new support/resistance levels adjusted by M2 supply.
Note: As it was not possible to make the price adjust automatically by the last M2 value (pinescript limitation, I guess), the input parameter "M2Last" must be updated manually observing the last M2 value in blue curve.
Total Inflation ModelMeasure of the total economy wide inflation of the US Dollar.
Total Inflation = growth rate of money supply / economic output
[blackcat] L1 Bitcoin Guppy Whale Pump Dump OscillatorLevel: 1
Background
The Guppy Multiple Moving Average (GMMA) is a technical indicator that identifies changing trends, breakouts, and trading opportunities in the price of an asset by combining two sets of moving averages (MA) with different time periods. There is a short term group of MAs and a long term group of MAs.
One of the biggest differences between cryptocurrency and traditional financial markets is that cryptocurrency is based on blockchain technology. Individual investors can discover the direction of the flow of large funds through on-chain transfers. These large funds are often referred to as Whale. Whale can have a significant impact on the price movements of cryptocurrencies, especially Bitcoin . Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects.
Function
L1 Bitcoin Guppy Whale Pump Dump Oscillator is innovative because it was moved from main chart to aux chart and the input source of Guppy moving average was changed in to bias rate of key EMAs. This makes it work as a Guppy oscillator. This Guppy oscillator was designed and optimized to detect whale pump and dump behavior for BTCUSD or BTCUSDT trading pairs. When whale pump is detected, yellow candles appear; when whale dump is detected, fuchsia candles appear.
Key Signal
di,d1~d8 ---> Guppy oscillator lines
pump --> whale pump detector
dump --> whale dump detector
Pros and Cons
Pros:
1. easy observe price trend
2. it detects whale pump and dump
Cons:
1. no explicit entries are disclosed
2. only optimized for Bitcoin usd/usdt trading pairs
Remarks
Courtesy of @LunaOwl " Rainbow Color Gradient" for colorful Guppy oscillator lines in this script
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Ultimate VWAP Bands- Ultimate VWAP Bands is a script that helps to decide and further clarify areas of oversold and overbought conditions.
- For example, when the price is in the lowest band it is extremely oversold relative to the VWAP . Hence it should be considered a good place to buy with a high risk to reward payoff.
- Each band is set at a fixed offset away from the VWAP . The "VWAP Band Multiplier" adjusts this and is a key part of the script. This allows the indicator to be adjusted based on the assets volatility . For example, with Crypto. A multiplier of 1 would be strongly advised. Whilst a multiplier of 0.1-0.25 would be useful for currency pairs.
- This indicator can be used for all manners of trading. However, it is most effective when used for scalping and swing trading.
Bitcoin DAA OscillatorAn oscillator of Bitcoin's Daily Active Addresses (DAA) and fundamental metric of the utilization of the Bitcoin network.
Helps to identify:
Potential buy zones (green) - when the network utilization is low & increasing
Potential sell zones (red) - when the network utilization is high & decreasing
My BTC log curveLogarithmic regression of the USD price of Bitcoin , calculated according to the equation:
y=A*exp(beta*x^lambda + c) + m*x + b
where x is the number of days since the genesis block. All parameters are editable in the script options.
Stablecoin Volume Flow [kingthies_]Stablecoin Volume Flow into BTCUSD/BTC-Stablecoin pairings
Exchanges Used
Coinbase
Kraken
Bittrex
Binance
Huobi
Bitstamp
Gemini
Bitfinex
Our aim here is simple...to combine the overall volume flow from Fiat or stable currencies into the crypto-markets.
This is the first portion of a series I plan to share involving a holistic approach to understanding the overall crypto-ecosystem. I've included several of the highest ranking by volume exchanges and their accompanying older/well known stablecoins.
Also, the historic data for the newer stable coins made the study invalid due to limited sample size. That included coins like USDC, DAI, GUSD, BUSD and more. For this reason, the 10 sources of data here adequately provide the data needed to see a full view of the market volume going in and out of bitcoin at any given moment
RSI + MFI - Crypto Bull and Bear market A fancy styled version of the RSI (Relative Stochastic Index) + MFI (Money Flow Index) oscillators in order to emphasize buy and sell opportunities.
The 80 and 20 Bands are meant to be used in Bull or Bear markets. Better performing in D timeframes.
The circles represent the cross between RSI and MFI .
Designed for Crypto Markets
Thanks @micheleprandina
Credits:
Crypto USD VolumeOften times I need to check the volume in cryptocurrency exchanges and I find myself checking which type of volume I am looking at, I need to manually make sense what the data is and converting it into USD volume which I end up going to CoinMarketCap website to verify whether my calculation is right.
Today I thought it was about time I created an automatic way to find the volume in USD Dollars. This is what this script does.
1 - It removes the base currency from the symbol (e.g., "BTCUSD", it would remove "BTC", leaving us with the "USD" part.). This is important because it helps us identify the currency the pair uses.
2 - It has different pair's variables, each is given a specific currency that the final volume is calculated from. (BTC, ETH, BNB and USD are the default currencies, for other ones, it must be added manually).
This works with all crypto symbols that include BTC, ETH, BNB and USD as currencies. If you modify it, please make sure to compare data with the exchange's one.
Golden Ratio MultiplierThe moving averages 350 and 111 by themselves do a great job of identifying market tops/bottoms. The fraction 350/111 is very close to Pi as well (3.15) so that's is suspicious in its own right.
Nonetheless, fibonacci retracements/multiplies of the 350 SMA does a remarkable job of finding reversal points. I commented out a couple of multiplies for simplicity's sake (the lines became rather crowded). However, the script is open source so you all can copy it into Pine Editor and delete the "//" and add it back to the script.
Cheers.
BITCOIN Miners Revenue VS Price Correlation OscillatorUse 3D(3-day candle) as timeframe for best reading.
------
original template for Correlation indicator was created by obaranova. credit goes to her.
Bitcoin Bull CyclesA simple indicator that identifies the primary upswing of Bitcoin following each Halving, the "Bull Cycle".
A "Bull Cycle" is identified as the first period of positive momentum after each Halving date, defined as the 50 Daily Moving Average (DMA) being above the 200 DMA.
ETS MA Deviation ExtremesWhile trading, I noticed that emphasis is often placed on how far price has moved from the moving average (whichever a trader prefers). In these cases I also found that Bollinger Bands only sometimes played a factor in determining whether price had moved "too far" from the moving average to potentially result in a sharp move back to the average.
Because I wanted something more objective than a "gut feeling" that price has moved away from the average enough to make it move back, I decided to see what I could do to determine the standard deviation of how price action moved away from the average , in order to determine when it could potentially have a "rubber band effect" to jump back to the "norm". The result of that is the ETS MA Deviation Extremes indicator, and I hope that it will help you in your trading.
The indicator also has bar coloring included, which can be turned off, which gives a good on-chart visual to warn you that the price action might reverse. This has often helped me to be a bit more cautious before just jumping into a trade that might be on the brink of reversing and taking my position out, and it actually turned out to be a good indicator for a reversal trade strategy.
The histogram bars give an indication of how far the price has moved away from the average, and I look for a potential reversal as soon as the histograms move back inside the deviation lines after having been outside it. The bar coloration actually depend on more than one set of deviation lines, but putting all of that on the chart just makes it confusing, so I removed the ones that I felt were not essential to make it clearer.
I hope it helps you in your trading and makes it easier for you to trade successfully!
[2020 Updated]Bitcoin Logarithmic Growth CurvesCredit goes to the original writer of the script, Quantadelic, who generously allowed anyone to copy/edit. I adjusted the value of the bottom/top intercept and slope to better fit the March 2020 coronavirus dip.
Use Bitstamp BTCUSD for better reading.