Untitled
unknown
plain_text
a year ago
904 B
9
Indexable
Never
[pine]float[] hhigh = na float[] llow = na float[] oopen = na float[] cclose = na var bool flag = na flag := true if timeframe.in_seconds(res) / 60 > timeframe.in_seconds() / 60 // if timeframe used for getting lower tf values > chart timeframe, causes run time error flag := false hhigh := not flag ? request.security_lower_tf(syminfo.tickerid, res, high) : hhigh //[High,Low,Open,Close] = _get_lower_tf(flag) llow := not flag ? request.security_lower_tf(syminfo.tickerid, res, low) : llow oopen := not flag ? request.security_lower_tf(syminfo.tickerid, res, open) : oopen cclose := not flag ? request.security_lower_tf(syminfo.tickerid, res, low) : cclose // with chart set to 30mins and user value for lower tf in indicator setting is 60mins (res), runtime error to set chart higher, so somehow during runtime it's still // calling request.security_lower_tf even with the flag usage???[/pine]