Elite indicators :) - page 323

Manu
81
Manu  

indicator

Hi mladen,

Is it possible in MT4 to build an indicator that can recognize one or several trendlines drawed manually ?

The goal is that if I draw like in the joint image a trendline from those two points signaled by two elypses in the image, the indicator knows we are in an uptrend. Taking this uptrend into consideration, it will display an alert(or send an email) when the price comes back near to a moving average (showed by arrows on the image), saying something like "possible entrance for long here".

thanks in advance for your answer

best regards,

Files:
osirisja
8
osirisja  

zig zag lauer

Hi Mladen

I have been back testing this indicator (DT Zig Zag Lauer Seperate - attached, which is based on DT ZigZag Lauer - also attached) on a 5 min chart, with the Gross Period set to 15. The results are very promising however, when placed on a chart and forward tested the dots don't seem to refresh - only when you change time frame and back do they update.

I know the indicator is based on Zig Zag and are prone to recalculating, but I was wondering if there is any reason why the dots refresh, and if there is any reason why the back testing results are cleaner than real time forward testing? Can this be fixed?

Thanks in advance

Andy

Mladen Rakic
151197
Mladen Rakic  

Andy

Try out this version (this is the on chart version) As you know, DT ZigZag is actually a mtf (4 hour by default) ZigZag with a "quirk" in the code (it shows high/low with 1 target time frame bar delay. Changed the original ZigZag to do the same thing (and some little extra - this one is showing what DT will only show at some stage as future values at the right side, and you can easily choose to use those values or not, since it is visible which are the values not shown by DT but shown by this indicator)
Also, added the "separate" version too. See the comparison to DT separate (lower one on the picture)
PS: these are standalone indicators (they do not need any other indicator presence in the indicators folder in order to work)

regards

Mladen

osirisja:
Hi Mladen

I have been back testing this indicator (DT Zig Zag Lauer Seperate - attached, which is based on DT ZigZag Lauer - also attached) on a 5 min chart, with the Gross Period set to 15. The results are very promising however, when placed on a chart and forward tested the dots don't seem to refresh - only when you change time frame and back do they update.

I know the indicator is based on Zig Zag and are prone to recalculating, but I was wondering if there is any reason why the dots refresh, and if there is any reason why the back testing results are cleaner than real time forward testing? Can this be fixed?

Thanks in advance

Andy
osirisja
8
osirisja  
mladen:
Andy Try out this version (this is the on chart version) As you know, DT ZigZag is actually a mtf (4 hour by default) ZigZag with a "quirk" in the code (it shows high/low with 1 target time frame bar delay. Changed the original ZigZag to do the same thing (and some little extra - this one is showing what DT will only show at some stage as future values at the right side, and you can easily choose to use those values or not, since it is visible which are the values not shown by DT but shown by this indicator)
Also, added the "separate" version too. See the comparison to DT separate (lower one on the picture)
PS: these are standalone indicators (they do not need any other indicator presence in the indicators folder in order to work)

regards

Mladen

Thank you so much Mladen

If only the future values showed the real future direction - we would be rich!

Is there any reason why this new version would change its values when the current T/F is refreshed as the previous DT version did? By that I mean will forward testing provide exactly the same results as back testing does? I guess the only real way is to forward test in real time....

I will let you all know how it looks

Thanks again

Andy

mktsagli
35
mktsagli  

Dear mladen

Is it possible to modifie the ( tdi smoothed indi)

to show arrow and alert only when red line crossing yellow line

thank you.

Mladen Rakic
151197
Mladen Rakic  

mktsagli

Here you go In this version one more option is added : alertsOnSignalLineCross. If it is set to true, it works as before. If it is set to false, then alerts (and arrows) are raised when the "price" line (the blue line) crosses average (yellow) line. Here is an example how a chart looks in a case when second (average - yellow line crossing) is chosen :
regards

Mladen

mktsagli:
Is it possible to modifie the ( tdi smoothed indi)

to show arrow and alert only when red line crossing yellow line

thank you.
san4x
324
san4x  
mladen:
Snow Here you go You can choose to smooth regular or to double smooth (faster) depends on your needs. With short periods of smoothing difference between regular and double are not big, But if you use longer period, double tends to be much "faster". Both smoothing ways are jurik smoothing (of course ) I any case, both smoothing ways are much, much faster then the regular built in moving averages used by the regular version of this indicator
PS: the example is a 1 hour TDI on a 30 minute chart

regards

Mladen

Wow...as expected. You're my hero. But then again, you knew that already.

Thanks mladen, I very much appreciate your work.

San/Snow.

Manu
81
Manu  

post #3223

mladen,

could you please anwer to the post #3223 ?

Thanks

Mladen Rakic
151197
Mladen Rakic  

Yes

It is possible to build an indicator or a script or an EA that recognizes objects on a chart (all it would have to "know" are the names and types of indicators it should "monitor"). But, when it comes to recognizing other indicators values shown / drawn on chart it is not possible. The only way how it is possible is through iCustom() or through calls to internal built in indicators and that means that all the logic must be built in in the code itself

As far as I know there are already some EAs that are working on a principle of recognizing trend lines (the "Trend me, leave me" for example - you can find it at this link https://www.mql5.com/en/forum/176044/page3 )

regards

Mladen

Tradefx1:
mladen,

could you please anwer to the post #3223 ?

Thanks
Manu
81
Manu  

wow what took you so long?