msoro daily DCATool to estimate PnL of your investment if you put in a fixed $ amount daily into btc for past year. It takes input as 365 days which can be changed as per need.
Btc-bitcoin
Bitcoin Implied VolatilityThis simple script collects data from FTX:BVOLUSD to plot BTC’s implied volatility as a standalone indicator instead of a chart.
Implied volatility is used to gauge future volatility and often used in options trading.
eha MA CrossIn the study of time series, and specifically technical analysis of the stock market, a moving-average cross occurs when, the traces of plotting of two moving averages each based on different degrees of smoothing cross each other. Although it does not predict future direction but at least shows trends.
This indicator uses two moving averages, a slower moving average and a faster-moving average. The faster moving average is a short term moving average. A short term moving average is faster because it only considers prices over a short period of time and is thus more reactive to daily price changes.
On the other hand, a long term moving average is deemed slower as it encapsulates prices over a longer period and is more passive. However, it tends to smooth out price noises which are often reflected in short term moving averages.
There are a bunch of parameters that you can set on this indicator based on your needs.
Moving Averages Algorithm
You can choose between three types provided of Algorithms
Simple Moving Average
Exponential Moving Average
Weighted Moving Average
I will update this study with more educational materials in the near future so be informed by following the study and let me know what you think about it.
Please hit the like button if this study is useful for you.
Bitcoin Worse DaysHello, here is a simple script to scan for BTC worse days.
In input you tell the script what are the minimum percent drops to look for.
By default it is 0.3, here I set it at 0.25 or it would not show anything except the 12 March (which is 40.07%).
The indicator has a precision of 1% I think.
It does not look at how low the body closed, it will show all days that closed below where they opened looking at how far below the high of the day the low was.
It can also work on any timeframe.
Here were the previous worse days from the late 2017 crash start of the bear market:
You could modify the script and look for the worse bodies with open - close instead of high - low
You could also add a filter to only look at days where the body is > 90% the whole candle (in this case it's got to be about 99%)
We can look back at BTC past a bit
Every bear market started with a large drop so we can expect...
As you can see we can look at the weekly chart too:
I won't lie, I am pretty happy. Russia, China bat eating community, and Greta were a big help. Thanks guys.
Intraday S/RPlots yesterday's low and high, and the current day's open, as intraday support/resistance levels.
Bitcoin Energy Value OscillatorBitcoin Energy Value as an oscillator against price.
Calculated as: (Bitcoin Price / Bitcoin Energy Value - 1) * 100
Leverage Strategy and a few words on risk/opportunityHello traders,
I started this script as a joke for someone... finally appears it could be used for educational content
Let's talk about leverage and margin call
Margin Call
A margin call is the broker's demand that an investor deposit additional money or securities so that the account is brought up to the minimum value, known as the maintenance margin.
A margin call usually means that one or more of the securities held in the margin account has decreased in value below a certain point.
Leverage
A leverage is a system which allows the trader to open positions much larger than his own capital. ... “Leverage” usually refers to the ratio between the position value and the investment needed,
Strat
The strategy simulates long/short positions on a 4h high/low breakout based on the chart candle close.
The panel below shows the strategy equity curve. Activating the margin call option will show when the account would be margin called giving the settings
Casino
I'm not doing any financial recommendation here.
I made this strategy so that people include more risk management metrics into their strategy.
From the code, we see it's fairly easy to calculate a leveraged position size and a margin call flag - when that flag is hit, the system stops trading.
I simplified things to the extreme here but my point is that the leverage is a double-edge sword gift.
Assuming we always take the same position sizing, increasing the leverage speed up how fast a margin could be ..... called. (bad joke? feel free to tell me). Not saying it will, saying it introduces more risk by design.
Then one could say "I'll just turn off that stupid margin call option". And that's when someone starts backtesting with unrealistic market conditions.
Finally...
When I backtest I always assume the worst in every scenario possible (because I'm French), I always try to minimize the risk first (also because I'm French), keeping as close from 0 as possible (French again)
Then I add the "opportunity" component, looking to catch the maximum of opportunity while keeping the risk low.
It's like a Rubix cube puzzle - decreasing the risk is one side of the equation but whenever I try to catch more opportunity... my risks increases.
Then I update my risk... and now the opportunity decreases... (#wut #wen #simple)
Completely removing the risk from a trading strategy isn't something I wouldn't dare doing.
Trading involves risk. Being obsessed by decreasing the risk is what I do BEST :)
Dave
QuantNomad - Significant Pivot Reversal Strategy AlertsAlerts for "Significant Pivot Reversal Strategy":
As one of the ways to filter out insignificant levels I decided to check that pivot point is not above/below neighbors, but check that it's above/below at least by a certain amount.
I use ATR, so in params, you can set length of ATR and also ATR multiplier. The new level will be calculated only if PP will be above/below neighbors by atr * atr_mult.
It seems this approach might help in some cases.
QuantNomad - EVWMA MACD StrategyPretty simple EVWMA (Elastic Volume Weighted Moving Average ) MACD Strategy.
EVWMA is a quite interesting moving average where the period of the MA is defined from the volume itself.
It incorporates volume information in a natural and logical way. The EVWMA can be looked at as an approximation to the average price paid per share.
As a volume period, you can use sum of the last x bars volumes.
Here are other EVWMA indicators/strategies:
EVWMA indicator:
EVWMA Cross strategy:
BTC Volume absolute (fiat vs Tether vs futures)BTC volume split by fiat, Tether and futures in USD
fiat = COINBASE + BITFLYER + BITSTAMP + KRAKEN
Tether = BITFINEX + BINANCE + HUOBI + HITBTC
futures = BITMEX + BYBIT
BTC DominanceThis Script plots the BTC Dominance chart in an indicator window, so you don't have to bother with tabs as much when doing your analysis.
tips are always welcome at: (38uGQJDDZDL6wX48x4gYTccPeQ3ZHVYmY4)
I hope you enjoy the script :)
Asset Correlation Tool v3, improvedI found this useful tool among the indicators but it wasn't doing the correlation study correctly.
Everything in markets, with only a few exceptions, are rising in value over time and therefore trended to time. The simplest method I found is to use link relative or first difference detrending, before calculating a correlation between assets.
I also updated it to include more assets, to use the latest Cryptocap indices like BTC.D/ETH.D/TOTAL2 and the top 100 crypto index CIX100. I improved the colour schemes, too
Included in the source code are some other ideas like the FRED:M1 and FRED:M2 (only on daily charts), the Yuan/Yen/EUR/USD, etc. There's lots of scope for correlating unrelated markets.
I'll keep updating it as I use it to find truly correlated assets. Some kind of signal line of known correlations, to subtract from the baseline fuzz of market activity.
Any improvements are most welcome; I'm a novice at best at statistics and build on others' work.
- mabonyi
Golden Ratio Multiplier: Multiplied Moving AveragesMultiplied moving averages script visualizing the study made by @PositiveCrypto (twitter).
QuantNomad - Pivot Reversal Strategy - XBTUSD - 1hPivot reversal strategy almost always works pretty good for crypto.
Here is setup with 4 left, 4 right bars for pivot points for XBTUSD 1h chart.
It shows a pretty nice performance of 350% with only 10% dd, Sharpe is 1.16.
If you're interested in using this strategy in my scripts you can find alerts for it and a version with added backtesting range.
And remember:
Past performance does not guarantee future results.
Bitcoin PatienceThis indicator shows how long every Bitcoin buyer ever had to wait to be in profit. Best to use this on the daily chart. At the time of publishing this indicator (May 2019), 1250 days of patience means gains for every BTC buyer ever. Can also be used for other assets of course.
Simple Moving Average from Justin DartHi All,
This is my 1st script, what I want it to do is cut down on some of the SMA on my chart...
At the same time figure out , how to make a buy call that makes sense ( I Need work on it )...
I'm open to your input and your help...
Thanks...
Justin
Buy The Dip - Does It Work?Buying the dip has become a meme in crypto, but does it actually work?
Using this script you can find out.
The dip is defined here as the average true range multiplied by a number of your choosing (dipness input) and subtracted from the low.
When price crosses under the dip level, a long is initiated. The long is then closed using a timestop (default value 20 bars), no fancy exits here.
A general rule for buying the dip should be to be more passive in a bull market and aggressive in a bear market.
Same goes for all counter trend trading.
Heres a few other examples of dip buying statistics using the H4 timeframe:
50% profitable, 1.692 Profit Factor
BINANCE:PIVXBTC
56.52% profitable, 1.254 Profit Factor
BINANCE:KMDBTC
27.27% Profitable, 0.257 Profit Factor... yikes!
BINANCE:BTSBTC
73.33% Profitable, 13.627 Profit Factor... o.O
BINANCE:MANABTC
BTC Exchanges Volume [SHK]Useful script to calculate sum of BTC ( Bitcoin ) volumes on different exchanges.
Supported Exchanges:
Coinbase
Bitfinex
Bitmex
Houbi
CEX
Bitstamp
Binance
BitFlyer
Poloniex
Bittrex
Flyer
OkEx
Poloniex
Gemini
HitBTC
BTC CorrelationA simple script to display how correlated the current ticker is to Bitcoin.
Inputs are the number of bars to check correlation for (default 10) and the the ticker to use for BTC comparison (default is BITFINEX:BTCUSD)
Values of 1 are highly correlated (i.e. bitcoin moves up, so does your current ticker), values of -1 are inversely correlated (i.e. bitcoin moves up, your current ticker moves down).
See: www.babypips.com for some more details on correlation