oldinvestor

Layering Plots

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. So it will plot a cross every 50 cents above and below the baseline. This can be used on any chart period (daily, hourly, 5min...), but is limited to 9 layers above and below the baseline.

NOTES...
Lime = when price crosses above a layer that is above the baseline
Green = when price crosses above a layer below the baseline

Pink = when price crosses below a layer that is above the baseline
Red = when price crosses below a layer below the baseline

IMPORTANT...
This does not plot sometimes. I'm using a crossover crossunder function, and if a candle gaps open below and ends above a layer, this will not plot. It is not in error, just the way that function works. I will be looking to improve this study, wanted to share what I have for now.

Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?