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
As a follow-up, the following posts can be of use to understanding how to use the equation "y = mx + c" for the ZigZag lines.
Even though the posts below are for calculating a Trend-Line, it is the same principle to using DRAW_LINE buffer to draw a line for the ZigZag lines. In other words, it word be the simulating of a TrendLine using DRAW_LINE buffer.
Yes, it does work, but you have to create the intermediate points as well and not just the start and end points. That is why I wrote that you need to apply the equation "y = mx + c" (equation for a line).
And please don't use trend-line graphical objects. That is inefficient.
This method can work, but it has two drawbacks.
1- It is very complex in terms of coding. I feel like the complexity does not worth the outcome.
2- In this Zigzag indicator sometimes I need to connect high of a candle to its low of the same candle, when we use DRAW_LINE each buffer will connect to its own values, that is buffer 1 cannot be connected to buffer 2, therefore I cannot connect high of a candle to its low. The only way for that is using DRAW_ZIGZAG.
This method can work, but it has two drawbacks.
1- It is very complex in terms of coding. I feel like the complexity does not worth the outcome.
2- In this Zigzag indicator sometimes I need to connect high of a candle to its low of the same candle, when we use DRAW_LINE each buffer will connect to its own values, that is buffer 1 cannot be connected to buffer 2, therefore I cannot connect high of a candle to its low. The only way for that is using DRAW_ZIGZAG.
Thank you man for all your help, always the best.