HELP NEEDED.....
Try without this: OrderSelect(i, SELECT_BY_POS);
The first one is all you should need. try with that commented out.
Try without this: OrderSelect(i, SELECT_BY_POS);
The first one is all you should need. try with that commented out.
You agree to website policy and terms of use
}
could someone please help me here!? the above code works well but essentially it closes ALL buy or sell orders. I want it to close only the order corresponding to magicnumber 21 and then one other one order with a different magicnumber....how can i accomplish this? i am running multiple ea's and don't want this piece of code closing any other system generated trades. any help would be greatly apprreciated! Thankyou all. daniel