Skip to main content

Buy and Sell on MACD Spikes for Amibroker (AFL)

ahmedkhan over 11 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 3)
  • Tags:
    trading system, amibroker

Hi this formula simply generates scan signals on the basis of MACD Histogram spikes increasing in height of decreasing.

Indicator / Formula

Copy & Paste Friendly
diff = MACD(12, 26) - Signal(12,26,9);

Buy = (diff < 0) & (diff > Ref(diff,-1));
Sell = (diff > 0) & (diff < Ref(diff,-1));


Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy ); 

0 comments

Leave Comment

Please login here to leave a comment.