473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

(long message)Request advie on an app I'm doing

Hello,
I need some advice on a financial application I'm doing. First, I suppose
I should give a little background so you know where I'm coming from. For
5 years I earned my living doing COBOL programming with some occasional
VB and web programming with ASP. Prior to that I went to a technical
college where I took a couple of courses in c, c++ and pascal. Although
now about all I can do is the basic "hello world" type applications in
them, also I never really grasped oop. Which is one of the reasons I want
to learn python, as it seems to be the easiest language to learn oop
with. For the last 2 years, I've been earning my living trading, at first
stocks and futures, now it's mainly all forex (foreign exchange), thus
the need for this app.

Anyway the app. I'm doing is a forex charting, backtesting and
eventually/hopefully be able to autotrade (it'd also be nice to implement
a neural network), also I figure that this will be good way to learn
other programming languages as eventually I plan to rewrite this in c,
c++ and Java (and possibly assembler, just cause I like to torture myself
;) ). Basically it's something along the lines of Wealth lab:
http://www.wealth-lab.com/ or Tradestation: http://www.tradestation.com/
but one that will run on linux as well as windows (actually it'll be a
combination of several trading programs, basically all the features I
like with none of the ones that annoy me).

Heres the application implementation proces:
Phase I - design and implement a MySQL database
Phase II - import/export a flatfile into the database
Phase III - add networking to retrieve historical data via dukascopy
Phase IV - add realtime networking to retrieve real-time data via
dukascopy
Phase V - design and implement gui (minus the charting)
Phase V1 - add charting
Phase VII - add indicators
Phase VIII - add scripting capability
Phase IX - add backtesting
Phase X - add paper-trading
Phase XI - add auto-paper-trading
Phase XII - add program, database, and internet connection redundancy
Phase XIII - add data-feed redundancy with E-signal and oanda
Phase XIV - implement real auto-trading with oanda and gain
Phase XV - add Futures, stocks and options (nice but optional)
Phase XVI - add Futures, stocks and options auto-trading with IB and
Mytrack (nice but optional
Phase XVII - implement Neural Network (nice but somewhat optional)

When I was designing this I thought that the scripting capability would
actually be the toughest thing but since I learned about eval() and exec
() that should be fairly trivial (this was actually a very pleasant
surprise with python for me). Now the most difficult parts as I see it is
going to be the gui (particularly the charting), the redundancy, and the
neural network (this will be the toughest but put off till last because
without the rest in place there's really just no point in having it,
which is also why it's somewhat optional).

Phases 1 and 2 are done phase 3 will be done today and phase 4 will be
done this weekend. Which brings me to my questions. First I need to know
which gui toolkit, I should use. The requirements are basically stability
on both linux and windows, and it needs to have some type of canvas or
picturebox control (or widget is what I think the term is in python), so
I can draw the graphs. Also it needs to have a splitter, and toolbar
widget. From what I've seen it look like the major gui toolkits are:
tkinter (of course), wxpython, pyqt (actually I have doubts about this as
I just don't like the license), pygtk, pyfltk, fxpy, and pyopengl. What I
need to know is whether you think one of the above is suitable for my
app., given the requirements, how stable it is, how easy it is to
implement, whether docs are available (ie. tutorials and preferably a
book or two), and how easy it is to learn (although this is the least of
my concerns), also I need to know if you think speed will be a concern as
I plan to be able to graph at least 10000 timeframes of data with
probably 6 - 10 indicators so figure it will need to draw something like
100,000 - 200,000 points/lines/ boxes etc for every 10,000 periods.

I'd also like to know if there's any suitable financial chart widget out
there that does candlestick, ohlc, point and figure, and 3-line break
charts, etc., I've looked but the only one I've come across is Chart
Director: http://www.advsofteng.com/product.html and I find it to be
unsuitable, actually what I really need something like the StockChart X
activex control: http://www.modulusfe.com/stockchartx/

Finally, and this is just planning for the later stage, I'm wondering if
anyone has any ideas on how I can implement the program redundancy. Right
now I'm thinking of having the program run on about 6 or 7 computers with
with every two hooked up to a different internet connection, ie the main
group would be connected to a t-1 line, the next group connected to a
cable line, the next connected to dsl, next connected to a isdn line and
then finally one connected to a regular modem. The thing with this is
that, I don't see any problem with having them talk to each other or
perhaps set up a table in the database with two fields:
CurrentTradingComp and LastTime, and then just have the current program
update that table every 10 seconds, and then have every program check the
table every 30 secs or so and if the first goes down then have the second
take over, then the third etc. That's not a problem, what I'm wondering
is whether or not (and if so how) python can dial the modem on the final
computer, or even if it's a good idea to even have the programs wait till
the one connected to the modem becomes the main computer, (I'll have to
think about that) anyway's I'm rambling but if anyone has any comments or
suggestions, on this I'd love to hear them.

Sorry for the long message, but I figured it would be better to give all
of the information you might need rather than leave some vital piece out.

Thanks,
Ben
ps - if you want to email me then just take out the numbers in my return
address

x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 90,000 other groups
x-- Access to over 800 Gigs/Day - $8.95/Month
x-- UNLIMITED DOWNLOAD

Jul 18 '05 #1
4 2804
On 2003-09-12, Benjamin <2b*********@safe-mail.net> wrote:
Which brings me to my questions. First I need to know which gui
toolkit, I should use. The requirements are basically stability on
both linux and windows, and it needs to have some type of canvas or
picturebox control (or widget is what I think the term is in python),
so I can draw the graphs. Also it needs to have a splitter, and
toolbar widget. From what I've seen it look like the major gui
toolkits are: tkinter (of course), wxpython, pyqt (actually I have
doubts about this as I just don't like the license), pygtk, pyfltk,
fxpy, and pyopengl.


Take a look at wxPython. It is a wrapper around wxWindows which an
excellent cross platform (Windows/*Nix) set of Libs. It uses GTK on
Linux and Windows native on the Windows side. Also there is an
excellent RAD tool for wxPython, Boa-Constructor. The author took his
inspiration from Delphi and applied it to wxPython. Very easy to use,
very fast designing of GUI elements.

--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
Jul 18 '05 #2
Steve Lamb <gr**@despair.dmiyu.org> wrote in
news:sl*****************@dmiyu.org:
On 2003-09-12, Benjamin <2b*********@safe-mail.net> wrote:
Which brings me to my questions. First I need to know which gui
toolkit, I should use. The requirements are basically stability on
both linux and windows, and it needs to have some type of canvas or
picturebox control (or widget is what I think the term is in python),
so I can draw the graphs. Also it needs to have a splitter, and
toolbar widget. From what I've seen it look like the major gui
toolkits are: tkinter (of course), wxpython, pyqt (actually I have
doubts about this as I just don't like the license), pygtk, pyfltk,
fxpy, and pyopengl.


Take a look at wxPython. It is a wrapper around wxWindows which an
excellent cross platform (Windows/*Nix) set of Libs. It uses GTK on
Linux and Windows native on the Windows side. Also there is an
excellent RAD tool for wxPython, Boa-Constructor. The author took his
inspiration from Delphi and applied it to wxPython. Very easy to use,
very fast designing of GUI elements.


yes, boa is nice. but i like to use SciTe as editor for all kinds of source
files (instead of an IDE) and i prefer wxGlade as GUI editor. wxGlade does
not support binding events, like boa, but it's a great and fast way to
design a GUI with sizers (you can even update the source file later, it
keeps you code and updates the gui part)

chris

--
Chris <cl******@gmx.net>

Jul 18 '05 #3
Benjamin <2b*********@safe-mail.net> writes:

[...]
When I was designing this I thought that the scripting capability would
actually be the toughest thing but since I learned about eval() and exec
() that should be fairly trivial (this was actually a very pleasant
surprise with python for me). Now the most difficult parts as I see it is

[...]

Why do you think you need eval or exec? If it's all in Python ('pure
Python'), a 'script' is just a Python program that imports stuff from
your libraries and does whatever is required.

If it's not all in Python, it's usually easiest to wrap the non-Python
bits for Python access so you can just import them too (with eg. SWIG,
Pyrex or Boost.Python), and write scripts exactly as if everything
were pure Python (or, in the case of Java, just use Jython).

Another way, attractive if you want to write scripts in multiple
languages (not just Python), is to use a component framework like
CORBA or XPCOM (or UNO, or KParts, or Bonobo, or MS COM...sigh).
John
Jul 18 '05 #4
On 2003-09-12, Chris Liechti <cl******@gmx.net> wrote:
yes, boa is nice. but i like to use SciTe as editor for all kinds of source
files (instead of an IDE) and i prefer wxGlade as GUI editor. wxGlade does
not support binding events, like boa, but it's a great and fast way to
design a GUI with sizers (you can even update the source file later, it
keeps you code and updates the gui part)


Boa does this. Well, mostly. You cannot touch pregenerated areas
with code it doesn't know about. As time goes by it knows about more
and more code. It will warn you if you're editing a portion of code
that contains pieces it doesn't know about. Boa also does sizers.
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ThisIsMe | last post by:
I am using this php email form and it seems to work. But I would like for the option for attn$ Webmaster to go to a different email address than the mymail$ Please be Kind to us newbies... can...
7
by: Dodger | last post by:
Apologies if the is the wrong NG. But I have trapped a GET issued by a webpage on a button press and I would like to issue the GET programatically as-and-when I wish. I wondered what the text...
0
by: Amar | last post by:
I am recieving the "The root element is missing" error from my soap extension while attempting to validate an incoming SOAP message request. I suspect the problem resides in the ChainStream method...
0
by: Brad Wood | last post by:
<environment> Consuming a web service from a VS2005 beta 2 test harness on WinXP. Web service built with VS2003 running on my machine with IIS 5X set to use ASP.NET 1.1 </environment> I have...
4
by: ImSoLost | last post by:
I'm running a really long process from ASP.NET and need some help... I am making a method call when the user presses a button from my webpage, which goes into a database and parses a file. This...
14
by: Harry Keck | last post by:
I have client side code that uses xmlhttp to make an asyncronous call to the server. This call really churns the server and can take a couple of minutes to finish. I have found that while this...
2
by: =?Utf-8?B?SUthdHphdg==?= | last post by:
Hello All I have a web application Asp.Net 2.0 with Oracle DB. I have one event that takes 1-5 miuntes, when the event is short it suceeded but where a lot of action are required and the event...
1
by: SenthilPSL | last post by:
When I call a webservice on IIS on Windows 2000 Server with .NET runtime 2.0, I get the following Error. System.Net.WebException: The operation has timed out From ASPX Pages, I call the web...
1
by: =?Utf-8?B?S3VtYXIuQS5QLlA=?= | last post by:
We have hosted a web application in a client network and the application is responding very slow. In between we are getting exceptions due to the request time out. We are getting the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.