You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thank you deVries. will try it ...
and if you put something like
this inside your code ....
Here's what i came up with. I haven't checked deVries results above [was doing this when he posted].
hello, ubzen, I just see your code as below:
I don't know what is meaning of these two lines codes: if(Bottoms[shift]>0.1) Bottoms[shift]=Bottoms[shift]; if(Toppers[shift]>0.1) Toppers[shift]=Toppers[shift];
I find that it almost change nothing when I delete these two lines' codes, so I don't know why you add this two lines.
hello, ubzen, I just see your code as below:
I don't know what is meaning of these two lines codes: if(Bottoms[shift]>0.1) Bottoms[shift]=Bottoms[shift]; if(Toppers[shift]>0.1) Toppers[shift]=Toppers[shift];
I find that it almost change nothing when I delete these two lines' codes, so I don't know why you add this two lines.
Zigzag with line at lows and line at highs
Zigzag with line at lows and line at highs
I write these below codes as below in EA
but when I test it in history data, "print" shows all 0, why?
read my posting 1 page back
deVries 2013.10.19 12:13 #
https://www.mql5.com/en/forum/144092/page2#854926
thanks deVries, I have know this matter after review your post .
So I get the conclusion we can use double array and variable to receive iCustom()'s return value in Indicator's codes; but we just can use variable to receive iCustom()'s return value in EA's codes.
your explain is that:"that are the wrong buffers and you have to find value of i at what bar the top or bottom will be"
my understanding is that in EA, when we use array x[i] to receive iCustom(), assignment is ok, but the bar of the assignment is uncertain.
so iCustom() not only return a value simply but other things, yes?
but I still don't understand the significance of the code: " if(Bottoms[shift]>0.1) Bottoms[shift]=Bottoms[shift]; if(Toppers[shift]>0.1) Toppers[shift]=Toppers[shift];"
thanks deVries, I have know this matter after review your post .
So I get the conclusion we can use double array and variable to receive iCustom()'s return value in Indicator's codes; but we just can use variable to receive iCustom()'s return value in EA's codes.
your explain is that:"that are the wrong buffers and you have to find value of i at what bar the top or bottom will be"
my understanding is that in EA, when we use array x[i] to receive iCustom(), assignment is ok, but the bar of the assignment is uncertain.
so iCustom() not only return a value simply but other things, yes?
but I still don't understand the significance of the code: " if(Bottoms[shift]>0.1) Bottoms[shift]=Bottoms[shift]; if(Toppers[shift]>0.1) Toppers[shift]=Toppers[shift];"
you're still strugling to get data from ZigZag indicator
why do you want me to explain what is not inside my code ??
why don't you research the code of
the whole code you can find one page back.... https://www.mql5.com/en/forum/144092/page2#854926
if you understand working of that code then it is simply using same method in EA's
done https://www.mql5.com/en/forum/144092/page2#854926
Dear All,
thanks for this wonderful discussion on the ZigZag and the codes. I would add a new spin to the discussion
For me it would be of great value if I could extract the high/low values calculated by the ZigZag
indicator (with a given, specific set of parameters) together with their times of occurrence to a text or csv file,
something like this:
- Day, Time, High-Value, High(Boolean)
- Day, Time, Low-Value, Low(Boolean)
I would like to extract these values for further analysis in MS Excel in order to identify probabilities of
occurrence of time-periods and amplitudes in a chart. In the end, histograms will be created from
this data, indicating the "signature" of the value in the chart by identifying intrinsic time periods and
and intrinsic swing amplitudes.
Maybe I am trying to reinvent the wheel here and there is code out there that does want I want to
do. If not, it would be worthwhile to develop such code. I am doing this type of analysis manually
with tons of charts every day, and I can clearly state that knowing the intrinsic signature of a value
vastly improves the chance to predict a change of direction. In my opinion, this process could be
easily automatized ... but I would need some help from people with programming experience. The
result would either be a handy-dandy indicator, or even an automatic MT4 EA (Expert Adviser)
that trades at significant turning points.
Would be nice to find someone here who is interested in a collaborative effort. But a few hints
on how to extract the data from the ZigZag indicator would also help. Many thanks!
- spjuliman