Reply To: how to script sums of A/D data

Optuma Forums Optuma Scripting how to script sums of A/D data Reply To: how to script sums of A/D data

  • Topics: 29
  • Replies: 1,483
  • Posts: 1,512

Hi David,

Do you have the data sets for the Advances and Declines?

Assuming that the first two lines get the respective data files (I can not remember what they are) then this should work.

adv1 = GetData(code={advance ticker});
dec1 = GetData(code={decline ticker});

// now we need to accumulate the values
accadv = ACC(adv1, bars=10);
accdec = ACC(dec1, bars=10);

// now we can do the division
accadv / accdec

If you don’t have the tickers then we can do it in the breadth engine instead. Let us know and we can update a script for that.

All the best


1 user thanked author for this post.

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.