Add 2 filters to an already existing pinescript strategy

Job ID: 33731469

Budget: $10 – $30 CAD

I already have a strategy in pinescript, but I would like to add 2 filters to that existing script. Moon phases as well as MACD. My strategy has a signal bar as well as an entry bar. For the moon phases, I only want to take a trade if either the signal bar or the entry bar is on the day of or after a full moon for buys and a new moon for sells. For the MACD filter, I only want to buy is the signal bar has growing momentum and only want to take a sell if the entry bar has selling momentum.
Related categories: Pine Script Trading