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.

Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?