RicardoSantos

FunctionBestFitFrequency

Library "FunctionBestFitFrequency"
TODO: add library description here

array_moving_average(sample, length, ommit_initial, fillna) Moving Average values for selected data.
Parameters:
  • sample: float array, sample data values.
  • length: int, length to smooth the data.
  • ommit_initial: bool, default=true, ommit values at the start of the data under the length.
  • fillna: string, default='na', options='na', '0', 'avg'
Returns: float array
errors:
length > sample size "Canot call array methods when id of array is na."

best_fit_frequency(sample, start, end) Search a frequency range for the fairest moving average frequency.
Parameters:
  • sample: float array, sample data to based the moving averages.
  • start: int lowest frequency.
  • end: int highest frequency.
Returns: tuple with (int frequency, float percentage)
ไลบรารีไพน์

จิตวิญญาณที่แท้จริงของ TradingView ผู้เขียนได้ตีพิมพ์รหัส Pine นี้เป็นไลบรารีโอเพนซอร์ซเพื่อให้โปรแกรมเมอร์คนอื่น ๆ จากชุมชนของเราสามารถนำไปใช้ซ้ำได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ไลบรารีนี้เป็นการส่วนตัวหรือในสิ่งพิมพ์โอเพนซอร์สอื่น ๆ แต่นำรหัสนี้มาใช้ซ้ำในสิ่งพิมพ์จะถูกควบคุมโดย กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการใช้ไลบรารีนี้หรือไม่?

คัดลอกข้อความไปยังคลิปบอร์ดแล้ววางลงในสคริปต์ของคุณ