fly7680:
I have modified the Fractal channel indicator by entering the ZigZag indicator,
however, I would like to create a obliguo channel
but the result is not as expected, you could give me some help?
val1 = iCustom(NULL, PERIOD_CURRENT, "ZIG ZAG NRP", 480, 4, 0, i); // ZigZag Upper val2 = iCustom(NULL, PERIOD_CURRENT, "ZIG ZAG NRP", 480, 4, 0, i); // ZigZag Lower
Same calls, how can they be different? You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum- Don't assume we can find your exact indicator, always post it or the link I Have Zig Zag Non Repaint Indicator!! A Programmer Needed To Optimize It! @ Forex Factory
- Never heard of "a obliguo channel"
- "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
WHRoeder:
why should not in its operation? With the ZigZag indicator and its oblique channel you can have a lot of information. I understand it's very difficult to program and I am a beginner, but certainly an oblique channel would be very useful.- Never heard of "a obliguo channel"
- "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
Thanks, I will study better MQL4 code.
Now that you explained yourself with a picture.
- You can't use buffers to do that.
- You must get the last two, non-zero highs and last two non-zero lows from the zig zag. Then create or move two trendlines (with Ray=true) using those points.
WHRoeder:
Thanks for the answer, I will try to study the code to achieve my goal.Now that you explained yourself with a picture.
- You can't use buffers to do that.
- You must get the last two, non-zero highs and last two non-zero lows from the zig zag. Then create or move two trendlines (with Ray=true) using those points.
Thank you

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