Sum of an Indicator

Optuma Forums Optuma Scripting Sum of an Indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #67739
    Dan
    • Topics: 5
    • Replies: 0
    • Posts: 5

    I am trying to get the n-day sum of a breadth indicator. What is the best way to script that?

    Thanks,
    Dan

    #67741
    Matthew
    • Topics: 5
    • Replies: 631
    • Posts: 636

    Hi,

    We can use the ACC() function to sum up values across a selected number of bars.

    https://help.optuma.com/kb/faq.php?id=1026

    Here’s an example using a Breadth Code, summing the values of the last 5 bars…

    1 user thanked author for this post.
    #67749
    Darren
    • Topics: 71
    • Replies: 880
    • Posts: 951

    Hi Dan,

    If you’re looking to create a breadth thrust ratio see here (includes workbook):

    https://forum.optuma.com/topic/how-to-script-sums-of-a-d-data/#post-55333

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

Pin It on Pinterest