Registered User Joined: 1/3/2005 Posts: 72
|
I use single line stochastic 5, %K 3, stochastic 8 %K 5, stochastic 12 %K,3, stochastic 17 %K,3 all in the same pane in TC2000 12.3. Sometimes two or more of the single line stochastic will be on top of each other or very close to each other. Two or more single line stochastic’s will line up between 80 and 65 heading towards the 50 line. Or two or more single line stochastic’s will line up between 20 and 35 heading towards the 50 line. Is it possible to write a scan or other way to find the conditions described above? The stoch that line up together can be in any combination, stoc 5,3 and stoch 8,5 or stoch 12,3 and stoch 17, 3 or 8,5 and 12,3. There are many combinations between the four stochastics. The single stochastic are not right on top of each other. The single stochastics lines will be very close or differ in value up to 3 points. Example: stoch 5,3 = 74.26 and stoch 12,3 = 71.75 or stoch 12,3 = 24.56 and stoch 17,3 = 27.18. If this does not make sense sent up the 4 single stochastics in a single pane. There should only be four stochastic lines in the pane. Any assistance is appreciated.
Thanks Mark
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You could add up a check of how many of all of the possible combinations are within 3 points of each other:
ABS(ABS(STOC5.3 - STOC8.5) <= 3) - (ABS(STOC5.3 - STOC12.3) <= 3) - (ABS(STOC5.3 - STOC17.3) <= 3) - (ABS(STOC8.5 - STOC12.3) <= 3) - (ABS(STOC8.5 - STOC17.3) <= 3) - (ABS(STOC12.3 - STOC17.3) <= 3)
The value would range from 0 to 6. Anything greater than 0 (even 1) would indicated that at least two of the lines are within 3 of each other as required. I'm guessing the higher the number, the more in line the Stochastics would be with what you are looking for however.
Understanding Stochastics
-Bruce Personal Criteria Formulas TC2000 Support Articles
|