Store signs

MQL4 Scripts

Job finished

Execution time 3 days
Feedback from customer
very professional and fast programmer. Recommended!!!!
Feedback from employee
Thanks for giving orders, a pleasure to work with the customer!!!

Specification

Hello everyone. I wrote this simple code. I would like to know, if it is possible to store the signals that come out on the graph. If I close the MT4, when I open it again, I would find the old stored signals. I will not use the "for loop", because it rewrites the signals in the historic. Thanks, Max.


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

#property indicator_type1 DRAW_ARROW
#property indicator_width1 1
#property indicator_color1 Green

#property indicator_type2 DRAW_ARROW
#property indicator_width2 1
#property indicator_color2 Yellow


extern int Ritardo_Secondi=10;

datetime time_alert; //used when sending alert
//--- indicator buffers
double Buffer1[];
double Buffer2[];

int Period1=2;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {

   IndicatorBuffers(2);
   SetIndexBuffer(0,Buffer1);
   SetIndexEmptyValue(0,0);
   SetIndexArrow(0,108);
   SetIndexBuffer(1,Buffer2);
   SetIndexEmptyValue(1,0);
   SetIndexArrow(1,108);

   return(INIT_SUCCEEDED);
  }
//________________________________

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;

   if(Buffer1[i]!=0)
     {
      Buffer1[i]=Low[i]-10*Point();
     }

   if(Buffer2[i]!=0)
     {
      Buffer2[i]=High[i]+10*Point();
     }

   static datetime BarStart=0;
   static bool check=false;
   if(BarStart!=Time[2]+Period()*120)
     {
      BarStart=Time[2]+Period()*120;
      check=true;
     }

   if(check && TimeCurrent()>=Time[2]+Period()*120+Ritardo_Secondi)
     {
      check=false;
      //Inserisci condizioni

      //Indicator Buffer 1
      if(iRSI(NULL,PERIOD_CURRENT,Period1,PRICE_CLOSE,0)<40

         )
        {
         Buffer1[0]=Low[0]-10*Point();
        }

      //Indicator Buffer 2
      if(iRSI(NULL,PERIOD_CURRENT,Period1,PRICE_CLOSE,0)>60

         )
        {
         Buffer2[0]=High[0]+10*Point();
        }

     }

   return(rates_total);
  }
//-----------------------------------------------------------------------------------------------------------------------------

If I close the MT4 at this time, when I open it again I have to find the same situation

Picture 1


and NOT one presented in picture 2

Picture 2




Responded

1
Developer 1
Rating
(711)
Projects
1030
39%
Arbitration
47
49% / 23%
Overdue
84
8%
Free
2
Developer 2
Rating
(103)
Projects
205
41%
Arbitration
17
29% / 71%
Overdue
45
22%
Free
3
Developer 3
Rating
(38)
Projects
67
9%
Arbitration
18
11% / 56%
Overdue
17
25%
Free
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
(769)
Projects
1033
44%
Arbitration
50
8% / 50%
Overdue
117
11%
Free
6
Developer 6
Rating
(71)
Projects
156
44%
Arbitration
22
41% / 14%
Overdue
16
10%
Free
7
Developer 7
Rating
(91)
Projects
144
38%
Arbitration
67
15% / 48%
Overdue
55
38%
Free
Similar orders
I am looking for a developer to code my custom Ninjatrader 8 strategy and make it work perfectly, your expertise is highly needed for this project kindly reach out and let's proceed
Hello I am looking for a professional in building a stock trading robot and make it work perfectly Specifically, I want to build a robot for trading in options from the IOF your expertise is highly needed in this project Kindly reach out and let proceed
Need a tradin g robot 30 - 50 USD
I would like to create a robot (another version of a robot I already have) I currently have the source code but would like to have another robot that belongs to me but with different settings, if I provide you with the source code with all the settings are you able to remake me another robot with modifications? and if so what would be your price
I am in need of a developer to connect my TradingView signal with cTrader in other to make receive information and make it work perfectly your expertise is highly needed in this project feel free to reach out to me and let's get started
I need a proficient developer to code my NinjaTrader 8 strategy, In order to work perfectly. Your expertise is invaluable for this project's success. Let's collaborate to achieve optimal trading results
I'm looking for a skilled developer to connect my TradingView signals with cTrader, ensuring flawless functionality. Your expertise is essential for this project's success. Let's collaborate to achieve seamless trading automation
Development of MT5 EA or Script For Account Load Calculation 1) Calculate Account Load based on Active positions and Set Stop losses 2) Calculate Account Load based on Pending orders 3) The EA Or Script will need a Simple Text and Edit box GUI to be used for communicating with user regarding load calculation parameters and results. 4) There Will Also be a text file used by both EA and User for communicating load
a.) My current Script can do the Followings, 1.a) Create an index; 1.b) Create a custom configuration chart. b.) What i want is to assemble all indexes and make an average index(Avg Index= index1 + index2 + index3 + ........../ no: of indexes) We will call this average index "APX" c.) Then we will configure another custom charts whereby we will say 1.) APXAUD=APX/AUD Index; 2.) APXCAD=APX/CAD Index; 3.)
I am looking to have a specific strategy of mine based off a mean reversion indicator in trading view, developed into a EA on MQL5. An understanding of pine script and MQL5 is mandatory for this project. It is a martingale strategy. I am only using one indicator off of trading view, no more
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I

Project information

Budget
10 - 15 USD
VAT (22%): 2.2 - 3.3 USD
Total: 12.2 - 18.3 USD
For the developer
9 - 13.5 USD
Deadline
from 2 to 5 day(s)