PINE LIBRARY
Mis à jour

DrawIndicatorOnTheChart

52
Library "DrawIndicatorOnTheChart"
this library is used to show an indicator (such RSI, CCI, MOM etc) on the main chart with indicator's horizontal lines in a window. Location of the window is calculated dynamically by last price movemements

drawIndicator(enabled, indicatorName, indicator1, indicator2, indicator3, indicatorcolors, period, indimax_, indimin_, levels, precision, xlocation, lnwidth)
  draws the realted indicator on the chart
  Parameters:
    enabled (bool): if it's enabled to show
    indicatorName (string): is the indicator name as string such "RSI", "CCI" etc
    indicator1 (float): is first indicator you want to show, such rsi(close, 14), mom(close, 10) etc
    indicator2 (float): is second indicator you want to show, such -DI of DMI
    indicator3 (float): is third indicator you want to show, such ADX of DMI
    indicatorcolors (array<color>)
    period (int): is the length of the window to show
    indimax_ (float): is the maximum value of the indicator, for example for RSI it's 100.0, if the indicator (such CCI, MOM etc) doesn't have maximum value then use "na"
    indimin_ (float): is the minimum value of the indicator, for example for RSI it's 0.0, if the indicator (such CCI, MOM etc)doesn't have maximum value then use "na"
    levels (array<float>): is the levels of the array for the horizontal lines. for example if you want horizontal lines at 30.0, and 70.0 then use array.from(30.0, 70.0). if no horizontal lines then use array.from(na)
    precision (int): is the precision/nuber of decimals that is used to show indicator values, for example for RSI set it 2
    xlocation (int): is end location of the indicator window, for example if xlocation = 0 window is created on the index of the last bar/candle
    lnwidth (int): is the line width of the indicator lines
  Returns: none
Notes de version
v2

업데이트됨
drawIndicator(enabled, indicatorName, indicator1, indicator2, indicator3, indicatorcolors, period, indimax_, indimin_, levels, precision, xlocation, lnwidth, windowLabel)
  draws the realted indicator on the chart
  Parameters:
    enabled (bool): if it's enabled to show
    indicatorName (string): is the indicator name as string such "RSI", "CCI" etc
    indicator1 (float): is first indicator you want to show, such rsi(close, 14), mom(close, 10) etc
    indicator2 (float): is second indicator you want to show, such -DI of DMI
    indicator3 (float): is third indicator you want to show, such ADX of DMI
    indicatorcolors (array<color>)
    period (int): is the length of the window to show
    indimax_ (float): is the maximum value of the indicator, for example for RSI it's 100.0, if the indicator (such CCI, MOM etc) doesn't have maximum value then use "na"
    indimin_ (float): is the minimum value of the indicator, for example for RSI it's 0.0, if the indicator (such CCI, MOM etc) doesn't have maximum value then use "na"
    levels (array<float>): is the levels of the array for the horizontal lines. for example if you want horizontal lines at 30.0, and 70.0 then use array.from(30.0, 70.0). if no horizontal lines then use array.from(na)
    precision (int): is the precision/nuber of decimals that is used to show indicator values, for example for RSI set it 2
    xlocation (int): is end location of the indicator window, for example if xlocation = 0 window is created on the index of the last bar/candle
    lnwidth (int): is the line width of the indicator lines
    windowLabel (string): is the label of the window
  Returns: none
Notes de version
v3
Notes de version
v4
Notes de version
v5

업데이트됨
drawIndicator(enabled, indicatorName, indicator1, indicator2, indicator3, indicatorcolors, period, indimax_, indimin_, levels, precision, xlocation, lnwidth, padding)
  draws the realted indicator on the chart
  Parameters:
    enabled (bool): if it's enabled to show
    indicatorName (string): is the indicator name as string such "RSI", "CCI" etc
    indicator1 (float): is first indicator you want to show, such rsi(close, 14), mom(close, 10) etc
    indicator2 (float): is second indicator you want to show, such -DI of DMI
    indicator3 (float): is third indicator you want to show, such ADX of DMI
    indicatorcolors (array<color>)
    period (int): is the length of the window to show
    indimax_ (float): is the maximum value of the indicator, for example for RSI it's 100.0, if the indicator (such CCI, MOM etc) doesn't have maximum value then use "na"
    indimin_ (float): is the minimum value of the indicator, for example for RSI it's 0.0, if the indicator (such CCI, MOM etc)doesn't have maximum value then use "na"
    levels (array<float>): is the levels of the array for the horizontal lines. for example if you want horizontal lines at 30.0, and 70.0 then use array.from(30.0, 70.0). if no horizontal lines then use array.from(na)
    precision (int): is the precision/nuber of decimals that is used to show indicator values, for example for RSI set it 2
    xlocation (int): is end location of the indicator window, for example if xlocation = 0 window is created on the index of the last bar/candle
    lnwidth (int): is the line width of the indicator lines
    padding (float): is the padding in percentage between chart and indicator window
  Returns: none
Notes de version
v6

업데이트됨
drawIndicator(enabled, indicatorName, indicator1, indicator2, indicator3, indicator4, indicatorcolors, period, indimax_, indimin_, levels, precision, xlocation, lnwidth, padding)
  draws the realted indicator on the chart
  Parameters:
    enabled (bool): if it's enabled to show
    indicatorName (string): is the indicator name as string such "RSI", "CCI" etc
    indicator1 (float): is first indicator you want to show, such rsi(close, 14), mom(close, 10) etc
    indicator2 (float): is second indicator you want to show, such -DI of DMI
    indicator3 (float): is third indicator you want to show, such ADX of DMI
    indicator4 (float): is fourth indicator you want to show
    indicatorcolors (array<color>)
    period (int): is the length of the window to show
    indimax_ (float): is the maximum value of the indicator, for example for RSI it's 100.0, if the indicator (such CCI, MOM etc) doesn't have maximum value then use "na"
    indimin_ (float): is the minimum value of the indicator, for example for RSI it's 0.0, if the indicator (such CCI, MOM etc)doesn't have maximum value then use "na"
    levels (array<float>): is the levels of the array for the horizontal lines. for example if you want horizontal lines at 30.0, and 70.0 then use array.from(30.0, 70.0). if no horizontal lines then use array.from(na)
    precision (int): is the precision/nuber of decimals that is used to show indicator values, for example for RSI set it 2
    xlocation (int): is end location of the indicator window, for example if xlocation = 0 window is created on the index of the last bar/candle
    lnwidth (int): is the line width of the indicator lines
    padding (float): is the padding in percentage between chart and indicator window
  Returns: none
Notes de version
v7
Notes de version
v8
Notes de version
v9

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.