RicardoSantos

JohnEhlersFourierTransform

Library "JohnEhlersFourierTransform"
Fourier Transform for Traders By John Ehlers , slightly modified to allow to inspect other than the 8-50 frequency spectrum.
reference:
https://www.mesasoftware.com/papers/Four...

high_pass_filter(source) Detrended version of the data by High Pass Filtering with a 40 Period cutoff
  Parameters:
    source: float, data source.
  Returns: float.

transformed_dft(source, start_frequency, end_frequency) DFT by John Elhers.
  Parameters:
    source: float, data source.
    start_frequency: int, lower bound of the frequency window, must be a positive number >= 0, window must be less than or 30.
    end_frequency: int, upper bound of the frequency window, must be a positive number >= 0, window must be less than or 30.
  Returns: tuple with float, float array.

db_to_rgb( db , transparency) converts the frequency decibels to rgb .
  Parameters:
    db: float, decibels value.
    transparency: float, transparency value.
  Returns: color.
版本注释: v2 removed the upper limit for the function, corrected a typo in the code, thanks to Al-M for spotting it :)
版本注释: v3 - another typo bytes the dust.. tump tump tump oO", nicely spoted by Al-M :)
版本注释: v4 fixed the preview chart..

Pine脚本库

本着真正的TradingView精神,作者将此Pine代码以开源脚本库发布,以便我们社区的其他Pine程序员可以重用它。向作者致敬!您可以私下或在其他开源出版物中使用此库,但在出版物中重用此代码受网站规则约束。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其他类型的意见或建议。请在使用条款阅读更多信息。

想使用这个脚本库吗?

复制以下行并将其粘贴到您的脚本中。