StockFetcher Forums · General Discussion · Why is this not returning any stocks?<< 1 2 >>Post Follow-up
einok
msg #97514
Ignore einok
11/16/2010 2:07:22 PM

set { x1, open 2 days ago + high 2 days ago}
set { x2, low 2 days ago + close 2 days ago }
set { x3, x1 + x2 }
set { myclose, x3/4 }

set { myopen, open 2 days ago + myclose / 2 }

myclose close above myopen

Thanks

duke56468
683 posts
msg #97515
Ignore duke56468
11/16/2010 2:24:37 PM

try this

Fetcher[
set { x1, open 2 days ago + high 2 days ago}
set { x2, low 2 days ago + close 2 days ago }
set { x3, x1 + x2 }
set { myclose, x3/4 }

set { myopen1, open 2 days ago + myclose}
set {myopen,myopen1 /2}
myclose close above myopen
]



einok
msg #97517
Ignore einok
11/16/2010 4:30:57 PM

Thanks, that works well. What if I want to do this?

myclose = O+H+L+C /4


myopen = (myopen (previous day) + myClose
(previous day)/2


myopen = low 1 day ago


Thanks

duke56468
683 posts
msg #97518
Ignore duke56468
11/16/2010 5:23:55 PM

Others on this site are better qualified to help you than I am but I think you need to use the set{ } feature for more than 1 function i.e. set{a,open+high} set{b,a+low} ect... Try your filter as you build and use the de-bug to see where you went wrong in the script.
Hope this helps.

four
5,087 posts
msg #97521
Ignore four
modified
11/16/2010 8:55:10 PM

Fetcher[

set{z, high + min(close,open 1 day ago)}
set{a, z / 2}
draw cema(a,7) on plot close

avgvol(55) > 13469700
close > 5 and close < 35
a crossed above cema(a,7)

]



einok
msg #97547
Ignore einok
11/18/2010 12:07:10 PM

four,

I don't understand the following


set{z, high + min(close,open 1 day ago)}

From the manual:
The minimum returns the minimum of two values (or indicator results)

Is it whichever is lesser close vs open?

Thanks


four
5,087 posts
msg #97549
Ignore four
modified
11/18/2010 2:16:15 PM

four,

I don't understand the following


set{z, high + min(close,open 1 day ago)}

----------------------------------------

Find :

MINIMUM of today's close and the open 1 day ago

Then :

Add today's high to the MINIMUM

HTH

einok
msg #97553
Ignore einok
11/18/2010 10:54:35 PM

four,

Re:

----------------------------------------

Find :

MINIMUM of today's close and the open 1 day ago

Then :

Add today's high to the MINIMUM

What is meant by minimum of the close or open? How can there be a minimum? The close is the close and the open is the open, right? Confused by the context being used.

Thanks

four
5,087 posts
msg #97555
Ignore four
modified
11/18/2010 11:52:54 PM

Find :

MINIMUM of today's close and the open 1 day ago

Then :

Add today's high to the MINIMUM

What is meant by minimum of the close or open? How can there be a minimum? The close is the close and the open is the open, right? Confused by the context being used.

Thanks
-----------------------------------------------------------------------------------------------------------------------
--------------------------Stock went DOWN----------------
Open today = $10
Close today = $5

MIN(close,open) = $5
---------------------------Stock went UP--------------------
Open today = $3
Close today = $6

MIN(close,open) = $3

---------------------------------------------- PS : I am looking at two dates TODAY'S CLOSE and YESTERDAY'S OPEN.

four
5,087 posts
msg #97559
Ignore four
11/19/2010 12:07:12 PM

Fetcher[

set{z, min(low 1 day ago,low 2 days ago)}
set{zz, min(high 1 day ago,high 2 days ago)}

set{z7, z + zz}
set{z8, z7 / 2}
draw cema(z8,5) on plot close
close > 1
avgvol(29) > 1679430


]



StockFetcher Forums · General Discussion · Why is this not returning any stocks?<< 1 2 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.