Rotation Strategy with Monthly Momentum
Author: Swissi
Creation Date: 5/12/2018 10:37 AM
profile picture

Swissi

#1
I am working on a rotation strategy with monthly momentum indicators. There are some very good examples in different Forum topics.

Testing the strategy for several months now, I have seen the following problem:
If I use the six month momentum to rank the funds, WL includes for the momentum calculation (and also for other indicators) also the value of the most recent, running month. Therefore, signals can suddenly change within a month.
Is it possible to adjust (or lag) the indicator calculation so that the running, incomplete month is not used in the calculation?
I suppose the same problem exists with weekly data/indicators.
profile picture

Eugene

#2
How about shifting the DataSeries to the right e.g. Compressed price series alignment?

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

Swissi

#3
I am still working on it...
I think only the LAST momentum value should be shifted forward if the month of the last bar is the same month as the bar-1.
Thank you very much for your support. It is very much appreciated!
profile picture

Eugene

#4
In other words, make the value on bar-1 and bar equal? Mangling the data jut doesn't look like a correct approach to me.

The correct solution to this "problem" would be to not run your monthly strategy intra-month. Or to rephrase, set a data loading range which ends before the first bar of the current month (e.g. Ending Date = 04/30/2018 for a EOD strategy which calls SetScaleMonthly and runs today). Simple enough?
profile picture

Swissi

#5
Ok, that is the best solution. Simple, but it will work.
Thanks again.
profile picture

Eugene

#6
You're welcome.
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).