Sunteți pe pagina 1din 4

Type of AFL 

• Chart 
• Exploration and 
• Trading System (Buy‐Sell arrows) 

AmiBroker Edition & Version 

- Professional version 5.2 

 
‐ Specific time‐frame for which AFL should be written or generic for all time frames  

- Generic for all timeframe 

 
 If the AFL is Exploration then any extra columns that should be shown 

- AFL is exploration 
- Extra columns are 
o Ticker 
o Full name 
o Date 
o Close 
o Change %  
o Volume 
o Buy or Sell 
o Bollinger Band – if true, write “High of BB” or “Low of BB”  
o Stochastic – if true, write “Oversold” or “Overbought” 
o MACD Divergence – if true, write “bullish divergence” or “bearish 
divergence” 
o If buy, write “ recent low”, if sell, write “recent high” 
o 5p close 

   
If AFL is for trading System then  

• Buy Signal 
o Using zigzag of price.  Price falls below previous zigzag low (1low) with a 
close below 1low (low of candle).  Price stays below for n bar.  
Subsequently, price at 2low penetrates and closes above 1low.   This will 
constitute a buy on close signal based on price 
o Close of 2low must be higher than low of A 
o MACD‐H shows Bullish Divergence (12,26,9) 
o Optional filter (can set in parameter for these filter to be on or off) 

o Stochastic 9,3,3 is oversold (below 20) 
o Price is at low of Bollinger Band (20,2) 
o Buy candle closes above 5p (5‐period SMA) 
o Price closes above EMA 50 

Buy Signal illustration 

   
• Sell Signal 
o Using Zigzag of price. Price rise above previous zigzag high (1high) with a 
close above 1high.  Price stays above for n bar.  Subsequently, price at 2 
high penetrates and closes below 1high. This will constitute a sell on close 
signal based on price 

o Close of 2high must be lower than high of A 
o MACD‐H shows Bearish Divergence (12,26,9) 
o Optional filter (can set in parameter for these filter to be on or off) 

o Stochastic 9,3,3 is overbought (above 20) 
o Price is at high of Bollinger Band (20,2) 
o Sell candle closes below 5p (5‐period SMA) 
o Price closes below EMA 50 

   
 

• Basic Chart Display Style ‐ background colour is grey, up candle is white ‐ down 
candle colour is black, style (candlesticks).  

Exploration done on EOD data.  Must be able to plot buy or sell arrow at price chart. 

Optional:  

1.  Using also the zigzag, I would like to also include a modification of the buy or sell 
signal. For short signal, is it possible to plot a trendline connecting 1low and 2low 
and short when price closes below the support trendline?  This trade is true even 
if 2high is lower than 1high.  

   

2.  For buy signal, plot a trendline connecting 1high and 2high and long when price 
closes above the resistance trendline  

S-ar putea să vă placă și