Transforming a SAR crossover system into Rotation strategy?
Author: Christos
Creation Date: 5/16/2011 5:44 AM
profile picture

Christos

#1
I am running the below strategy on a Dataset of 5 stocks and I would like to recode that so as to run as a rotation strategy (by just selecting one symbol from within the same dataset). I have made several attempts to do it myself but I get different results if I chose different symbols from within the DataSet and apperently the results are different from those when I run the same strategy on a portfolio mode. Could you help me coding as a rotation stratgy?

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

Eugene

#2
To convert a crossover/crossunder strategy into a rotational strategy, first you need to answer yourself and us this simple question: how do you envision it. Rotational strategies pick some Top N symbols which satisfy a criteria like e.g. indicator value. On the other hand, unless you have a clear set of rules it does not make sense to convert the stop-and-reverse Xover/Xunder strategy which by definition is binary i.e. "there is a signal" or "there is no signal".
profile picture

Christos

#3
I definitelly aggree with you! The thing is that I do not want to pick some N symbols and this is why this made no sense to you in the first place!

Cone has developed a PortfolioTracker Class (see: /Forum/Posts/Limit-Monthly-Drawdown-Portfolio-Equity-Tracker-31562 )
which calculates equity curve, drawdown and drawdownpct along with the trading loop signals (if you use SetShareSize in position sizing options). It seems to me that this class would work properly on a portfolio backtesting basis only if the strategy contains a "foreach(string sym in DataSetSymbols)" loop.
So, as you understand the reason for such a recoding is purely based on a another class' functionality.
profile picture

Christos

#4
Should I suppose that my question is too stupid to receive an answer?
profile picture

Eugene

#5
I'm not familiar yet with the PortfolioTracker class so please count me out.

I know how super busy is Cone now with version 6.2 troubleshooting, so if he couldn't answer your question right away there is nothing to worry about. WL 6.2 has absolutely TOP priority now that the new version is scheduled for release within a month.
profile picture

Christos

#6
Thanks Eugene - I fully understand now.
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).