![]() If I do my math well, if I partially reduce the position by 10 coins at the price of 1450, then the commission is limit1_fee = 1450 * 10 * 0.0002 = $2.82.īut how do I calculate the profit? from price 1400 or 1410? Theoretically, these are 2 separate orders with 2 commissions and 2 take_profit(tp_fee) and stop_lost(st_fee) and partial position reductions. I also searched the Internet but did not find any formulas or dependencies. Adding to the position.įor example, if I opened a long ETHUSDT at 1400 for 50 coins ($700), and on price 1410 I added another 15 coins to the long position, how should I calculate the total profit, stop loss, take limit, etc. On the other hand, I have a second problem. This will leave 40 coins that will be taken into account when calculating profit and fees in future. The same issue with partial position closure. Sl_order_fee = 1350 * 50 * 0.0004 = $27 (O_o) I think I’m thinking badly somewhere and maybe I’m not taking something into account, because it looks like the exchange took pity on me and gave me $1 in gratis))) In total, a commission of $57 will be deducted from my profit, for a total profit of $2443īut if my strategy was wrong and the price dropped to 1350, what is the commission? Profit = (1 / input_price - 1 / last_price) * coin * long_short * input_price * last_price = $2500 The price has reached 1450, I want to close the position. I think it should be the same with a short position, I’m doing rough math. Again, this is rough.Īccordingly, if, for example, I opened a long ETHUSDT at a price of 1400 per 50 coins ($700), then when creating a long order, open_long_order_fee = 1400 * 50 * 0.0004 = $28. Now I am talking about buying and selling on the market, if we take into account limit orders, then limit_order_fee = order_fee / 2. Well, if we talk about commissions, then from the official website, if we do not take into account VIP, payment by BNB, etc., the formula is approximately as follows:Ġ.0004 is a 0.04% commission for opening or closing a position. I know that margin price often appears in the formulas, but this will be a closed system, I have only the entry and exit price it will collect the basic parameters about trading pairs (minimum and maximum position, leverage, etc.) and the exchange will not perform any more operations, except for determining the current price. ![]() ![]() Testnet is isolated and can be considered dead, so it is not relevant to me.īut I have problems with certain calculations, namely the calculation of commissions (binance future order fee) for opening (closing) positions, partial closing (increasing) of a position and a separate issue with position addition, how to calculate the new entry price, commissions, profit, etc. I want to create a trading sandbox for myself to test strategies but not risk real money.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |