Pullback System No. 1 for Amibroker (AFL)
kaiji about 16 years ago Amibroker (AFL)
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
// 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
Leave Comment
Please login here to leave a comment.
very nice simble system thank you
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.