Skip to main content

ultimate trend for Amibroker (AFL)

ravi0055 about 13 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 5)
  • Tags:
    amibroker, chart

Help in to find main sustainable trend and remove noise.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN(" ultimate trend");
mtOpen = LinearReg( Open, 12 ); // calculate moving trend from open
mtHigh = LinearReg( High, 12 ); // calculate moving trend from open
mtLow = LinearReg( Low, 12 ); // calculate moving trend from open
mtClose = LinearReg( Close, 12 ); // calculate moving trend from open
// plot surrogate chart
PlotOHLC( mtOpen, mtHigh, mtLow, mtClose, "Surrogate", colorBlack, styleCandle );


_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.