OPEN-SOURCE SCRIPT

Trend Volatility Tops and Bottoms


Big Picture:
Overall what this script try's to capture is bounces off of moving trend lines.

What you will see when using this script
one Green line, one red line, two gray lines and circles in colors blue, green, red, and purple.

RED AND GREEN LINES:
There are two trend lines, an upper and a lower line that are 1 to 2 standard deviations from the linear regression line formed by the closing price for a look back period. The green is the distance from the close price and the lower line. The red is the list from the close and the upper line. (you don't see the lower and upper lines, but yo do see the green and red lines)
The goal is too easily see when price is approaching those support and resistance levels.

GRAY LINES:
GRAY lines are a form of volatility metric. GRAYS represent the distance from the RED and GREEN lines talked about above. low volatility mean the two GRAY lines will be close and times of high volatility will be father apart.

COLORED CIRCLES:

the color circles represent possible bounce zones, when price is high or low for for a given time period.
PURPLE is caution that there could be a possible price drop
RED is a critical zone for rejection and price drop
BLUE is caution that there could be a possible price increase
GREEN is a critical zone for bounce and price increase

how its used
feel free to play around and Try new things but, how its intended to be used is on 4hr time Frame looking for longer term trends on assets that tend to be less volatile on average.

settings

some settings:
buy deviation, this will say how many standard deviations do you want the lower bounce line to be from the linear regression line

sell deviation, this will say how many standard deviations do you want the upper bounce line to be from the linear regression line

dist to zero buy: how close dose the price has to be to put out a possible bounce.

Recap
-red and purple = possible upcoming price drop... red is more critical than purple
-green and blue = possible upcoming price increase... green is more critical than blue
-use on less volatile assents and on 4hr timeframe

good luck!
bottomcryptoMoving AveragesSPDR S&P 500 ETF (SPY) TOPTrend AnalysisVolatility

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità