Pinescript entry with MACD cross over ONLY after a green candle

Viewed 21

I can't figure this out. I am testing a routine MACD crossover system that's built into Tradingview, but I only want the long trade to enter with the following conditions:

-MACD crosses over -The previous candle just before the cross over was GREEN.

I am trying to enter my code into this post, but it's not letting me.

0 Answers
Related