PINE LIBRARY
tafirstlib

General Purpose: Starts by stating it's a collection of utility functions for technical analysis.
Core Functionality Areas: Mentions key categories like:
Extrema detection (isMin, isMax, etc.)
Condition checking over time (isMachedInRange, isContinuous, etc.)
Rate of change analysis (isSlowDown)
Moving average calculation (getMA)
Advanced Features: Highlights the more complex functions:
Visualization helpers (getColorNew)
Moving Regression (mr) for smoothing/trend
Cycle analysis (bpDom)
Overall Goal: Concludes by stating the library's aim – simplifying development and enabling complex analysis.
Library "tafirstlib"
TODO: add library description here
isSlowDown(data)
isSlowDown
Parameters:
data (float): array of numbers
Returns: boolean
isMin(data, maeLength)
isMin
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isMax(data, maeLength)
isMax
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isMinStopped(data, maeLength)
isMinStopped
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isMaxStopped(data, maeLength)
isMaxStopped
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isLongMinStopped(data, maeLength, distance)
isLongMinStopped
Parameters:
data (float): array of numbers
maeLength (int): number
distance (int): number
Returns: boolean
isLongMaxStopped(data, maeLength, distance)
isLongMaxStopped
Parameters:
data (float): array of numbers
maeLength (int): number
distance (int): number
Returns: boolean
isMachedInRangeSkipCurrent(data, findRange, findValue)
isMachedInRangeSkipCurrent
Parameters:
data (bool): array of numbers
findRange (int): number
findValue (bool): number
Returns: boolean
isMachedInRange(data, findRange, findValue)
isMachedInRange
Parameters:
data (bool): array of numbers
findRange (int): number
findValue (bool): number
Returns: boolean
isMachedColorInRange(data, findRange, findValue)
isMachedColorInRange isMachedColorInRange(series color data, int findRange, color findValue)
Parameters:
data (color): series of color
findRange (int): int
findValue (color): color
Returns: boolean
countMachedInRange(data, findRange, findValue)
countMachedInRange
Parameters:
data (bool): array of numbers
findRange (int): number
findValue (bool): number
Returns: number
getColor(data)
getColor
Parameters:
data (float): array of numbers
Returns: color
getColorNew(data)
getColorNew
Parameters:
data (float): array of numbers
Returns: color
isColorBetter(color_data)
isColorBetter
Parameters:
color_data (color): array of colors
Returns: boolean
isColorWorst(color_data)
isColorWorst
Parameters:
color_data (color): array of colors
Returns: boolean
isColorBetter2(color_data)
isColorBetter2
Parameters:
color_data (color): array of colors
Returns: boolean
isColorWorst2(color_data)
isColorWorst2
Parameters:
color_data (color): array of colors
Returns: boolean
isDecreased2Bar(data)
isDecreased2Bar
Parameters:
data (float): array of numbers
Returns: boolean
isContinuousAdvance(targetSeries, range2Find, howManyException)
isContinuousAdvance
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
howManyException (int): number
Returns: boolean
isContinuous(targetSeries, range2Find, truefalse)
isContinuous
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
truefalse (bool): boolean
Returns: boolean
isContinuousNotNow(targetSeries, range2Find, truefalse)
isContinuousNotNow
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
truefalse (bool): boolean
Returns: boolean
isContinuousTwoFactors(targetSeries, range2Find, truefalse)
isContinuousTwoFactors
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
truefalse (bool): boolean
Returns: boolean
findEventInRange(startDataBarIndex, neededDataBarIndex, currentBarIndex)
findEventInRange
Parameters:
startDataBarIndex (int): number
neededDataBarIndex (int): number
currentBarIndex (int): number
Returns: boolean
findMin(firstdata, secondata, thirddata, forthdata)
findMin
Parameters:
firstdata (float): number
secondata (float): number
thirddata (float): number
forthdata (float): number
Returns: number
findMax(firstdata, secondata, thirddata, forthdata)
findMax
Parameters:
firstdata (float): number
secondata (float): number
thirddata (float): number
forthdata (float): number
Returns: number
getMA(src, length, mav)
getMA
Parameters:
src (float): number
length (simple int): number
mav (string): string
Returns: number
mr(mrb_src, mrb_window, mrb_degree)
Parameters:
mrb_src (float)
mrb_window (int)
mrb_degree (int)
bpDom(maeLength, bpw, mult)
Parameters:
maeLength (int)
bpw (float)
mult (float)
Core Functionality Areas: Mentions key categories like:
Extrema detection (isMin, isMax, etc.)
Condition checking over time (isMachedInRange, isContinuous, etc.)
Rate of change analysis (isSlowDown)
Moving average calculation (getMA)
Advanced Features: Highlights the more complex functions:
Visualization helpers (getColorNew)
Moving Regression (mr) for smoothing/trend
Cycle analysis (bpDom)
Overall Goal: Concludes by stating the library's aim – simplifying development and enabling complex analysis.
Library "tafirstlib"
TODO: add library description here
isSlowDown(data)
isSlowDown
Parameters:
data (float): array of numbers
Returns: boolean
isMin(data, maeLength)
isMin
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isMax(data, maeLength)
isMax
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isMinStopped(data, maeLength)
isMinStopped
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isMaxStopped(data, maeLength)
isMaxStopped
Parameters:
data (float): array of numbers
maeLength (int): number
Returns: boolean
isLongMinStopped(data, maeLength, distance)
isLongMinStopped
Parameters:
data (float): array of numbers
maeLength (int): number
distance (int): number
Returns: boolean
isLongMaxStopped(data, maeLength, distance)
isLongMaxStopped
Parameters:
data (float): array of numbers
maeLength (int): number
distance (int): number
Returns: boolean
isMachedInRangeSkipCurrent(data, findRange, findValue)
isMachedInRangeSkipCurrent
Parameters:
data (bool): array of numbers
findRange (int): number
findValue (bool): number
Returns: boolean
isMachedInRange(data, findRange, findValue)
isMachedInRange
Parameters:
data (bool): array of numbers
findRange (int): number
findValue (bool): number
Returns: boolean
isMachedColorInRange(data, findRange, findValue)
isMachedColorInRange isMachedColorInRange(series color data, int findRange, color findValue)
Parameters:
data (color): series of color
findRange (int): int
findValue (color): color
Returns: boolean
countMachedInRange(data, findRange, findValue)
countMachedInRange
Parameters:
data (bool): array of numbers
findRange (int): number
findValue (bool): number
Returns: number
getColor(data)
getColor
Parameters:
data (float): array of numbers
Returns: color
getColorNew(data)
getColorNew
Parameters:
data (float): array of numbers
Returns: color
isColorBetter(color_data)
isColorBetter
Parameters:
color_data (color): array of colors
Returns: boolean
isColorWorst(color_data)
isColorWorst
Parameters:
color_data (color): array of colors
Returns: boolean
isColorBetter2(color_data)
isColorBetter2
Parameters:
color_data (color): array of colors
Returns: boolean
isColorWorst2(color_data)
isColorWorst2
Parameters:
color_data (color): array of colors
Returns: boolean
isDecreased2Bar(data)
isDecreased2Bar
Parameters:
data (float): array of numbers
Returns: boolean
isContinuousAdvance(targetSeries, range2Find, howManyException)
isContinuousAdvance
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
howManyException (int): number
Returns: boolean
isContinuous(targetSeries, range2Find, truefalse)
isContinuous
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
truefalse (bool): boolean
Returns: boolean
isContinuousNotNow(targetSeries, range2Find, truefalse)
isContinuousNotNow
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
truefalse (bool): boolean
Returns: boolean
isContinuousTwoFactors(targetSeries, range2Find, truefalse)
isContinuousTwoFactors
Parameters:
targetSeries (bool): array of booleans
range2Find (int): number
truefalse (bool): boolean
Returns: boolean
findEventInRange(startDataBarIndex, neededDataBarIndex, currentBarIndex)
findEventInRange
Parameters:
startDataBarIndex (int): number
neededDataBarIndex (int): number
currentBarIndex (int): number
Returns: boolean
findMin(firstdata, secondata, thirddata, forthdata)
findMin
Parameters:
firstdata (float): number
secondata (float): number
thirddata (float): number
forthdata (float): number
Returns: number
findMax(firstdata, secondata, thirddata, forthdata)
findMax
Parameters:
firstdata (float): number
secondata (float): number
thirddata (float): number
forthdata (float): number
Returns: number
getMA(src, length, mav)
getMA
Parameters:
src (float): number
length (simple int): number
mav (string): string
Returns: number
mr(mrb_src, mrb_window, mrb_degree)
Parameters:
mrb_src (float)
mrb_window (int)
mrb_degree (int)
bpDom(maeLength, bpw, mult)
Parameters:
maeLength (int)
bpw (float)
mult (float)
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
MikeJSaylor @ telegram
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
MikeJSaylor @ telegram
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.