[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 499

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is such a joke:
?
Why, buystoploss[4] must be found behind the highest high between 0 and 19 candles.
i2 is reset, only once, but where else do I have to reset it?
Why, buystoploss[4] should be found behind the highest high between 0 and 19 candles.
i2 is zeroed, only once, but where else do I need to zero it?
see what you get...
Why, buystoploss[4] should be found behind the highest high between 0 and 19 candles.
i2 is zeroed out, only once, but where else do I have to zero it out?
Here's a search for the maximum:
Even better:
see what you get...
I figured it out, I zeroed i2 after the while loop and everything worked as it should, but now I can't figure out the same search for the lowest minimum, it's a real BREAK! Please help. each variable sellstoploss[i] is assigned a value of 999 to find the minimum.
Here's a search for the maximum:
Even better:
So I need the four highest highs to be found, for example the first from zero bar to 5, the second from zero bar to 10 etc.
Ah well, I understand what it is, did zeroing i2 after the while loop and everything is working as it should, but now I can not deal with the same search for the lowest minimum, there is a real BREAK! Please help.each variable sellstoploss[i] is assigned a value of 999 to find the minimum.
at least 20 times each cycle
PapaYozh 13.01.2012 10:23
Let the man reinvent the wheel, as long as he learns from his mistakes.
OK, I found the error myself, how clever I am. Of course I could have used iHighest, but I didn't think of it right away, and now that I've made such a loop, I'll just erase it, too bad.
Sometimes you just have to throw 3-4 thousand lines of code in the bin... and nothing...
Where's that bin?