How to build Mcclellan Oscillator in breath Module

Optuma Forums Optuma Scripting How to build Mcclellan Oscillator in breath Module

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #54257
    AvatarYan
    • Topics: 3
    • Replies: 5
    • Posts: 8

    Hello everyone,

    I want to know, if you guys have a way to build Mcclellan oscillator in the breath module ?

    If i build a normal scrpit, then both advanced and declined numbers should be calculated in another breath script?

    If that so, then it would be very complicated if we calculated different index datebase.

    What is your thought ?

    Yan

    #54259
    DarrenDarren
    • Topics: 43
    • Replies: 304
    • Posts: 347

    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
    #54265
    AvatarYan
    • Topics: 3
    • Replies: 5
    • Posts: 8

    Hi Darren,

    Thanks for replying.

    I brought up this question because i have a huge breath database which including 30+ sub index and 60+ sectors in China equities market.

    I used to look at my Mcclellan oscillator in my Chinese software, which can read easily up and down numbers directly.

    So if the software can’t have an special code for that, that would be huge work for every index and sectors.

    Maybe we could design a new inner code which can be applied for any database without defining in the new script ?

    That would be huge help for me.

    Yan

    #54285
    DarrenDarren
    • Topics: 43
    • Replies: 304
    • Posts: 347

    Thanks Yan. We are tied up with other projects at the moment so wouldn’t be able to do any custom development work at this time. However, if you have the up and down numbers already calculated and stored in a .csv file then that will make it easier as you won’t need to use the Breadth Engine to calculate them – you would just need to import the .csv files on which to create the oscillator.

     

    1 user thanked author for this post.
    Avatar Yan
    #54287
    AvatarYan
    • Topics: 3
    • Replies: 5
    • Posts: 8

    Thank you Darren, No worries, i support you guys. Just an idea, i can wait for years, you guys have already done wonderful works, everything would be better in the future. Cheers.

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

Close