StockFetcher Forums · General Discussion · Chart mark-up<< >>Post Follow-up
wallybaby
9 posts
msg #154760
Ignore wallybaby
11/27/2020 7:45:20 PM

I would like to make a mark on the chart, lets say, where a 20 sma crosses a 50 sma every time in the last 6 months. Is there a way to do this?

thanks

Walter


xarlor
585 posts
msg #154762
Ignore xarlor
11/27/2020 11:25:03 PM

Blue "ticks" at the bottom of the chart denote a cross.

Fetcher[
set{markup1,count(ma(20) crossed above ma(50),1)}
set{markup2,count(ma(20) crossed below ma(50),1)}
set{markup,markup1 + markup2}
markup > -1

draw ma(20)
draw ma(50)

chart-time 6 months
]



wallybaby
9 posts
msg #154764
Ignore wallybaby
11/28/2020 8:50:36 AM

Thanks man! Works great. I thought that I had seen it somewhere in the forum at an earlier time, but I could not find it.

nibor100
1,042 posts
msg #154765
Ignore nibor100
11/28/2020 2:03:27 PM

Here's a different view of Xarlor's approach:
Ed S.

Fetcher[
set{markup1,count(ma(20) crossed above ma(50),1)}
set{markup2,count(ma(20) crossed below ma(50),1)}
set{markup,markup1 + markup2}

/*markup > -1*/

draw markup multiply by ma(20) on plot price

draw ma(20)
draw ma(50)

chart-time 12 months close < 3300
sort by column 2 descending
]



nibor100
1,042 posts
msg #154766
Ignore nibor100
11/28/2020 4:43:17 PM

This one draws a horizontal line at the point of the most recent crossover:
Ed S.

Fetcher[
set{markup1,count(ma(20) crossed above ma(50),1)}
set{markup2,count(ma(20) crossed below ma(50),1)}
set{markup,markup1 + markup2}
set{M1, days(markup1 equals 1 ,100)} add column M1
set{var1, varoffset(ma(20), M1)} add column var1
/*markup > -1*/

set{mkup,markup * ma(20)}
draw price line at var1

draw ma(20)
draw ma(50)

chart-time 4 months close < 3300
sort by column 2 descending
]



nibor100
1,042 posts
msg #154767
Ignore nibor100
11/28/2020 4:49:58 PM

Using an idea from Styliten's recent filters, this draws a couple of extra lines that also crisscross at the 2 moving avg crossover points for easier spotting:
Ed S.

Fetcher[
dow 30
chart-time is 30 days

draw ma(20) draw ma(50)

draw cema(ma(20) multiply by 2,1) minus ma(50)on plot price
draw cema(ma(50) multiply by 2,1) minus ma(20)on plot price
]



nibor100
1,042 posts
msg #154768
Ignore nibor100
11/28/2020 5:08:39 PM

Using a different Styliten idea to emphasize the crossover points:
Ed S.

Fetcher[
dow 30
chart-time 12 months

draw ma(20)

and draw ma(20) multiply by 1.0004 on plot price
and draw ma(20) multiply by 1.0003 on plot price
and draw ma(20) multiply by 1.0002 on plot price
and draw ma(20) multiply by 1.0001 on plot price
and draw ma(20) multiply by 0.9999 on plot price
and draw ma(20) multiply by 0.9998 on plot price
and draw ma(20) multiply by 0.9997 on plot price
and draw ma(20) multiply by 0.9996 on plot price

draw ma(50)

and draw ma(50) multiply by 1.0004 on plot price
and draw ma(50) multiply by 1.0003 on plot price
and draw ma(50) multiply by 1.0002 on plot price
and draw ma(50) multiply by 1.0001 on plot price
and draw ma(50) multiply by 0.9999 on plot price
and draw ma(50) multiply by 0.9998 on plot price
and draw ma(50) multiply by 0.9997 on plot price
and draw ma(50) multiply by 0.9996 on plot price
]



wallybaby
9 posts
msg #154769
Ignore wallybaby
11/28/2020 8:31:15 PM

You guys are the best. Just goes to show you that there is more than one way to skin a cat.

Thanks

wallybaby

StockFetcher Forums · General Discussion · Chart mark-up<< >>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.