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
zig zag lauer
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
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
Is it possible to modifie the ( tdi smoothed indi)
to show arrow and alert only when red line crossing yellow line
Wow...as expected. You're my hero. But then again, you knew that already.
Thanks mladen, I very much appreciate your work.
could you please anwer to the post #3223 ?
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 )
wow what took you so long?