Fr4nz78 / Publications
Forum
OrderSelect returns the wrong order
Good afternoon, In my EA I store an array of tickets I get using OrderSend. Later in the code I try to access the order with OrderSelect and the following code : if ( OrderSelect (ids.At(i), SELECT_BY_TICKET )) { if ( OrderMagicNumber () == OrderMagic) { // Do something here } } In
Constraints for input parameters during optimization
I've 3 different input parameters : P1 [1..10], P2 [1..10] and P3 [3..10]. The constraints are the following : P1 < P2 < P3. Some potential solutions should be discarded right away when the constraints are not respected. For instance when P1 = 2, P2 = 1 and P3 = 4. Is there a way to accomplish such