PINE LIBRARY
Cập nhật Indicators

Library "Indicators"
this has a calculation for the most used indicators.
macd4C(fastMa, slowMa)
this calculates macd 4c
Parameters:
fastMa (simple int): is the period for the fast ma. the minimum value is 7
slowMa (simple int): is the period for the slow ma. the minimum value is 7
Returns: the macd 4c value for the current bar
rsi(rsiSourceInput, rsiLengthInput)
this calculates rsi
Parameters:
rsiSourceInput (float): is the source for the rsi
rsiLengthInput (simple int): is the period for the rsi
Returns: the rsi value for the current bar
ao(source, fastPeriod, slowPeriod)
this calculates ao
Parameters:
source (float): is the source for the ao
fastPeriod (int): is the period for the fast ma
slowPeriod (int): is the period for the slow ma
Returns: the ao value for the current bar
kernelAoOscillator(kernelFastLookback, kernelSlowLookback, kernelFastWeight, kernelSlowWeight, kernelFastRegressionStart, kernelSlowRegressionStart, kernelFastSmoothPeriod, kernelSlowSmoothPeriod, kernelFastSmooth, kernelSlowSmooth, source)
this calculates our own kernel ao oscillator which we made
Parameters:
kernelFastLookback (simple int)
kernelSlowLookback (simple int)
kernelFastWeight (simple float)
kernelSlowWeight (simple float)
kernelFastRegressionStart (simple int)
kernelSlowRegressionStart (simple int)
kernelFastSmoothPeriod (int)
kernelSlowSmoothPeriod (int)
kernelFastSmooth (bool)
kernelSlowSmooth (bool)
source (float): is the source for the ao
Returns: the kernel ao oscillator value for the current bar, the colors for both the fast and slow kernel, the fast & slow kernel
signalLineKernel(lag, h, r, x_0, smoothColors, _src, c_bullish, c_bearish)
Parameters:
lag (int)
h (float)
r (float)
x_0 (int)
smoothColors (bool)
_src (float)
c_bullish (color)
c_bearish (color)
zigzagCalc(Depth, Deviation, Backstep, repaint, Show_zz, line_thick, text_color)
Parameters:
Depth (int)
Deviation (int)
Backstep (int)
repaint (bool)
Show_zz (bool)
line_thick (int)
text_color (color)
this has a calculation for the most used indicators.
macd4C(fastMa, slowMa)
this calculates macd 4c
Parameters:
fastMa (simple int): is the period for the fast ma. the minimum value is 7
slowMa (simple int): is the period for the slow ma. the minimum value is 7
Returns: the macd 4c value for the current bar
rsi(rsiSourceInput, rsiLengthInput)
this calculates rsi
Parameters:
rsiSourceInput (float): is the source for the rsi
rsiLengthInput (simple int): is the period for the rsi
Returns: the rsi value for the current bar
ao(source, fastPeriod, slowPeriod)
this calculates ao
Parameters:
source (float): is the source for the ao
fastPeriod (int): is the period for the fast ma
slowPeriod (int): is the period for the slow ma
Returns: the ao value for the current bar
kernelAoOscillator(kernelFastLookback, kernelSlowLookback, kernelFastWeight, kernelSlowWeight, kernelFastRegressionStart, kernelSlowRegressionStart, kernelFastSmoothPeriod, kernelSlowSmoothPeriod, kernelFastSmooth, kernelSlowSmooth, source)
this calculates our own kernel ao oscillator which we made
Parameters:
kernelFastLookback (simple int)
kernelSlowLookback (simple int)
kernelFastWeight (simple float)
kernelSlowWeight (simple float)
kernelFastRegressionStart (simple int)
kernelSlowRegressionStart (simple int)
kernelFastSmoothPeriod (int)
kernelSlowSmoothPeriod (int)
kernelFastSmooth (bool)
kernelSlowSmooth (bool)
source (float): is the source for the ao
Returns: the kernel ao oscillator value for the current bar, the colors for both the fast and slow kernel, the fast & slow kernel
signalLineKernel(lag, h, r, x_0, smoothColors, _src, c_bullish, c_bearish)
Parameters:
lag (int)
h (float)
r (float)
x_0 (int)
smoothColors (bool)
_src (float)
c_bullish (color)
c_bearish (color)
zigzagCalc(Depth, Deviation, Backstep, repaint, Show_zz, line_thick, text_color)
Parameters:
Depth (int)
Deviation (int)
Backstep (int)
repaint (bool)
Show_zz (bool)
line_thick (int)
text_color (color)
Phát hành các Ghi chú
v2Phát hành các Ghi chú
v3Phát hành các Ghi chú
v4Removed:
kernelAoOscillator(kernelFastLookback, kernelSlowLookback, kernelFastWeight, kernelSlowWeight, kernelFastRegressionStart, kernelSlowRegressionStart, kernelFastSmoothPeriod, kernelSlowSmoothPeriod, kernelFastSmooth, kernelSlowSmooth, source)
this calculates our own kernel ao oscillator which we made
Phát hành các Ghi chú
v5Added:
lc(useVolatilityFilter, regimeThreshold, useRegimeFilter, source, adxThreshold, useAdxFilter, f1_string, f1_paramA, f1_paramB, f2_string, f2_paramA, f2_paramB, f3_string, f3_paramA, f3_paramB, f4_string, f4_paramA, f4_paramB, f5_string, f5_paramA, f5_paramB, maxBarsBack, useEmaFilter, useSmaFilter, emaPeriod, smaPeriod, featureCount, neighborsCount, h1, r1, x, lag1, useKernelSmoothing, useKernelFilter, shift)
Parameters:
useVolatilityFilter (bool)
regimeThreshold (float)
useRegimeFilter (bool)
source (float)
adxThreshold (int)
useAdxFilter (bool)
f1_string (string)
f1_paramA (simple int)
f1_paramB (simple int)
f2_string (string)
f2_paramA (simple int)
f2_paramB (simple int)
f3_string (string)
f3_paramA (simple int)
f3_paramB (simple int)
f4_string (string)
f4_paramA (simple int)
f4_paramB (simple int)
f5_string (string)
f5_paramA (simple int)
f5_paramB (simple int)
maxBarsBack (int)
useEmaFilter (bool)
useSmaFilter (bool)
emaPeriod (simple int)
smaPeriod (simple int)
featureCount (int)
neighborsCount (int)
h1 (simple int)
r1 (simple float)
x (simple int)
lag1 (simple int)
useKernelSmoothing (bool)
useKernelFilter (bool)
shift (int)
Phát hành các Ghi chú
v6Phát hành các Ghi chú
v7Added:
drawSwings(osc, lineColor, lineWidth, isRsi, rsiOb, rsiOs)
draws swing high/low based on the oscillator given
Parameters:
osc (float)
lineColor (color)
lineWidth (int)
isRsi (bool)
rsiOb (float)
rsiOs (float)
Returns: (in this order) previous high, current high, previous low, current low
Phát hành các Ghi chú
v8Updated:
drawSwings(osc, isRsi, rsiOb, rsiOs)
draws swing high/low based on the oscillator given
Parameters:
osc (float)
isRsi (bool)
rsiOb (float)
rsiOs (float)
Returns: (in this order) previous high, current high, previous low, current low
Phát hành các Ghi chú
v9Updated:
drawSwings(osc, isRsi, rsiOb, rsiOs)
draws swing high/low based on the oscillator given
Parameters:
osc (float)
isRsi (bool)
rsiOb (float)
rsiOs (float)
Returns: (in this order) current high, current low
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố 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 trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố 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 trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.