Search found 3 matches

Go to advanced search

by sakopsn
Fri Jan 15, 2021 1:27 am
Forum: Pine Script Q&A
Topic: Find values with equal distance in series
Replies: 2
Views: 1126
 
Jump to post

Re: Find values with equal distance in series

Thanks!
by sakopsn
Sun Dec 13, 2020 7:28 pm
Forum: Request Scripts
Topic: Find values with equal distance in series
Replies: 1
Views: 1201
 
Jump to post

Find values with equal distance in series

Hi! I am searching for a way in Pine Script to find values within a series that have the same “distance” to each other. So for example within the arraw [1,2,3,5,7,8,9,10] Those continous subarrays can be found: Distance 1 = [1,2,3] + [7,8,9,10] Distance 2 = [1,3,5,7,9] + [8, 10] Distance 3 = [2,5,8]...
by sakopsn
Sun Dec 13, 2020 7:14 pm
Forum: Pine Script Q&A
Topic: Find values with equal distance in series
Replies: 2
Views: 1126
 
Jump to post

Find values with equal distance in series

Hi! I am looking for a way in Pine Script to find values within a series that have the same “distance” to each other. So for example within the arraw [1,2,3,5,7,8,9,10] Those continous subarrays can be found: Distance 1 = [1,2,3] + [7,8,9,10] Distance 2 = [1,3,5,7,9] + [8, 10] Distance 3 = [2,5,8] D...

Go to advanced search