I have a dumb script to print out the live Spread on every 1-minute bar.

function run()
{
set(LOGFILE);
BarPeriod = 1;
vars Prices = series(price());
printf("%.5f, %.5f\n", price(), Spread);
}

When connected to Oanda live, it is always print out 0.0. I tried the TradeTest script and got the same result. Does anyone have the same issue?

Thanks.



Last edited by kzhao; 09/27/19 19:26.