Doug Hayman Posted July 24, 2023 Report Posted July 24, 2023 (edited) I'm running latest version of MT, which I updated to this morning. I have a chart with MACDHistogram with default values 12,26,9,Close,EMA I have a Custom scanner running the same default values, and have a logic portion looking for MacDHistogram positive crossover at 0: When the scanner crosses from negative to positive (as logic implies), it is not consistent with the Chart. Any clues? Edited July 24, 2023 by Doug Hayman Quote
Jerry Medved Posted July 24, 2023 Report Posted July 24, 2023 Please give example of what is wrong.. Quote
Doug Hayman Posted July 24, 2023 Author Report Posted July 24, 2023 (edited) Sorry hit Enter, before completing. My scanner logic is: if ((MACDHistogram[1] < 0) && (MacDHistogram > 0)) {fires alert} Edited July 24, 2023 by Doug Hayman Quote
Mike Medved Posted July 24, 2023 Report Posted July 24, 2023 The two should match. The easiest way to check is to set Scan value to the histogram's value, and compare the value you see on the portfolio to the one you see on the chart. The problem you're seeing may be a mismatch either in the candle size or in the extended hours between the chart and the scan. Those should be exactly same in order to match. 1 Quote
Doug Hayman Posted July 24, 2023 Author Report Posted July 24, 2023 Mike, thanks for the quick comeback. My Extended hours settings were different (duh!). Fixed that and all is consistent now. Thank you very much! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.