MightyZinger

Adaptive_Length

MightyZinger Cập nhật   
Library "Adaptive_Length"
This library contains functions to calculate Adaptive dynamic length which can be used in Moving Averages and other indicators.
Two Exponential Moving Averages (EMA) are plotted. Coloring in plot is derived from Chikou filter and Dynamic length of MA1 is adapted using Signal output from Chikou library.

dynamic(para, adapt_Pct, minLength, maxLength) Adaptive dynamic length based on boolean parameter
  Parameters:
    para: Boolean parameter; if true then length would decrease and would increase if its false
    adapt_Pct: Percentage adaption based on parameter
    minLength: Minimum allowable length
    maxLength: Maximum allowable length
  Returns: Adaptive Dynamic Length based on Boolean Parameter

auto_alpha(src, a) Adaptive length based on automatic alpha calculations from source input
  Parameters:
    src: Price source for alpha calculations
    a: Input Alpha value
  Returns: Adaptive Length calculated from input price Source and Alpha
Phát hành các Ghi chú:
v2 : Corrected Output of auto_alpha function to Int
Phát hành các Ghi chú:
v3 : Fixed float output problem
Phát hành các Ghi chú:
v4

Added:
dynamic_2(up_para, dn_para, adapt_Pct, minLength, maxLength) Adaptive dynamic length based on two boolean parameters for increasing and decreasing dynamic length seperatally with more precision
  Parameters:
    up_para: Boolean parameter; if true then length would decrease
    dn_para: Boolean parameter; if true then length would increase
    adapt_Pct: Percentage adaption based on parameter
    minLength: Minimum allowable length
    maxLength: Maximum allowable length
  Returns: Adaptive Dynamic Length based on Two Boolean Parameters for increasing and decreasing dynamic length seperatally with more precision
Phát hành các Ghi chú:
v5 : Corrected "dynamic_2" function and added a 3rd EMA using adaptive length from "dynamic_2" function.

Thư viện Pine

Với tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác từ cộng đồng của chúng tôi có thể sử dụng lại nó. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này một cách riêng tư hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy chung.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng thư viện này?

Sao chép văn bản vào khay nhớ tạm và dán nó vào tập lệnh của bạn.