Library "VandelayIndicatorLib"
Art Vandelay's Indicator library
STC_VIL(EEEEEE, BBBB, BBBBB)
Schaff Trend Cycle Calculations
Parameters:
EEEEEE (int): = Slengt, BBBB = FALenght, BBBBB = SLOLenght
BBBB (simple int)
BBBBB (simple int)
Returns: Long : mAAAAA > mAAAAA[1] - Short : mAAAAA < mAAAAA[1]
stc(source, fast, slow, cycle, d1, d2)
Calculates the value of the Schaff Trend Cycle indicator.
Parameters:
source (float): (series int/float) Series of values to process.
fast (simple int): (simple int) Length for the MACD fast smoothing parameter calculation.
slow (simple int): (simple int) Length for the MACD slow smoothing parameter calculation.
cycle (simple int): (simple int) Number of bars for the Stochastic values (length).
d1 (simple int): (simple int) Length for the initial %D smoothing parameter calculation.
d2 (simple int): (simple int) Length for the final %D smoothing parameter calculation.
Returns: (float) The oscillator value.