Hi Everyone,
Long term I'm attempting to build a multi-factor Quality/Value/Momentum based approach.
I've been using pipelines and CustomFactors.
My initial Value based version is sorted and I'm currently working on the Momentum version.
So far I've managed to use Custom Factors to calculate and rank based on:
- Price to 50d/200MA
- Price to 52w high (for longs)
- Price to 52w low (for shorts)
but I'm really struggling to implement 1 year Relative Strength and 6m Relative Strength.
The formula is ...
relative strength = ( (% change in price in stock/% change in benchmark) - 1) * 100
I'm a former software developer but I have to say the finer details of Python have floored me.
Any advice or pointers to other similar solutions are gratefully received.
Thanks in advance
Phil