Reputation: 71
I want to get the minimum of the last 1000 days in Pinescript. It can't be done with the ta.min method, as there is no parameter for length. Any ideas on how to do it alternatively?
Upvotes: 0
Views: 103
Reputation: 1699
ta.min()
is specifically for all-time lows. You can try using ta.lowest(low, 1000)
instead.
Upvotes: 2