S028
leverage bound below 1
Severity Error
minLeverage: and maxLeverage: of a data.liqmap subscription name leverage tiers (5x to 100x): a bound below 1 (no leverage) has no meaning.
Use a tier such as 25.0, or leave the bound out.
Failing example
script "conf"
data chart = subscribe(data.ohlcv)
data liq = subscribe(data.liqmap, minLeverage: 0.5)
on chart.close {
log.info(str.format("{0}", liq.densityBelow(2.0)))
}Fixed example
script "conf"
data chart = subscribe(data.ohlcv)
data liq = subscribe(data.liqmap, minLeverage: 25.0)
on chart.close {
log.info(str.format("{0}", liq.densityBelow(2.0)))
}