New High New Low Index

Optuma Forums Optuma Scripting New High New Low Index

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61855
    AvatarDamian
    • Topics: 1
    • Replies: 1
    • Posts: 2

    Hi,
    I’m having difficulty formulating a New High New Low Index for US equities using the Market Breadth Module. I’ve formulated the following:
    1 day New High New Low Index using the following script
    H1 = HIGH() > HIGHESTHIGH(BACKTYPE=DAYS, BARS=1);
    L1 = LOW() < LOWESTLOW(BACKTYPE=DAYS, BARS=1);
    H1-L1
    and
    5 day New High New Low Index using the following script
    H1=HIGH() > HIGHESTHIGH(BACKTYPE=DAYS, BARS=5);
    L1=LOW() < LOWESTLOW(BACKTYPE=DAYS, BARS=5);
    H1-L1
    However, I’m getting exactly the same index when I formulate them. In addition, it doesn’t look right, too quick to revert to above and below zero.
    Other settings I’m using: Date range – last year; Data Timeframe – 1 day; Breadth action – Sum.

    Could you please advise where I am going wrong.
    Regards,
    Damian

    #61860
    MatthewMatthew
    • Topics: 5
    • Replies: 366
    • Posts: 371

    Hi,

    I’ve done some testing here using the scripts you provided and the settings you listed in the breadth module.  The final results are quite different on my system here, they are not showing identical results the way you are describing.

    Here are the two test codes using your scripts overlaid on top of each other:

    Ex2

    It maybe worth deleting the codes you’ve created and rebuild them.  If the issue remains once that’s done please send a copy of both breadth files to support for review.  They can be found here:

    Documents – Optuma – Local – Breadth

    #61873
    AvatarDamian
    • Topics: 1
    • Replies: 1
    • Posts: 2

    Hi Matthew,
    I did what you suggested and it worked a treat!
    Thanks very much for your time and efforts!
    Regards,
    Damian

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

Pin It on Pinterest