RicardoSantos

JohnEhlersFourierTransform

RicardoSantos Wizard Telah dikemas kini   
Library "JohnEhlersFourierTransform"
Fourier Transform for Traders By John Ehlers, slightly modified to allow to inspect other than the 8-50 frequency spectrum.
reference:
www.mesasoftware.com...nsformForTraders.pdf

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.
Nota Keluaran:
v2 removed the upper limit for the function, corrected a typo in the code, thanks to Al-M for spotting it :)
Nota Keluaran:
v3 - another typo bytes the dust.. tump tump tump oO", nicely spoted by Al-M :)
Nota Keluaran:
v4 fixed the preview chart..
Perpustakaan Pine

Di dalam semangat sebenar TradingView, pengarang telah menerbitkan kod Pine ini sebagai perpustakaan sumber terbuka, jadi pengaturcara-pengaturcara Pine yang lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau pada penerbitan-penerbitan sumber terbuka lain, tetapi penggunaan semula kod ini di dalam penerbitan adalah ditadbir oleh Peraturan Dalaman.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Mahu gunakan perpustakaan ini?

Salin garisan ini dan tampalkan ia di dalam skrip anda.