Hello, I have a problem with a part of my strategy is to take the ups and downs of the ZigZag indicator, the problem is that the ZigZag indicator does not work well with purchase condition but with the condition of sale if it works for now I just want to open an operation in the ups and downs of the ZigZag, condition and the idea is:
candle close (1) -> Cross above ZigZag -> Sales Order (this works for me) 
candle close (1) -> Cross below ZigZag -> purchase order (not working me) 
Is it a system error ?, Am I doing something wrong ?, thanks for the help.