Skip to main content

Marva Mid R-Line Signal for Amibroker (AFL)

isfandi over 15 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 7)
  • Tags:
    trendline, amibroker

This is single Line function with Buy/Sell Arrow.
Note: Pls grab this formula into price chart
Hopefully usefull.
Isfandi

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Marva Mid R-Line Signal");
x = Cum(1);
lastx = LastValue( x ); 
Daysback = 10; 
aa = LastValue( LinRegIntercept( Close, Daysback) );
bb = LastValue( LinRegSlope( Close, Daysback ) );

y = Aa + bb * ( x - (Lastx - DaysBack) ); 
//Plot( Close, "Close", colorRose, styleCandle );
Plot( IIf( x >= (lastx - Daysback), y, -1e10 ), "LinReg", colorYellow );
per1=Param ("per1", 0.325,0.1,50,0.10);

perc=per1;
x1=BarIndex();xx=SelectedValue(x);
t1=SelectedValue(ValueWhen(PeakBars(C,perc)==0,x)) ;
H1=SelectedValue(ValueWhen(PeakBars(C,perc)==0,C)) ;
t11=SelectedValue(ValueWhen(TroughBars(C,perc)==0, x));
H11=SelectedValue(ValueWhen(TroughBars(C,perc)==0, C));
g=t1>t11;
shape=IIf(g,shapeHollowDownTriangle*(x==t1),shapeHollowUpTriangle*(x ==t11));
Color=IIf(g,colorRed,colorBrightGreen);
PlotShapes(shape,color);

_SECTION_END();

9 comments

over 15 years ago

Hi,
isfandi
You are a innovative person. Always try to share something interesting!
Thanks a lot.
May God bless you

3. gopal
over 15 years ago

Hi,

What is the bottom indicator in this screen shot.Can you please post the AFL?

over 15 years ago

Isfandi——-thank u very much for sharing the nice AFL. Is it for intraday trading afl?

Leave Comment

Please login here to leave a comment.