scanning manager questions

hi all,

i’ve written a script within the scanning manager that moves monthly macd as a trigger… wondering why all of the results show the first day of the month when a few of the codes didn’t trigger until the middle of the month.?. Is there a way to get the matched date to show the actual date of the trigger?

Thanks much,

Josh

Hi Josh,

All monthly candles are dated the first of the month, and if running on monthly timeframes only the open, high, low, and close for the month is loaded in to the scan engine. This means the monthly MACD value is constant and doesn’t change day to day. To illustrate this, put this monthly MACD formula in a Show View on a daily chart and you will see it plots stepped from month to month:

MACD(Month(PERIODAMOUNT=1), BAR1=12, BAR2=26, OSC=9)

The only solution I can think of is to run the scan on daily data and change the MACD parameters to longer term to match your monthly values, eg MACD(BAR1=260, BAR2=560, OSC=180) which is approximately the same as 12, 26, 9 months.