fernandoissler: I have this code: The problem is as follows: If I send a sell (or buy, whatever) order at the price of 1000, the order is sent and a take profit of 9750 is determined. But if a new sell (or buy, whatever) order occurs, the take profit of the previous order is canceled and both orders are reset when the new take profit is reached. How do I get orders to be handled individually? I want to keep two orders with different take profits.
That happens because you are most probably using a "netting" account, where only one "net" position is maintained per symbol.
If you want to manage multiple positions on the same symbol, you have to use a "hedging" account instead.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have this code:
The problem is as follows:
If I send a sell (or buy, whatever) order at the price of 1000, the order is sent and a take profit of 9750 is determined.
But if a new sell (or buy, whatever) order occurs, the take profit of the previous order is canceled and both orders are reset when the new take profit is reached.
How do I get orders to be handled individually? I want to keep two orders with different take profits.