Decsription: Auto-Cointegration-Based Pair Trading Strategy (revised version)
To review, there are three popular styles of Pair trading: distance-based pair trading, correlation-based pair trading and cointegration-based pair trading. Typically, they require preliminary statistical estimation of the viability of the corresponding strategy.
Basically a pair trade...
SuperTrendRange study attempts to determine the state of the market
• whether a well-established bull/bear trend is present
• whether the market is trading in a range
SuperTrendRange (STR) takes into account the volatility of the market - further details regarding volatility can be found in the description of “Volatility Bands by DGT” study
Due to its...
Prices high above the Moving Average (MA) or low below it are likely to be remedied in the future by a reverse price movement as stated in the article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management
This study is the third variant that aims to present this idea, and the output of the study is...
This indicator shows the distance between the current price and the Moving Average price.
Show the distance between price and Moving Average (Read Distance Calculation for more information)
Show Historic Highs and Lows
Show Highest High and Lowest Low
Show current Highest High, current Lowest Low and current distance
Adopted to Pine from systemtradersuccess.com
They wrote that this average is designed to be a robust version of a moving average to reduce the impact of outliers, but I dont see a significant difference comparing it with SMA. So, I published it for the educational purposes.
To learn more about the robust filters and averages google Hampel Filter, Interquartile...
Prices high above the moving average (MA) or low below it are likely to be remedied in the future by a reverse price movement as stated in an Article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management
Here comes a study to indicate the idea of this article, Price Distance to its Moving Averages...
This study combines Bollinger Bands, one of the most popular technical analysis indicators on the market, and Directional Movement (DMI), which is another quite valuable technical analysis indicator.
Bollinger Bands used in conjunction with Directional Movement (DMI) may help getting a better understanding of the ever changing landscape of the market and...
This script implements a rebrushed distance-based pair trading strategy. In this strategy, normally they trade the difference between the prices of two instruments. This difference is also called spread. Here, however we’ll trade the difference between two time frames of one instrument. And that's the main trick. Common procedure consists of the following...
Simple script that plots price to MA distance (ATR) as a bar chart.
ATR is being used here instead of % because ATR keeps it relative to current volatility (1ATR move in either direction can have very different % for when price at 20cent and 2 dollars).
Upper/Lower band is calculated based on the average of previous peak/trough. Price approaching the band could...
FOLLOW TraderX0 and redxbt for designing the original script and idea with MAs
Follow ShowerFourth for making it VWMAs and finding the ultimate clout getting top signals of all time for Bitcoin on BITSTAMP:BTCUSD
I misspelled weighted on the chart, whatever.
Calculate the distance of the price to a moving average. Also be able to identify if the average distance is decreasing or increasing based on signal line.
Length: The moving average length to measure against.
Source: The price input source use to measure the distance from.
Signal Length: The average of distance between Source and...
// How it Works \\
Measuring the distance of the close price from a higher timeframe VWAP - Volume Weighted Average Price
There is a threshold which is calculated by looking back at the previous x amount of bars and storing the highest/lowest values
If the distance from the vwap stretches above that threshold, the histogram will go green if price is above VWAP and...
This script shows optional:
- distance between close price and Kijun-Sen
- distance btween Tenkan-Sen and Kijun-Sen
- Background color of current time frame
- Background color of the next higher time frame
Calculating distances in signal processing/statistics/time-series analysis imply measuring the distance between two probability distribution, i am not really familiar with distances but since some formulas are in closed form they can be easily used for volatility estimation. This volatility indicator will use three methods originally made to measure...