Attachments forums

List of attachments posted on this forum.


All files on forums: 135909

Re: MACD indicators for MT4

khtauon, Thu Dec 31, 2020 6:37 pm

mladen wrote: Thu Dec 31, 2020 4:38 am Instead of limiting the number of calculated bars, change line 287 from this :
return(0);

to this
return(rates_total);

Right now with default settings, the indicator will calculate 4000 bars on each tick and I doubt that it will beat the 1 calculated bar on a new tick when that line is changed
Also 5 out of 6 loops is not needed - one single loop will do all the work
Really appreciate the feedback! This is part of my reason I decided to post here so that I could get more advice on my coding.

Here's the latest version where I followed your suggestion & made the code a bit cleaner:

All files in topic