Re: MT4 Indicators with alerts/signals

3371
mrtools wrote: Wed Nov 11, 2020 7:12 am

Don't know, but do know the Ma Cross OC is a repainter. Check out the fasterMAafter and the slowerMAafter(i-1) both are trying to look into the future.

Code: Select all

fasterMAnow = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i);
      fasterMAprevious = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i+1);
      fasterMAafter = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i-1);

      slowerMAnow = iMA(NULL, 0, SlowerMA, 0, SlowerMode, PRICE_OPEN, i);
      slowerMAprevious = iMA(NULL, 0, SlowerMA, 0, SlowerMode, PRICE_OPEN, i+1);
      slowerMAafter = iMA(NULL, 0, SlowerMA, 0, SlowerMode, PRICE_OPEN, i-1);
oh ic
again big appreciations for your kindness and taking time
so this was the reason actually/repainter
greetings