%B AD
When developing a custom trading strategy with AFL code in Amibroker, having quality Amibroker data is crucial for accurate backtesting and analysis. High-quality data helps traders to identify trends, patterns and refine their trading strategies for improved profitability. Invest in accurate and reliable data sources to enhance your trading decisions with Amibroker.
P = ParamField("Price field",-1); Periods = Param("Periods", 17, 2, 100, 1 ); Width = Param("Width", 2, 0, 10, 0.05 ); //Color = ParamColor("Color", colorCycle ); //Style = ParamStyle("Style"); //Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), Color, Style ); //Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), Color, Style ); BBWAD= BBandTop(AccDist(), Periods, Width) - BBandBot(AccDist(), Periods, Width); bAD= (AccDist() - BBandBot(AccDist(), Periods, Width)) / BBWAD; Plot( bAD, "%b of AD", colorRed);