icustom iOBV returns no values

 

Hello everyone,

I am a little confused why iOBV doesn't return any data with icustom at the moment. When I don't use icustom the iOBV works fine. I am not sure if this #define is correct ( #define OBV_ "OBV.ex4" )

Please advise

void statistics()
  {
   shift=0;pos=0;
   for(shift=0;shift<=INSPECT_DATA;shift++)
     {
      STS[pos]  =iCustom(Symbol(),TIME_FRAME,STO_,K_PERIOD,D_PERIOD,SLOWING,PRICE_STO,FIELD_PRICE,MODE_SIGNAL,shift);
      STM[pos]  =iCustom(Symbol(),TIME_FRAME,STO_,K_PERIOD,D_PERIOD,SLOWING,PRICE_STO,FIELD_PRICE,MODE_MAIN,shift);
      RSI[pos]  =iCustom(Symbol(),TIME_FRAME,RSI_,PERIOD,RSI_APP_PRICE,shift);
      CCI[pos]  =iCustom(Symbol(),TIME_FRAME,CCP_,PERIOD,CCP_APP_PRICE,shift);
      
     // double val=iOBV(NULL,0,PRICE_CLOSE,1);
      
      OBV[pos]  =iCustom(Symbol(),TIME_FRAME,OBV_,PERIOD,shift);
   
      Alert(OBV[1]);
      pos++;
 }
 
GrumpyDuckMan:

Hello everyone,

I am a little confused why iOBV doesn't return any data with icustom at the moment. When I don't use icustom the iOBV works fine. I am not sure if this #define is correct ( #define OBV_ "OBV.ex4" )

Please advise

please correct iCustom

 double val=iCustom(NULL,0,"SampleInd",13,1,0);

 
GrumpyDuckMan:

Hello everyone,

I am a little confused why iOBV doesn't return any data with icustom at the moment. When I don't use icustom the iOBV works fine. I am not sure if this #define is correct ( #define OBV_ "OBV.ex4" )

Please advise

Hi,

Please make sure you have OBV.ex4 file in your indicator folder.

If you want to use default metatrader OBV, the right method is using the iOBV.

Regards

Reason: