Lipi Reference
Lipi

Functions

talib.dc()

Donchian channel over `length` bars. `length` is the only argument. The channel is taken from the chart's own bars rather than from a series you supply.

Syntax

                talib.dc(series int length) → [series float, series float, series float]
              

Arguments

length required series int

Return Type

[series float, series float, series float]

Example


          //@lipi=2
indicator("talib.dc Example", overlay=true)
[dcUpper, dcMiddle, dcLower] = talib.dc(20)
plot(dcUpper, title="Upper", color=color.green)
plot(dcMiddle, title="Middle", color=color.gray)
plot(dcLower, title="Lower", color=color.red)