How to use MACD in AFL coding?

I want to ask, how can I use MACD in coding? for example I want to buy if the fast MACD12 cross MACD26 and the histogram higher than 0. thank you.

@christopher987,

See How to ask a good question.