StockFetcher Forums · Filter Exchange · EMA and Dollar Filter needs cleaning up please<< >>Post Follow-up
DMOBRIEN
363 posts
msg #79559
Ignore DMOBRIEN
9/18/2009 4:03:50 AM

Can someone please help find the average of the sum of the 5 ema's and then express the convergence of this value with the ema (80) as a %difference?

Fetcher[
draw ema (20)
draw ema (40)
set{avg, ema (9) + ema (20) + ema (40) + ema (80) + ema (100)}
avg > ema (80)
add column avg
price > .02
average volume (100) > 100000
volume > average volume (50)
draw avg on price plot
rsi (2) > rsi (2) one day ago
set {dollars,CLOSE * average volume (30)}
add column dollars
set{var1, ema (80) / avg}
set{ var2, var1 * 100}
add column var2
and sort column 7 descending
]






Kevin_in_GA
4,599 posts
msg #79659
Ignore Kevin_in_GA
modified
9/19/2009 9:21:22 AM

Can someone please help find the average of the sum of the 5 ema's and then express the convergence of this value with the ema (80) as a %difference?

You can't do more than one mathematical operation when defining a new variable

Fetcher[

/*SET ALL OF YOUR VARIABLES UP FIRST*/
set{dollars,CLOSE * average volume(30)}
set{var1, ema(9) + ema(20)}
set{var2, ema(40) + ema(80)}
set{var3, var1 + var2}
set{sum, var3 + ema(100)}
set{avg,sum / 5}
set{var4, ema(80) / avg}
set{ var5, var4 * 100}

avg > ema(80)
add column avg
price > .02
average volume(100) > 100000
volume > average volume(50)
draw avg on price plot
rsi(2) > rsi(2) one day ago

add column dollars

add column var5
draw ema(20)
draw ema(40)
and sort column 7 descending
]



This seems to work, but make sure that it is giving you the type of stocks you are screening for. Remember that you have structured this so that it sorts based on var5.

Kevin

chetron
2,817 posts
msg #79661
Ignore chetron
9/19/2009 10:38:49 AM

ALSO......

WHEN PICKING A CUSTOM VARIABLE NAME, YOU NEED TO TAKE INTO CONSIDERATION, RESERVED NAMES: SUCH AS "SUM". SUM IS RESERVED FOR THE SF COMMAND, YOU SHOULD NOT USE IT FOR A CUSTOM VARIABLE NAME OR YOU RISK CONFUSING THE SF PROGRAM. WHAT I LIKE TO DO IS ADD A "V" IF I WANT TO USE IT.

WHERE YOU PUT THE "DRAW" COMMAND IS IMPORTANT, IN RELATION TO FILTERING LINES.

PLOT COMES BEFORE THE DESTINATION.





Fetcher[


/*SET ALL OF YOUR VARIABLES UP FIRST*/
set{Vdollars,CLOSE * average volume(30)}
set{var1, ema(9) + ema(20)}
set{var2, ema(40) + ema(80)}
set{var3, var1 + var2}
set{Vsum, var3 + ema(100)}
set{Vavg,Vsum / 5}
set{var4, ema(80) / Vavg}
set{ var5, var4 * 100}
draw Vavg on PLOT price

Vavg > ema(80)
add column Vavg
price > .02
average volume(100) > 100000
volume > average volume(50)
rsi(2) > rsi(2) one day ago

add column Vdollars

add column var5
draw ema(20)
draw ema(40)
and sort column 7 descending
]



DMOBRIEN
363 posts
msg #79662
Ignore DMOBRIEN
9/19/2009 10:39:40 AM

Thanks for your time and energy Kevin ... I'm still at the low end of the learning curve but making progress.

Dave


DMOBRIEN
363 posts
msg #79663
Ignore DMOBRIEN
9/19/2009 10:57:15 AM

Man o man, ok guys that's a HUGE help. Still working conceptually on the relationship between dollar flow, Ema's, and internal strength while "the curtain's still drawn" so to speak.

StockFetcher Forums · Filter Exchange · EMA and Dollar Filter needs cleaning up please<< >>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.