
11-11-2005, 05:40 PM
|
 |
Senior Member
|
|
Join Date: Oct 2005
Posts: 994
|
|
Are the arrays your problem?
Quote:
|
Originally Posted by Alex.Piech.FinGeR
MaxtradeClose == First Item of array MaxTradeClose == Value of that array for current bar
i not understand 
|
Review lesson 11:
Quote:
Arrays:
In our life we usually group similar objects into units, in the programming we also need to group together the data items of the same type. We use Arrays to do this task.
Arrays are very like the list tables, you group the items in the table and access them the number of the row. Rows in the Arrays called Indexes.
To declare an array you use a code like that:
int my_array[50];
Here, you have declared an array of integer type, which can hold up to 50 items.
You can access each item in the array using the index of the item, like that:
My_array[10] = 500;
Here, you have set the item number 10 in the array to 500.
You can initialize the array at the same line of the declaration like that:
int my_array[5] = {1,24,15,66,500};
|
In MQL4:
MaxTradeClose[0] is the first item in the array MaxTradeClose.
MaxTradeClose[1] is th second item.
MaxTradeClose[2] is the third item. etc..
But in EasyLnaguage the Array starts with the index 1 so,
MaxTradeClose[1] is the first item in the array MaxTradeClose.
MaxTradeClose[2] is th second item.
MaxTradeClose[3] is the third item. etc..
So, what's your question?
|