int i,counted_bars=IndicatorCounted(); //---- check for possible errors if(ExtCountedBars<0) return(-1); //---- last counted bar will be recounted if(ExtCountedBars>0) ExtCountedBars--; int pos; if(nBars==0) pos=Bars-ExtCountedBars-1; else pos=nBars-ExtCountedBars-1; while(pos>=0) { double iDeltaPeiceMA_= 0; if (Variant>0) iDeltaPeiceMA_=iHigh(Symbol(),TF,pos) - iOpen(Symbol(),TF,pos);
int i,counted_bars=IndicatorCounted(); //---- check for possible errors if(ExtCountedBars<0) return(-1); //---- last counted bar will be recounted if(ExtCountedBars>0) ExtCountedBars--; int pos; if(nBars==0) pos=Bars-ExtCountedBars-1; else pos=nBars-ExtCountedBars-1; while(pos>=0) { double iDeltaPeiceMA_= 0; if (Variant>0) iDeltaPeiceMA_=iHigh(Symbol(),TF,pos) - iOpen(Symbol(),TF,pos);
再一次。
我不是在和你说交易员的行为,我说的是你公开展示的那些日志(线)。
比方说,我不在乎在终端的日志中没有订单开头行和它的第一次修改......
为什么在经纪人的日志中没有这个订单的进一步记录?哪里有记录表明该命令起了作用?而且在启动之前,它是否被修改过?
由于某些原因,我无法将它们附在我的信息中。
----------------------------
向专家提出的另一个问题
如果在经纪人的MT4中,有一种技术可能性,可以重新发送过去日期的每日报告?
例如,我们有两个星期没有收到报告,我们是否可以重新生成报告并发送至交易员的邮箱?
我有日志--由于某种原因,我不能把它们附在我的帖子里。
你不必将日志附在邮件中。
我只注意了经纪人日志中的一行。修复激活挂单的那个。
请告诉我怎么做--我需要在下层TF的时候得到上层TF的值--在MQL4中。
int start()
{
int i,counted_bars=IndicatorCounted();
//---- check for possible errors
if(ExtCountedBars<0) return(-1);
//---- last counted bar will be recounted
if(ExtCountedBars>0) ExtCountedBars--;
int pos;
if(nBars==0) pos=Bars-ExtCountedBars-1;
else pos=nBars-ExtCountedBars-1;
while(pos>=0)
{
double iDeltaPeiceMA_= 0;
if (Variant>0) iDeltaPeiceMA_=iHigh(Symbol(),TF,pos) - iOpen(Symbol(),TF,pos);
pos--;
}
return(0);
}
请告诉我怎么做--我需要在下层TF的时候得到上层TF的值--在MQL4中。
int start()
{
int i,counted_bars=IndicatorCounted();
//---- check for possible errors
if(ExtCountedBars<0) return(-1);
//---- last counted bar will be recounted
if(ExtCountedBars>0) ExtCountedBars--;
int pos;
if(nBars==0) pos=Bars-ExtCountedBars-1;
else pos=nBars-ExtCountedBars-1;
while(pos>=0)
{
double iDeltaPeiceMA_= 0;
if (Variant>0) iDeltaPeiceMA_=iHigh(Symbol(),TF,pos) - iOpen(Symbol(),TF,pos);
pos--;
}
return(0);
}
阅读iBarShift()帮助
事实证明,我需要获得数据时间,变量pos的值,但如何做到这一点?
如果你在pos变量里有一个条形数字,你可以用Time[pos]函数或iTime(Symbol(),Period(),pos)函数获得这个条形的时间值。
是的,但我想不明白,我怎么会在一天中出现一个条形值?
if (Variant>0) iDeltaPeiceMA_=iHigh(Symbol(),TF,iBarShift(Symbol(),TF, Time[pos]))-iOpen(Symbol(),TF,iBarShift(Symbol(),TF, Time[pos]));
我得到了最大的条形值...
而且我需要抓住每15分钟的变化,比如说酒吧的变化。
是的,但我想不明白,我怎么会在一天中出现一个条形值?
if (Variant>0) iDeltaPeiceMA_=iHigh(Symbol(),TF,iBarShift(Symbol(),TF, Time[pos]))-iOpen(Symbol(),TF,iBarShift(Symbol(),TF, Time[pos]));
我得到了最大的条形值...
而我需要每隔15分钟捕捉一次日线的变化,比如说。
我不太清楚你想做什么。如果我说错了,请纠正我。你想每隔N分钟获得一天的最高值吗?
对。