StockFetcher Forums · Filter Exchange · EMA CROSS AND DMA CROSS<< >>Post Follow-up
roca1018
108 posts
msg #143744
Ignore roca1018
6/7/2018 5:35:05 AM

Looking for help in writing a simple figure that screens for EMA(4) crossing EMA(10) at the same time as a DMA Crossover. I am not code savvy.

Thanks

Rich



glgene
554 posts
msg #143748
Ignore glgene
6/7/2018 2:14:10 PM

What are the parameters of your desired DMA crossover?

roca1018
108 posts
msg #143751
Ignore roca1018
6/8/2018 5:21:26 AM

DMA(8,-5),4 crossing above DMA(8,-5),4

Thanks

Rich

roca1018
108 posts
msg #143760
Ignore roca1018
6/9/2018 8:34:55 AM

I meant DMA(8,-5),4 crossing above DMA(8,-5),8

Thanks

Rich

glgene
554 posts
msg #143761
Ignore glgene
6/9/2018 5:02:21 PM

Rich,
Thanks for the fix. I was wondering about your “crossover” DMA... where’s the cross? But now, you’re appropriately showing 2 different numbers so a cross can occur.

That said, I have to admit I’m not sure what you mean when you say, for example: DMA(8,-5), 4

I understand your EMA info, but the above??

Gene


roca1018
108 posts
msg #143762
Ignore roca1018
6/10/2018 7:37:53 AM

Mactheriverat has a filter for the DMA crossover. I want to combine that with the EMA crossover

Thanks

Rich

davesaint86
503 posts
msg #143766
Ignore davesaint86
6/10/2018 9:04:18 PM

Save and modify this filter to give you what you want.


Fetcher[
apply to symlist(mdy,qqq,rpv,vgt,cwb,iwr,jnk,pcy,tlt,ief,shy,psq,sh)
draw Bollinger Bands(18,2)
draw Average Volume(30)


draw ema(18)
draw ema(90)

draw ema(200)

Set{cntcmadma1abovecmadma8,count( cma(DMA(8,-5),1) > cma(DMA(8,-5),8) ,1)}
draw cntcmadma1abovecmadma8

Set{cntcmadma1abovecmadma8b,count( cma(DMA(8,-5),1)< cma(DMA(8,-5),8) ,1)}

draw cntcmadma1abovecmadma8b

/* AxA is number of consecutive days cma(DMA(8,-5),1) above (+)/below(-) previous cma(DMA(8,-5),8) */
set{AAb,days( cma(DMA(8,-5),1) is above cma(DMA(8,-5),8) ,250)}
set{AAa,days( cma(DMA(8,-5),1) is below cma(DMA(8,-5),8) ,250)}
set{dmax8, AAa - AAb} and add column dmax8 {dma_x_1over8}
do not Draw AxA


Set{cntcmadma8abovecmadma8,count( cma(DMA(8,-5),8) > cma(DMA(8,-5),8) 1day ago,1)}
draw cntcmadma8abovecmadma8

Set{cntcmadma8abovecmadma8b,count( cma(DMA(8,-5),8)< cma(DMA(8,-5),8) 1day ago,1)}

draw cntcmadma8abovecmadma8b

do not draw dma(8,-5),8)


set{E3,dma(8,-5),8)-cma(DMA(8,-5),8) }
set{Fastdma8Longposition, count(E3 > 0,1)}
set{Fastdma8Shortposition, count(E3 < 0,1)}
SET{TRIGGER,0}
draw Fastdma8Longposition on plot
draw Fastdma8Shortposition on plot
draw cma(DMA(8,-5),1)
draw cma(DMA(8,-5),8)
draw Force Index(13)
draw Force Index(13) line at 0
set{E6,weekly dma(8,-5),8)-weekly cma(DMA(8,-5),8) }
set{wLongposition, count(E6 > 0,1)}
set{wShortposition, count(E6 < 0,1)}
SET{wTRIGGER,0}
and draw Slow Stochastic(14,3) Fast %K line at 20.00 and draw Slow Stochastic(14,3) Fast %K line at 80.00
and draw Slow Stochastic(14,3) Fast %K line at 50.00
and draw Slow Stochastic(5,1) Fast %K line at 20.00 and draw Slow Stochastic(5,1) Fast %K line at 80.00 and draw Slow Stochastic(5,1) Fast %K line at 50.00
draw macd(8,17,5)
set{E4, TSI(5,5,9) - Smoothed TSI(5,5,9)}
set{TDLongposition, count(E3 > 0,1)}
set{TDShortposition, count(E3 < 0,1)}
SET{TDTRIGGER,0}


set{E9, close above ma(18)}
set{DLongposition, count(E9 > 0,1)}
set{DShortposition, count(E9 < 0,1)}
SET{DTRIGGER,0}
set{vmult, atr(10) * 1.5}
set{vstopu1a, low 5 day low + vmult}
set{vstopu2a, close + vmult}
set{vstop, min(vstopu1a 1 day ago,vstopu2a)}

set{CRS1, rsi(7),1)}
set{CRS2, rsi(14),1)}
set{CRS3, rsi(30),1)}
set{CCRS1, CRS1 + CRS2}
set{CCRS2, CCRS1 + CRS3}
set{CCRS3, CCRS2 /3}


