Examples: How to Write Fast Non-Redrawing ZigZags
Dear Candid,
Can you please write comments in HZZ.mq4 and ZZTemplate.mq4 in english.
Thanks in advance.
Regards
Rajat
Thanks a lot for this one, it realy helped me!
best timeframe for zig zag to use..reply??
Hi guys,
I can translate from 'ru' to 'en' the comments, if needed, give me about 2 or 3 hours. Interested ?
Where can i download HZZ in mql5 ?
New article How to Write Fast Non-Redrawing ZigZags has been published:
A rather universal approach to writing indicators of the ZigZag type is proposed. The method includes a significant part of ZigZags already described and allows you to create new ones relatively easily.
First of all, let's try to formulate the general approach to writing an indicator. Thus:
- Function start() of any indicator (as well as any EA) represents a callback function, i.e., a function to be called to process a specific event. Namely, to process a tick.
- The object of writing an indicator is, as a rule, the calculation of one or several market characteristics. Along with the ancillary quantities necessary for calculations, they form a set of key variables of the given indicator. Let's defined the state of the indicator as a set of the values of those key variables at a specific time. Basing on this definition, we can state the following:
- In these terms, the process of writing an indicator reduces itself to determining a set of quantities describing its state (state variables) and to writing an operator that would transfer the indicator into a new state at the arrival of a new tick. Initialization of state variables becomes an essential part of the indicator algorithm. We will show how all this can be done at the example of ZigZags of a certain type.
Author: Candid