Adjusted ROC Optimization
Author: rmccall
Creation Date: 8/25/2009 1:37 PM
profile picture

rmccall

#1
I am struggling to modify the Adjusted ROC (Luoma & Nikkinen, SAC Apr 2007) strategy for optimization of all of the following:
1. Add Buy Criteria for Maximum number of trades open = 5
2. Add Buy Criteria for Maximum dollars per Trade = 5000
3. Add Sell Criteria for holding maximum days = 25
4. Keep the current profit target strategy to sell if this is reached before Holding days = 4
5. Add Strategy Paramters for Optimization on number of "Periods", "Holding Days", "Nbr Trades", "$ per Trade" and "Profit Target".
Can You help?

Original code is as follows:

CODE:
Please log in to see this code.
profile picture

Eugene

#2
The other parts should be pretty trivial, but these require some clarification:

QUOTE:
1. Add Buy Criteria for Maximum number of trades open = 5

Are you trying to rethink it as a multi-position strategy, keeping the maximum number of open trades in one stock to 5? Or is this a portfolio-wide condition?
QUOTE:
2. Add Buy Criteria for Maximum dollars per Trade = 5000

Only starting from Version 5.5.
profile picture

rmccall

#3
I am rethinking the Multi-position Strategy to apply portfolio wide such that I have only 5 open trades at a time and have a maximum of $5000 in each trade. Don't really want multiple trades on the same symbol to be on the same day.
profile picture

rmccall

#4
I am using WLP 5.4
profile picture

rmccall

#5
I struggle with the Portfolio simulation when selecting a % of Equity to control the number of positions and then the use of equity goes above what I want to keep investing. If I use fixed $ amount then I enter more positions than I want. I may not understand the exactly how it operates but I am trying to control number of postions and dollars invested without using all the built up equity. Hope this helps.
profile picture

Eugene

#6
QUOTE:
Don't really want multiple trades on the same symbol to be on the same day.

Until PosSizers in 5.6, this condition will require rewriting the strategy in a manner of the symbol rotation scripts:

Accessing the number of positions in a portfolio
profile picture

Cone

#7
QUOTE:
I am trying to control number of postions and dollars invested without using all the built up equity
Although Eugene may suggest a somewhat esoteric way to manage trading around the Equity curve, you'll have this control with PosSizers (aka SimuScripts in v4) when this feature is introduced in 5.6.
profile picture

rmccall

#8
Thanks to both of you. Let me play with rotation until 5.6
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).