scanning manager questions

Optuma Forums Optuma Scripting scanning manager questions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62191
    AvatarJoshua
    • Topics: 9
    • Replies: 10
    • Posts: 19

    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

    #62195
    DarrenDarren
    • Topics: 63
    • Replies: 557
    • Posts: 620

    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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close