Attachments forums

List of attachments posted on this forum.


All files on forums: 163011

Re: Ehlers Indicators for MT4

ionone, Mon Dec 23, 2024 11:56 pm

Cagliostro wrote: Mon Dec 23, 2024 10:20 pm The MTF component will repaint in any case, it is how MTF works.

Is the rest repainting, sure?

Find something in the code below that enables repainting please.

Code: Select all

// Main Fisher Transform Loop
for(i_ = limit - 1; i_ >= 1; i_--)
{
   MaxH = High[Highest(NULL, 0, MODE_HIGH, period, i_)];
   MinL = Low[Lowest(NULL, 0, MODE_LOW, period, i_)];
   ...
   mainFisherCalc0[i_] = ... // Calculation
   ...
}
Doing calculations from the newest bar (limit - 1) down to the oldest (i_ >= 1) prevents “forward-looking” changes to already-closed bars. Once bar i_ is processed, its values are fixed and do not change afterward.

PS: none is forcing you to use it, there are 100.000 indicators around to test. Nothing personal, but your attitude is not the best.
once again : play your indicator in the strategy tester, for a few bars, and then put the indicator a second time on the chart
both signals should be identical if they don't repaint.
here is what your indicator outputs :
TWO TOTALLY DIFFERENT THINGS and this is without any MTF
All files in topic