I will write the indicator for free - page 54

 
Hello. Need an indicator. The indicator traces the emergence of 3 or more candles in a row of bullish or bearish. If the body of each of 3 or more of the same candle is 10 or more points, the indicator gives an alert, for example: "GBPUSD, M1, 3 bars bullish?
Customisable parameters:
1) Symbols (symbols for currency pairs, e.g. GBPUSD)
2) Time frames
3) Enable Signal
4) Number of bars for the signal
5) Number of candle points for the signal 6) Appearance of the signal 10-15s before the close of the candle
 
Good afternoon, could you please write an indicator that can add the High of the second bar to the Low of the third bar and divide it all by 2. Ie/ the formula probably looks like this: Price[i]=(High[1]+Low[2])/2. Thanks in advance.
 
GisDima:
Good afternoon, can you please write an indicator that can on the last bar (add up the High of the second bar with the Low of the 3rd bar ) and divide it all by 2. Ie/the formula probably looks like this: Price[i]=(High[1]+Low[2])/2. Thank you in advance.

Here you go:

//+------------------------------------------------------------------+
//|                                                Three Candles.mq5 |
//|                              Copyright © 2018, Vladimir Karputov |
//|                                           http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2018, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.000"
#property description "Formula of the indicator: (High[i+1]+Low[i+2])/2.0"
#property indicator_separate_window
#property indicator_buffers 1 
#property indicator_plots   1 
//--- Line properties are set using the compiler directives 
#property indicator_label1  "Line"      // Name of a plot for the Data Window 
#property indicator_type1   DRAW_LINE   // Type of plotting is line 
#property indicator_color1  clrBlue     // Line color 
#property indicator_style1  STYLE_SOLID // Line style 
#property indicator_width1  1           // Line Width 
//---
double         LineBuffer[];
//+------------------------------------------------------------------+ 
//| Custom indicator initialization function                         | 
//+------------------------------------------------------------------+ 
int OnInit()
  {
//--- Binding an array and an indicator buffer 
   SetIndexBuffer(0,LineBuffer,INDICATOR_DATA);
//---
   PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0.0);
//--- 
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
   if(rates_total<3)
      return(0);
   int limit=prev_calculated-1;
   if(prev_calculated==0)
     {
      LineBuffer[0]=0.0;
      LineBuffer[1]=0.0;
      limit=2;
     }
//---
   for(int i=limit;i<rates_total;i++)
      LineBuffer[i]=(high[i-1]+low[i-2])/2.0;
//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+------------------------------------------------------------------+


Three Candles

Files:
 
GisDima:
Good afternoon, can you please write an indicator that can on the last bar (add up the High of the second bar with the Low of the 3rd bar ) and divide it all by 2. Ie/ the formula probably looks like this: Price[i]=(High[1]+Low[2])/2. Thanks in advance.

Here you go

Files:
Midle_HL.mq4  3 kb
 
Yurij Izyumov:

I will write a free indicator in MQL4 on terms of free distribution - placement as a free product on the Market or code in CodeBase.

I can also write it in MQL5, but my preference is for MQL4 - it depends on the logic and, of course, it is better to write something meaningful. Theoretically, an Expert Advisor is also possible.

Naturally, the tasks like - I want an indicator based on Elliot's wave theory - are not considered =) Since assess the amount of work and think about it.

If you want - write the job openly.

In advance, think through the possibilities - alerts, audible alarms, notifications to the mail / phone, arrows, news, etc.

Hello. Is it possible to fix the indicator. It was created by the author to train neural networks. I have never tried to use this indicator, it is too expensive and I have to use it every time I finish a bar. If you manage to fix it then change the buy/sell signals to the standard passthrough arrows and the beeping signals won't hurt.

Files:
i_sampler.mq5  8 kb
 
Victor Nikolaev:

Here you go

Thank you and thank you very much, just what I needed))
 
Vladimir Karputov:

Here you go:



Thank you for the indicator, though I forgot to add that the indicator was needed for mt4, i.e. with mq4 extension, because I thought it was the same thing, but I was wrong. Anyway, thank you very much!)
 

Good evening!

I would be grateful, in writing an EA...martin...mt 4

Thank you!

Files:
4t37zu_1.png  27 kb
22rm5m_2.png  29 kb
ixk6xn_3.png  32 kb
033v8o_4.png  30 kb
22td60_5.png  32 kb
cmtnzy5.png  74 kb
 
Vovan911:

Good evening!

I would be grateful, in writing an EA...martin...mt 4

Thank you!

Vovan, you buy cheaper and sell dearer, not the other way around

but it's certainly up to the owner...

 
Renat Akhtyamov:

Vovan, you buy cheaper and sell more expensive, not the other way round.

But it's certainly up to the owner...

I didn't realise that the thread was on indicators...sorry, I was looking for an advisor...

I do not know what you mean, I asked for help because I suffered a stroke at the end of the year and sometimes I cannot put my thoughts together.

I can't afford to buy one.

Good luck to you!

Reason: