Applying Interest to Positions


I was wondering if there is a simple way to apply an annual interest rate, not to cash but to backtested positions. For example, it would be useful for considering CFD's interest rate in the backtest results.

Thank you in advance for your help.

Best Regards

The only way to do that is to post-process trade list and add interest based on number of bars in each trade see example 3 for guidance.