OPEN-SOURCE SCRIPT

Price Channel with Supertrend

Overview
This Pine Script creates an indicator named "Price Channel with Supertrend" that overlays on the main chart. It combines the Price Channel and Supertrend indicators, and includes various customization options for colors and bar conditions.

Key Components
Inputs:

length: Length for the Price Channel.
channel: Boolean to enable/disable the Price Channel.
Various color inputs for customization.
Bar Conditions:

Identifies different types of bars (e.g., inside bars, outside bars, up days, down days) and sets colors accordingly.
Price Channel:

Calculates the upper and lower bounds of the Price Channel using the highest high and lowest low over the specified length.
Plots the Price Channel if enabled.
Supertrend:

Uses ATR (Average True Range) to calculate the Supertrend.
Plots the Supertrend line with color changes based on the trend direction.
Bar Coloring:

Colors bars based on conditions like outside bars and Supertrend direction.
Buy and Sell Signals:

Generates buy and sell signals based on crossovers and crossunders of the closing price with the Supertrend line.
Plots labels for these signals on the chart.
Plotting
Price Channel: Plots the upper and lower bounds.
Supertrend: Plots the Supertrend line with color changes.
ATR: Uses ATR for Supertrend calculation.
Bar Colors: Colors bars based on conditions.
Signals: Plots buy and sell signals with labels.
Donchian Channels (DC)

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?


Również na:

Wyłączenie odpowiedzialności