Back to Community
Rebalancing Trailing Stop

Hi Guys, I am using a ATR stop loss, on my algorithm. I buy and hold stocks for 6 months after they have just made a new high. My problem is I am selling positions frequently within those 6 months so I am losing leverage. I start with 10 positions, but then after getting stopped out I get to one position, which decreases my leverage a lot. I tried to return a function that rebalances the portfolio after the trail_stop function, but it did not work.

Here is the article if you want to find more information on about this strategy.

http://www.trendfollowing.com/whitepaper/DoesTrendFollowingWorkOnStocks_120513.pdf

Clone Algorithm
5
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 5903b76588e8ed61cd5e6a33
There was a runtime error.