Page 185 of 389

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 2:06 am
by ujtrader
mrtools wrote: Wed Aug 25, 2021 1:50 am Have this version, there is also lsma included in the averages indicator.
Mr.tools Thankyou!!!
but strangly this one is ploting different line then trading view if i applied same settings
i am using some tool to generate binance mt4 charts offline. so feed is same..

Re: ALMA Crossover Strategy

Posted: Wed Aug 25, 2021 2:14 am
by erynade
global wrote: Tue Aug 24, 2021 4:53 am Hi erynade, I couldn't find all the indicators listed. Would you be so kind to package them all into a zip file with their mq4 source code if possible and include your template for the screenshot you posted. Your template looks great. Thanks.
hi global,

here is,


profit regards
erynade

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 2:34 am
by mrtools
ujtrader wrote: Wed Aug 25, 2021 2:06 am Mr.tools Thankyou!!!
but strangly this one is ploting different line then trading view if i applied same settings
i am using some tool to generate binance mt4 charts offline. so feed is same..
Can you try offset = 0 and shift = 0. I was thinking offset was shift but apparently not.

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 2:48 am
by ujtrader
mrtools wrote: Wed Aug 25, 2021 2:34 am Can you try offset = 0 and shift = 0. I was thinking offset was shift but apparently not.
ya if set offset and shift to 0 both are same but for some strategy wanted it with offset.

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 3:02 am
by sal
mrtools wrote: Mon Aug 23, 2021 4:10 am Have this version using a filter option(second picture) which has mtf already.
Dear mr.tools
Does TMA repaint!! viewtopic.php?f=579496&t=8414844&start=1814 ?
i would like to add BB channel and fitler BB arrows if its not repaint..
see snap[..

TMA HIGH LOW LINES
BAR CLOSE PRICE BREAKS OUTER CHANNEL below TMA high line - DOWN arrows

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 3:24 am
by mrtools
sal wrote: Wed Aug 25, 2021 3:02 am Dear mr.tools
Does TMA repaint!! viewtopic.php?f=579496&t=8414844&start=1814 ?
i would like to add BB channel and fitler BB arrows if its not repaint..
see snap[..

TMA HIGH LOW LINES
BAR CLOSE PRICE BREAKS OUTER CHANNEL below TMA high line - DOWN arrows
Tma doesn't repaint, have this bands version with a choice of atr or standard deviation (Bollinger) bands.

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 3:43 am
by ujtrader
hey Mrtools, I am not coder but was researching i came to following code which is claming that producing same output as pinescript linreg


Code: Select all

// Working, exactly matches pinescript implementation

// time order of series: [t-0, t-1, t-2 ] // reverse for ease of use later
let close = [5609.7, 5655.7, 5749.6].reverse();

close = [25.500000, 26.921875,29.531250].reverse();

console.log(

  linreg(close, 3, 0)

);

function linreg(source, length, offset)
{
  let begin = 0, end = length-1;
  let sumX = 0.0;
  let sumY = 0.0;
  let sumXSqr = 0.0;
  let sumXY = 0.0;

  for (let i=0; i<length; ++i)
  {
    // must calculate across X-axis =>   x-3, x-2, x-1, x = 0
    // hence the quick and dirty reverse() above.

    let val = source[begin+i];
    let per = i + 1;
    sumX += per;
    sumY += val;
    sumXSqr += per * per;
    sumXY += val * per;
  }

  var m = (length*sumXY - sumX*sumY) / (length*sumXSqr - sumX*sumX);
  var b = (sumY/length) - (m*sumX)/length +m ;
  return b + m * (length - 1 - offset);
}
can we have this implemented in the indicator !lsma nrp you posted earlier mt4 ?

Re: Moving Average indicators for MT4

Posted: Wed Aug 25, 2021 3:47 am
by sal
mrtools wrote: Wed Aug 25, 2021 3:24 am Tma doesn't repaint, have this bands version with a choice of atr or standard deviation (Bollinger) bands.
mr. tools
Thanks for the indicator, but the my rules are not following with bands TMA.
can you please do help to add bb bands with trend arrows with TMA high low channel.!

Re: Moving Average indicators for MT4

Posted: Thu Aug 26, 2021 5:30 am
by mrtools
tkhanfx wrote: Thu Aug 26, 2021 3:47 am Thank you for your timely reply Mr.Tools. I've found a version in the forums. would like to ask you to please add price and ma options. And the version i had posted had 2 signal input parameters, does that make a difference?
Added ma and price options. Please verify it works.

Re: Moving Average indicators for MT4

Posted: Thu Aug 26, 2021 5:40 am
by tkhanfx
mrtools wrote: Thu Aug 26, 2021 5:30 am Added ma and price options. Please verify it works.
Perfect work Mr.Tools. Ever grateful to you. Thank you!