telster |
Gold User, Member, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Thursday, August 10, 2006 |
Sunday, May 27, 2007 12:14:26 PM |
23 [0.01% of all post / 0.00 posts per day] |
|
I do have programming experience. I have tried to use the TeleChart Developer Kit (TCDK). But was unable to figure out how to 1) get price data or 2) something like stochastic values. Can you provide an example that can do this
|
|
I am guessing we can't get the data for stochastic out of tc2000. So how about this? Is there a way to write a formula that asks the following:
Within the last 40 days, did 1) the stoc15.5 crossover 50 2) the stoc15.5 cross below 20 3) the stoc15.5 cross above 80
If it meets these 3 conditions, then we can assume that the stochastic oscilated from 20 up to 80, or 1/2 of a cycle.
But my problem is this, how do I ask if something happened within the last 40 days. For instance, what does the following really tell me?
(stoc15.5.40 < 50 AND stoc15.5.0 > 50)
It asks if the stoc from 40 days ago was below 50 as compared to todays. But it does not ask if at anytime in the last 40 days, was the stoc below 50 Steve
|
|
OK. Great. Then perhaps the questions become this: 1) Let's call your formula for counting crosses as #A. 2) And we could make another one for counting crosses up to a high point on the sotchastic. Let's say that this is formula #B and the high point on the stochastic is what 80, does that make sense? 3) Then we could have another for crosses down to 20. Formula #C.
If a stock has crosses of #a and #b and #c, then that might indicate an stochastic that regularly oscilates. But it would be better to be able to identify a stock that first hits a low point on the stochastic, then crosses above 50, then moves on up to a high point.
The ability to isolate this kind of sequence then count it would be useful.
Or if you could export the data for the stochastic, I could do this with another program. Does snapcharts allow exporting? Steve
|
Would this do it? ABS( (stoc15.5.1 < 50 AND stoc15.5.0 > 50) + (stoc15.5.2 < 50 AND stoc15.5.1 > 50) + (stoc15.5.3 < 50 AND stoc15.5.2 > 50) )
|
yes, sorry about that.
|
Perhaps a compromise. Is there a formula that can count the number of times the stoc15.5 crosses above or below 0? Thanks Steve
|
|
I see that there is a built in formula called stoc. Using this, I can count the number of times in the last 4 days that the stochastic was either above 80 or below 20.
abs((stoc15.5.0 > 80) + (stoc15.5.1 > 80) + (stoc15.5.2 > 80) + (stoc15.5.3 > 80) + (stoc15.5.4 > 80) + (stoc15.5.0 < 20) + (stoc15.5.1 < 20) + (stoc15.5.2 < 20) + (stoc15.5.3 < 20) + (stoc15.5.4 < 20))
But how would I count cycles? Specifically, for the stoc15.5? 1) # of times a stock had cycled to 20, 2) then turned around and reached 80 3) only to turn around and go back to 20 4) etc, etc
Is this possible? Thanks Steve
|
|