//1.Buy when all three lines are become Red to Green or yellow and cover the position even one green become Red line next
//2.Sell when all the three line are become red and cove the position even one line become red to Green or yellow.
@MarxBabu, sorry i don't understand it. Please explain: How would the alert condition ever be triggered? How can Trend1 variable be equal to 1 and -1 at the same time? what is the difference between plaincg the negative 1 before the positive one on the second alertcondition? It appears to me that they would both be equivalent.
@MarxBabu, I believe @B120626 is referring to lines 76 and 77 where you have the condition "alertcondition(Trend1 == 1 and Trend1 == -1 ? Trend1 : na, title='Up Entry Arrow', message='Up Entry Arrow!')". It is not possible for (Trend1==1 and Trend1== -1) to ever be true.