I want to create a Sell Stop order, for this I use CTrade, according to the logic (mine, it may not be correct) to place this order, we create a condition where the bid must be greater than the price. Hence Take Profit = price – take profit in points and Stop Loss = price + stop loss in points (values in points are entered because I count from the opening price of price).
As a result, I get invalid price or invalid stops. If it is not difficult, give an example specifically for SellStop().
Thank you for your attention, I understand that the question is probably too simple and obvious, but for a day I did not understand what the error is.