StockFetcher Forums · Filter Exchange · Something I have been working on that I think is self explanatory.<< 1 2 >>Post Follow-up
SAFeTRADE
644 posts
msg #157513
Ignore SAFeTRADE
modified
9/8/2021 6:43:39 AM

I call this Trading the Kitchen Sync!


Fetcher[
symlist(xlb,xle,xlf,xli,xlk,xlp,xlt,xlu,xlv,xly,xlre,iau,tlt,spy)
set{buy, count(rsi(2) crossed above 50,1)}
set{sell, count(rsi(2) crossed below 20,1)}
set{rs5, indposition(close,5)*100}
set{rs5_5ago, rs5 5 days ago}

set{rs10, indposition(close,10)*100}
set{rs20, indposition(close,20)*100}
set{rs45, indposition(close,45)*100}
/* Plot Macd(8,21,5) on price */
set{f, 8 + 1}
set{s, 21 + 1}
set{fastcoef, 2.00 / f}
set{slowcoef, 2.00 / s}

set{ema3, ema(8)}
set{ema6, ema(21)}

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,5)}
set{cls2, close}
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 e_ema on plot price
/* END Plot macd(8,21,5) on plot price */
add column rs5_5ago
add column rs5
add column rs10
add column rs20
add column rs45
draw macd(8,21,5)
draw buy
draw sell
draw macd(3,5,3)
draw Stochastic %K(5,3,3)
draw rs5_5ago on plot rs20
draw rs5 on plot rs20
sort column 6 descending


set{overbought,50}
set{oversold, 50}
set{OB1, rs5 - overbought}
set{OS1, rs5_5ago - oversold}
set{OB2, OB1 /1000}
set{OS2, OS1 / 1000}
set{OB3, close * OB2}
set{OS3, close * OS2}
set{rs5c, close - OB3}
set{rs5p, close - OS3}
set{x,Min(rs5c,rs5p)}
draw x on plot price
draw rsi(2) line at 20



/*draw rs5c on plot price*/
/*draw rs5p on plot price*/

]



chi-town
44 posts
msg #157517
Ignore chi-town
9/8/2021 11:48:37 AM

I like it.

chi-town
44 posts
msg #157518
Ignore chi-town
9/8/2021 1:00:36 PM

I ran Portfolio Visualizer
The results were 2017 to 8/2021
Cagr +22%
Worst year +13%
Max Draw Down -8%

Mactheriverrat
3,153 posts
msg #157519
Ignore Mactheriverrat
9/8/2021 8:23:14 PM

Very interesting!!!!!

@safeTRADE
Can you explain your below code of your filter

set{f, 8 + 1}
set{s, 21 + 1}
set{fastcoef, 2.00 / f}
set{slowcoef, 2.00 / s}

set{ema3, ema(8)}
set{ema6, ema(21)}

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,5)}
set{cls2, close}
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 e_ema on plot price

Cheese
1,374 posts
msg #157520
Ignore Cheese
9/8/2021 8:32:32 PM

Thank you, SAFeTRADE
I have same question as Mac.
Also, you plotted e-ema and x on plot price
What additional insights does x give you?

Mactheriverrat
3,153 posts
msg #157521
Ignore Mactheriverrat
9/8/2021 10:16:51 PM

I like that e_ema on the charts

Cheese
1,374 posts
msg #157523
Ignore Cheese
9/8/2021 10:46:13 PM

https://www.stockfetcher.com/forums/Filter-Exchange/Something-I-have-been-working-on-that-I-think-is-self-explan/157513

@SAFeTRADE
How does d1 help you with your trading?
Thanks.

set{cls2, close}
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}

SAFeTRADE
644 posts
msg #157524
Ignore SAFeTRADE
9/9/2021 2:06:39 AM

Mac the code below is to plot MACD on price.

@safeTRADE
Can you explain your below code of your filter
I have not printed all three lines on e_ema

draw e_ema on plot price

_____________________________________________

Cheese I do not plot d1. d1 plots the zero line or a close approximation of it.

see below

@safeTRADE
Can you explain your below code of your filter

Fetcher[set{f, 8 + 1}
set{s, 21 + 1}
set{fastcoef, 2.00 / f}
set{slowcoef, 2.00 / s}

set{ema3, ema(8)}
set{ema6, ema(21)}

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,5)}
set{cls2, close}
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 e_ema on plot price
draw e on plot price
draw d1 on plot price
symlist(spy)
draw macd(8,21,5)
]



SAFeTRADE
644 posts
msg #157525
Ignore SAFeTRADE
9/9/2021 2:18:39 AM

Cheese, probably would be better to plot rs5c instead. Price above rs5c market is in up trend below
it would be in downtrend. One cannot see that very well unless one looks at inverse etf's such as
SPXS,SQQQ,SDOW.

Cheese
1,374 posts
msg #157526
Ignore Cheese
9/9/2021 9:55:02 AM

https://www.stockfetcher.com/forums/Filter-Exchange/Something-I-have-been-working-on-that-I-think-is-self-explan/157513
SAFeTRADE 9/9/2021 2:18:39 AM
Cheese I do not plot d1. d1 plots the zero line or a close approximation of it.
Cheese, probably would be better to plot rs5c instead. Price above rs5c market is in up trend below
it would be in downtrend. One cannot see that very well unless one looks at inverse etf's such as
SPXS,SQQQ,SDOW.
====================================================================================

THANK YOU, SAFeTRADE for your great e_ema rs inventions and explanations.


StockFetcher Forums · Filter Exchange · Something I have been working on that I think is self explanatory.<< 1 2 >>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.