Индикаторы: Didi Needles - with MA Threshold Diff Filtering - страница 2

 

Как вы конвертируете его в МТ4?


Я олдтаймер и использую МТ4 только с другими индикаторами, было бы интересно настроить его на МТ4 !!! ЕСЛИ ВЫ МОЖЕТЕ РЕШИТЬ ЭТУ ПРОБЛЕМУ, СПАСИБО!!!

 
Поправьте пожалуйста индикатор не компилируется
 
Roman Kryzhanivskyy #:
Поправьте пожалуйста индикатор не компилируется
//+------------------------------------------------------------------+
//| Filling indicator buffers from the MA indicator                  |
//+------------------------------------------------------------------+
bool FillArrayFromBuffer(int indicatorHandle,           // handle of the instantiated Indicator
                         int indicatorInternalBuffer,  // internal buffer # of the Indicator (iMAs == 0, just one!)
                         int itemsQty,                 // number of values to copy to buffer
                         double &bufferToCopyInto[],   // buffer to hold a copy of indicator's data
                        )
  {

   ResetLastError();   // reset last error code

// fill a part of the requested buffer array with values from the indicator buffer that has a 0 index
   if(CopyBuffer(indicatorHandle, indicatorInternalBuffer, 0, itemsQty, bufferToCopyInto) < 0)     // if the copying fails, tell the error code
     {
      Print("Failed to copy data from the Indicator. Error Code:", GetLastError());
      return(false);  // quit with zero result - it means that the indicator is considered as not calculated
     }
   return(true);  // everything is fine
  }

Запитую уберите помечена красным и компилируйте

double &bufferToCopyInto[],   // buffer to hold a copy of indicator's data





 
На мой взгляд, с простыми скользящими (Simple) индикатор работает лучше.
 
очень хорошая точка зрения о запятой, вход будет на закрытии свечи стрелки правильно? есть ли советник, который делает этот вход самостоятельно?