Login Page - Create Account

Support Board


Date/Time: Mon, 16 Sep 2024 19:08:13 +0000



Post From: Error with Sim Lock & Orders being executed

[2024-07-22 04:13:41]
User194332 - Posts: 40
I've read it and used daily values with the 1 in brackets but the sc.FlattenPosition is not working for some reason. Nothing mentioned in the Service Log.

Bradh helped me out with some code to check that the position is not equal to 0 and it should flatten the position.

Basically when the P&L crosses the limit , I would expect the position to flatten using the sc.FlattenPosition();
When I test it, the position remains open and does not flatten.

The code is running as I can see the messages in the message log.

Hope that clarifies