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
Hi deVries,
Thank you. Yes, it's like the picture you sent. But i want to know how to code it. It must calculate each previous Zigzag leg, and then draw the Fibonacci level, so we know how far is the current / last zigzag goes.
edit: i sent the code on the previous post. It would not draw the fibo line ...
Thanks
Can you show me how you get with this indicator the values 0.0 and 100.0 ??
Can you show me how you get with this indicator the values 0.0 and 100.0 ??
I made it manually using MT4 fibo retracement tools ..... :) I want actually like that picture, but still don't know how to code.
About iCustom, should i call it like this below (calling your TopBottomZigzag.ex4 file) ?
Thanks
I made it manually using MT4 fibo retracement tools ..... :) I want actually like that picture, but still don't know how to code.
About iCustom, should i call it like this below (calling your TopBottomZigzag.ex4 file) ?
Thanks
no that are the wrong buffers and you have to find value of i at what bar the top or bottom will be
if i compare it to the version i posted in CodeBase see Zigzag with line at lows and line at highs
this is how i did it with normal zigzag before i created the indicator of this topic
see if you find the logic
.
(edit the post for giving the link correct version you find in CodeBase)
no that are the wrong buffers and you have to find value of i at what bar the top or bottom will be
if i compare it to the version i posted in CodeBase see Zigzag with line at lows and line at highs
this is how i did it with normal zigzag before i created the indicator of this topic
see if you find the logic
.
(edit the post for giving the link correct version you find in CodeBase)
Hi deVries,
Thanks for the link. I just tried using iCustom to call your indicator that i named it "TopBottomZigzag.ex4" . The result is great. This time the Fibo line is created by the code ... :)
Just i still can not make the Fibo of previous ZZ leg .... :( It just always draw the last ZZ leg only. And also still can't define the length of the Fibo level line ...
Thanks for your nice code ....
- jackprobe
tomorrow i go on
this part
has to be changed
if you look to your picture you see fibonnacci is only draw at levels of last 2 Zigzag points
your problem is "can not make the Fibo of previous ZZ leg .... :( It just always draw the last ZZ leg only. And also still can't define the length of the Fibo level line ..."
So you have to check what your code is doing and how does it come to the result you have now
.
we want to know what your coding is doing in this part
beginning with some printstatements we have to find out what's going on
what do you see happening ???
Hi deVries,
I use Alert instead of Print. If the candle inside the leg (not at the end or beginning of the leg), we can not catch the price. But at the end of the leg, we can see the price (please see the red and green arrow on the chart). So, I think iCustom can be used, but there is wrong coding, and i still do not know where it is ...
edit: may be i must use Array / Buffer to hold all information end zigzag point (price of end Zz point & candle number of end Zz point & number of end zz point accurance). May be i must use 3x1 array of type = double, or just use 1x1 array of type string (but first must do "concatenate" all end zigzag point information) ????
Hi deVries,
Yes, you're right. If i try to catch the value, and put it into Array, the result is always 0 (zero) ....
I still do not understand, why it can display the arrow (represent the end of ZZ), but as i try to put it into array, the result is zero ...??
Thanks
use the indicator of codebase then the code has to be
testing this on chart you will see printed (with allert useless)
every tick you calculate it again remove several times the objects and place new objects again until you come to the last calculation != 0
what is the code doing i gave