set{CRS4, weekly rsi(7),1)}
set{CRS5, weekly rsi(14),1)}
set{CRS6, weekly rsi(30),1)}

set{WCRS1, CRS4 + CRS5}
set{WCRS2, WCRS1 + CRS6}
set{WCRS3, WCRS2 /3}
set{CWRSI1, CCRS3 + WCRS3}
set{C-RSI, CWRSI1 /2}
set{RSI30, RSI(30) - 50}
set{CRSI_Bar, RSI30}
draw CRSI_Bar
PlotType{CRSI_Bar,zerobar}
set{RSI14, RSI(14) - 50}
set{RSI14_line, RSI14}
draw RSI14 on plot CRSI_Bar
set{RSI7, RSI(7) - 50}
set{RSI7_line, RSI7}
draw RSI7 on plot CRSI_Bar
set{drsilong1, count(rsi(30) above 5, 1)}
set{drsilong2, count(rsi(7) above rsi(30), 1)}
set{drsilong3, count(rsi(14) above rsi(30), 1)}
set{drsilong4, drsilong1 + drsilong2}
set{drsilong5, drsilong4 + drsilong3}
set{drsilong, count(drsilong5 equals 3, 1)}
set{drsishort, count(drsilong5 less than 3, 1)}
SET{DRSITRIGGER,0}
draw drsilong on plot
draw drsishort on plot
set{IFT_Bar,IFT(4,1)}


set{wrsi1, weekly rsi(7)}
set{wrsi2, weekly rsi(30)}
set{wrsi3, count(wrsi1 > wrsi2,1)}
set{wrsilong, count(wrsi3 equals 1, 1)}
set{wrsishort, count(wrsi3 less than 1, 1)}

set{CRS21, ROC(21,1)}
set{CRS63, ROC(63,1)}
set{CRS126, ROC(126,1)}
set{CR1, CRS21 + CRS63}
set{C-RS, CR1 + CRS126}

set{wsto, weekly Slow Stochastics(14,3)}
set{dsto, Slow Stochastics(14,3)}
set{wdsto, wsto + dsto}
set{CSTO, wdsto / 2}

set{TWRSI7, weekly RSI(7)}
set{TWRSI14, weekly RSI(14)}
set{TWRSI30, weekly RSI(30)}
set{TWRSI1, TWRSI7 + TWRSI14}
set{TWRSI2, TWRSI1 + TWRSI30}
set{A-WRSI, TWRSI2 / 3}

set{TDRSI7, RSI(7)}
set{TDRSI14, RSI(14)}
set{TDRSI30, RSI(30)}
set{TDRSI1, TDRSI7 + TDRSI14}
set{TDRSI2, TDRSI1 + TDRSI30}
set{A-DRSI, TDRSI2 / 3}
set{E10, close above Upper Bollinger Bands(18,2)}
set{BBLongposition, count(E10 > 0,1)}
set{BBShortposition, count(E10 < 0,1)}
SET{BBTRIGGER,0}
set{var,ind(^vix,close)}
set{var1,ind(^vxv,close)}
set{ratio,var/var1}
add column sl-var
add column separator
add column vstop
add column separator
add column BBLongposition{BBSell}
add column separator
add column Fastdma8Longposition {DMA8}
add column separator
add column TDLongposition{DTSI}
add column separator
add column drsilong {DRSI}
add column separator
add column DLongposition {MA18}
add column separator
add column wLongposition {wdma8}
add column separator
add column wrsilong {WRSI}
add column separator
ADD COLUMN ROC(126,1) {6 mth %}
add column separator
ADD COLUMN ROC(63,1) {3 mth %}
add column separator
ADD COLUMN ROC(21,1) {1 mth %}
add column separator
add column C-RS
add column separator
add column Upper Bollinger Bands(18.2) {Up-BB}
add column separator
add column lower Bollinger Bands(18.2) {Low-BB}
ADD COLUMN SEPARATOR
add column weekly Slow Stochastics(14,3){wSto}
ADD COLUMN SEPARATOR
add column Slow Stochastics(14,3){dSto}
ADD COLUMN SEPARATOR
add column csto
ADD COLUMN SEPARATOR
add column A-WRSI
ADD COLUMN SEPARATOR
add column A-DRSI
ADD COLUMN SEPARATOR
add column c-rsi
ADD COLUMN SEPARATOR
add column IFT(4,1) {dift}
add column separator
add column weekly IFT(4,1) {wift}
add column separator

add column rsi(7){drsi7}
add column separator
add column rsi(14){drsi14}
add column separator
add column rsi(30){drsi30}
add column separator
add column RSI(2)
add column separator
add column ratio
add column separator
add column atr(21) {Atr}
add column separator
add column average day range (21){ADR%}
do not draw MACD(12,26)
do not drawn line 0
do not draw MA(250)
do not draw MA(50)
do not draw EMA(250)
SORT COLUMN 45 DESCENDING
chart-time is 75 days
]



roca1018
108 posts
msg #143770
Ignore roca1018
6/11/2018 5:38:56 AM

thanks

Rich

ahcsim72
151 posts
msg #143970
Ignore ahcsim72
6/30/2018 10:06:01 PM

That’s a long filter

StockFetcher Forums · Filter Exchange · EMA CROSS AND DMA CROSS<< >>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 2018 - 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