TradingView
RicardoSantos
2022年8月16日午前11時0分

FunctionPatternFrequency 

Dow Jones Industrial Average IndexTVC

詳細

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))
詳細