Average True Range is used to determine if a ticker's trading range is widening or narrowing, which is helpful for finding the trend or to use as a stop loss. The idea of this indicator is to compare the ATR of altcoins versus bitcoin, since volatility is low.
Was impressed with the 'Longs vs Shorts Ratio' idea from the tweet below so I coded an indicator, enjoy. twitter.com
This script allows you 1. to plot the outstanding BTC long (green) and/or short (red) positions 2. to plot an area (blue) corresponding to the ratio between the outstanding long and short positions, shifted and rescaled, such that the zero-line corresponds to the mid-point between the long and short positions: ratio => ratio * mid + mid
Strategy with simple stop-loss and take-profit in percentage. If last trade was a successful one then repeat it. If not successful - do a reversal trade.
Shows the ratio of longs to shorts. Above 1.0 means more longs. Below 1.0 means more shorts. A value of 1.0 means equilibrium.
Volatility Ratio indicator script. This indicator was originally developed by Jack Schwager.
I am proposing an alternative to the percent change. An alternative that is symmetrical to both positive and negative change, unlike percentage change. The simple idea is to have a positive number if the reference value (called val in the script) is lower than the stock value and needs to be multiplied; a negative number instead if the reference number is...
Following 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.
Following Preston Pysh's "Bitcoin Mayer Multiple" study, I made this simple script to plot the recommended buy price based on the calculated 2.4x ratio between bitcoin price and its 200-day moving average. The ratio and SMA length have default values of 2.4 and 200 and can be adjusted.
VXV/VIX ratio <1 is typically bullish for S&P and >1.3 is typically bearish
This indicator plots any two securities as a spread ratio using either +,-,/, or *. It also allows you to use a simple moving average of length 1 to n for your spread ratio. If you know what you want to do but don't know how to code it, we can work it out, you can float me some cheese on paypal and I'll do a nice job. This indicator is yours for free. Tarzan =...
These levels are based on price around earnings day. I have implemented support for 2 calculation modes: Mode 1: Level = (low of 1 day prior to earnings + high of 1 day after earnings) / 2.0 Mode 2: Level = (hl2 of 1 day prior to earnings + hl2 of 1 day after earnings + close from earnings day) / 3.0 Chart above shows "Mode 1". Mode can be changed via options...
A method how you can access Earnings in your Pine Script code. Enjoy!
This indicator shows the ratio between the DJIA and the price of gold. When the ratio is below 5 it is generally accepted that a rotation from commodities to equities should be investigated. When the ratio is above 30 it is, likewise, advised to consider rotating from equities to commodities. This is a modest improvement of the script to mark the key thresholds...