




已阅读5页,还剩46页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
精品文档ZUP - Universal ZigZag with Pesavento Patterns. Part 1ruIntroductionEverybody who takes working on financial markets seriously, start creation of their individual trading systems earlier or later. The author of this present article created ZUP, ZigZag Universal withPesavento Patterns, as a result of this search. The MetaQuotes Software Corp. suggested me writing an article about this indicator. This present article is the first attempt to do it. In this and in the successive articles, I will describe the features of indicator ZUP, version 60 (ZUP_v60). It happened so that Data Centers through that the author accessed to financial markets were using the MetaTrader 4 platform. The standard indicators embedded in the trading terminal did not provide necessary analyses of the market with necessary efficiency. I prefer to arrange the place where I am rather than to find another one. Therefore, I had to do so that I would be able to make all necessary market analyses using the MetaTrader 4 Client Terminal, which allows creation of ones own indicators using its embedded language, MQL4.During the year elapsed since I started to develop my indicator, many interesting ideas have appeared. Many of them have been implemented. The fact that the indicator had an open code and was freely accessed contributed to the influx of information and ideas. This is a principal decision to develop an uncommercial indicator. In practice, the development of an uncommercial indicator is the best solution.Theoretical ConsiderationsAfter a shortresearch, I decided to combine ZigZags with different algorithms and automated building of Pesavento Patterns and Fibo Levels of the ZigZag fractures in one universal indicator. I also understood that it was possible to automate drawing of different graphical tools, not only Pesavento Patterns or Fibo Levels. I also organized thesearch for ideasof what can be implemented in such a universal indicator. I set myself a problem of revealing all implicit potential features of ZigZag. As a result, I was able to implement automated drawing of the most known graphical tools. Some new graphical tools, the ideas of which were proposed by various visitors of the forum atONIX, were implemented, too. The indicators logic is simple:1. place quotes of the selected symbol to the indicators input;2. find the market maximums and minimums in the chart using various ZigZags;3. anchor various graphical tools onto the above maximums and minimums.Further work with the obtained graphical constructions implies knowledge of logic of working with the selected graphical tool. In this present article, ZigZags embedded in the ZUP will be described. There will also mentioned some graphical tools used in the ZUP. They will be described in more details in the second article devoted to the use of embedded graphical tools. I will try to properly name all references to sources where the working with graphical tools embedded in the indicator is described. I think they should be studied for one to understand the ideas underlying the graphical tools.The book I have recently read is referenced to as 1. The subtitle of this book is Secrets of Golden Section. The book tells about how the Golden Section appears in all natural phenomena. After that, I read the book referenced as 2. These two sources helped me to understand in what direction the indicator develops. My previous development was a bit chaotic. Below are some citations from Yu.N. Sokolovs book:Do the foundations of the universe exist and, if yes, what are these? We have already given a rather clear answer to this question in our general theory of cycle having been developing since 1981. Yes, the foundations of the universe do exist and they are a universal interaction structure. Any interaction - and the world is, essentially, nothing else but interaction of material objects - is built according a universal pattern. This pattern is cyclic, i.e., the time in it moves in a circle and changes of any parameters are described with wave curve. We called this pattern interaction quantumStudying of the interaction quantum structure resulted in our conclusion of that the entire outworld is described by only one law by the law of cyclic structure of the interaction quantums space-time 2:7, translated by MetaQuotes Software Corp., 2007In an interaction, two forces participate.The Golden Section is a constant of the interaction quantum A question occurs where the limit to increasing of one force and decreasing of the other force is. There must be such a limit, this results from the reasoning below. Let us imagine that there is no such a limit. Then we can increase the one force and descrease the other one down to zero. This results in that the only one force remains, and this is the same as if there were no interaction at all. This is impossible, of course. Therefore, there is a limit to increasing the one force and decreasing the other one. The problem of limits in changing the forces can, in our opinion, be solved using theGolden Section.The Russian science experiences recovery in recent years concerning the role of the Golden Section in different fields of science and technology. Scientists have brought out clearly that the Golden Section is a universal constant. However, the nature of the Golden Section is still unexplored. We think that this nature can only be studied within the general cycle theory (GCT).2:29, translated by MetaQuotes Software Corp., 2007How the central tenets of the GCT can be applied in scientific research.The fluctuative nature of interaction is determined by a game or interaction of two opposed and mutually causal forces, trends. It is this game that determines the cycle structure. Therefore, to apply the general theory of cycle, it is necessary to start with the most important thing with detecting those two opposed forces. When investigating different systems, we will have different names for those forces. If we consider interaction in inorganic nature, those forces will be active/reactive forces It is the most important thing for further analysis to detect the forces clearly in every research. After two opposed trends have been found, it is necessary to set two opposed and mutually causal cycle poles. One pole is composed of the maximalvalue of the positive force and the minimal value of the negative force. The second pole is opposite to the first one and is composed of the minimal value of the positive force and the maximal value of the negative force. As shown above, these are these poles, between which the oscillatory process takes place.The next stage consists in finding a parameter that would detect the inertial mass and rate of changing the two opposed forces. The process rate is tracked within a certain period of time, a sequence diagram is built by the procedure described above. The sequence diagram shows the wave length, the amplitude and the oscillatory gap size. If it is necessary, the interference of neighboring cycles towards the given cycle2:46, translated by MetaQuotes Software Corp., 2007I will not give figures and formulas from the work 3 here. They are rather interesting. You can read this work yourselves if you wish.It is not very difficult to detect the two opposed forces on financial markets - those are Bulls and Bears. To find the cycle poles (extremums) on financial markets, we use ZigZag in our ZUP indicator. There are many algorithms for drawing a ZigZag indicator. Indicators ZigZag based on different algorithms are embedded in the ZUP. It is very important to find exact locations of extremums for both time and price, i.e., the extremums must be placed precisely on the maximum or minimum of the corresponding price bar. It is necessary to forecast the further development of the cycle properly. Various graphical tools are used to research interactions between the cycle poles. Since the golden Section appears in all natural phenomena, different Fibo tools are emphasized in ZUP. Graphical tools are anchored to the market extremums found using ZigZag.Graphical tools embedded in the ZUP can be static and dynamic. The static ones are anchored to the zigzag breaks already formed, i.e., to the breaks that will not change anymore. The dynamic ones have their anchoring point located on the first ray of the zigzag that changes its location all the time. The dynamic graphical tools allow to make a quick decision. If the market develops, the design of the graphical tool will help us to see the intended further market trend. If the first ray of ZigZag changes, the dynamic graphical tool will be rebuilt automatically.Description of ZigZags Embedded in the ZUPThe ZUP has many different parameters. The main parameter is the ExtIndicator. It chooses a ZigZag that will help to find the market extremums. The ExtIndicator number is set one after another as new ZigZags or modes are embedded into the ZUP. I would like to precondition that, whatever ZigZag is used, it is not recalculated on every tick. It is recalculated if:1. the price falls outside the null bar (the market goes above the null bars High level, below the null bars Low level, or a new null bar appears);2. the earlier history is pumped;3. the terminal has been started at pumping of history that had appeared during the terminal was off.All ZigZag indicator styles are set using parameter ExtStyleZZ:1. ExtStyleZZ = true - sets the ZigZag line styles using the COLORS tab (menu Charts-Indicators-ZUP_v60-Properties-Colors);2. ExtStyleZZ = false - the ZigZag is shown as points at minimums and maximums.The First ZigZagExtIndicator = 0 enables the standard ZigZag provided in the MetaTrader 4 Client Terminal before summer 2006. This ZigZag was slightly modified. The ideas for modifying were taken from the article published byNikolay Kositsin:Multiple Null Bar Re-Count in Some Indicators. I also used my own solutions. Below are setup parameters for this ZigZag:1. minBars corresponds with ExtDepth in the ZigZag provided within MetaTrader 4;2. ExtDeviation corresponds with ExtDeviation;3. ExtBackstep corresponds with ExtBackstep.The Second ZigZagExtIndicator = 1 enables Alexs ZigZag (Automatic Channel).AlgorithmThe average value of the first bar is calculated. Then the conditional average price of a bar is calculated. The trend direction in the next bar is detected by the shift of the bar conditional average price. The trend changes if the conditional average price deviates by a given value in points minSize or minPercent in percents.Parameters:1. minSize -filtering by the amount of points, gives the amount of points;2. minPercent - percentage filter, gives the percentage, for example, 0.5.If you use percentage, set the desired value whereas minSize = 0. ZigZagExtIndicator = 2 allows working with ZigZag Ensign. ZigZag Ensign is a conditional name. This version of the ZigZag was developed after I had observed the operating of the indicator underlying Pesavento Patterns built inEnsign. On the website ofEnsign Softwar, there was a short description of this indicators building principles.The algorithm of the indicator realized in Ensign can slightly differ from that realized in the ZUP.Algorithm.The first bars minimum and maximum are compared to those of the follow-up bars. If a bar is found where the minimum and the maximum values are larger/smaller than those of the first bar, the trend direction is determined. If the minimum and maximum are larger than those of the first bar - it is the bullish trend. If they are smaller - it is the bearish trend. Then the algorithm for the bullish market (uptrend) is described. For the bearish trend (downtrend) - vice versa. The trend is determined as an uptrend. Store the bar maximum value in the hlast variable. If the next bar maximum value is above that of the preceding bar, the next bar will continue the bullish trend. Store the new value of the bar maximum hlast. If the maximums are equal, the trend is considered not to be changed. the trend remains bullish. If on the next bar the bar maximum is below the preceding maximum (hlast), the following alternatives appear:1. The minBars of the bars are skipped. For each of those minBars of the bars, the maximum must be below that of the last bar (hlast), from which the counting of minBars started. If at least on one bar the price exceeds the maximum of the last bar (hlast), the trend will be considered to be bullish up to and including this bar. The minBars of the bars are calculated starting from the next bar. Then the bars are analyzed starting from the bar numbered as minBars + 1. If hlast LowminBars + 1 minSize, the trend becomes bearish. I.e., if the minimum of the bar numbered as minBars + 1 or that of any successive bar deviates from the hlast by a value exceeding the minSize, the trend changes and becomes bearish. In this case, the bar numbered as minBars + 1 is counted starting from the last maximum (hlast) in the direction of the null bar.2. If any of minBars is closed below the last minimum, the trend will become bearish, too, without waiting for the bar numbered as minBars + 1 to income. Trend changes and the new ZigZag ray is drawn after closing the bar, on which the trend has turned.ParametersminBars, minSize the names are the same as in the Ensign.Alexs ZigZag and Ensign ZigZag do not have disadvantages of the standard ZigZag: the processor is not overloaded, only the last bar is calculated, no successive maximums occur, the last minimums and maximums are predictable. Besides, the last maximum can only grow and the last minimum can only decrease. Those are trend indicators. On the other hand, it is necessary to search in parameters for Alexs ZigZag and Ensign ZigZag on different timeframes. The search in parameters is necessary to find the proper wave structure on different timeframes. For the ZigZag ExtIndicator = 0, the same parameters can be used in different timeframes.The Fourth ZigZagExtIndicator = 3 - allows working with the ZigZag Ensign with a bit modified algorithm. Here, only minBars value should be specified. The minSize value given in the indicator window will be ignored. The minSize value is variable and equal to the size (from the minimum to the maximum) of the bar, on which the last ray of the ZigZag indicator ends. At re-drawing of the last ray of the ZigZag indicator, the new value of the minSize is calculated.The Fifth ZigZagExtIndicator = 4 enables the Taubers ZigZag. Tauber is a poster at the ONIX forum. I will describe it here by courtesy of the author:I used MetaTrader as the basis(ZigZag embedded in the MetaTrader 4 Client Terminal - nens note).The algorithm is recursive, short and logically comprehensive:1. The global maximum is sought among all bars.2. The remaining bars are divided into two parts from the right and from the left of the maximal bar.3. The global minimum is sought in both halves.4. Each half is divided into two parts again, and so on.The process is monitored in the same way as in the ZigZag, but by only one parameter - the percentage or the difference in pips. (Translated by MetaQuotes Software Corp., 2007)Some more citations:The algorithm is recursive - the function that finds the maximum calls by itself the function that finds the minimum, and vice versa. It is the way they divide the chart into smaller and smaller fractals. The process stops when the difference in prices between the successive maximum/minimum and the nearest minimum/maximum becomes smaller than the minSize. The main difference is in that the result depends on the only parameter, the minSize, which is the classical definition of the ZigZag and provides accurate finding of all the important peaks.The Sixth ZigZagExtIndicator = 5 enables a ZigZag that simulates Gann Swings. Its a trend indicator.AlgorithmA detailed description of how to build Gann Swings is given in 4. Some well-known indicators to build Gann Swings were created by the algorithm described by the author of this book. The description is very detailed and you could even say boring. But, nevertheless, there are many questions that occur when you try to follow the description and build the indicator. There are some combinations of candlesticks that are not easy to analyze. Swings are difficult to build, too. You can interpret the current situation in different ways. This is, perhaps, the reason why the known realizations of Gann Swings in indicators have some deviations from the algorithm described in the book.In our case, there are two deviations. They both relate to the processing of the external bar. External bar is a bar that has High higher and Low lower than the preceding one. The above-mentioned book says that a Maximum and a Minimum must be built on the external bar. But it is impossible to work in the ZUP with a ZigZag having both the maximum and the minimum within the same bar. Moreover, the description says that the maximum and the minimum must alternate in a certain sequence. The external bar extremum that is the closest to the candlestick opening must go first. This can be realized in the real time. But when it comes down to history, a loose interpretation starts. So, swings built in the real time can differ from those built on the same period of time, but after it has become history. I.e., where there was a maximum in the real time, we can get a minimum when building swings on historical data of the same period. To avoid any ambiguousness, the trend will continue the trend that had prevailed before the external bar came. However, since the trend must change on the external bar, according to the description, let us consider for the intermediate, main trend and for trends of higher orders the external
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 课件模板中的女生人物画
- 课件格式变成应用程序
- 开餐饮员工培训
- 小学防疫知识培训
- 医生培训学习汇报
- 课件显示错误处理
- 广东红楼梦自考试题及答案
- 乐理简谱考试题及答案
- 课件显示会标
- 科技创新考试题及答案
- G-T 20986-2023 信息安全技术 网络安全事件分类分级指南
- 建筑工程技术专业《建筑力学》课程标准
- JC-T 2127-2012 建材工业用不定形耐火材料施工及验收规范
- 人教版小学英语所有语法及人教版小学英语语法大全
- 雅思词汇2000(带音标)
- 英雄联盟游戏分析报告
- 黑白装饰画教学课件
- 《休闲时尚品牌》课件
- 保健食品用原料人参叶团体标准
- 小儿支气管肺炎护理查房
- 五年级上册道德与法治总复习资料
评论
0/150
提交评论