I'm trying to write a futures contract in js, but I'm having a problem with the lock order. I don't know how to do it.

Author: The Good Place, Created: 2023-03-17 22:53:04, Updated:

For example, I went down and made a short at a price of 1000u, and the result was that the price rose to 1010u after entering, at which point I immediately made a multi-order lock position. The price of the free barrier is set at the time of entry, the price of the lock store is also set at the time of entry, using the code of fmz, I found that it is unlikely to achieve this situation, hopefully God will answer.


More

Help (click on the image to get in touch)The first thing you need to do is to monitor the price, and then you can order when you get there.

Written by TradeManWhen is the lock unlocked? This is better than a direct blank order to settle the loss, without paying two fees.

Inventors quantifiedThis fmz is totally doable, but you have to do it yourself, pay attention to adjusting the binary to bidirectional holding.