简体   繁体   English

在mql4 / 5中查找最后一波

[英]Finding last wave in mql4/5

I was wondering if there's an efficient and easy way to determine waves in MQL4, just like zigzag indicator does it. 我想知道是否有一种有效且简便的方法来确定MQL4中的波动,就像之字形指示器那样。

I was asked to help automate indicator, for that I need to determine 'waves', essentially max and min of a graph over some period of time (which is vague and all relative). 我被要求帮助使指示器自动化,因为我需要确定“波动”,本质上是确定一段时间内图形的最大和最小(这是模糊且相对的)。

I don't have a clear image of how I want an indicator to work, but it would be something like that: 我对指标的工作方式尚无明确的了解,但可能是这样的:

Find the last wave, ie where the direction of price last changed (neglecting the noise), and then for example reflect it with a trend line. 找到最后一波,即价格方向最后改变的位置(忽略噪声),然后例如用趋势线反映出来。

Is it possible to use zigzag structure to find that point, where direction changed. 是否可以使用锯齿形结构找到方向发生变化的那个点。 (Possibly not the only one, might need to find more that just the last point, but the preceding one. So i will want to adopt the algorithm) (可能不是唯一的问题,可能需要找到的不仅仅是最后一点,而是前面的问题。所以我想采用该算法)

I know it's a while since you asked this question and you probably already have an answer, but if not... 我知道已经有一段时间了,因为您提出了这个问题,并且您可能已经有了答案,但是如果没有...

I dislike Zigzag and have not found a way to do what I want to do with it, so I will the last part of your questions with no, and believe me I tried. 我不喜欢Zigzag,也没有找到一种方法来解决我想做的事情,因此我会在没有问题的情况下回答您的最后一部分,并相信我已经尝试过了。

The way I prefer it is to find bars that conform to the classic definition of fractals/swing points (ie a high with two lower highs on either side, or a low with two higher lows on either side), then try to make up for the shortcomings. 我更喜欢的方法是找到符合分形/摆动点经典定义的条形(例如,一个高点在两侧都有两个较低的高点,或者一个低点在两侧都有两个较高的低点),然后尝试弥补缺点。 Eg Often there will be two high fractals/swings/waves in a row without an intermediate low fractal/swing/wave. 例如,通常会连续出现两个高分形/波动/波动,而中间没有低分形/波动/波动。 So I add the best intermediate low point as a wave, or remove one of the highs (Eg if the first one wasn't as subjectively significant). 因此,我将最佳的中间低点添加为波浪线,或移除其中一个高点(例如,如果第一个不具有主观意义,则为高点)。 Some of the swing points that are identified are 'noisy', to use your term, and not ones that a human trader would have picked. 用您的术语来说,一些摆动点是“嘈杂的”,而不是人类交易者会选择的摆动点。 So these need to be dealt with and so on. 因此,这些都需要处理等等。 If you go down this route it is a long one, computers make many mistakes identifying appropriate swing points, so unfortunately not what I would call easy, but it is accurate, and how many easy indicators are there that actually make money over the long run? 如果走这条路很长,计算机会在确定合适的摆动点时犯很多错误,因此不幸的是,我不认为这很容易,但是它是准确的,并且有多少个简单的指标可以长期长期赚钱?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM