Indicators: ZigZag Indicator with Extra Features - page 3

 
dimmerpixel:
lordmen99:
Please sir, can u add alert when arrow show..? alert when open candle.. thx before

hi lordmen99, as FMIC told you before, it's ONLY AN INDICATOR, and just like EVERY OTHER INDICATOR, it is you to decide when/where to take an action.

Welcome to this world of patients

Hello "dimmerpixel".

Actually, I did add the "alert" function to this indicator as "lordmen99" requested. It is only an Indicator as you well stated and does not "trade" for you, but he only requested an "alert"; he did not request for trades to be placed.

However, the alert message comes up once per bar when a price breakout occurs and not on the new bar as "lordmen99" requested.

Regards, FMIC!

 
dimmerpixel:
lordmen99:
Please sir, can u add alert when arrow show..? alert when open candle.. thx before

hi lordmen99, as FMIC told you before, it's ONLY AN INDICATOR, and just like EVERY OTHER INDICATOR, it is you to decide when/where to take an action.

Welcome to this world of patients

Hello "dimmerpixel".

Actually, I did add the "alert" function to this indicator as "lordmen99" requested. It is only an Indicator as you well stated and does not "trade" for you, but he only requested an "alert"; he did not request for trades to be placed.

However, the alert message comes up once per bar when a price breakout occurs and not on the new bar as "lordmen99" requested.

Regards, FMIC!

 
NB! I would just like to inform everyone that as soon as the "dust has settled" with regard to new MT4 builds and bugs and quirks have been "ironed out", I will be rewriting this code so as to be totally compatible with the newer architecture. I hope you will be patient with me in case the current code does not function correctly for you in the newer builds.
 
NB! I would just like to inform everyone that as soon as the "dust has settled" with regard to new MT4 builds and bugs and quirks have been "ironed out", I will be rewriting this code so as to be totally compatible with the newer architecture. I hope you will be patient with me in case the current code does not function correctly for you in the newer builds.
 

Looks like the current version is still working correctly on the latest 600+ builds, so will NOT be releasing any new version just yet.

However, in the near future, I will be updating the code so as to use the new structure of MQL4+ and hopefully it will also be compatible with MQL5.

 

Looks like the current version is still working correctly on the latest 600+ builds, so will NOT be releasing any new version just yet.

However, in the near future, I will be updating the code so as to use the new structure of MQL4+ and hopefully it will also be compatible with MQL5.

 
Thanks for the wonderful indicator. its helping me a lot. thanks again.
 

Forum on trading, automated trading systems and testing trading strategies

Indicators: ZigZag

newdigital, 2013.09.26 08:26

The Zig-Zag indicator is extremely useful for determining price trends, support and resistance areas, and classic chart patterns like head and shoulders, double bottoms and double tops. The Zig-Zag indicators uses both swing highs and swing lows in its calculation:

  • Swing Highs: When a price (usually close) is both higher than the price previous to it and after it.
  • Swing Lows: When a price is both lower than the price prior to it and lower than the price following it.

The Zig-Zag indicator can use both percentages or points in its construction. To construct the Zig-Zag indicator, there must be a certain percentage or number of points between a swing high and a swing low before a line will be drawn. The chart below of the E-mini Nasdaq 100 Futures contract visually illustrates the difference between a price retracement Zig-Zag of 3% and a price retracement Zig-Zag of 5%:


Notice how in the chart above that a Zig-Zag with a retracement percentage of 3% makes more distinct lines than the Zig-Zag with a retracement percentage of 5%. The purpose of using a Zig-Zag with a larger retracement percentage is to help eliminate price noise that is not significant for the trader's analysis.

Zig-Zag indicator is extremely effective at uncovering stock cycles while screening out short-term price noise.

The Zig-Zag indicator is extremely effective in filtering short-term noise and identifying significant trends and significant changes in market prices.

Below is a chart of the E-mini S&P 500 Futures contract that illustrates how effective the Zig-Zag indicator was in finding areas of support and resistance and price breakouts:


The chart above of the e-mini uses a 5% Zig-Zag retracement value; therefore, only price changes of 5% or greater are shown, helping a long-term trader or investor determine important areas of support, resistance, and areas of price breakouts.

On the left of the chart, the S&P 500 was forming a triangle consolidation pattern. When prices broke resistance, a long-term buy was generated. During the middle of the chart, the Zig-Zag indicator was effective in illustrating that the S&P 500 was in an upward price channel. Buying in areas where price touched the lower support trendline and selling when prices touched the upper resistance line would have proved extremely profitable.

Using the Zig-Zag indicator for shorter-term trades can prove profitable as well. The chart below of Intel (INTC) shows a classic chart head and shoulder pattern easily seen by the Zig-Zag indicator ($1 retracement):


The easily identified head and shoulders pattern gave a sell signal when price on the right shoulder broke the upward slanting trendline.

The Zig-Zag indicator is an excellent technical analysis tool for identifying classic charting patterns. The Zig-Zag indicator is also effective in reducing noise and helping the technical trader see the true market direction.


 

First of all, thank you for a great indicator and also for releasing it into the wild for free.

I would like to use your indicator into an EA ( begginer in mql). One of the features i would need is to get last 2 breakouts.

I tried to do it myself so as not to bother you, however no success.

As an example: int prevBr = 1; //where 1 is hi

int lastBr = 0; //where 0 is a low break out

Is this something you would like to add or could you please give me a bit of guidance on how I could achieve this ?

many thanks.



 

Forum on trading, automated trading systems and testing trading strategies

Indicators: ZigZag

newdigital, 2013.09.26 08:26

The Zig-Zag indicator is extremely useful for determining price trends, support and resistance areas, and classic chart patterns like head and shoulders, double bottoms and double tops. The Zig-Zag indicators uses both swing highs and swing lows in its calculation:

  • Swing Highs: When a price (usually close) is both higher than the price previous to it and after it.
  • Swing Lows: When a price is both lower than the price prior to it and lower than the price following it.

The Zig-Zag indicator can use both percentages or points in its construction. To construct the Zig-Zag indicator, there must be a certain percentage or number of points between a swing high and a swing low before a line will be drawn. The chart below of the E-mini Nasdaq 100 Futures contract visually illustrates the difference between a price retracement Zig-Zag of 3% and a price retracement Zig-Zag of 5%:


Notice how in the chart above that a Zig-Zag with a retracement percentage of 3% makes more distinct lines than the Zig-Zag with a retracement percentage of 5%. The purpose of using a Zig-Zag with a larger retracement percentage is to help eliminate price noise that is not significant for the trader's analysis.

Zig-Zag indicator is extremely effective at uncovering stock cycles while screening out short-term price noise.

The Zig-Zag indicator is extremely effective in filtering short-term noise and identifying significant trends and significant changes in market prices.

Below is a chart of the E-mini S&P 500 Futures contract that illustrates how effective the Zig-Zag indicator was in finding areas of support and resistance and price breakouts:


The chart above of the e-mini uses a 5% Zig-Zag retracement value; therefore, only price changes of 5% or greater are shown, helping a long-term trader or investor determine important areas of support, resistance, and areas of price breakouts.

On the left of the chart, the S&P 500 was forming a triangle consolidation pattern. When prices broke resistance, a long-term buy was generated. During the middle of the chart, the Zig-Zag indicator was effective in illustrating that the S&P 500 was in an upward price channel. Buying in areas where price touched the lower support trendline and selling when prices touched the upper resistance line would have proved extremely profitable.

Using the Zig-Zag indicator for shorter-term trades can prove profitable as well. The chart below of Intel (INTC) shows a classic chart head and shoulder pattern easily seen by the Zig-Zag indicator ($1 retracement):


The easily identified head and shoulders pattern gave a sell signal when price on the right shoulder broke the upward slanting trendline.

The Zig-Zag indicator is an excellent technical analysis tool for identifying classic charting patterns. The Zig-Zag indicator is also effective in reducing noise and helping the technical trader see the true market direction.


Reason: