I need help about define and update a table on MQL4 coding...

 

Hi,

I try to create an EA with mql4. I need create a table and then I can update it from time to time. But I don't know how I can create a table and array. 

My table is 22x7 matrix.

table[state,action] = np.zeros((22,7))   // 22*7 matrix including all elements as zero.


And, How can I update this table? Forexample table[5,3] = 5.

Best,

Murat Y.

 
Murat Yazici:

Hi,

I try to create an EA with mql4. I need create a table and then I can update it from time to time. But I don't know how I can create a table and array. 

My table is 22x7 matrix.

table[state,action] = np.zeros((22,7))   // 22*7 matrix including all elements as zero.


And, How can I update this table? Forexample table[5,3] = 5.

Best,

Murat Y.

   int table[22][7] = {0};
   table[20][5] = 5;
Reason: