kaigouthro

curve

kaigouthro מעודכן   
Library "curve"
Regression array Creator. Handy for weights, Auto Normalizes array while holding curves.

curve(_size, _power)
  Curve Regression Values Tool
  Parameters:
    _size: (float) Number of Steps required (float works, future consideration)
    _power: (float) Strength of value decrease
  Returns: (float) Array of multipliers from 1 downwards to 0.

הערות שחרור:
v2
fixed error.

Added:
display()
  show curve for tweakiing
// @param _array Values to draw
// @param _expandLength Grow over time
// @returns void
הערות שחרור:
v3

Updated:
display(_array, _timedist, _expandLength, _onbar, _src)
  display show curve
  Parameters:
    _array: Values to draw
    _timedist: Show Seconds
    _expandLength: Grow over time ( 1/value)
    _onbar: Show on bar (overlay)
    _src: Value for overlay
  Returns: void
הערות שחרור:
v4

bonus feature, matrix ma with range/atr/momentum weight.
also an example is visible of how it can be applied
__________________
# pass

% weight
actual value added to sum
__________________
ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בספרייה זו?

העתק את השורה הבאה והדבק אותה בסקריפט שלך.