473,789 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(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:
CurrentTradingC omp 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 2842
On 2003-09-12, Benjamin <2b*********@sa fe-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.d miyu.org> wrote in
news:sl******** *********@dmiyu .org:
On 2003-09-12, Benjamin <2b*********@sa fe-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.n et>

Jul 18 '05 #3
Benjamin <2b*********@sa fe-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.n et> 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
1831
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 someone modify this and resend it so I can have the form send to 2 different email addresses? Or maybe three if that is possible determined by what attn$ option is used.
7
2615
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 before the get text signifies? I imagine they are variable names and parameter values. Is this correct?
0
2938
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 but I'm not sure. Below is a water-downed version of the code that I'm working on. While debugging, I noticed that if I pass an invalid SOAP request, the schema validation catches it and throws the error appropriately. However, when I pass in a...
0
1239
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 a web service that creates a thread for each request in an input document. Each thread then makes an HttpWebRequest.GetResponse call. When only one request is submitted in the input doc all is fine.
4
1968
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 process could exceed an hour, so the user is expected to press the button to start the process and minimize the IE window and do other work while the application is processing. Anyway, after a certain period in time, the page becomes "Page could...
14
2089
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 long call is processing, I can not make any more requests to the server from the same session. I found this because if I have two completely separate instances of IE, they will not block each other, but if I do a File/New to spawn a separate...
2
4230
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 exceed 2 minutes it crashes. With this error log:
1
36708
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 service, which in turn calls dlls for executing the sotred procedure. SP runs for about 10 mins. (It has to; because the application demands running such big SP in synchronous mode). I have set the execution timeout to 1 hour both in website (for ASPX)...
1
4543
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 exceptions: 1. Event Message : Request has been aborted. Exception Type : HttpException Exception Message : Request timed out
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.