TheRumpledOne 6,411 posts msg #36421 - Ignore TheRumpledOne |
6/23/2005 9:56:32 AM
Newcomers, you may want to read the entire thread.
|
TheRumpledOne 6,411 posts msg #37243 - Ignore TheRumpledOne |
8/2/2005 7:47:33 AM
POP TO THE TOP
|
glgene 616 posts msg #37247 - Ignore glgene |
8/2/2005 8:41:50 AM
Does SF scripting accept IF-THEN-ELSE statements?
GL Gene
|
glgene 616 posts msg #37253 - Ignore glgene |
8/2/2005 9:23:26 AM
I had written this earlier, but somehow it disappeared?? Anyway, here is my question: Can you use "IF-THEN-ELSE" logic in SF scripting?
|
alf44 2,025 posts msg #37933 - Ignore alf44 |
9/13/2005 6:37:22 PM
RumpledOne,
I've been trying (unsuccesfully) to use your "logic" stuff to experiment with a chart set-up I'm playing around with.
Please HELP !
I'm trying to identify areas of "congestion" on a chart. I'm defining "congestion" as a minimum of 5 daily bars...made up of a "Measuring Bar" and followed by (at least) 4 subsequent bars whose Open OR Close falls within the High/Low Range of that "Measuring Bar".
It it possible to use your logic system (or anything else) to achieve this ?
Any help you or others can give would be appreciated ! tia
alf44
|
TheRumpledOne 6,411 posts msg #37936 - Ignore TheRumpledOne |
9/13/2005 7:59:09 PM
I've been trying (unsuccesfully) to use your "logic" stuff to experiment with a chart set-up I'm playing around with.
Please HELP !
I'm trying to identify areas of "congestion" on a chart. I'm defining "congestion" as a minimum of 5 daily bars...made up of a "Measuring Bar" and followed by (at least) 4 subsequent bars whose Open OR Close falls within the High/Low Range of that "Measuring Bar".
It it possible to use your logic system (or anything else) to achieve this ?
Any help you or others can give would be appreciated ! tia
This should put you in the ball park... however, I am not sure if Hi5 and Lo5 are getting recalculated or not in the count statements... in other words, when it counts is it using Hi5 for today when in counts back or it is using Hi5 1 day ago, Hi5 2 days ago, etc... A little help here StockFethcer.
MAY ALL YOUR FILLS BE COMPLETE.
|
TheRumpledOne 6,411 posts msg #37937 - Ignore TheRumpledOne |
9/13/2005 8:34:47 PM
Brute force method....
But SF blows up.
This runs with Mozilla but blows up with IE.
But there is still more code.
There is probably a more elegant way of doing this, my brain is stuck at the moment... Cegis to the rescue!
|
alf44 2,025 posts msg #37939 - Ignore alf44 |
9/13/2005 10:03:16 PM
Hmmm...
First thanks for the quick reply and effort. It seems as though it's not quite there yet. If you add the 2 phrases:
and Draw Price Line at Hi5
and Draw Price Line at Lo5
...to the bottom of your 1st filter (then run the filter and pull-up the charts) you can see that what it is returning is just the High and Low of the Daily Bar 5 days ago.
I realize I'm prolly not being specific enough. I'm not even sure that the specificity that is needed for this is even possible with SF. I DO feel though that there may be something here worth exploring.
Thanks again for any help !
alf44
|
alf44 2,025 posts msg #37940 - Ignore alf44 |
9/13/2005 10:49:15 PM
again...
...I'm trying to isolate a "Measuring Bar" (ie. a day that is a minimum of five days ago) whose High is HIGHER than EITHER the Open OR Close for EACH of the subsequent 4 days...AND...whose Low is LOWER than EITHER the Open OR Close for EACH of the subsequent 4 days. As long as the Open OR Close of the subsequent 4 days falls within the High/Low Range of the "Measuring Bar Day" that's acceptable. Not necessarily looking for "inside days" subsequent to the "Measuring Bar" Day but they DO fit the criteria and are okay. If the High/Low Range of any of the subsequent 4 days is outside the High/Low Range of the "Measuring Day" that's okay too. As long as either the Open OR Close falls within the "Measuring Day" Range that's what I'm wanting.
Thanks again for any help !
alf44
|
nikoschopen 2,824 posts msg #37949 - Ignore nikoschopen |
9/14/2005 5:36:05 AM
Alfy,
It seems like what ure really looking for is a "flag" or a "penant" formation. If so, try the following:
*Here, we're filtering out for those that make a one day pop of over 5% or more, followed by five closes (incl. today) all trading within the daily range 5 days ago (AKA "flag pole").
**This filter should work in most cases. However, when the flag pole is established by a large gap, any of the subsequent days could drop below the low of the gap day. This is because the low registered on the gap day is actually inside the 3% range I have designated for the subsequent days.
|