Download MetaTrader 5

How it is this possible

To add comments, please log in or register
Do you know that MQL5 can create custom graphical tools?
Bogdan Alin Baltatu
2924
Bogdan Alin Baltatu 2016.09.08 15:05 

I create a static struct and I load with data.

The struct is an array and the size is 200. 

If you look in the printscreen attached you will see on index 0 and index 1 i have data. But i cannot access or return the default value.

 

 

Alain Verleyen
Moderator
30725
Alain Verleyen 2016.09.08 16:15  
Bogdan Alin Baltatu:

I create a static struct and I load with data.

The struct is an array and the size is 200. 

If you look in the printscreen attached you will see on index 0 and index 1 i have data. But i cannot access or return the default value.

 

 

Show the code that produces this output.
Bernhard Schweigert
5716
Bernhard Schweigert 2016.09.08 21:10  
Bogdan Alin Baltatu:

I create a static struct and I load with data.

The struct is an array and the size is 200. 

If you look in the printscreen attached you will see on index 0 and index 1 i have data. But i cannot access or return the default value.

 

 

Happens if array is asked for maybe -1

check code

To add comments, please log in or register