intCopyRates(
string symbol_name, // имя символаENUM_TIMEFRAMES timeframe, // периодdatetime start_time, // с какой датыint count, // сколько копируемMqlRates rates_array[] // массив, куда будут скопированы данные
);
我们设置PERIOD_H1,start_time - date 12:00,计数1。在下一次迭代中,我们在这个日期上做加法或减法(取决于循环的组织方式) PeriodSeconds(PERIOD_D1)
请教mql5,我想收集12小时蜡烛的平均大小的统计数据,例如今天是星期五,我想从星期四、星期三、星期二和星期一的数据中进行计算。
我认为我们不能没有循环。但这个循环可以用不同的方式建立。请注意CopyRates()
我们设置PERIOD_H1,start_time - date 12:00,计数1。在下一次迭代中,我们在这个日期上做加法或减法(取决于循环的组织方式) PeriodSeconds(PERIOD_D1)
请告诉我如何在iCustom中列举指标参数。
我有一个带有过敏性的随机指标,它在移动线的交叉处给出信号。请告诉我如何使它在高于或低于超买或超卖区时才发出信号,越过滑点。
大家好。
请告诉我如何使用我不记得的数学函数正确编码下面的条件。
if (Bid - Low[1]>=0.0030 &&Bid - Low[1]<0.0035) {action;}
我知道有一个数学函数可以在上述条件中使用,没有&& 符号。但我不记得这个数学函数叫什么,如何应用它。
谢谢你的帮助。
如果你在一个函数中改变一个全局变量,它就会改变。但这是一种危险的编程方式,因为在代码中,随着代码的增长,在程序的不同功能中会有不明显的赋值。
程序中有一个主函数,那是你进行全局变量 赋值的地方。而在其他职能部门,要这样做。
或者像这样。
如何使用我不记得的数学函数正确编码以下条件?
我不知道有什么更好的方法来设置这个条件
大家好。
请告诉我如何使用我不记得的数学函数正确编码下面的条件。
if (Bid - Low[1]>=0.0030 &&Bid - Low[1]<0.0035) {action;}
我知道有一个数学函数可以用在上述条件中,没有&& 符号,程序会在4点范围内检查价格是否一致。但我不记得这个数学函数叫什么,如何应用它。
谢谢你的帮助。
没有和
非常感谢你的提示。
以下是代码
尽管Print()显示Pr 的值为1.608 54,但程序并没有将Pr读为1.60854。结果,程序打开了第二个订单,但它不应该这样做
。
而如果我们设置数字1.60854 而不是Pr 变量 ,程序就会读取它而不打开 第二单。
问题 我们应该在代码中做什么修改,使程序读取Pr而不打开 第二单。
谢谢 你的帮助。