Please help me, I can't sell it alive, display: Sell ((0.11487, 45): Invalid direction

Author: xionglonghui, Created: 2021-09-19 17:16:27, Updated:

Ask for help Buy successfully, sell conditions reached, can't sell alive, always showing Sell ((0.11487, 45): Invalid direction

First, there is no problem with the progression behind the decimal point. Second: Set the sell direction to close buy, sell cheaply.

The code is as follows: I am using binary futures futures futures, any friends who have encountered and solved this problem can help me.

exchange.SetDirection(“buyclose”);

var order_id2 = exchange.Sell(now_records.Close, trade_amount);

Sleep(2000);

while (order_id2 == nullurutse typeof(order_id) == undefined order) // not sold, continue to sell with a slide point on the price {pos (192,210) } exchange.SetDirection (buyclose); order_id = exchange.Sell (now_records.Close + huadian, trade_amount); // each slider (huadian) is 0.00001 Sleep ((2000)); I'm not sure.


More

xionglonghuiThe problem, of course, is that the wording is wrong...

The Noble exchange.SetDirection("closebuy");