serkany88

Feature Scaling

serkany88 Mis à jour   
Library "Feature_Scaling"
FS: This library helps you scale your data to certain ranges or standarize, normalize, unit scale or min-max scale your data in your prefered way. Mostly used for normalization purposes.

minmaxscale(source, min, max, length)
  minmaxscale: Min-max normalization scales your data to set minimum and maximum range
  Parameters:
    source
    min
    max
    length
  Returns: res: Data scaled to the set minimum and maximum range

meanscale(source, length)
  meanscale: Mean normalization of your data
  Parameters:
    source
    length
  Returns: res: Mean normalization result of the source

standarize(source, length, biased)
  standarize: Standarization of your data
  Parameters:
    source
    length
    biased
  Returns: res: Standarized data

unitlength(source, length)
  unitlength: Scales your data into overall unit length
  Parameters:
    source
    length
  Returns: res: Your data scaled to the unit length
Notes de version:
v2

Updated: Fixed Descriptions
minmaxscale(source, min, max, length)
  minmaxscale Min-max normalization scales your data to set minimum and maximum range
  Parameters:
    source: Source data you want to use
    min: Minimum value you want
    max: Maximum value you want
    length: Length of the data you want taken into account
  Returns: res Data scaled to the set minimum and maximum range

meanscale(source, length)
  meanscale Mean normalization of your data
  Parameters:
    source: Source data you want to use
    length: Length of the data you want taken into account
  Returns: res Mean normalization result of the source

standarize(source, length, biased)
  standarize Standarization of your data
  Parameters:
    source: Source data you want to use
    length: Length of the data you want taken into account
    biased: Whether to do biased calculation while taking standard deviation, default is true
  Returns: res Standarized data

unitlength(source, length)
  unitlength Scales your data into overall unit length
  Parameters:
    source: Source data you want to use
    length: Length of the data you want taken into account
  Returns: res Your data scaled to the unit length

One does not simply win every trade.
Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.