[存档]任何菜鸟问题,为了不使论坛变得杂乱无章。专业人士,不要路过。没有你就无处可去 - 3. - 页 651

 
TarasBY:

将订单的开盘时间与5分钟蜡烛的开始时间相比较,例如:1:

我将把你的意见记在心里。我认为它应该是OrderOpenTime,而不是OrderOpenPrice。
 
paladin80: 我将把你的意见记在心里。我认为应该使用OrderOpenTime而不是OrderOpenPrice。
正确!!!。- 当然了。
 

厌倦了在DRAW_HISTOGRAM中的挣扎,我想在子窗口中画条形,我不记得如何使用DRAW_HISTOGRAM,我不能让条形下面有填充物

#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Blue
#property indicator_width1 2
#property indicator_width2 2
//--- buffers
double bufup[],bufdn[];
//+------------------------------------------------------------------+
int init(){
   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexBuffer(0,bufup);
   SetIndexStyle(1,DRAW_HISTOGRAM);
   SetIndexBuffer(1,bufdn);
   IndicatorDigits(2);
return(0);
}
//+------------------------------------------------------------------+
int deinit(){
return(0);
}
//+------------------------------------------------------------------+
int start(){
   int    i,limit,counted_bars;
   counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   for(i=limit; i>=0; i--){
      bufup[i] = High[i];
      bufdn[i] = Low[i];
   }
return(0);
}
//+------------------------------------------------------------------+
 
将缓冲区明确设置为零,作为EMPTY_VALUE,并需要第三个未绘制的缓冲区来支撑底部。
 
FAQ: 而我们需要第三个不被提取的缓冲区来托底。

是的!剩下要做的就是记住,我曾经做过。

ZS: 是不是该换个新话题了,你一加新帖就会拖慢论坛的速度

也许就是这样。

#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Red
#property indicator_color2 Blue
#property indicator_width1 2
#property indicator_width2 2
#property indicator_width3 2
//--- buffers
double bufup[],bufdn[],bufnone[];
//+------------------------------------------------------------------+
int init(){
   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexBuffer(0,bufup);
   SetIndexStyle(1,DRAW_HISTOGRAM);
   SetIndexBuffer(1,bufdn);
   SetIndexBuffer(2,bufnone);
   SetIndexStyle(2,DRAW_HISTOGRAM);
return(0);
}
//+------------------------------------------------------------------+
int deinit(){
return(0);
}
//+------------------------------------------------------------------+
int start(){
   int    i,limit,counted_bars;
   counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   for(i=limit; i>=0; i--){
      bufup[i] = High[i];
      bufdn[i] = Low[i];
      bufnone[i] =Low[i];
   }
return(0);
}
//+------------------------------------------------------------------+
 
IgorM:

ZS: 是不是该换个话题了,你一加新帖,论坛就慢下来了


我同意,已经开始了一个新的 主题。

用户:以后的帖子将被删除,没有警告。

人们!如果主题的标题有"[存档]"字样,那么就不要在这个主题中写东西!

 
用户logan78 因未阅读和发送垃圾邮件而被送至横幅。
 
sannin:


禁用24小时
 
serjlarkin 因反编译和未阅读而被禁言24小时。
 
下午好
需要一个 提示


如果(Send_Notification&&TimeCurrent()>=time+10){time=TimeCurrent();SendNotification('BUY');}这是我写的
,我需要通知不超过10秒
,然后直接停止,直到下一个信号
,通知不停止有什么问题吗?
,你能建议吗?
,只是关于符号的多寡吗?