Attachments forums

List of attachments posted on this forum.


All files on forums: 159938

Re: Adaptive Indicators for MT4

mladen, Sat Apr 22, 2017 6:48 am

mntiwana wrote: Dearest MRTOOLS
Once more Thanks for the upgraded version,may i ask why it not accepting inverted parameters,and if unique ID with invert option possible ?
regards

 
Because of this line of code :

Code: Select all

iCustomMa(MaMode,prices[i],fmin(fastPeriod,slowPeriod),i,0)-iCustomMa(MaMode,prices[i],fmax(fastPeriod,slowPeriod),i,1);
It makes sure (by using fmin and fmax functions) that the first period for macd is smaller then the second period. That is why id does not change the values in case like the one you have
All files in topic