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.
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.
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 loopif(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 fractalfor(n=UpperFractal_1_base+1; n<Bars(Symbol(),base_tf); n++)
{
// --- if a non-empty value, terminate the loopif(
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 fractalfor(n=0; n<Bars(Symbol(),base_tf); n++)
{
// --- if a non-empty value, terminate the loopif(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 fractalfor(n=LowerFractal_1_base+1; n<Bars(Symbol(),base_tf); n++)
{
// --- if a non-empty value, terminate the loopif(
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
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.
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.
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.
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?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.
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.
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?
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.
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.
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.
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.
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.
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?