0
добавил 5-й индикатор ни одной стрелки. червяк убрал, ничего не изменилось:


//+------------------------------------------------------------------+
//|                                                     Pointer9.mq4 |
//|                                              Copyright 2020, AM2 |
//|                                      http://www.forexsystems.biz |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, AM2"
#property link      "http://www.forexsystems.biz"
#property version   "1.00"
#property strict
#property indicator_chart_window

#property indicator_buffers 2

extern int Count=111;

extern string IndName1="SonicR VSA (Black)";

extern string IndName2="BetterVolume 1.4";

extern string IndName3="BB_Alert Arrows";

extern string IndName4="MBFX Timing";

extern string IndName5="Star-Profit-Channel";

double up[];
double dn[];

datetime t=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   SetIndexStyle(0,DRAW_ARROW,0,3,Blue);
   SetIndexArrow(0,233);
   SetIndexBuffer(0,up);

   SetIndexStyle(1,DRAW_ARROW,0,3,Red);
   SetIndexArrow(1,234);
   SetIndexBuffer(1,dn);

   Comment("");
//---
   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[])
  {
//---
   double blu1=0,
          blu2=0,
          bbup=0,
          bbdn=0,
          gre=0,
          red=0,
          greup=0,
          gredn=0,
          redup=0,
          reddn=0;

   for(int i=1; i<Count; i++)
     {
      blu1=iCustom(NULL,0,IndName1,2,i);
      blu2=iCustom(NULL,0,IndName2,1,i);

      bbup=iCustom(NULL,0,IndName3,1,i);
      bbdn=iCustom(NULL,0,IndName3,0,i);

      gre=iCustom(NULL,0,IndName4,1,i);
      red=iCustom(NULL,0,IndName4,2,i);

      greup=iCustom(NULL,0,IndName5,4,i);
      gredn=iCustom(NULL,0,IndName5,6,i);
      
      redup=iCustom(NULL,0,IndName5,3,i);
      reddn=iCustom(NULL,0,IndName5,1,i);

      if(blu1>0 && blu2>0 && bbdn<1000 && red<1000 && Bid<redup && Bid>reddn)
        {
         dn[i]=high[i];
        }
      if(blu1>0 && blu2>0 && bbup<1000 && gre<1000 && Bid>gredn && Bid<greup)
        {
         up[i]=low[i];
        }
     }

   if(t!=time[0])
     {
      if(up[1]>0)
        {
         Alert(_Symbol+" Buy!");
        }
      if(dn[1]>0)
        {
         Alert(_Symbol+" Sell!");
        }
      t=time[0];
     }

   Comment(iCustom(NULL,0,IndName4,1,1));
//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+------------------------------------------------------------------+



2-3 в одном это еще другое дело
avatar

AM2

  • 30 марта 2020, 21:48
0
какой из двух заказов делать?
avatar

AM2

  • 30 марта 2020, 20:50
0
сейчас посмотрел ролик. там много всего накручено. пишите что нужно конкретно и по минимуму :) 
avatar

AM2

  • 30 марта 2020, 20:48
0
здесь не только бу, а с доливатором. сделать можно но у вас в этом месяце есть выполенный заказ
avatar

AM2

  • 30 марта 2020, 20:39
0
есть готовый Hedge Martin. На стоповых и рыночных писал. смотрите в базе
avatar

AM2

  • 30 марта 2020, 20:34
0
скиньте в топик скрины с указанием входов выходов
avatar

AM2

  • 30 марта 2020, 07:45
0
здесь большой объем работы. маловероятно что кто то будет делать бесплатно
avatar

AM2

  • 30 марта 2020, 07:42
0
при добавлении 4-го индикатора совпадения условий крайне редкие:




//+------------------------------------------------------------------+
//|                                                     Pointer9.mq4 |
//|                                              Copyright 2020, AM2 |
//|                                      http://www.forexsystems.biz |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, AM2"
#property link      "http://www.forexsystems.biz"
#property version   "1.00"
#property strict
#property indicator_chart_window

#property indicator_buffers 2

extern int Count=111;

extern string IndName1="SonicR VSA (Black)";

extern string IndName2="BetterVolume 1.4";

extern string IndName3="BB_Alert Arrows";

extern string IndName4="MBFX Timing";

double up[];
double dn[];

datetime t=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   SetIndexStyle(0,DRAW_ARROW,0,3,Blue);
   SetIndexArrow(0,233);
   SetIndexBuffer(0,up);

   SetIndexStyle(1,DRAW_ARROW,0,3,Red);
   SetIndexArrow(1,234);
   SetIndexBuffer(1,dn);

   Comment("");
//---
   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[])
  {
//---
   double blu1=0,
          blu2=0,
          bbup=0,
          bbdn=0,
          gre=0,
          red=0;

   for(int i=1; i<Count; i++)
     {
      blu1=iCustom(NULL,0,IndName1,2,i);
      blu2=iCustom(NULL,0,IndName2,1,i);

      bbup=iCustom(NULL,0,IndName3,1,i);
      bbdn=iCustom(NULL,0,IndName3,0,i);

      gre=iCustom(NULL,0,IndName4,1,i);
      red=iCustom(NULL,0,IndName4,2,i);

      if(blu1>0 && blu2>0 && bbdn<1000 && red<1000)
        {
         dn[i]=high[i];
        }
      if(blu1>0 && blu2>0 && bbup<1000 && gre<1000)
        {
         up[i]=low[i];
        }
     }

   if(t!=time[0])
     {
      if(up[1]>0)
        {
         Alert(_Symbol+" Buy!");
        }
      if(dn[1]>0)
        {
         Alert(_Symbol+" Sell!");
        }
      t=time[0];
     }

   Comment(iCustom(NULL,0,IndName4,1,1));
//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+------------------------------------------------------------------+

avatar

AM2

  • 30 марта 2020, 07:36
+1
Заметил только одно расхождение с ТЗ. После закрытия ордера или сетки ордеров, линии остаются на том же месте. И могут стоять там сутками, пока цена их не пересечет и уже после последующего открытия переставляются.
Можно сделать так, чтобы они переставлялись и после закрытия?


поправил: www.opentraders.ru/downloads/2608/

avatar

AM2

  • 27 марта 2020, 21:27
0
сколько индикаторов используется для сигнала и какие именно?
в архиве их 6
avatar

AM2

  • 27 марта 2020, 20:42
0
на 30-е
avatar

AM2

  • 27 марта 2020, 20:36
0
последняя попытка. обычно я не вытягиваю тз. если нет четкого тз значит не ко мне:



www.opentraders.ru/downloads/2605/

avatar

AM2

  • 25 марта 2020, 22:07
0
а почему сразу не указали что анализируем 3 свечи а не 2?
avatar

AM2

  • 25 марта 2020, 21:35