Hi
Thanks for getting back.
As I say, I'm measuring the profit another way (for backtesting a Binary Options strategy), which I do in run().
The code I posted is pretty much all there is to it - the objective() function is a 1 liner that returns the value from the file-level global, as shown.
var objective(){
return myVal;
}
Where would I begin to look for the issue?
(Sorry - when I said printing is disabled I meant during training, not during backtesting.)