Posted By: Mithrandir77
How to adapt Lowpass cutoff period to market conditions? - 09/11/14 05:09
I have been trying to advance in coding some trend following systems and using this great contribution from jcl: MMI I found that with EUR/USD in the period going from 2009-2014 it makes 231% AR,Sharpe Ratio 1.14 , UI 5% but from 2002-2008 it 'makes' -9% AR, Sharpe Ratio -0.17 , UI 1960% -that's what I call a stomach-ache-
How can there be so many differences? I have tried using many tools (MAMA, ShannonGain, KAMA, Hurst) to try to adapt to the market conditions or filter out when the market is not trending but didn't have much luck, if you want to look at everything I tried:
So, in addition to solve this issue, I would like to know in general how to adapt a LowPass to the market conditions. I understood in the tutorial that they use 1000 as cutoff to catch the 2-month or more trends, but is there a way to set this according to the market like the way it is done in workshop 5 using DominantPeriod as the cutoff of the HighPass? Actually the code for that part is:
and again the doubt: why using 500? In this case maybe because it's an example but in designing an -almost at least- parameter free strategy I would like to know if there's a way or some heuristic to choose the cutoff period of the LowPass.
Thanks beforehand!
How can there be so many differences? I have tried using many tools (MAMA, ShannonGain, KAMA, Hurst) to try to adapt to the market conditions or filter out when the market is not trending but didn't have much luck, if you want to look at everything I tried:
Click to reveal..
So, in addition to solve this issue, I would like to know in general how to adapt a LowPass to the market conditions. I understood in the tutorial that they use 1000 as cutoff to catch the 2-month or more trends, but is there a way to set this according to the market like the way it is done in workshop 5 using DominantPeriod as the cutoff of the HighPass? Actually the code for that part is:
Code:
vars Period = series(DominantPeriod(Price, 30)); var LowPeriod = LowPass(Period, 500);
and again the doubt: why using 500? In this case maybe because it's an example but in designing an -almost at least- parameter free strategy I would like to know if there's a way or some heuristic to choose the cutoff period of the LowPass.
Thanks beforehand!