Indicators: Fractal_TL - page 2

 
Sergey Voytsekhovsky:

Vladimir, good evening. You are an experienced programmer judging by your publications and works. Could you please advise me on the essence of this thread - the programme does not work in the tester, but it works correctly on online charts. The author does not respond, apparently busy.

Everything works:


although I think the code is not quite correct.

 
Sergey Voytsekhovsky:

Vladimir, good evening. You are an experienced programmer judging by your publications and works. Could you please advise me on the essence of this thread - the programme does not work in the tester, but it works correctly on online charts. The author does not respond, apparently he is busy.

Here I run in the tester the code I attached in the previous comment. Everything is redrawn normally.

Indicator operation in the tester
 
Vladimir Karputov:

Everything works:

Apparently you have downloaded and activated the author's original code, it does work in the tester and online. If you make the changes mentioned above (I will post the modified code from the first posts below, changes will be highlighted in yellow) - resistance lines will always be sloped downwards and support lines upwards. This is what the yellow changes are for. And the main confusion is that there are no questions to the changes themselves, they work fine online, but they stop working in the tester.

Could you please tell me how you place moving pictures on the forum?


   for(n=0; n<Bars(Symbol(),base_tf); n++)
     {
      // --- if a non-empty value, terminate the loop
      if(FractalUp_base[n]!=EMPTY_VALUE)
         break;
     }
   UpFractal_1_base=FractalUp_base[n];// --- write the price value of the first fractal in the variable
   UpperFractal_1_base=n;// --- write the index of the first fractal in the variable
                         // --- 
// --- Search for the second upper fractal
   for(n=UpperFractal_1_base+1; n<Bars(Symbol(),base_tf); n++)
     {
      // --- if a non-empty value, terminate the loop
      if(
         FractalUp_base[n]!=EMPTY_VALUE
         &&
         FractalUp_base[n]>UpFractal_1_base
         )
          break;
     }
   UpFractal_2_base=FractalUp_base[n]; // --- write the price value of the second fractal in the variable
   UpperFractal_2_base=n;// --- write the index of the second fractal in the variable
                         // ---
// --- Search for the first lower fractal
   for(n=0; n<Bars(Symbol(),base_tf); n++)
     {
      // --- if a non-empty value, terminate the loop
      if(FractalDown_base[n]!=EMPTY_VALUE)
         break;
     }
   LowFractal_1_base=FractalDown_base[n];// --- write the price value of the first fractal in the variable
   LowerFractal_1_base=n;// --- write the index of the first fractal in the variable
                         // --- 
// --- Search for the second lower fractal
   for(n=LowerFractal_1_base+1; n<Bars(Symbol(),base_tf); n++)
     {
      // --- if a non-empty value, terminate the loop
      if(
         FractalDown_base[n]!=EMPTY_VALUE
         && 
         FractalDown_base[n]<LowFractal_1_base
         )
          break;
     }
   LowFractal_2_base=FractalDown_base[n];// --- write the price value of the second fractal in the variable
   LowerFractal_2_base=n;// --- write the index of the second fractal in the variable
 
 
Almat Kaldybay:

Here I am running the code I attached in the previous comment in the tester. Everything is redrawn normally.

Strange, it still doesn't work for me. I even tried reinstalling the terminal.

 

Question to the moderator - If I ask some questions about this indicator in other threads of your forum (I'm trying to find an answer to the question - why the code works in real life and does NOT work in the tester), if I refer to this thread - it will not be a violation? It will not offend the author?

The point is that the algorithm of this code is well suited to the strategy I am trying to design, but an unfortunate misunderstanding does not allow me to run the strategy on history. I've racked my brains and can't find the reason. I need help.

 
Sergey Voytsekhovsky:

Apparently you have downloaded and activated the original author code, it does work both in the tester and online.

Of course I was running the original code - since this is the official thread discussing the Fractal_TL code.


Sergey Voytsekhovsky:

How do you place moving pictures on the forum?

First I create a gif image. The main condition is that the width should not exceed 750 points.

 
Sergey Voytsekhovsky:

Question to the moderator - If I ask some questions about this indicator in other threads of your forum (I am trying to find an answer to the question - why the code works in real life and does NOT work in the tester), if I refer to this thread - it will not be a violation? It will not offend the author?

The point is that the algorithm of this code is well suited to the strategy I am trying to design, but an unfortunate misunderstanding does not allow me to run the strategy on history. I've racked my brains and can't find the reason. I need help.

If you create something of your own on the basis ofFractal_TL code, it is better to open a new topic in the Technical Indicators and Forex Market Analysis section, where you can ask questions about the changes you have made.

 
Vladimir Karputov:

If you create something of your own on the basis ofFractal_TL code, then of course it is better to open a new topic in the Technical Indicators and Forex Market Analysis section, where you can ask questions about the changes made.

Thank you. Yes, I am trying to create one. This indicator, after the changes, will find consolidation moments with the subsequent breakdown. To give a signal.

Gone in the indicated direction, sorry for the disturbance.

 
Vladimir Karputov:

First I create a gif image. The main condition is that the width is no more than 750 points.

Great, I already know more. But how to create a gif from the screen of the strategy tester? I have not found such a button "upload to gif" in the MT5 menu. Is it done by MT5 means or by a third-party application? If third-party, which one do you recommend?