This script holds several useful functions from statistics and machine learning (ML) and takes measurement of a volume weighted distance in order to identify local trends. It attempts at applying ML techniques to time series processing, shows how different distance measures behave and gives you an arsenal of tools for your endeavors. Tested with BTCUSD.
Multiple Statistics from zigzag:
• Price range between swings.
• Bar range between swings.
returns maximum value, avg value and mean deviation.
if you find something missing, please leave a message bellow.
This script shows the average count of 'up bars' vs. 'down bars'. It is intended for statistic and probability purposes only. It does not include high or low price in the calculation - only the open and close prices are used.
Under settings, click "show difference" to see the difference between the two averages. This can also be called positive/negative drift....
This is a very simple script... it does not necessarily create signals. It only provides useful feedback via statistics & probability.
There will be a green background if there are two green bars in a row, and it will stay green until two red bars show up (in which it switches color to red until two green bars show up again).
The fuchsia arrows show the double...
Lets say you want to layer into a position and you'd like to see it turn around. The study lets you set a baseline and increments above and below that baseline. A green cross is plotted ever time the price crosses above one of the increments, and red when crossing below that increment.
In the example I set the baseline to $22.1, and Layer increments to $0.50....
Shows the Daily, Weekly, Monthly, Quarterly, and Yearly VWAP.
Also shows the previous closing VWAP, which is usually very near the HLC3 standard pivot for the previous time frame. i.e. The previous daily VWAP closing price is usually near the current Daily Pivot. Tickers interact well with the previous Daily and Weekly closing VWAP.
Enabling the STDEV bands...
// The script is useful to inspect probability:
// If previous day closed at lowest price for several days
// how often next day would be red bar
// As one can see gray lines indicate bars with lowest close. If next bar is green, increment diff_hi, overwise increment diff_lo
// Probability is counted as diff_lo / (diff_hi+diff_lo)
// One can copy script and...
GEOMETRIC STANDARD DEVIATION BANDS
Ver.1 By Ricardo M Arjona @XeL_Arjona
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
The embedded code and ideas within...
EVWMA ACCUMULATION/DISTRIBUTION PRESSURE & FRACTAL BANDS
Version: 3.0 @ 4.11.2015
By Ricardo M Arjona @XeL_Arjona
The following indicator IS NOT INTENDED TO BE A FORMAL INVESTMENT ADVICE OR TRADING RECOMMENDATION BY THE AUTHOR, nor should be construed as such. Users will be fully responsible by their use regarding any kind of trading...
Standard Error Bands - Code by @XeL_arjona
Original implementation by:
Traders issue: Stocks & Commodities V. 14:9 (375-379):
Standard Error Bands by Jon Andersen
For a quick and publicly open explanation of this Statistical indicator, you can refer at Here!
Extract from the former URL:
Standard Error bands are...
These 3 indicators can be really useful.
The usage is fairly straightforward, if you understand price action, having an statistical edge like these provide can be useful.
Refer to Tim West's charts to learn more about range expansion bars.
The idea for the Atr% and Atr timer come from discussions I had with Yacine Kanoun, props to him for his contribution.
TRADINGVIEW BACKTEST SCRIPT by Lionshare (c) 2015
THS IS A REAL ALTERNATIVE FOR LONG AWAITED TV NATIVE BACKTEST ENGINE.
READY FOR USE JUST RIGHT NOW.
For user provided trading strategy, executes the trades on pricedata history and continues to make it over live datafeed.
Calculates and (plots on premise) the next performance statistics:
profit - i.e. gross...
Pair trading is employed by professional traders to outperform the market. This script is a complete trading strategy where you can set your own parameters and the system will generate ready to trade signals. All you have to do is just execute profitable trades based on your own parameters.
*** Full description in the comment below ******
This chart has 3 indicators:
- Chande's R2
- Inverse Fisher Transform on CCI
Feel free to "make mine" (click on the SHARE button) and use these indicators in your charts.