Now I am working on a trading simulation project. I have historical stock price data, and I want to identify a profitable trading strategy. Specifically, what I want to do are:
1) define a kind of "language" of trading rules, which can represent different trading strategies
2) I need to interpret the trading rules, and back-test trading strategies with historical data.
3) My experiment will need to traverse the space of large set of trading strategies, and identify the most promising one(s).
I searched over some literature and online resources, I found trading rules could be atomic rules or composite rules. For example:
atomic trading rules:
if MA(25) > MA(50) then trigger LONG signal
if Vol(25) < Vol(50) then trigger SHORT signal
composite trading rules:
LONG and LONG ==> LONG
LONG and SHORT ==> NEUTRAL
SHORT and SHORT ==> SHORT
However, I didn't find a completed definition of trading rules, or a language that is capable of defining completed set of trading rules. My purpose is to try various trading strategies with maximum flexibility as well as minimum effects. My understanding is, some open source or commercial back-testing systems could be able to define various trading rules and have an interpreter to understand these rules for trading simulation. But I haven't found these kind of systems that fit my purpose. Anyone know these? any inputs are appreciated!! Actually I like open source system, and preferably with Java-like API.
Thanks for yoru helps...
1) define a kind of "language" of trading rules, which can represent different trading strategies
2) I need to interpret the trading rules, and back-test trading strategies with historical data.
3) My experiment will need to traverse the space of large set of trading strategies, and identify the most promising one(s).
I searched over some literature and online resources, I found trading rules could be atomic rules or composite rules. For example:
atomic trading rules:
if MA(25) > MA(50) then trigger LONG signal
if Vol(25) < Vol(50) then trigger SHORT signal
composite trading rules:
LONG and LONG ==> LONG
LONG and SHORT ==> NEUTRAL
SHORT and SHORT ==> SHORT
However, I didn't find a completed definition of trading rules, or a language that is capable of defining completed set of trading rules. My purpose is to try various trading strategies with maximum flexibility as well as minimum effects. My understanding is, some open source or commercial back-testing systems could be able to define various trading rules and have an interpreter to understand these rules for trading simulation. But I haven't found these kind of systems that fit my purpose. Anyone know these? any inputs are appreciated!! Actually I like open source system, and preferably with Java-like API.
Thanks for yoru helps...