MightyZinger

Adaptive_Length

MightyZinger تم تحديثه   
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
ملاحظات الأخبار:
v2 : Corrected Output of auto_alpha function to Int
ملاحظات الأخبار:
v3 : Fixed float output problem
ملاحظات الأخبار:
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
ملاحظات الأخبار:
v5 : Corrected "dynamic_2" function and added a 3rd EMA using adaptive length from "dynamic_2" function.

مكتبة باين

كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشور تحكمه قواعد الموقع.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذه المكتبة؟

انسخ النص إلى الحافظة وألصقه في النص البرمجي الخاص بك.