The resource loading... loading...

How to write stop loss

Author: thirty-six, Created: 2023-02-16 21:53:26, Updated:

I want to ask you guys, how do you write stop loss?

The hanging stop button is like this exchange.Buy ((Price, Amount))

I want to hang the one that's on the top, but I didn't expect it to come straight to me, so how do you write stop loss?


More

Written by TradeManReal-time monitoring of the price, reaching price levelling. Stop loss is not a pending order, the exchange stop loss order is also the price reaching a certain position sent into the shooting engine.

Inventors quantify - small dreams 只能预挂单止盈,止损肯定是你挂上去就成交了,这种只能写计划委托,用策略设计实现,或者如果交易所接口支持API预挂单,用exchange.IO调用接口实现。

Inventors quantify - small dreams 只能用交易所的计划单接口,使用exchange.IO调用。具体要看交易所文档。

thirty-sixBut there will be a delay. I want to hang it up.

Inventors quantify - small dreamsIf you don't use an exchange interface, you can write a module yourself, monitor the price, and place an order again.

[Translated from Chinese]I said, "I don't know how to stop writing".