[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 651

 
TarasBY:

Compare the opening time of the order with the start of the 5 minute candle, e.g:

I will take your comments to heart. I think it should be OrderOpenTime instead of OrderOpenPrice.
 
paladin80: I will take your comments to heart. I think it should be OrderOpenTime instead of OrderOpenPrice.
Correct!!! - Of course.
 

Tired of struggling with DRAW_HISTOGRAM, I want to draw bars in the subwindow, I can't remember how to work with DRAW_HISTOGRAM, I can't get the fill below the bars

#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);
}
//+------------------------------------------------------------------+
 
Set the buffers to explicitly zero as EMPTY_VALUE, and need a third non-drawn buffer to underpin the bottom.
 
FAQ: and we need a third non-drawn buffer to prop up the bottom.

Yes! All that's left to do is to remember, I did it once.

ZS: Isn't it time for a new topic?, it's slowing down the forum when you add a new post

maybe that's it:

#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: Isn't it time for a new topic, it's slowing down the forum when you add a new post


I agree, a new thread has been started.

Users : subsequent posts will be deleted without warning.

People! If the title of the topic has the word "[Archive]", then do not write in this thread!

 
User logan78 has been sent to the banner for failing to read and spamming.
 
sannin:


Ban for 24 hours
 
serjlarkin banned for 24 hours for decompiling and failing to read.
 
Good afternoon
need a hint


if(Send_Notification&&TimeCurrent()>=time+10) {time=TimeCurrent();SendNotification('BUY');} this is what I wrote
I need the notifications to go no more than 10 seconds
and then just stop until the next signal
what is wrong with notifications not stopping?
can you suggest?
is it just about the sign more less?