Skip to main content

Bullish Outside Bar for Amibroker (AFL)

debug2043 almost 2 years ago Amibroker (AFL)

  • Rating:
    0 / 5 (Votes 0)
  • Tags:
    amibroker, bullish

Bullish Outside Bar which will compare today’s low to yday’s low and today’s close to yday’s high

Indicator / Formula

Copy & Paste Friendly
BullishOutsideBar = Low < Ref(Low,-1) 		
	AND	Close > (Ref(High,-1));			
Plot (BullishOutsideBar, "Bullish Outside Bar", colorAqua);
Buy = BullishOutsideBar;					
Sell = 0;					
period = 20; // number of averaging periods 
m = MA( Close, period ); // simple moving average
Buy = Cross( Close, m ); // buy when close crosses ABOVE moving average
Sell = Cross( m, Close ); // sell when closes crosses BELOW moving average

0 comments

Leave Comment

Please login here to leave a comment.