7 registered members (clonman, TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible),
18,869
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Feeding Zorro with price data from a file
[Re: Zheka]
#468660
10/12/17 13:46
10/12/17 13:46
|
Joined: Jul 2000
Posts: 28,024 Frankfurt
jcl

Chief Engineer
|

Chief Engineer
Joined: Jul 2000
Posts: 28,024
Frankfurt
|
It needs not be a broker plugin, it can be any DLL. If it is a broker plugin and you have a callback function in the script, you can use BrokerProgress(ptr) for transmitting information. Look for the description in the manual under "Broker Plugin". An example of such a callback function can be found on the HFT page. What it returns is up to your implementation.
There are no T6 structs at runtime, T6 is only used for historical data. Still you can set the prices and spread directly, either with priceQuote, or with priceSet. As you can imagine, this is pioneer area, AFAIK priceQuote has so far only been used for HFT simulation. When you encounter problems, you know the procedure: email Support and you'll get help.
|
|
|
Re: Feeding Zorro with price data from a file
[Re: jcl]
#468675
10/12/17 17:41
10/12/17 17:41
|
Joined: Jul 2017
Posts: 787
Zheka
OP
User
|
OP
User
Joined: Jul 2017
Posts: 787
|
It becomes clearer now. As Zorro creates bars in memory at runtime, would priceSet() do the same (in absense of smaller price ticks and with run() increasing the bar count)? Or the correct function to use is bar()? The function is called whenever a new price quote arrives Would calling priceQuote() trigger a call to bar ()? Another question: if a *.t6 file is updated in realtime, would a script in [Test] mode continue to run and produce trade statistics?
|
|
|
Re: Feeding Zorro with price data from a file
[Re: jcl]
#468730
10/14/17 10:32
10/14/17 10:32
|
Joined: Jul 2017
Posts: 787
Zheka
OP
User
|
OP
User
Joined: Jul 2017
Posts: 787
|
|
|
|
|