You still haven't read the documentation for iLow() . . . the first parameter is a string and is the Symbol, what symbol is PB[0] ? PB[] is a double not a string . . . do you understand why this is never going to work ?
This is where your missing bracket is . . . all you need to do is count them . . .
thank you so mutch,
but I've wrong to paste the script version,
you catch the error,
I was trying to use another way like the arraysort instead of use ilow and ihigh directly,
after this simple EMA cross indicator and EA, I'm trying to translate in MQL4a type of Dorsey indicator,
I've trouble to use the iLow for select the low and lowest value of an array of a variable PB values.
Maybe you are running the EA with the wrong averages. No matter how much you mess about with moving averages, adding indicators or restricting entry it is hard not to end up buying at the top or selling near the bottom.
Yes Giuseppe... I think you mean to use the series array Low[]
double Low[]
Series array that
contains the lowest prices of each bar of the current chart.
instead of iLow()
double iLow(
string symbol, int
timeframe, int shift)
Returns
Low value for the bar of indicated symbol with timeframe
and shift. If local history is empty (not loaded), function returns
0.
For the current chart, the information about low prices is in the
predefined array named Low[].
At least I think that's what you meant to use.... I'm just trying to figure out WHAT you are trying to do....LOL..
You still haven't read the documentation for iLow() . . . the first parameter is a string and is the Symbol, what symbol is PB[0] ? PB[] is a double not a string . . . do you understand why this is never going to work ?
This is where your missing bracket is . . . all you need to do is count them . . .
thank you so mutch,
but I've wrong to paste the script version,
you catch the error,
I was trying to use another way like the arraysort instead of use ilow and ihigh directly,
all this for a parenthesis .
after this simple EMA cross indicator and EA, I'm trying to translate in MQL4a type of Dorsey indicator,
I've trouble to use the iLow for select the low and lowest value of an array of a variable PB values.
Maybe you are running the EA with the wrong averages. No matter how much you mess about with moving averages, adding indicators or restricting entry it is hard not to end up buying at the top or selling near the bottom.
Lol... Nice job with the crayons... Rap...
Yes Giuseppe... I think you mean to use the series array Low[]
double Low[]
Series array that contains the lowest prices of each bar of the current chart.
instead of iLow()
For the current chart, the information about low prices is in the predefined array named Low[].
At least I think that's what you meant to use.... I'm just trying to figure out WHAT you are trying to do....LOL..
PipPip..Jimdandy