Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
zero-intelligence,model of agents in kdb+/q
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kim Kuen Tang  
View profile  
 More options Feb 10, 5:18 pm
From: Kim Kuen Tang <kuent...@vodafone.de>
Date: Fri, 10 Feb 2012 23:18:50 +0100
Local: Fri, Feb 10 2012 5:18 pm
Subject: zero-intelligence,model of agents in kdb+/q
Hi everyone,

on a daily basis i need to travel a lot. So to overcome the time in the
train i implemented a zero-intelligence model of agents in kdb+/q to
simulate a limit order book.
Actually i took the thesis ASYNCHRONOUS SIMULATIONS OF A LIMIT ORDER
BOOK from Gilles Daniel and implemented the algorithm 1 in kdb+/q.

Now all the code is uploaded  on the contribution site of kx.
http://code.kx.com/wsvn/code/contrib/kuentang/zia/

If you want give it a try you need to start 3 q processes using the
following lines:

C:\q\w32\q.exe qx.q -p 2009
C:\q\w32\q.exe zia.q -p 2010
q) \t 100
q) obk
C:\q\w32\q.exe user.q -p 2011

The first q process is there to act as an exchange. The implementation
is inspired from the site gbkr.com.
The second one is the implementation of the  zero-intelligence model of
agents.
The last one gives you the opportunity to interact with the exchange

If you have questions, comments or even ideas to improve it, please feel
free to reply.

Why did you do it?
Please read the beginning again. Moreover using the zia i believe you
can measure the market impact of your strategy. This is something that
you cant backtest with historical data.

As you said there is already an implementation from Gordon Baker of an
exchange. Why did you implement it again?
Actually in the beginning i implemented the zia on top of the code from
Gordon Baker.  But later on i want to try the idea of using a finite
state machine to build an exchange. So that's why i reimplemented it
using the fsm.

What is a finite state machine?
You can google it.

Regards,
Kim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
reptile  
View profile  
 More options Feb 10, 6:24 pm
From: reptile <my.rept...@gmail.com>
Date: Fri, 10 Feb 2012 15:24:18 -0800 (PST)
Local: Fri, Feb 10 2012 6:24 pm
Subject: Re: zero-intelligence,model of agents in kdb+/q
Excelent idea and great work.
Nice example for me how to use many process.

Some interesting work for OB is natlab nad work from PHD group
But idea with FSM ...very intresting..

On 10 Lut, 23:18, Kim Kuen Tang <kuent...@vodafone.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »