Trend Filter (Indicator) Problem

 
Hello, I have a problem. I am coding a small system to test it and now I am adding a trend filter which indicates the trend. The ea works at first, so he open the first and the second trade but then he dont open the other trades. If I use one the code for the Up trend for example without the trendindicator it works ! So where is my mistake ?
 
The problem is wth the parenthésis, program don't enter in the parenthesis where it should close order, maybe
 
what is parenthésis?
 
Something like >> { }
 
deysmacro: Something like >> { }

  1. () = Parentheses
  2. {} = Braces (US)/Curly brackets (UK)
  3. [] = brackets(US)/Square brackets (UK)
 
can't solve it :( anybody an idea ? 
Reason: