How can i get de new fractal value ?

 
I would like to take the value of the fractal that just formed.
 
  1. You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12


  2. Why did you post your coding question in the MT5 Systems section instead of the MT5 General section, MT5 EA section, MT5 Indicators section, or MQL4 section?
              Moderators requested to manage this section. - Trading Systems - MQL5 programming forum 2020.05.25
    Next time post in the correct place. The moderators will likely move this thread there soon.

  3. Perhaps you should read the manual. iFractals
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

 
Bruno Luiz Mendes:
I would like to take the value of the fractal that just formed.

Just risk a look into the code of the indicator: C:\Users\..\Indicators\Examples\Fractals.mq5

You would see

void OnInit()
  {
//---- indicator buffers mapping
   SetIndexBuffer(0,ExtUpperBuffer,INDICATOR_DATA);
   SetIndexBuffer(1,ExtLowerBuffer,INDICATOR_DATA);
   IndicatorSetInteger(INDICATOR_DIGITS,_Digits);
//---- sets first bar from what index will be drawn
   PlotIndexSetInteger(0,PLOT_ARROW,217);
   PlotIndexSetInteger(1,PLOT_ARROW,218);
//---- arrow shifts when drawing
   PlotIndexSetInteger(0,PLOT_ARROW_SHIFT,ExtArrowShift);
   PlotIndexSetInteger(1,PLOT_ARROW_SHIFT,-ExtArrowShift);
//---- sets drawing line empty value--
   PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,EMPTY_VALUE);
   PlotIndexSetDouble(1,PLOT_EMPTY_VALUE,EMPTY_VALUE);
//---- initialization done
  }

that in OnInit() the default value is set to EMPTY_VALUE. So if the value of the actual bar is equal to that there is no new fractal and vice versa - it is that easy.

 
Carl Schreiber:

Just risk a look into the code of the indicator: C:\Users\..\Indicators\Examples\Fractals.mq5

You would see

that in OnInit() the default value is set to EMPTY_VALUE. So if the value of the actual bar is equal to that there is no new fractal and vice versa - it is that easy.

Hello. Could you help me ? How to use with that?

i am newbie..please

Reason: