The resource loading... loading...

Please teach God the Great to give a limited price stop-loss Python code

Author: hoikit3344, Created: 2020-07-19 22:11:11, Updated:

I use

exchange.SetDirection('buy')
exchange.Buy(50,1)
# 想下限价止损单
exchage.SetDirection('closebuy')
exchange.Sell(45,1) # 此时会立刻成交

Hopefully, God will give us a code that works.


More

fengokStop-loss functionality is different for each exchange, specifically you can use the io function to hang the stop-loss functionality.

The grasshttps://www.fmz.com/strategy/121081 Refer to this public bot