Lipi Reference Lipi

Operators

<=

Less than or equal to. Applicable to numerical expressions.

Syntax

                expr0 <= expr1
              

Example


          indicator("Low Volume Bars", overlay=true)
// Compute 50-period average volume
avgVolume = talib.sma(volume, 50)
// Check if the current volume is below or equal to average
isLowVolume = volume <= avgVolume
// Highlight bars with low volume
plotshape(isLowVolume, title="Low Volume", location=location.bottom, color=color.blue, shape=shape.triangleup)