Forum

How to get TAKE PROFIT order number

Im placing two orders at the start of EA, but in the return i just have the ordernumber of the main order. How can i get the ordernumber of the take profit of my order. I need this number so i can know when the take profit order is finished. Thanks

NormalizePrice to a higher value

Im trying to normalize my price but i need to be normalized to the higher pricer not the closest. Example. When i try to normalize the value: 85977.14 im getting the price: 85975, but i need to enter more safe in the operation so the right price should be 85980. Considering this Symbol is 5 in 5