Lipi Reference Lipi

Operators

-

Subtraction or unary minus. Applicable to numerical expressions.

Syntax

                expr0 - expr1 | -expr0
              

Example


          indicator("Close - 10", overlay=true)
// Subtract 10 from the closing price
priceAdjusted = close - 10
// Plot the adjusted price
plot(priceAdjusted, title="Close - 10", color=color.red)