How do I get time at which swing high was formed (want this time as input) in pinescript?
I tried this:
last_sh_active_time = ta.change(sh) ? time : na
// Convert epoch time to human-readable time
normal_time = timestamp(last_sh_active_time)
but this did not work