Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyPercentK (Function)This is a Stochastic function. Stochastics are oscillators that are used to indicate overbought and oversold conditions in the market based on the premise that during periods of price decreases, bar closes tend to accumulate near the Low of the bar, and during periods of price increases, bar closes tend to accumulate near the High of the bar. AlchemyPercentK returns the values for the Stochastics %K line. AlchemyPercentK (LoPrice, HiPrice, ClPrice, Length) Parameters |
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 |
Length |
The number of bars to consider for the average of the fast K line |
ReturnsA numeric value containing PercentK 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. |