TradingView
RicardoSantos
Jun 26, 2022 2:07 PM

functionStringToMatrix 

Ether / United States DollarCoinbase

描述

Library "functionStringToMatrix"
Provides unbound methods (no error checking) to parse a string into a float or int matrix.

to_matrix_float(str, interval_sep, start_tk, end_tk)
  Parse a string into a float matrix.
  Parameters:
    str: , string, the formated string to parse.
    interval_sep: , string, cell interval separator token.
    start_tk: , string, row start token.
    end_tk: , string, row end token.
  Returns: matrix<float>, parsed float matrix.

to_matrix_int(str, interval_sep, start_tk, end_tk)
  Parse a string into a int matrix.
  Parameters:
    str: , string, the formated string to parse.
    interval_sep: , string, cell interval separator token.
    start_tk: , string, row start token.
    end_tk: , string, row end token.
  Returns: matrix<int>, parsed int matrix.

版本注释

v2 fixed a lill'bug..

版本注释

v3

Added:
to_matrix_string(str, interval_sep, start_tk, end_tk)
  Parse a string into a string matrix.
  Parameters:
    str: , string, the formated string to parse.
    interval_sep: , string, cell interval separator token.
    start_tk: , string, row start token.
    end_tk: , string, row end token.
  Returns: matrix<string>, parsed string matrix.
评论
Options360
Great work as always!
xmd1979
great code, thank you so much for your work @RicardoSantos, can this lib be used for sort of price array randomness of values to stationary freq/timeseries transform via pine algo shell ?! link to my chart (using stationary time series)
xmd1979
@RicardoSantos, black view vers of my system setup 15sec tf (time series based)
更多