Indicators: Didi Needles - With Filtering - page 2

 

How do you convert it to MT4?


I'm an old timer and I only use MT4 with other indicators, it would be interesting to set it up on MT4 !!! IF YOU CAN SOLVE IT, THANK YOU !!!

 
Please correct the indicator does not compile
 
Roman Kryzhanivskyy #:
Please correct the indicator does not compile.
//+------------------------------------------------------------------+
//| 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
  }

Clean up the written one marked in red and compile it.

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





 
In my opinion, the indicator works better with simple moving (Simple).
 
very good point about the comma, entry would be at the close of the arrow candle correct? is there an EA that does this entry by itself?