PINE LIBRARY

movingAveragesUtilities

Updated
Library "movingAveragesUtilities"

get_movingAverages_data(source, length_fast, length_medium, length_slow)
  Parameters:
    source (float)
    length_fast (simple int)
    length_medium (simple int)
    length_slow (simple int)
Release Notes
v2

Added:
get_mas_color(ma_fast, ma_med, ma_slow, length_slow, length_medium, length_fast, ma_transparency)
  : Generates de color for the moving averages lines
  Parameters:
    ma_fast (float): (float): Moving average fast
    ma_med (float): (float): Moving average medium
    ma_slow (float): (float): Moving average slow
    length_slow (int): (int): Slow moving average length
    length_medium (int): (int): Medium moving average length
    length_fast (int): (int): Fast moving average length
    ma_transparency (int): (int): Transparency for the moving average line
  Returns: : Returns three colors
Release Notes
v3

Updated:
get_mas_color(ma_fast, ma_med, ma_slow, length_slow, length_medium, length_fast, ma_transp)
  : Generates de color for the moving averages lines
  Parameters:
    ma_fast (float): (float): Moving average fast
    ma_med (float): (float): Moving average medium
    ma_slow (float): (float): Moving average slow
    length_slow (int): (int): Slow moving average length
    length_medium (int): (int): Medium moving average length
    length_fast (int): (int): Fast moving average length
    ma_transp (int)
  Returns: : Returns three colors
techindicator

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.


Also on:

Disclaimer