Architecture for Backtesting Program

Hi, I'm fairly new to Java and to programming, but I just finished a fairly accelerated intro course in Java, and I'm eager to keep practicing my coding skills.

I want to write a simple backtesting program for trading. (I know there are already lots of platforms to do this, but I wanted to do one myself.) I want to do this in a proper object-oriented fashion, and I was looking for some tips on general architecture.

What I'm envisioning is perhaps a trading strategy interface, with buy and sell rules, and perhaps stop and target rules for a given trade. Various classes (say, a moving average strategy class) will implement the interface and will have instance variables that I can run optimizations on by, perhaps, implementing some sort of optimization interface?

This will be an ambitious project for my still-limited skill set, but if anyone could give me some pointers on the class structure, I'd really appreciate it.

Thanks

[972 byte] By [jbraswella] at [2007-11-26 12:20:35]
# 1

I'm not saying this is the case, but this could be just your homework assignment. Believe me, there have been (and are) very creative students here at these forums.

So, why don't you design something yourself, and if you run into problems, post a specific question. There even is a special Patterns & OO Design section where you can post your OO-design questions:

http://forum.java.sun.com/forum.jspa?forumID=425

prometheuzza at 2007-7-7 15:10:53 > top of Java-index,Archived Forums,Socket Programming...