EA with Custom Indicator: no values

Back to topics list To post a new topic, please log in or register
avatar
31
leourb_ 2015.09.12 16:35
 

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!  

avatar
13008
WHRoeder 2015.09.12 17:57 #
 
  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.
avatar
31
leourb_ 2015.09.12 19:06 #
 
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

Back to topics list  

To add comments, please log in or register