EA with Custom Indicator: no values

 

Hi,

I am trying to convert a my custom indicator, perfectly working, into an EA. I have set the iCustom function as follows:

double vwp_up=iCustom(_Symbol,0,"VWP - Price",1,0);
double vwp_down=iCustom(_Symbol,0,"VWP - Price",0,0);

 Commenting the those variables, to see their value, I get only random allocation numbers: 2147483647. Furthermore those values are constants and do not change over time (while back testing).

So it is impossible to trade! If I stop the backtesting, strange thing, in the indicator window I get and see "vwp_up" and "vwp_down" values and lines. Here is a pic:

EA iCustom No Value 

How could I handle this?

Thanks!  

 
  1. Don't double post
  2. double vwp_up=iCustom(_Symbol,0,"VWP - Price",1,0);
    double vwp_down=iCustom(_Symbol,0,"VWP - Price",0,0);
    Your image shows it doesn't generate bar zero values.
 
WHRoeder:
  1. Don't double post
  2. Your image shows it doesn't generate bar zero values.

 

  1. Busted, I admit! (sorry)
  2. Ok, I get it! I thought it was only for displaying in chart separate window and not also for calculation! It should be alright then! :) Thanks  WHRoeder

Reason: