forked from morefinances/qlua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_6.lua
More file actions
15 lines (14 loc) · 1006 Bytes
/
example_6.lua
File metadata and controls
15 lines (14 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
offer = getParamEx("TQBR", "GAZP", "OFFER").param_value
bid = getParamEx("TQBR", "GAZP", "BID").param_value
change = getParamEx("TQBR", "GAZP", "CHANGE").param_value
lastchange = getParamEx("TQBR", "GAZP", "LASTCHANGE").param_value
numoffers = getParamEx("TQBR", "GAZP", "NUMOFFERS").param_value
numbids = getParamEx("TQBR", "GAZP", "NUMBIDS").param_value
wprice = getParamEx("TQBR", "GAZP", "WAPRICE").param_value
message("Лучшая цена предложения OFFER: "..offer)
message("Лучшая цена спроса BID: "..bid)
message("Разница цены последней сделки к предыдущей сессии CHANGE: "..change)
message("% изменения от закрытия LASTCHANGE: "..lastchange)
message("Количество заявок на продажу NUMOFFERS: "..numoffers)
message("Количество заявок на покупку NUMBIDS: "..numbids)
message("Средневзвешенная цена WAPRICE: "..wprice)