Reply To: How to build Mcclellan Oscillator in breath Module

Optuma Forums Optuma Scripting How to build Mcclellan Oscillator in breath Module Reply To: How to build Mcclellan Oscillator in breath Module

#54259
DarrenDarren
  • Topics: 66
  • Replies: 594
  • Posts: 660

Hi Yan,

Yes you would need to calculate the daily index advance and decline values in the Breadth engine using 2 separate scripts. Once created they can be used in the calculation for the McClellan Oscillator:

(19-day EMA of advances minus declines) – (39 day EMA of advances minus declines)

We calculate those advance/decline numbers for NYSE, Nasdaq and the S&P500 in our Breadth Measures data, so the formula to calculate a Custom Code symbol for the oscillator using would be as follows for the S&P500:

Capture

1 user thanked author for this post.
Avatar Yan

Pin It on Pinterest