StockFetcher Forums · General Discussion · MACD Histogram Switch<< >>Post Follow-up
EdReddingII
5 posts
msg #158113
Ignore EdReddingII
11/29/2021 12:37:52 PM

Need help with MACD Histogram switch from below 0 to above 0 as I need to capture the first day the Histogram is over 0 line. Current Code I tried works for some of the stocks but a lot of them aren't capturing the move.
MACD Histogram (3,10,5) 1 day ago below 0
MACD Histogram (3,10,5) above 0

Another code I tried
count(MACD Histogram (3,10,5) above 0, 2) equals 1
MACD Histogram (3,10,5) 1 day ago below 0

nibor100
1,010 posts
msg #158114
Ignore nibor100
11/29/2021 2:03:18 PM

Your first two code lines:

MACD Histogram (3,10,5) 1 day ago below 0
MACD Histogram (3,10,5) above 0

seem to be working to me, can you provide an example of 1 or 2 of stocks that meet your criteria that those 2 lines are missing?

thanks,
Ed S.

EdReddingII
5 posts
msg #158118
Ignore EdReddingII
11/29/2021 10:38:11 PM

For instance VET and UEC the MACD appears to have already been above 0 when I look at the chart on Barchart or elsewhere on the daily chart.

nibor100
1,010 posts
msg #158119
Ignore nibor100
11/30/2021 3:55:43 AM

I looked at charts in VectorVest and the 3,10,5 MACD histograms match what SF is showing for VET, and UEC and is different from what Barchart charts are showing.

Curiously, when I look at SPY on all 3, SF has a different 3,10,5 MACD histogram and it appears SF has different open, high prices for some of the days than Barchart and VV do.

if you copy and paste your 2 lines of code below in the SF coding box and type "add column" in front of each line you can get the actual values SF is deriving

this was probably not much help,
Ed S.



EdReddingII
5 posts
msg #158120
Ignore EdReddingII
11/30/2021 10:07:22 AM

Thanks for looking into this for me!!!

StockFetcher Forums · General Discussion · MACD Histogram Switch<< >>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.