StockFetcher Forums · Filter Exchange · Need some help with MA crossover script.<< >>Post Follow-up
edbrady
10 posts
msg #73314
Ignore edbrady
modified
4/5/2009 7:08:45 AM

This is not complicated, however, one the MA's have an offset.

Looking for a script that will show stocks where:

2 period SMA crosses the 3 period SMA, but the 3 period SMA has an offset of 3.

R U gents familiar with offsets?

Ed

chetron
2,817 posts
msg #73315
Ignore chetron
modified
4/5/2009 7:28:54 AM

maybe.....


i was right the 1st time.....


Fetcher[

ma(2) crossed above ma(3) 3 day ago

]





Fetcher[

set{vma2,ma(2)}
set{vma3-3,ma(3) 3 day ago}
set{vtrig,count(vma2 crossed above vma3-3,1)}

draw ma(2) on plot price
draw ma(3) on plot price

draw vtrig
add column vtrig

close above .1
volume above 100000

sort column 5 descending

]



edbrady
10 posts
msg #73320
Ignore edbrady
4/5/2009 2:42:31 PM

Thanks man - I have some other Tech Indicators that I may need help with, but I will take a stab at it.

edbrady
10 posts
msg #73321
Ignore edbrady
4/5/2009 2:50:19 PM

So, what's the 'vtrig'?

edbrady
10 posts
msg #73322
Ignore edbrady
4/5/2009 3:00:57 PM

And here is the offset definition, not sure if you had it:

The “Offset” field allows you to slide the Moving Average backwards or forwards in time, in one time
period steps. A value of zero means do not slide it at all. A value of one means to calculate the
Moving Average, but slide it forward one time period when it is displayed. The Moving Average
value will be the same, it will just be slid forward.

chetron
2,817 posts
msg #73325
Ignore chetron
4/5/2009 4:27:46 PM

vtrig just shows you every occassion of a ma2x of ma3-3.



StockFetcher Forums · Filter Exchange · Need some help with MA crossover script.<< >>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