This is a further development of the last two posts on aggregated signal generation. It shows how to implement the idea in conjunction with another indicator. In this case general rule for long and short entry: the aggregated curve (gray) must cross the mid-line. Colored columns serve as an early warning. Settings were tested with EURUSD in 5m, 30m and 1H TFs.
Minor fix connected with a scaling function.
@capissimo, I understand and you're certainly correct in your explanation. I agree. I've been using MT4 for many years and now trying Tradingview because of the community. I saw "highest" and "lowest" in the code. I think it was for the scale of the indicator. I'm trying to learn pinecode so its all new coding for me. Definitely different than SQL. Thanks for the indicator, ill try it out, it may offer something ive been looking for.