Tradingview (Pine Script) Multiple Time Frame

Job ID: 33627320

Budget: €30 – €250 EUR

I want to implement an indicator on different time intervals in Pine Script. The indicator should be calculated in a code with (4h , 2h and 1h). As an example process: In 4h a buy signal comes, then you should save it in (as a variable or array) . After a period of time, this time 2h would give a buy signal, store again in the array or variable. Then when 2 x buy signals come, the real buy signal should be as an alert condition.
I hope I was able to describe my problem. Explained even more simply: I would like to implement the process of being able to change and compare the time intervals with the mouse in a code. Just one code and one buyalert based on multiple time intervals.
Related categories: Pine Script