// Downloaded From https://www.WiseStockTrader.com
_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();