StockFetcher Forums · Filter Exchange · SPY ENTRY / EXIT<< >>Post Follow-up
ELEGANCE
3 posts
msg #159220
Ignore ELEGANCE
modified
6/17/2022 1:50:55 PM

Need a little help on this one

How would one script this;

Exit SPY when the spread between the MA90 and ma 200 < -1.3 you get out

Not sure if entry signal would be the reverse > - 1.3 on the spread

Anyone able to script this?

Thank you in advance

KSK8
561 posts
msg #159221
Ignore KSK8
6/17/2022 2:44:58 PM

Fetcher[
symlist(spy)

set{ma_spread, MA(200) - MA(90)}
set{exit, count(ma_spread < -1.3,1)}
set{entry, count(ma_spread > -1.3,1)}

draw exit
draw entry

add column ma_spread {ma200-ma90}
draw ma_spread
]



-THE KING

ELEGANCE
3 posts
msg #159222
Ignore ELEGANCE
6/17/2022 3:48:53 PM

Very nice

Actually looking for this - https://mobile.twitter.com/exposurerisk/status/1527361480521199640/photo/1

If you will notice it's not a direct spread between the 2 MA's rather the 2 MA's in relation to SPY price.

Not sure if I am explaining it correctly and maybe the image will assist.

It's very clever - nothing is perfect but this sure has a nice modelling to it.

KSK8
561 posts
msg #159223
Ignore KSK8
6/17/2022 3:55:48 PM

Interesting

snappyfrog
721 posts
msg #159224
Ignore snappyfrog
6/17/2022 8:21:30 PM

Maybe

Fetcher[
symlist(spy)

set{var1, ma(90) + ma(200)}
set{var2, var1 / 2}
draw var2 on plot price
set{var3, close / var2}
set{var4, var3 -1}
set{var5, var4 * 100}
draw var5 line 1.3
chart-length is 1 year
add column separator
add column var5
set{entry, count (var5 > 1.3,1)}
set{exit, count (var5 < 1.3,1)}
draw entry
draw exit
]



ELEGANCE
3 posts
msg #159225
Ignore ELEGANCE
6/17/2022 8:49:44 PM

@ snappy frog - I think you nailed it



snappyfrog
721 posts
msg #159226
Ignore snappyfrog
6/18/2022 9:01:02 AM

Side note: The difference between the MA(90) and MA(200) is MA(145)

If you plot the MA(145), you will see the lines are almost the same. Therefore;
one could just base the analysis on whether the SPY, QQQ, VTI, IWM,
or other index is above or below that moving average.

Just keeping it simple.

marine2
963 posts
msg #159230
Ignore marine2
modified
6/18/2022 3:45:43 PM

Thinking even simpler just use the Weekly Williams %R(10) crossing above -70 and using other statements to pin point a great entry point. Begin looking for an Exit point when it gets over -20. What the trend lines are showing in making your move. Refine your stocks to choose from with solid companies with low debt and having a good amount of cash. Find those stocks using filters in major investment services like Fidelity as an example. Or you can use your filter against well known ETF’s in our equity world.

Note: Exit any trade if your pick falls over 3%. You can always wait as it settles a little more before buying back in again. By getting out of a trade at minus 3% you save yourself the anguish if it going further downward movement. Eventually it will want to rise up again.

Happy investing.

StockFetcher Forums · Filter Exchange · SPY ENTRY / EXIT<< >>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.