简体   繁体   English

使用 mql4 语言编码支持/阻力

[英]Coding support/ resistance using mql4 language

请我应该应用什么步骤来编写可以使用 mql4 在图表中绘制支撑位和阻力位的代码

You achieve drawing a support or resistance line by creating an OBJ_HLINE type graphical object at some given price.您可以通过以某个给定价格创建OBJ_HLINE类型的图形对象来绘制支撑线或阻力线。 Here is an example:下面是一个例子:

ObjectCreate(0, "Support1", OBJ_HLINE, 0, 0, Price);

where Support1 is just some text name, and Price is some price level.其中Support1只是一些文本名称,而Price是某个价格水平。

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

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