Hi,
I have a question maybe an issue with Zorro 2.56.

Oanda is sending yearly Rollover Fees. So my idea is to convert them to daily fees. In theory it should be very easy with a line like this:

RollShort = RollShort / 365.

When I have that in my strategy no rollover costs are calculated at all.

Transaction costs -0.60$ spr, 0.0033$ slp, -0.0000000$ rol

I did try the same with the Alice 1a script and I have the same behavior.
So I thought it is a kind of rounding issue. I set the Rollover Cost in the Assetlist to some insane value and still no calculation of the rollover cost.

What bothers me really is the following line:
RollShort = RollShort * 1.;
This is working as expected.
I am lost. Any help is appreciated.

This is the code where I do my testing with. I am using EUR/USD for the tests and the latest Oanda instrument values (downloaded via MT5 bridge)

// Trend Trading ///////////////////
#include <profile.c>

function run()
{
Verbose = 3;
set(LOGFILE); // log all trades

StartDate = 2013;
EndDate = 2023; // fixed simulation period

BarPeriod = 15;

RollShort = RollShort / 365.;
RollLong = RollLong / 365.;

vars Prices = series(price());
vars Trends = series(Laguerre(Prices,0.05));

Stop = 10*ATR(100);
MaxLong = MaxShort = -1;

if(valley(Trends))
enterLong();
else if(peak(Trends))
enterShort();
}