Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 606

 
Vinin:

Try *.png


Can I ask why the jpg format is disabled?
 
AlexeyVik:

Can I ask why the jpg format is disabled?

Ask the developers
 

I am making an indicator, the essence is to collect all the spikes on the chart and for the last 100 bars add up the spikes.

It was no problem to collect spikes, but how to make the spikes be counted on the last 100 bars and in case the sum is exceeded, an arrow will be shown.

And so on through the whole chart counted on a hundred bars and then, the whole history is considered, 100 bars is the range in which we are looking.

The code below:

#property indicator_separate_window
#property indicator_buffers 2
#property  indicator_color1 Magenta
#property  indicator_color2 Red

//--- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,217);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexEmptyValue(0,0.0);
   SetIndexStyle(1,DRAW_ARROW);
   SetIndexArrow(1,217);
   SetIndexBuffer(1,ExtMapBuffer2);
   IndicatorDigits(Digits+1);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
    int counted_bars=IndicatorCounted(),                      
    limit;
    double bar;
   if(counted_bars>0)
      counted_bars--;
   limit=Bars-counted_bars;
   for(int i=0;i<limit;i++)
   {  
   bar=(High[i+1]+Low[i+1])/2;
   if(Low[i+2]>Low[i+1] && Low[i]>Low[i+1] && Open[i+1] > bar && Close[i+1] > bar)ExtMapBuffer1[i+1]=1;//появился шип
   }
   for(i=100;i>=0;i--){if (ExtMapBuffer1[i]>0){ExtMapBuffer2[i]=ExtMapBuffer2[i]+1;}}// не уверен в этом коде
   
   return(0);
  }
//+------------------------------------------------------------------+
 
Dear programmers, advise on the iBands() indicator . When we putiBands(NULL,0,20,2,0,PRICE_CLOSE,2,1); it means that we compare the bottom line of the indicator, if we put 1, then the top line, but in the indicator there is a midline, what number is it defined by? I tried different ones and none of them fit.
 
ZahvatkiN:
Dear programmers, advise on the iBands() indicator. When we put iBands(NULL,0,20,2,0,PRICE_CLOSE,2,1); it means that we compare the bottom line of the indicator, if we put 1, then the top line, but in the indicator there is a midline, what number is it defined by? I tried different ones, none of them fit.

Have you tried 0?
 
Roman.:

Why doesn't the picture go in? I know how to do it. *.jpg.

The forum is glitchy! HELP!!!!!

Faced with a similar problem, just realised today that it occurs if the picture file name is in Russian letters.

If it's in Latin, that problem goes away for me.

jpg:


 
I can't remember in which terminal I've seen (terminal) fill the weekend with the last price of Friday. Who knows please help.
 
DiPach:

I faced the same problem, but only today I realized that it occurs if the name of the picture file is in Russian letters.

If it's in Latin, that problem goes away for me.

jpg:



Thank you. I had pictures in Russian too. I will try English.

 
DiPach:

I faced the same problem, but only today I realized that it occurs if the name of the picture file is in Russian letters.

If it's in Latin, that problem goes away for me.

jpg:



Roman.:

Thank you. I had pictures in Russian too. I will try English.




I guess) it's one of the US sanctions against Russia, like they can't write in Russian, they're sick of our pretty pictures of them, you see
 
Hello, if an EA only sets pending orders and does not follow them, should it be able to handle errors?