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