Charting

61 views
Skip to first unread message

ancien...@gmail.com

unread,
Oct 22, 2013, 2:40:57 PM10/22/13
to tbg-quant...@googlegroups.com
Are there any plans to add charting capability to the code base? Do others use external display engines to give candle stick displays etc?

Alberto Sfolcini

unread,
Oct 23, 2013, 5:12:26 AM10/23/13
to tbg-Quant-community
Hello,

No, we want to keep the codebase cleaner and with the basic framework functionalities.
Charting capability should be done separatley in order to avoid any performance impact on the engine functionalities.

Personally I store every candle event into a DB ( not necessary the tbg-Quant DB ) and then I do some basic charting from there (with a PHP webapp). You can also store moving average data, entry and exit signal, etc...

hope this helps
bye

On Tue, Oct 22, 2013 at 8:40 PM, <ancien...@gmail.com> wrote:
Are there any plans to add charting capability to the code base?  Do others use external display engines to give candle stick displays etc?

--
www.thebonnotgang.com
---
You received this message because you are subscribed to the Google Groups "tbg-Quant-community" group.
To post to this group, send email to tbg-quant...@googlegroups.com.



--
Alberto Sfolcini

josh...@gmail.com

unread,
Dec 11, 2013, 2:35:58 PM12/11/13
to tbg-quant...@googlegroups.com
How do you do that? Can I get that PHP web app? I am a hgh schooler and that would be helpful for my porject.

tbg-Quant-community

unread,
Dec 17, 2013, 9:54:37 AM12/17/13
to tbg-quant...@googlegroups.com, josh...@gmail.com
Hello Josh,

For legal reasons we cannot share the code of tbg-QuantDesk.

Anyway, i can give you some suggestions:

1) tbg-Quant by defautl use an in-memory DB, if you want to use PHP to connect to that DB you need to switch from in-memory to persistence DB.
Edit youir tbg-Quant.config file and change the default setting.

2) Then, run your TBG, it will store persistence data in your DB

3) tbg-Quant default DB is H2. Check out this page to connect with PHP using the odbc driver.  http://www.h2database.com/html/advanced.html#odbc_driver

4) tbg-QuantDesk  is using Jetty server with this configuration that works like a charm
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <New id="database" class="org.eclipse.jetty.plus.jndi.Resource">
        <Arg>java:comp/env/jdbc/database</Arg>
        <Arg>
            <New class="org.apache.commons.dbcp.BasicDataSource">
<!-- ## H2 DB ## -->
<Set name="url">jdbc:h2:C:/Temp/test/tbg-quant/data/tbgdb;AUTO_SERVER=TRUE;MODE=MYSQL</Set>
<!-- ## MySQL ## -->
<!--<Set name="url">jdbc:mysql://localhost:3306/test</Set>-->
<Set name="username">sa</Set>
<Set name="password"/>
            </New>
        </Arg>
    </New>
</Configure>

5) Once you connected to the DB, you can basically access to every table, use the H2 client to browse around and get the idea.

6) Use a flotcharts to plot : http://www.flotcharts.org/
    Check their website with many examples of real time graphs.

7) everythings shoulb be mixed up with HTML :-)

Hope this helps,
bye

kanek...@gmail.com

unread,
Jun 7, 2014, 11:28:21 AM6/7/14
to tbg-quant...@googlegroups.com, ancien...@gmail.com
On Wednesday, October 23, 2013 1:40:57 AM UTC+7, ancien...@gmail.com wrote:
> Are there any plans to add charting capability to the code base? Do others use external display engines to give candle stick displays etc?

Isn't there a better way to use the DB for building candles with java and using an open source charting class like - http://www.jzy3d.org/documentation.php

Reply all
Reply to author
Forward
0 new messages