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…
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.