Object distances relative to price on a pixel scale.

 
How to create objects with the same distance with the price in different time intervals?
For example, the distances of fractal arrows at different time intervals on the pixel scale are the same for the price.

With what function or coding method can this be achieved?

Fractals and My Custom Indicator(Fractals)

 
Hassan Abedini :
How to create objects with the same distance with the price in different time intervals?
For example, the distances of fractal arrows at different time intervals on the pixel scale are the same for the price.

With what function or coding method can this be achieved?


You have shown the objects of indicator buffers. See indicator example: [data folder]\MQL5\Indicators\Examples\Fractals.mq5

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
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);
  }
 
Vladimir Karputov:

You have shown the objects of indicator buffers. See indicator example: [data folder]\MQL5\Indicators\Examples\Fractals.mq5

//--- arrow shifts when drawing
   PlotIndexSetInteger(0,PLOT_ARROW_SHIFT,ExtArrowShift);
   PlotIndexSetInteger(1,PLOT_ARROW_SHIFT,-ExtArrowShift);

PlotSetInteger() doesn't do anything in MQL4 does it?

 
Vladimir Karputov:

You have shown the objects of indicator buffers. See indicator example: [data folder]\MQL5\Indicators\Examples\Fractals.mq5

Sorry, I had to ask in my questions that I want to get this feature in MQL4.

//--- arrow shifts when drawing
   PlotIndexSetInteger(0,PLOT_ARROW_SHIFT,ExtArrowShift);
   PlotIndexSetInteger(1,PLOT_ARROW_SHIFT,-ExtArrowShift);

This feature does not work in MQL 4.

 
Hassan Abedini: This feature does not work in MQL 4.
  1. The feature (shifting lines) work just fine in MT4

  2. Your call does not exist in MT4. Call the correct function. Perhaps you should read the manual.
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

 
Keith Watford:

PlotSetInteger() doesn't do anything in MQL4 does it?

Yes, this method does not work in MQL4. 🙁

 
Hassan Abedini: Yes, this method does not work in MQL4. 🙁

The function does not exist in MQL4. List of MQL4 Functions - MQL4 Reference

 
William Roeder:

The function does not exist in MQL4. List of MQL4 Functions - MQL4 Reference

Yes sir, I'm aware that this function does not exist in MQL4.

I'm looking for a way to do this. Like Fractals indicator arrows in MetaTrader 4.

 
Hassan Abedini: I'm looking for a way to do this. 

What part of “read the manual” was unclear? Did you bring up the list and search it?

 
William Roeder:

What part of “read the manual” was unclear? Did you bring up the list and search it?

Sir. I'm looking for a way to draw the distances of fractal arrows in different timeframes, with the same size on a pixel scale. I'm not looking for functions in the MQL4 help section. I have already turned all functions upside down.


my question is. Is there a way to do this? Unfortunately, the MQL 4 fractal indicator is not open source, and I can not see how fractal arrows in different sizes and at different timeframes are always drawn on the chart with a fixed size.

Please do not refer me to the functions in MQL 4, as there is no function in this case. I'm looking for another solution.
 

 Happy New Year 

Happy New Year