AD line for my Portfolio

Optuma Forums Optuma Scripting AD line for my Portfolio

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #60377
    • Topics: 11
    • Replies: 4
    • Posts: 15

    Hey guys, I have been searching the forum for a code to allow me to build an AD line for my portfolio, could anyone help me on this… that would be great!


    • Topics: 56
    • Replies: 478
    • Posts: 534

    I replied to Grant elsewhere, but for the benefit of others here’s how to build a cumulative advance/decline line in the custom Market Breadth module. It calculates the net difference each day between advances (Change()>0) and declines (Change()<0):


    • Topics: 29
    • Replies: 1,474
    • Posts: 1,503

    Just to add to this, the reason Darren’s script works is that we treat Boolean values as 0 for false and 1 for true. So we can sum up true values to get a count.

Viewing 3 posts - 1 through 3 (of 3 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.