Function Highest/Lowest

7241 visualizzazioni
Function for highest() and lowest()
Note di rilascio: updated code for V4, code in cooperation with @LucF.
theres 2:
1. version that supports high length values.
2. error's with high length values, but maps initial range(bar_index=0 to length).
Rimuovi dagli script preferiti Aggiungi agli script preferiti


This is great.. as I've noticed in version 3.. highest() and lowest() do not like taking in variables for length.. often results in:

line 34: Cannot call `highest` with arguments (series, series); available overloads: highest(series, integer) => series; highest(integer) => series;
+9 Rispondi
These two pieces of code are probably the most used functions in Pine outside the built-ins, so thanks for them, Ricardo.
+4 Rispondi
@LucF, discovered it today.... but was looking for them all my life. True story
+1 Rispondi
I am trying to find a piece of code that will return the high since another function was true.
I was using highest(high,barssince(xyz>0)) but that doesn’t work because it’s two series. Is there a way to use the above to do the same thing? I only need it for the last 100 bars. If xyz>0 more than 100 bars ago then I don’t care what the high was. I can’t use highest(high,100) because xyz>0 could occur 3 bars ago but the high in the last 100 was 90 bars ago. Anyway any help appreciated
is that possible to have similar improve cci() and dev() functions because
Cannot call 'cci' with arguments (series, series); available overloads: cci(series, integer) => series

Cannot call 'dev' with arguments (series, series); available overloads: dev(series, integer) => series

thanks in advance!
... thank you sir. I was pulling my hair out here. Not because I couldn't write it, but just because I knew it was already written
thanks for sharing
A lowest()/highest() function without the ability to input a series is like a 3-legged horse. Thank you, Ricardo, for supplying the fourth leg!
Thanks @RicardoSantos and @LucF, you guys are unstoppable!
Home Screener azioni Screener forex Screener cripto Calendario economico Come funziona Caratteristiche Grafico Costi Invita un amico Regolamento Centro di supporto Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Blog & Novità Twitter
Profilo Impostazioni profilo Account e fatturazione Amici invitati Coin I miei ticket di supporto Centro di supporto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci