Supply and demand EA

 
Hello guys i developed an EA based on support and resistance using a support and resistance indicator that draws lines on the chart. The condition for a buy is once price touches the support line at the close of the candle it buys and if price touches the resistance line after the close of the candle it sells. but i did the best i could no errors of any sort but the EA does not open any orders please guys help. this are the codes for both the indicator and the EA
 
the indicator is the one that doesn't work
Reason: