Store signs

MQL4 Komut dosyaları

İş tamamlandı

Tamamlanma süresi: 3 gün
Müşteri tarafından geri bildirim
very professional and fast programmer. Recommended!!!!
Geliştirici tarafından geri bildirim
Thanks for giving orders, a pleasure to work with the customer!!!

İş Gereklilikleri

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




Yanıtlandı

1
Geliştirici 1
Derecelendirme
(729)
Projeler
1049
40%
Arabuluculuk
47
49% / 23%
Süresi dolmuş
84
8%
Serbest
2
Geliştirici 2
Derecelendirme
(103)
Projeler
205
41%
Arabuluculuk
17
29% / 71%
Süresi dolmuş
45
22%
Serbest
3
Geliştirici 3
Derecelendirme
(39)
Projeler
69
9%
Arabuluculuk
18
11% / 56%
Süresi dolmuş
18
26%
Serbest
4
Geliştirici 4
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(769)
Projeler
1033
44%
Arabuluculuk
50
8% / 50%
Süresi dolmuş
117
11%
Serbest
6
Geliştirici 6
Derecelendirme
(71)
Projeler
156
44%
Arabuluculuk
22
41% / 14%
Süresi dolmuş
16
10%
Serbest
7
Geliştirici 7
Derecelendirme
(91)
Projeler
144
38%
Arabuluculuk
67
15% / 48%
Süresi dolmuş
55
38%
Serbest
Benzer siparişler
We are seeking a skilled developer who can convert a Tradingview indicator written in Pinescript to a NinjaTrader indicator written in C#. The goal is to create a profitable trading strategy using this indicator. The successful candidate will have expertise in both Pinescript and C# programming languages, as well as a strong understanding of trading indicators and strategies. The main responsibilities will include
I want to add the following item in the script Changing lotsize per range ( the exesiting script should be adapted for buy/sell/modify section without/instead create a fully new program) These option should be added so i can define in the TAB 1. From which entry it should increase/decrease lotsize ( first, second, third, fourth) - see example entry point order 2. maximum lotsize in total of all open orders : max risk
Hi, I have a Compiled JForex strategy (.jfx file) I would like someone to convert it in to readable source code. Please let me know if you can do this task. Thank you
Good morning, I've installed MT4 with DWX_ZeroMQ_Server_v2.0.1_RC8. I also installed Python and ZeroMQ on the same PC. MT4 and Python communicate well. I want someone to develop a script that allows me to change the following parameters in the MT4 Strategy Tester. They are : the symbol, the time frame and the spread. By selecting these three parameters (symbol, time frame and spread) in the Python script and running

Proje bilgisi

Bütçe
10 - 15 USD
KDV (22%): 2.2 - 3.3 USD
Toplam: 12.2 - 18.3 USD
Geliştirici için
9 - 13.5 USD
Son teslim tarihi
from 2 to 5 gün