macd buys and sells

Optuma Forums Optuma Scripting macd buys and sells

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59045
    AvatarJoshua
    • Topics: 6
    • Replies: 9
    • Posts: 15

    Hey all,

    I’m new to scripting and am in search of a little guidance.  Looking for a way to calculate and then graph the percentage of stocks that are on macd buy signals and macd sell signals in a given index… say the S&P 500.  Found the picture online..

    Any assistance appreciated!

    • This topic was modified 4 months, 2 weeks ago by AvatarJoshua Jones.
    Attachments:
    #59051
    ReubenReuben
    • Topics: 0
    • Replies: 21
    • Posts: 21

    Hi Joshua,

    You can recreate this one by building a Percent Breadth measure on the S&P500 using the following scripts:

    Buy

    Sell

    Best Regards,

    Reuben

    #59067
    AvatarJoshua
    • Topics: 6
    • Replies: 9
    • Posts: 15

    Hi Reuben,

    Thank you for the information.  Is there a way to tally these up for an index like the S&P 500 or NASDAQ 100?

    #59071
    ReubenReuben
    • Topics: 0
    • Replies: 21
    • Posts: 21

    You should be able to set the Codes to Include to be the S&P 500 or the NASDAQ 100 from the Lists section in the security selector. You can then set the Breadth Action to Percent, which is what was in the images you sent, or you can change it to Count if you want the actual numbers.

    Breadth Actions

    Hope this helps,

    Reuben

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