Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 23:22:03 +0000



Post From: ACSIL - trailing stop loss and orders

[2019-09-17 17:46:08]
MattK - Posts: 42
No problem, I understand perfectly.

I'm trying to debug by putting messages in the log with the value of different variables but the orderPrice is always returning 0.00000 even though I set it as a persistent variable:

DebugMessage.Format("Current time: %d:%d", Hour, Minute);
        sc.AddMessageToLog(DebugMessage, 1);
        DebugMessage.Format("Updating stop loss to: %f on entry: %f", NewPossibleStop, orderPrice);
        sc.AddMessageToLog(DebugMessage, 1);
        DebugMessage.Format("Order price: %f", orderPrice);
        sc.AddMessageToLog(DebugMessage, 1);

I'm working on it to understand why the variable is not returning anything.
I'll probably be able to find the issues in my code once I get the debugging part to work :)