隐藏箭头对象时,在图表上绘制向上/向下箭头时,如何以编程方式识别? [英] How can I recognise programmatically when an up/down arrow is drawn on a chart when arrow objects are hidden?

查看:230
本文介绍了隐藏箭头对象时,在图表上绘制向上/向下箭头时,如何以编程方式识别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何在图表上绘制对象箭头,通常我会这样:

I know how to draw an object arrow on the chart, which I usually do like this:

      ObjectCreate(0,"prevHigh",OBJ_ARROW_DOWN,0,Time[0],High[highestCandle]);  
      ObjectSetInteger(0, "prevHigh", OBJPROP_COLOR, clrRed);

现在,我有了一个指示器(该图像不是我自己编写的,而且是一个.ex4文件),该指示器在图表上绘制了上/下箭头,如图中所示(

Now I have an indicator which (I didn't code myself and is a .ex4 file which) draws up/down arrows on the chart as seen in the image (https://imgur.com/a/8yG0suw).

例如,当绘制了洋红色的向下箭头并绘制蜡烛(索引)时,该怎么办?

How can I when for example a Magenta down arrow has been drawn and the candle (index) at which it is drawn?

请注意,箭头不在图表上的对象列表中

Please note that the arrows not in the list of objects on the chart

推荐答案

Q :如何通过编程方式在图表上绘制向上/向下箭头时?"

Q : "How can I recognise programmatically when an up/down arrow is drawn on a chart?"

鉴于上述事实,您的测试应该通过检查CustomIndicator(通过已发布/使用过的 iCustom() -call签名)的时间进行评估,以检查它是否来自 EMPTY_VALUE 为任何值 != EMPTY_VALUE .

Given the facts above, your test ought evaluate the moment the CustomIndicator ( via a published / used iCustom()-call signature ) by checking it as it goes from EMPTY_VALUE to any value != EMPTY_VALUE.

鉴于CustomIndicator是封闭源(*.ex4),您可能需要检查它是否设置了自己的(对我们而言是隐藏的)值(当前可见的EMPTY_VALUE除外),但是此重新校准" "将在您对条形的CustomIndicator值进行一些手动测试后起作用,这些测试不显示任何箭头-例如对于2020-Apr-08 09:30等v/s,显示的箭头不是MQL4-Objects它们是封闭式CustomIndicator的SetIndexStyle()/SetIndexArrow()副产品,因此无法在Object-List或*.mq4源代码中进行检查.

Given the CustomIndicator is a closed source ( *.ex4 ) you may need to check, if it did set its own ( hidden from our sight ) value, other than a current visible EMPTY_VALUE, yet this "re-calibration" will work, after you get a few manual tests of the CustomIndicator values for bars, that do not show any arrow - like for the 2020-Apr-08 09:30 et al v/s the displayed arrows are not the MQL4-Objects on their own, they are the closed-source CustomIndicator's SetIndexStyle() / SetIndexArrow() by-products, thus not inspectable either in the Object-List, or in the *.mq4 source-code.

还可以检测到

Yet, detectable

这篇关于隐藏箭头对象时,在图表上绘制向上/向下箭头时,如何以编程方式识别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