Icustom am I missing something here.

 
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Yellow
#property indicator_color2 Yellow
#property indicator_color3 Yellow

/**
  Extern variables
**/ 
double sar1 = 0.002;
double sar2 = 0.2;

int profit = 100; //In Pips
int loss = 2500; //In Pips

int history_bars = 27000; //Max History Bars

int  Star_Body_Length = 15;

color Color_Text = White;

/**
  Arrows
**/ 
double upArrow[];

double downArrow[]; double tArrow[]; /**   Vars **/ double P0, P1; int T0, T1;   int init() {    SetIndexStyle(0,DRAW_ARROW, EMPTY);    SetIndexArrow(0,72);    SetIndexBuffer(0, downArrow);           SetIndexStyle(1,DRAW_ARROW, EMPTY);    SetIndexArrow(1,71);    SetIndexBuffer(1, upArrow);    SetIndexStyle(2,DRAW_ARROW, EMPTY);    SetIndexArrow(2,70);    SetIndexBuffer(2, tArrow);           return(0); }

I got this indicator running smoothly with these indexbuffers working and they are drawing arrows.

Im writing a expert for this but Im getting no outputs on it. Can you spot what Im missing.

int start()
{
 double var1=iCustom(Symbol(),Period(),"RosyPipsIndicator",1,0);
  
 Print(var1); 

}

It prints out the same value "2147483647" every tick.

 
bonechair:

I got this indicator running smoothly with these indexbuffers working and they are drawing arrows.

Im writing a expert for this but Im getting no outputs on it. Can you spot what Im missing.


It prints out the same value "2147483647" every tick.


Yes, you do not have an arrow at bar 0
 

Ok thanks but I still get this junk


2014.02.10 16:05:19.537 2013.06.03 10:05 RosyPipsExpert EURUSD,M5: 2147483647
2014.02.10 16:05:19.470 2013.06.03 10:00 RosyPipsExpert EURUSD,M5: 2147483647
2014.02.10 16:05:19.403 2013.06.03 09:55 RosyPipsExpert EURUSD,M5: 1.3021
2014.02.10 16:05:19.336 2013.06.03 09:50 RosyPipsExpert EURUSD,M5: 2147483647

 
Ok I can just set them as zero before I do anything but not sure why thats in there.
 
bonechair:
Ok I can just set them as zero before I do anything but not sure why thats in there.

2147483647 == EMPTY_VALUE
Reason: