Download MetaTrader 5

Error 4029 Invalid array - page 2

To add comments, please log in or register
Bro840
104
Bro840  
now try it on CHFJPY and  select 1Day time frame
Keith Watford
Moderator
10544
Keith Watford  
bro840:
now try it on CHFJPY and  select 1Day time frame
It is exactly the same, with the ArrayResize on the buffer, error 4029. Remove the ArrayResize and no error.
whroeder1
16529
whroeder1  
In any case, since the buffer is never assigned to, the image posted can not be generated by the code posted.
Bro840
104
Bro840  
int OnInit()
{  
   SetIndexBuffer(0,Indicador);                          // Assigning an array to a buffer
   SetIndexStyle (0,DRAW_HISTOGRAM,STYLE_SOLID,5);       // Line style
                                                           
   return(INIT_SUCCEEDED);
}
I don't get you it's assigned on OnInit
Bro840
104
Bro840  
my indicator is working just fine omfg how i didn't saw rsrsrsrsrsrsrsrs CHFJPY has a candle from 115 to 138 
Bro840
104
Bro840  
WHRoeder:
In any case, since the buffer is never assigned to, the image posted can not be generated by the code posted.
I understand it's because you came after i removed the total code. I Put in here so the GumRai could test it and then i removed :)
12
To add comments, please log in or register