Skip to main content

Pullback System No. 1 for Amibroker (AFL)

kaiji about 16 years ago Amibroker (AFL)

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

This is a short term pullback system that in only long. It buys on the open following a higher high after two lower closes and when the close is above the 50 day simple average.

The sell is on the day after a profit at the open or stopped after breaking the two day low.

By Jerry Coopmans

Indicator / Formula

Copy & Paste Friendly
// Pullback System # 1

condition1 = ref(c,-2) < ref(c,-3) and ref(c,-1) < ref(c,-2);
condition2 = h > ref(h,-1);
filter = c > ma(c,50);

buy = condition1 and condition2 and filter;
buyPrice = valuewhen( buy, open,1);
sell = c > buyPrice or l < ref(llv(l,2),-1);

buy = exRem(buy,sell);
sell = exRem(sell,buy);
 

2 comments

2. joeoil
over 14 years ago

This system is useless. It says buyprice is Open on the same day that High is going to be greater than yesterdays High. It’s an event that has not happen at Open.

Leave Comment

Please login here to leave a comment.