There is a public domain trading system (released in the early 2000s) that compares the hourly rate of change NYSE Advancing Issues to generate trades on the S&P 500*. Can this be programmed in Pine Editor on Trading view?
*as an example, on Tradestation, the buy and sell signals would appear...