Skip to main content

Behgozin Trend Finder for Amibroker (AFL)

hotaro3 almost 14 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 6)
  • Tags:
    amibroker

this is a simple and powerful trend finder. It based on 7, 15 and 30 days and accuracy between these trend lines with price is very good. points in the trend lines with changing slope signs from negative to positive vice versa shows price trend changing that is very useful parameter for buy or sell decision. The First part of program is only original program for drawing closed price. I hope it be useful for all of you

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorWhite ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

SetChartBkGradientFill(1,23);

_SECTION_BEGIN("Behgozin Trend Finder");
Tr1 = Ref(C,3);
Tr2 = Ref(C,7);
Tr3 = Ref(C,15);
Trend1 = 1.1*MA(Tr1,7);
Trend2 = 1.1*MA(Tr2,15);
Trend3 = 1.1*MA(Tr3,30);
Plot(Trend1,"Behgozin Trend in 7 Days",colorYellow,styleLine+styleDots|styleThick);
Plot(Trend2,"Behgozin Trend in 15 Days",colorBlue,styleLine+styleDots|styleThick);
Plot(Trend3,"Behgozin Trend in 30 Days",colorGreen,styleLine+styleDots|styleThick);
_SECTION_END();

5 comments

4. gopal
over 13 years ago

Hi,
Request you to please add price chart to this indicator.
Regards,
Gopal

Leave Comment

Please login here to leave a comment.