Looking for a little assistance adding dots or tringles to MACD

I modified a the original MACD Study in ToS to draw up arrows on the Signal Line when Open Price is above a certain MA and down arrows when open is below that MA.

I am not looking for someone to do a conversion of this, just hoping someone could help me add an If statement to do something similar to the existing MACD within Tradovate.

You help is greatly appreciated in advance.
image