Print log in GetFitness()

Created at 05 Mar 2019, 13:13
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
NO

noppanon

Joined 17.05.2017

Print log in GetFitness()
05 Mar 2019, 13:13


Hi there,

   I usually use Print() to print my debug text in order to display Log. However, I can't do it in GetFitness method.

For example

        protected override double GetFitness(GetFitnessArgs args)
        {
            double fitness;

            fitness = GetCustomeFitness(args);

            Print("fitness score {0:F2}", fitness);

            return fitness;
        }

 How can I print a message to Log during GetFitness method?

Regards,

Noppanon


@noppanon