Delay Indicator

MQL4 Skripte

Auftrag beendet

Ausführungszeit 22 Stunden
Bewertung des Kunden
very serious and professional programmer!
Bewertung des Entwicklers
All perfectly! Good man!

Spezifikation

Hello I need help to change this code.
I wrote the code so as to delay the reading of the conditions after 3 seconds.
I wish that the reading time was between 3 seconds and 25 seconds. If for example the condition occurs after 25 seconds should not appear the arrow of Alert. It's possible?

Greetings Massimo.


#property indicator_chart_window


//--- indicator settings
#property indicator_chart_window
#property indicator_buffers 2

#property indicator_type1 DRAW_ARROW
#property indicator_width1 1
#property indicator_color1 0xFFAA00
#property indicator_label1 "Buy"

#property indicator_type2 DRAW_ARROW
#property indicator_width2 1
#property indicator_color2 0x0000FF
#property indicator_label2 "Sell"

//--- indicator buffers
double Buffer1[];
double Buffer2[];

double myPoint; //initialized in OnInit



//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {   
   IndicatorBuffers(2);
   SetIndexBuffer(0, Buffer1);
   SetIndexEmptyValue(0, 0);
   SetIndexArrow(0, 241);
   SetIndexBuffer(1, Buffer2);
   SetIndexEmptyValue(1, 0);
   SetIndexArrow(1, 242);
  
   
   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[])
 
     {
     int i=0;
      static datetime BarStart=0;
   static bool check=false;
    if(BarStart!=Time[0])
     {
      BarStart=Time[0];
      check=true;
     }
   if(check &&  TimeCurrent()>=Time[0]+3)
     {
      check=false;
      //Check Condition
      if(iRSI(NULL, PERIOD_CURRENT, 2, PRICE_CLOSE, i) > 50
      && iRSI(NULL, PERIOD_CURRENT, 2, PRICE_CLOSE, i+1) < 50 //Relative Strength Index crosses above fixed value
      )
        {
         Buffer1[i] = Low[i] - 30 * Point(); //Set indicator value at Candlestick Low - fixed value
        }
      else
        {
         Buffer1[i] = 0;
        }
      //Indicator Buffer 2
      if(iRSI(NULL, PERIOD_CURRENT, 2, PRICE_CLOSE, i) < 50
      && iRSI(NULL, PERIOD_CURRENT, 2, PRICE_CLOSE, i+1) > 50 //Relative Strength Index crosses below fixed value
      )
        {
         Buffer2[i] = High[i] + 30 * Point(); //Set indicator value at Candlestick High + fixed value
        }
      else
        {
         Buffer2[i] = 0;
        }
     }
   return(rates_total);
  }
//+------------------------------------------------------------------+

Bewerbungen

1
Entwickler 1
Bewertung
(71)
Projekte
156
44%
Schlichtung
22
41% / 14%
Frist nicht eingehalten
16
10%
Frei
2
Entwickler 2
Bewertung
(586)
Projekte
1048
49%
Schlichtung
39
28% / 41%
Frist nicht eingehalten
49
5%
Arbeitet
3
Entwickler 3
Bewertung
(91)
Projekte
144
38%
Schlichtung
67
15% / 48%
Frist nicht eingehalten
55
38%
Frei
4
Entwickler 4
Bewertung
(46)
Projekte
73
16%
Schlichtung
13
8% / 92%
Frist nicht eingehalten
37
51%
Frei
Ähnliche Aufträge
Hi there, I am offering $30 usd for someone to convert four pictures I have to metatrader icons(arrows) that I can use in both MT4 & MT5. We all know that we can change arrows on the chart by using a different arrow code, but the arrows in metatrader are boring and I want to use custom ones. I want the four attached pictures as icons that i can use with indicators that give the option to choose your arrow type. I
I need an expert to decrypt my itf file using on prorealtime. I forgot my password, so I need to generate the source code. I need someone that can help me to derive source code from the itf file I have

Projektdetails

Budget
10 - 20 USD
MwSt (22%): 2.2 - 4.4 USD
Insgesamt: 12.2 - 24.4 USD
Für die Entwickler
9 - 18 USD
Ausführungsfristen
von 2 bis 5 Tag(e)