STOC

Top  Previous  Next

Keyword Description

Stochastics

Class

Indicator

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

STOC[n,v] 

Where n is an integer representing the number of days in the study, and v is the number of days to average.

Example

Sample code

COL2 = STOC[45,25]

 

ThumbTack white

The stochastic function is used to determine where the current closing price is in relation to the range for the previous n days.  The stochastic value is expressed as follows:

(( Close - Min(n) ) / (Max(n) - Min(n))) * 100  where Min(n) is the n day low and Max(n) is the  n day high.