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