PINE LIBRARY
FunctionPatternFrequency

Library "FunctionPatternFrequency"
Counts the word or integer number pattern frequency on a array.
reference:
rosettacode.org/wiki/Word_frequency
count(pattern)
counts the number a pattern is repeated.
Parameters:
pattern: : array<string> : array with patterns to be counted.
Returns:
array<string> : list of unique patterns.
array<int> : list of counters per pattern.
usage:
count(array.from('a','b','c','a','b','a'))
count(pattern)
counts the number a pattern is repeated.
Parameters:
pattern: : array<int> : array with patterns to be counted.
Returns:
array<int> : list of unique patterns.
array<int> : list of counters per pattern.
usage:
count(array.from(1,2,3,1,2,1))
Counts the word or integer number pattern frequency on a array.
reference:
rosettacode.org/wiki/Word_frequency
count(pattern)
counts the number a pattern is repeated.
Parameters:
pattern: : array<string> : array with patterns to be counted.
Returns:
array<string> : list of unique patterns.
array<int> : list of counters per pattern.
usage:
count(array.from('a','b','c','a','b','a'))
count(pattern)
counts the number a pattern is repeated.
Parameters:
pattern: : array<int> : array with patterns to be counted.
Returns:
array<int> : list of unique patterns.
array<int> : list of counters per pattern.
usage:
count(array.from(1,2,3,1,2,1))
ספריית Pine
ברוח האמיתית של TradingView, המחבר לפרסם את הקוד של Pine הזה כספרייה בקוד פתוח, כך שמתכנתים אחרים בקהילתנו יעשו שימוש חוזר. כל הכבוד למחבר! ניתן להשתמש בספרייה הזו באופן פרטי או בומים בקוד פתוח, אך השימוש בחוזר בקוד הזה בפרסומים כפוף ל-כללי הבית.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
ספריית Pine
ברוח האמיתית של TradingView, המחבר לפרסם את הקוד של Pine הזה כספרייה בקוד פתוח, כך שמתכנתים אחרים בקהילתנו יעשו שימוש חוזר. כל הכבוד למחבר! ניתן להשתמש בספרייה הזו באופן פרטי או בומים בקוד פתוח, אך השימוש בחוזר בקוד הזה בפרסומים כפוף ל-כללי הבית.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.