MACD Zero line
-
Hello,
I am trying to create a MACD based ea where it only buys if the signal line crosses up, below the zero line and only buys if it crosses down, above the zero line. -
you mean both is in two different condition,but both open BUY?
-
This should help.
-
@bliinkboy I want to buy if the signal line crosses the MACD line AND it is below the zero line on the MACD. I know how to buy when it crosses the MACD line I'm just not sure how to make sure it only buys when below the zero line. I hope this makes sense.
-
Try this:
-
@l-andorrà Cool. Thank you for this example. Before, I wasn't able to understand how did the MACD crossover happened in MT4 as most of the examples on Youtube that I saw uses Tradeview or something and it had two lines in it, but on MT4 it's bars and a line.
-
@fideld003 You're welcome.