Skip to content

Commit 427a3ac

Browse files
authored
sendStopOrder: PERCENTS – в процентах (шаг изменения – одна сотая процента)
1 parent ea90a32 commit 427a3ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roffild.lua

+2
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,11 @@ function roffild.sendStopOrder(stop_order)
530530
trans.OPERATION = "S"
531531
end
532532
if (stop_order.stopflags & 0x8) ~= 0 then
533+
trans.OFFSET = roffild.roundPrice(stop_order.offset, 2)
533534
trans.OFFSET_UNITS = "PERCENTS"
534535
end
535536
if (stop_order.stopflags & 0x10) ~= 0 then
537+
trans.SPREAD = roffild.roundPrice(stop_order.spread, 2)
536538
trans.SPREAD_UNITS = "PERCENTS"
537539
end
538540
if tonumber(stop_order.expiry) <= tonumber(os.date("%Y%m%d")) then

0 commit comments

Comments
 (0)