Forum

Timeframe change re-sizes array to declared size

Dear all, Hope anybody can answer the following questions relating to the use of arrays in indicators: Is it correct that an global array is re-declared once the change of the timeframe of the chart causes the indicator to go through the DeInit and Init functions ? I see the size of a particular

Case switch using array doesn't work after build 600

Hi There! Can anybody explain to me why this piece of code: int Day_Of_Week_Array[]; { switch(Day()) { case 15: Day_Of_Week_Array[1] = {3}; break case 16: Day_Of_Week_Array[2] = {3,4}; break; case 17: Day_Of_Week_Array[3] = {3,4,5}; break; case 18: Day_Of_Week_Array[4] = {3,4,5,6}; break; case 19