Discussion of article "Plotting trend lines based on fractals using MQL4 and MQL5" - page 3

 
Fedot:
But a zig-zag is built from the minimum to the maximum and, again, to the minimum. And the question is not how to find extrema, but how to build a TL that does not cross intermediate bars.

The purpose of trend lines is purely utilitarian - to show very roughly a) Direction (up/down) and b) Size (in pips) of the desired trend relative to the chart window with horizontal and vertical digitisation.

It is much more useful (for manual work) to simply display the same numerical data of the size of the current trend versus the resulting profit of an open order, if any.

 
Neither as an Expert Advisor nor as an indicator in MQL4 it does not show any signs at all!!!!!!!!!!!!!!!!!!!. Is it such a fun to upload anything and a lot just to raise your rating?
 
Сергей Дыбленко:
Neither as an Expert Advisor nor as an indicator in MQL4 it does not show any signs at all!!!!!!!!!!!!!!!!!!!. Is it such a fun to upload just anything and a lot just to raise your rating?

You should not be so hasty with conclusions if you don't know how to use the tester and especially if you don't realise that it's the weekend and there are no ticks.


 

Hi - I cannot pretend to understand all of the coding, but I am working my way through it as it does exactly what I have been trying to code myself (badly as very much a novice).

I have recreated the EA and successfully complied in MQL4 and on first initialisation it will draw the support and resistance lines and will send the notifications but it doesn't redraw NEW support and resistance lines when NEW extreme point fractals appear- is it supposed too? Is there something I am missing something.

Also I couldn't get the fractals to show on the chart but testing the EA in strategy tester the fractals would correctly appear after stopping the test?? Any ideas what I a missing again?

Genius work by the way, fractals and trend lines against the extreme points is not easy to explain let alone code it :)


Best Regards

Andy

 
fxalert:

Hi - I cannot pretend to understand all of the coding, but I am working my way through it as it does exactly what I have been trying to code myself (badly as very much a novice).

I have recreated the EA and successfully complied in MQL4 and on first initialisation it will draw the support and resistance lines and will send the notifications but it doesn't redraw NEW support and resistance lines when NEW extreme point fractals appear- is it supposed too? Is there something I am missing something.

Also I couldn't get the fractals to show on the chart but testing the EA in strategy tester the fractals would correctly appear after stopping the test?? Any ideas what I a missing again?

Genius work by the way, fractals and trend lines against the extreme points is not easy to explain let alone code it :)


Best Regards

Andy

Hi, about first question: if it doesn't redraw new trendlines maybe you don't used code, which delete created objects. Look 4-th part of article. About second question: you can create new template with fractals for tester and called it "tester.tpl". Thereafter fractals will always show on the chart when you use tester

 
Almat Kaldybay:

Hi, about first question: if it doesn't redraw new trendlines maybe you don't used code, which delete created objects. Look 4-th part of article. About second question: you can create new template with fractals for tester and called it "tester.tpl". Thereafter fractals will always show on the chart when you use tester

Thanks for the reply, I left the EA attached to two charts overnight (1x 4hr chart and 1x 15m=M chart) and it has redrawn them so my bad for little patience.

 Thanks for the tip regarding tester.pl.


Many thanks

 

In order to correctly work drawing lines in the tester and they do not stick to the first point in time, you need to put the control of lines from the bottom above the creation of trend lines


 
Hi,
Thank you for your article, I will explore the idea and try to adapt it for my EA's.
Thanks again and happy trading.
 
Сергей Дыбленко #:
Neither as an Expert Advisor nor as an indicator in MQL4 it does not show any signs at all!!!!!!!!!!!!!!!!!!!. Is it such a fun to upload anything and a lot just to raise your rating?

Let's add OnTick function after initialisation to make it work on weekends and in general as soon as you stick it on the chart, not when new prices arrive.