Please help......

 
"EasyLanguage" code ,can you change to MT4 Language?
 
Hello Alexantry,

seems not to be so difficult, but there are things I don't understand:

value0 trough value4: where are these variables defined?
What does SwingHigh/SwingLow? how are they calculated?

Do you have a EL - Reference?

regards, cori
 
Swing High
 
Swing Low
 
 
What means this:

blBlue= Average(value0,13)[8]; {blue}
 
Average
 
Yes, ok, but what means the [8] in blBlue= Average(value0,13)[8]; {blue}

cori
 
Maybe it is color...
 
Ok, now we have all things together, I wonder how this can go.

1. in function Average, there is a parameter price, which must be in fact an array, because only in an array you can loop through elements.

2. This function Average is called in the main routine with a field, which seems NOT to be an array, because it is calculated by ( h + l ) / 2 which only can be interpreted as ( High[0] + Low[0] ) / 2.

3. Another Question is open, if we look at the usage of the function Average. As far as I see, the return value should be a double, because it is the sum of the price array. But at the place where it is called, there we see something like blBlue= Average(value0,13)[8]; Again, what is the [8] for? It seems, that this should be the eight Element of an array, so the only way to interpret this for me is, that Average must return a array.

This is driving me mad.

Also, many of the variables are not defined. This is, by the way, not good programming style.

Are you sure, that your indicator is running?

Either, I am not able to understand these simple Average function or you have programmed something ugly which can not run.

Can you tell me where the code for Average and SwingHigh/SwingLow is from? Also do you have a reference guide? or an online access to it?

Thanks, cori
 
I only can tell you this url " http://trader.online.pl/ELZ/t-i-.html ".
Reason: