calling zigzag indicator into my ea to give me last high and low zigs and zags

 

Can anyone help me with some code for an EA

MQl4 

- includes ZigZag indicator

- sets LastLow and LastHigh peeks from the indicator in the ea variable

- keeps it updated on changes 


I have been trying to get it to work for a few days now with attempting to get help from chatgpt but seem to keep going around in circles


Thanks in advance

Aaron

The ZigZag Indicator: Fresh Approach and New Solutions
The ZigZag Indicator: Fresh Approach and New Solutions
  • www.mql5.com
The article examines the possibility of creating an advanced ZigZag indicator. The idea of identifying nodes is based on the use of the Envelopes indicator. We assume that we can find a certain combination of input parameters for a series of Envelopes, whereby all ZigZag nodes lie within the confines of the Envelopes bands. Consequently, we can try to predict the coordinates of the new node.
Reason: