Thread: Ask!
View Single Post
  #347 (permalink)  
Old 09-12-2006, 08:11 AM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Quote:
Originally Posted by deeforex
Thanks again!

I changed the 3rd from the last line to this
Code:
                  if(OrderArray[i][LOTS]>MBL)MBL=OrderArray[i][LOTS];
and got it to work. It's way past my bedtime. Tomorrow when I wake I will study the logic of your code. But because I am stubborn I am going to figure out how to use the darn ArrayMaximum function!! I will also have to read more about indexing to see how my old ways were sooooo wrong.

Thanks Again!!!!
dee
just to save you some time the reason the max function was not working for what you wanted is because you are using a multi dimensional array and you are storing different kinds of data. It will return the max of that data, so it is likely that you were returning a profit number or anything higher than your REAL max lot size
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
Reply With Quote