Hello,
I'm new to pinescript but I have some basics in other language codes. I wanted to ask if it possible to add an alertcondition when all the bars of the indicator become green or red. There are two conditions in the code for it to happen. I think it's the leadMAColor
and maColor(ma, maRef)
but I dont know how to put them both into the same alert condition.
Thank you for responding