p_account = «SPBFUT00521»
p_clientcode = «101326»
p_classcode = «SPBFUT»
p_seccode = «SiM6»
TRANS_ID = 0
is_run = true
count=1
function main()
while is_run do
message(«Hello, World! №»..tostring(count),1)
count=count+1
for Index = 0,getNumberOf(«stop_orders») — 1 do
any = getItem(«stop_orders»,Index)
if bit.band(any.flags, 1) > 0 then
Stop_Order = any.order_num
--message(tostring(Stop_Order),1)
KILL_STOP_ORDER(p_classcode, p_seccode, p_account, Stop_Order)
end
end
sleep(5000)
end
end
function OnStop(stop_flag)
is_run=false
end
function KILL_STOP_ORDER(_MARKET, _TICKER, _ACCOUNT, _NUMBER)
TRANS_ID = TRANS_ID + 1
t =
{
[«TRANS_ID»]= tostring(TRANS_ID),
[«ACCOUNT»] = tostring(_ACCOUNT),
[«CLASSCODE»] = tostring(_MARKET),
[«SECCODE»] = tostring(_TICKER),
[«ACTION»] = «KILL_ORDER»,
[«ORDER_KEY»] = tostring(_NUMBER)
}
message(t.TRANS_ID.." "..t.ACCOUNT.." "..t.CLASSCODE.." "..t.SECCODE.." "..t.ACTION.." "..t.ORDER_KEY,1)
res=sendTransaction(t)
end
Ну и получаю сообщение от квика «Вы не можете снять данную заявку» Все параметры в транзакцию передаются правильно. Похоже это проблемы квика, а не клуа

но есть KILL_ORDER — снятие заявки
и есть KILL_STOP_ORDER — снятие стоп-заявки.