Lipi Reference Lipi

Functions

talib.rising()

Tests whether `source` has been rising across `length` bars. It returns a bool, so it drops straight into a condition.

Syntax

                talib.rising(series float source, series int length) → series bool
              

Arguments

source required series float The series to test.
length required series int How many bars the test looks across.

Return Type

series bool

Example


          indicator("Rising Trend", overlay=true)
length = input(3, "Bars to Check")
isRising = talib.rising(close, length)
bgcolor(isRising ? color.green : na)