Boring / Base Candle Detection for Amibroker (AFL)
patademahesh about 6 years ago Amibroker (AFL)
This AFL detects Boring/Base candle if its body (open-close) is less than 50% of candle size (high-low) and changes its color to blue. This is very useful in price action trading.
Screenshots
Indicator / Formula
Copy & Paste Friendly
body (open-close) is less than 50% of candle size (high-low)
normalCandle = (Open < Close);
baseCandle = abs(Open-Close)/abs(High-Close) < 0.5;
BarColor = Iif( baseCandle, colorBlue, IIf(normalCandle, colorGreen, colorRed) );
// set color
Plot( Close, "Price", BarColor, styleCandle );
//PlotOHLC(open, high, low, close, "This is base candle", BarColor, styleCandle);10 comments
Leave Comment
Please login here to leave a comment.
minor correction.
nice
its Very good last few days i am working nice result
It does not repaint for you ???
yes. It does. Remove default price study and add this.
@sku91 what is the code about?
Code backtest results gives good but it repaints.
How to use the code in live trading?
@sku19 can you please let me know your contact details like email or number please
there is an error coming in this indicator sir what will be the solution if you do not mind give you mobile number