Attachments forums

List of attachments posted on this forum.


All files on forums: 135253

Re: Step Indicators for MT4

mwaschkowski, Wed Dec 30, 2020 4:32 am

Hi MrTools,

Happy Holidays!

I did some other testing over the holidays and created a MTF test case, please find attached. I'm simply drawing an arrow when step pdfma is going up or down. I found a few cases where the arrow is pointing the opposite direction of the indicator value, like so:
The code (full source attached) is just:

Code: Select all

      //10 buffer: 1 = up, -1 = down
      string stepperName = "step pdfma (mtf + alerts + arrows)"; 
      double stepperDirVal = iCustom(NULL,0,stepperName, PERIOD_H4, 10, i);
      
      if(stepperDirVal == 1) {
         drawArrow(drawPrefix , 1, 200, 233, clrBlue, "", i,3);
      } else if(stepperDirVal == -1) {
         drawArrow(drawPrefix, -1, 200, 234, clrRed, "", i,3);
      }
I'm testing during the H1 timeframe.

Here are a couple of more examples:
The vast majority of the time its working great but I'm coding an EA so this keeps coming up.

If I'm using the wrong buffer, my apologies, it looks to me like 10 is the Up/Down buffer...

Please let me know if I can do anything else!

Thanks!

Mark

mrtools wrote: Tue Dec 15, 2020 6:51 am

Couldn't find any repainting.
All files in topic