Revise existing pinescript to MTF

Job ID: 32321409

Budget: $10 – $30 USD

I am looking to revise and existing indicator to make it multi time frame.
The source of the free indicator is Reverse Stochastic [BApig Gift] on tradingview but I would like it to output a table that shows MTF stochastic slope direction and price.

*PS. As a beginner in Pinescript, I have tried my best to achieve it but I am stuck. Please see attached pinescript for the desired outcome.
Related categories: Pine Script