scanning manager questions

Optuma Forums Optuma Scripting scanning manager questions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #62191
    • Topics: 21
    • Replies: 13
    • Posts: 34

    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,


    • Topics: 71
    • Replies: 880
    • Posts: 951

    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:

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest