aashu12
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: September 19th, 2022

Pls explain what does these codes are saying . pls help

Hlv = na
Hlv := close > smaHigh ? 1 : close < smaLow ? -1 : Hlv[1]
sslDown = Hlv < 0 ? smaHigh: smaLow
sslUp = Hlv < 0 ? smaLow : smaHigh

ysokayev
Pine Script Scholar
Pine Script Scholar
Posts: 2
Joined: October 30th, 2022
Contact: TradingView Profile

Re: Pls explain what does these codes are saying . pls help

is this true "close > smaHigh " ? if yes: 1, if no: close < smaLow ? if yes: -1, if no: the previous state of Hlv

Return to “General Trading Discussions”