Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyPercentDSlow (Function)This is a Stochastic function, smoothed by use of a moving average technique. The value returned represents the D line in the Stochastic indicator. AlchemyPercentDSlow returns the values for the Stochastics DSlow line on multiple data series. AlchemyPercentDSlow (FirstBar, Dat, LoPrice, HiPrice, ClPrice, KLength, DLength, DsLength) Parameters |
FirstBar | Specifies the bar number of the first bar calculated |
Dat | Specifies the data series number of price to be used |
LoPrice |
Specifies the value to use as the low in stochastic calculations |
HiPrice |
Specifies the value to use as the high in stochastic calculations |
ClPrice |
Specifies the value to use as the close in stochastic calculations |
KLength |
The number of bars to consider for the average of the fast K line |
DLength |
The number of bars to consider for the average of the D line |
DsLength | The number of bars to consider for the average of the DSlow line |
ReturnsA numeric value containing DSlow for the current bar. UsageWhen using Stochastics, most people use the slow Stochastic since its smoothed values are less subject to whipsaws. The indicator itself is composed of a percentK and a percentD line that will always oscillate between 0 and 100; a higher value indicates an overbought market while a lower value indicates an oversold market. |