A function that returns a polynomial regression and deviation information for a data set.
_X: Array containing x data points.
_Y: Array containing y data points.
_predictions: Array with adjusted _Y values.
_max_dev: Max deviation from the mean.
_min_dev: Min deviation from the mean.
This script was created in collaboration with alexgrover and displays a simple & elegant panel showing the direction of simple moving averages with periods in a user-selected range (Min, Max). The displayed number in the panel is the period of a simple moving average and the symbol situated at the right of it is associated with the direction this moving average...
For all the McGinley enthusiasts out there, this is my improved version of the "McGinley Dynamic", originally formulated and publicized in 1990 by John R. McGinley, Jr. Prior to this release, I recently had an encounter with a member request regarding the reliability and stability of the general algorithm. Years ago, I attempted to discover the root of it's...
Cyclic Smoothed Relative Strength Indicator
The cyclic smoothed RSI indicator is an enhancement of the classic RSI , adding
additional smoothing according to the market vibration,
adaptive upper and lower bands according to the cyclic memory and
using the current dominant cycle length as input for the indicator.
The cRSI is used like a standard...
The Relative Strength Index (RSI) , developed by J. Welles Wilder, is a momentum oscillator that measures the speed and change of price movements.
• Traditionally the RSI is considered overbought when above 70 and may be primed for a trend reversal or corrective pullback in price, and oversold or undervalued condition when below 30. During strong trends, the RSI...
This indicator shows volume separated by session. The aim is clarify which session a volume bar occurred in and how it compares to the average of that session - NOT ALL SESSIONS.
The logic is that there is little value comparing for example the volume of the London session against volume of the London-NY session - the London-NY will always have higher volume....
zigzag indicator with all the zigzag methods that im aware of(that matter atleast), theres something for all tastes there :P
this will be the basis for zigzag tools i make in the future.
note: some zigzags REPAINT.
With this script, you can see CFTC COT Non Commercial and Commercial Positions together.
This way, you can analyze net values greater than 0 and smaller, as well as very dense and very shallow positions of producers and speculators.
Green - Non Commercials - Speculators
Red - Commercials - Producers
This script is multi time-frame and...
Alert and lite version of the Setup indicator.
___ Alert list:
1. Bearish / Bullish Price flip.
--- Market closed higher than the close price four bars earlier and the prior bar’s close is lower than the close five price bars earlier, vise versa for the opposite direction.
2. Setup Count Termination
--- Market confirmed the Buy / Sell Setup termination...
It is possible to use progressive position sizing in order to recover from past losses, a well-known position sizing system being the "martingale", which consists of doubling your position size after a loss, this allows you to recover any previous losses in a losing streak + winning an extra. This system has seen a lot of attention from the trading community...
Fit a quadratic polynomial (parabola) to the last length data points by minimizing the sum of squares between the data and the fitted results. The script can extrapolate the results in the future and can also display the R-squared of the model. Note that this script is subject to some limitations (more in the "Notes" section).
Length : Number of...
//Every spread & central tendency measure in 1 script with comfortable visualization, including scrips's status line.
- Standard deviation (for most cases);
- Average deviation (if there are extreme values);
- GstDev - Geometric Standard Deviation (exclusively for Geometric Mean);
- HstDev - Harmonic Deviation (exclusively for Harmonic...
This indicator displays the pre-market volume (note: without the post-market of the previous day).
Unusual pre-market volume often indicates that institutional market makers are moving the market, which is a good sign for unusual high price movement.
The indicator helps me to spot stocks, if a pre-market gap is confirmed with enough (unusual) volume.
The tool plots a linear regression line using the entire history of an instrument on chart. There are may be issues on intraday timeframes less then 1h. On daily, weekly and monthly charts it works without problem.
If an instrument has a lot of data points, you may not see the line (this is TV feature):
To fix that you...
today I'd like to share a script, which enables you to use external logic to plot levels on your chart.
How does it work?
The concept is based on two scripts. One script, which uses an external input as a trigger to print a new level and one script that calculates an output, which will be fetched.
Sounds complicated? It really is not! Let's...