StockFetcher Forums · General Discussion · formula language -- is the following correct<< 1 2 >>Post Follow-up
trex232
7 posts
msg #70392
Ignore trex232
1/5/2009 10:11:39 AM

Chetron:

Thanks, that works great,

I want to add one more wrinkle -

that the close is no higher than 20% above the ema(8)

do I have to put in another series of "set"
and do I have to put "and" before it?

thanks

trex

chetron
2,817 posts
msg #70395
Ignore chetron
1/5/2009 11:59:24 AM

MAYBE

YOU DON'T NEED "AND" IF YOU HIT THE "ENTER/RETURN/LINE FEED" BUTTON ON YOU KEYBOARD FOR EACH LINE OF CODE AS I DO.

Fetcher[


set{var1,ema(34) - ema(8)}
set{var2,var1 * 100}
set{var3,var2 / ema(34)}

CLOSE ABOVE EMA(8)
CLOSE IS LESS THAN 20 PERCENT EMA(8)
var3 above 20


]



heypa
283 posts
msg #70397
Ignore heypa
1/5/2009 12:36:56 PM

Chetron My code may not have been quite right.
However:
It passes debug.
It produces qualifying stocks.
Not as many as if done "correctly",but sufficient number to have a good amount to select from.
The number varies if you mix and match synonyms.
Lastly for poor old dumb me it is easier to write in the fabled Stockfetcher" just write it out in plain English".

heypa
283 posts
msg #70398
Ignore heypa
1/5/2009 12:39:28 PM

Chetron. trx22 seems to be asking for an "or". Have to use TRO's work around.

chetron
2,817 posts
msg #70400
Ignore chetron
1/5/2009 12:48:14 PM

SORRY IF I MISSPOKE, HEYPA. YOU ARE RIGHT, I FORGOT ABOUT THE STOCKFETCHER WORDING DIFFERENCES. THANK YOU FOR YOUR INPUT.



chetron
2,817 posts
msg #70401
Ignore chetron
1/5/2009 1:24:02 PM

the math should be the same???????????

Fetcher[


set{var1,ema(34) - ema(8)}
set{var2,var1 * 100}
set{var3,var2 / ema(34)}
set{var4,ema(34)/ema(8)}

add column var3
add column ema(34) divided by ema(8)
add column var4

symlist(dug)
offset 1/2/09
]



StockFetcher Forums · General Discussion · formula language -- is the following correct<< 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 2016 - 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