Questions from a "dummy" - page 73

 
uncleVic:
Unfortunately, there is no such function. Or rather, there is, but in the protected area.
Is there a way to find out which indicators the user has selected to receive signals?
 

In what case can an array not be set as a timeseries? Trying this and it doesn't work:

   ResetLastError();
   //---
   double Array[4];
   //---
   err=GetLastError();
   //---
   if(CopyBuffer(Handle,0,0,4,Array)<0)
     {
      Print("Неудалось скопировать значения в массив! Ошибка ("+IntegerToString(err)+")");
     }
   else
     {
      if(!ArrayIsSeries(Array)) 
        { 
         Print("Установим, как таймсерию!");
         //---
         if(!ArraySetAsSeries(Array,true))
           {
            Print("Неудалось установить, как таймсерию! Ошибка ("+IntegerToString(err)+")"); return;
           }
        }
      //---
      Print("Есть контакт!");
      //---
      Print("Array[0]: ",Array[0]);
      Print("Array[1]: ",Array[1]);
      Print("Array[2]: ",Array[2]);
      Print("Array[3]: ",Array[3]);
     }
 
tol64:

In what case can an array not be set as a timeseries? Trying this and it doesn't work:

The documentation says https://www.mql5.com/ru/docs/array/arraysetasseries

Specifically, in your case, you are trying to change the way you access a static (predefined dimension) array

Документация по MQL5: Операции с массивами / ArraySetAsSeries
Документация по MQL5: Операции с массивами / ArraySetAsSeries
  • www.mql5.com
Операции с массивами / ArraySetAsSeries - Документация по MQL5
 
masharov:
Is there a way to find out - which indicators the user has chosen to receive signals?
Why? You, as a developer, already know which indicators you use
 
stringo:

The documentation says it all at https://www.mql5.com/ru/docs/array/arraysetasseries

In your case specifically, you are trying to change the way you access a static (predefined dimension) array

Thank you. Got it. I read the help, but didn't understand it. But your words immediately clarified it.)))
 
stringo:
Why? You, as a developer, already know what indicators are used
the plugin library doesn't know what indicators are used. Because in the MQL Wizard indicators can be set arbitrarily when creating an EA.
 
masharov:
The plug-in library doesn't know which indicators are used. Because in the MQL Wizard indicators can be set arbitrarily when creating an EA.

Why does the plug-in library need to know the indicators?

 
stringo:

Why does the plug-in library need to know the indicators?

To add strategies based on the selected indicators.
 

CopyHigh - maximum barprices. It turns out the maximum Bid prices. How do I get the maximum Ask prices for the bars?

Документация по MQL5: Стандартные константы, перечисления и структуры / Константы индикаторов / Ценовые константы
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы индикаторов / Ценовые константы
  • www.mql5.com
Стандартные константы, перечисления и структуры / Константы индикаторов / Ценовые константы - Документация по MQL5
 
abeiks:

CopyHigh - maximum barprices. It turns out the maximum Bid prices. How do I get the maximum Ask prices for the bars?

Probably, we can get the maximal price of the bar and add to it the spread on that bar.
Reason: