StockFetcher Forums · Filter Exchange · An Interesting XIV VXX and SPY Filter<< 1 2 3 4 5 ... 6 >>Post Follow-up
SAFeTRADE
646 posts
msg #132806
Ignore SAFeTRADE
11/26/2016 9:35:55 AM

pthomas, I do not know what to tell you about gaps, except that I would probably only buy the first
gap if it came on a buy signal.

pthomas215
1,251 posts
msg #132807
Ignore pthomas215
11/26/2016 10:25:00 AM

That is a great point.Thanks for the help.

jackmack
334 posts
msg #132852
Ignore jackmack
11/28/2016 8:47:05 AM

SAFeTRADE
Thank you so much for sharing this.
I see the exit signal now for on macd3 when macds crosses below macdf.
I am still finding it hard to change the code so there is a buy signal when macds crosses above macdf.
Can you help me with that?


SAFeTRADE
646 posts
msg #132853
Ignore SAFeTRADE
11/28/2016 10:18:55 AM

I posted the code back on 11/25.

Safetrade

jackmack
334 posts
msg #132861
Ignore jackmack
11/28/2016 1:30:19 PM

I guess what I am failing to ask is how do you code it to indicate just the cross above and below for this;

set{dustcls, ind(dust,close)}
set{nugtcls, ind(nugt,close)}

set{macds, MACD Fast Line(3,6,9)}
set{macdf, MACD Slow Line(3,6,9)}
set{n, 0}

set{macxv, count(macdust crossed above macnugt,1)}
set{macvx, count(macnugt crossed above macdust,1)}
set{m, 0}

draw macds on plot n
draw macdf on plot n

symlist(spy,dust,nugt)

If you review a chart you see on NUGT when (macds) crosses above macdf it can be used as a buy signal and conversely the cross below could be used as a signal to enter DUST.

I am asking how you would code it to give the signal on the cross above and below.

Sorry to be a pain but I just can't seem to make it work.
Can you help with this please?
Thank you


shillllihs
6,047 posts
msg #132867
Ignore shillllihs
modified
11/28/2016 10:53:39 PM

These filters may be the greatest thing I've seen here.

Give the award to Safe, Kevin could get the lifetime achievement award.

pthomas215
1,251 posts
msg #132868
Ignore pthomas215
11/29/2016 12:14:18 AM

the votes are in. SAFeTrade won the award, making stockfetcher great again.

I shorted XIV tonight, based upon the MACD crossover that took place on the XIV chart. we'll see. I might be too early on it.

SAFeTRADE
646 posts
msg #132871
Ignore SAFeTRADE
11/29/2016 12:33:59 AM

My attempt to place the MACD plotted on price. Not exact. I like having the zero line price.

Fetcher[
set{f, 3 + 1}
set{s, 6 + 1}
set{fastcoef, 2.00 / f}
set{slowcoef, 2.00 / s}

set{ema3, ema(3)}
set{ema6, ema(6)}

set{a, ema3 * fastcoef}
set{b, ema6 * slowcoef}
set{c, a - b}
set{d, fastcoef - slowcoef}
set{e, c / d}
set{e_ema, cema(e,6)}
set{cls, close}


draw e_ema on plot price
draw e on plot price
draw d1 on plot price
draw price line at d1

symlist(xiv,vxx)





set{a1,1 - fastcoef}
set{a2, a1 * ema3}
set{b1,1 - slowcoef}
set{b2, b1 * ema6}
set{c1, a2 - b2}
set{c2, 0 - c1}
set{d1, c2 / d}
draw d1 on plot price

add column e{mfastline}
add column e_ema{mslowline}
add column d1{zeroline}

draw macd(3,6,9)
]



SAFeTRADE
646 posts
msg #132872
Ignore SAFeTRADE
11/29/2016 12:54:31 AM

Hope this is what you are looking for jackmack.

Fetcher[


set{macdf, MACD Fast Line(3,6,9)}
set{macds, MACD Slow Line(3,6,9)}
set{n, 0}

set{buy, count(macdf crossed above macds,1)}
set{sell, count(macdf crossed below macds,1)}



draw macds on plot n
draw macdf on plot n

draw sell on plot buy


symlist(spy,dust,nugt)

]



pthomas215
1,251 posts
msg #132877
Ignore pthomas215
11/29/2016 11:33:47 AM

safetrade, thanks.

StockFetcher Forums · Filter Exchange · An Interesting XIV VXX and SPY Filter<< 1 2 3 4 5 ... 6 >>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.