KarlEs
KarlEs

Reputation: 71

How to get the minimum of the last 1000 days in Pinescript?

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

Answers (1)

beeholder
beeholder

Reputation: 1699

ta.min() is specifically for all-time lows. You can try using ta.lowest(low, 1000) instead.

Upvotes: 2

Related Questions