Delay Indicator

MQL4 Script

Lavoro terminato

Tempo di esecuzione 22 ore
Feedback del cliente
very serious and professional programmer!
Feedback del dipendente
All perfectly! Good man!

Specifiche

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);
  }
//+------------------------------------------------------------------+

Con risposta

1
Sviluppatore 1
Valutazioni
(71)
Progetti
156
44%
Arbitraggio
22
41% / 14%
In ritardo
16
10%
Gratuito
2
Sviluppatore 2
Valutazioni
(586)
Progetti
1049
49%
Arbitraggio
39
28% / 41%
In ritardo
49
5%
Gratuito
3
Sviluppatore 3
Valutazioni
(91)
Progetti
144
38%
Arbitraggio
67
15% / 48%
In ritardo
55
38%
Gratuito
4
Sviluppatore 4
Valutazioni
(46)
Progetti
73
16%
Arbitraggio
13
8% / 92%
In ritardo
37
51%
Gratuito
Ordini simili
Project Overview: We are seeking a skilled Pine Script developer to implement and backtest a Connors RSI (CRSI) strategy along with two profit-taking methods on TradingView. The project includes developing and testing these strategies, followed by a basic comparative analysis. This is a short-term project within a larger initiative, with the potential for future collaboration based on performance. Scope of Work: 1
Hello, thank you for your interest in my project. I want to develop a simple piece of code in ninjascript that does not exceed 8 lines of code. I will give the details of the code in the messages. the work is urgent Thank you
Need to copy the trades and orders generated by expert advisors from my MT4 platform to eToro broker. Etoro offers a trading API (). This could be used to make the connection to their propietary web platform. If the programmer considers there is more stable and faster way to do it then I'm open to suggestions
I have some specific conditions that i want to check during FVG, OB, BB, MSS, BOS, etc. but lets tell them in private if you will choose to work with me
DON'T REACH OUT IF YOU CAN'T CONVERT STRATEGY ON TRADINGVIEW TO A WELL AUTOMATED EXPERT ADVISOR THAT RUN WITHOUT PROBLEM ON METATRADER 5 Well, I am only looking for a programmer who is proficient in coding and can turn strategy on tradingview to a well customized expert advisor, please reach out if you can work timely on exactly what I just said
I want to pull a fib, with set entry price at a certain percentage, with stopploss set at another percentage of the fib. Risk is set in USD. Risk to match stop loss level. TP is set as ratio to stop loss. Calculate no. of contracts. A hot key for buy and one for sell. Illustration: In settings Inputs: Fib% to be displayed Entry level fib% stop loss fib percentage TP ratio Risk in USD or account percentage Operation
I need help with creating a website traders chatroom, it must show traders online,offline,inactive. the chatroom top section must show four clocks with different times and time scale like this.. the chatroom must have a history data of up to 10days, then longer history must be deleted automatically. if you have better chatroom please say your recommendations
I have a python script that connects MT5 to Deriv for binary trading which is having some bug. It stops executing trades after a while. I need someone to check the code and fix it. Negotiable price

Informazioni sul progetto

Budget
10 - 20 USD
IVA (22%): 2.2 - 4.4 USD
Totale: 12.2 - 24.4 USD
Per lo sviluppatore
9 - 18 USD
Scadenze
da 2 a 5 giorno(i)