dandrideng

least_squares_regression

dandrideng ที่อัปเดต:   
Library "least_squares_regression"
least_squares_regression: Least squares regression algorithm to find the optimal price interval for a given time period

basic_lsr(series, series, series) basic_lsr: Basic least squares regression algorithm
  Parameters:
    series: int t: time scale value array corresponding to price
    series: float p: price scale value array corresponding to time
    series: int array_size: the length of regression array
  Returns: reg_slop, reg_intercept, reg_level, reg_stdev

trend_line_lsr(series, series, series, string, series, series) top_trend_line_lsr: Trend line fitting based on least square algorithm
  Parameters:
    series: int t: time scale value array corresponding to price
    series: float p: price scale value array corresponding to time
    series: int array_size: the length of regression array
    string: reg_type: regression type in 'top' and 'bottom'
    series: int max_iter: maximum fitting iterations
    series: int min_points: the threshold of regression point numbers
  Returns: reg_slop, reg_intercept, reg_level, reg_stdev, reg_point_num
เอกสารเผยแพร่:
v2 modify some discriptions
ไลบรารีไพน์

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

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

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

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

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