Skip to main content

Appel's ROC or The Triple Momentum Timing Model for Amibroker (AFL)

kaiji over 16 years ago Amibroker (AFL)

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

This is a buy & Hold indicator. I have coded Mr. Appels indicator as per his book. However, I have added BUY and Sell conditions as a point of reference only. Personally, I would use it as a exploration to identify possible long positions. Mr. Appel advice is, “There is only one buy rule and only one sell rule: You buy when the Triple Momentum Level, the sum of the 5-, 15-, and 25-day rates of change, crosses from below to above 4%. You sell when the Triple Momentum Level, the sum of the 5-, 15-, and 25-day rates of change, crosses from above to below 4%.”

By Mubashar Virk

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Appel's ROC");

x = ROC (C, 5);
y = ROC (C, 15);
z = ROC (C, 25);

A = x + y + z;

Plot (A, "Appel's ROC", colorRed);

Plot (4, "", colorBlack, styleNoLabel, styleDashed);

Buy = Cross (A,4);
Sell = Cross (4,A);
Filter = Buy OR Sell;

AddColumn( Buy, "Buy", 1);
AddColumn(Sell, "Sell", 1);
AddColumn(Close,"Close",1.2);
AddColumn(Volume,"Volume",1.0);

0 comments

Leave Comment

Please login here to leave a comment.