Order Execution Error : Nothing to change

Created at 21 Nov 2024, 06:53
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!
FI

firemyst

Joined 26.03.2019

Order Execution Error : Nothing to change
21 Nov 2024, 06:53


How do we capture in logs what's causing this error?

I'm running bots with multiple instances, and I haven't found this error in any of the logs. 

Nor does it seem to be returned when checking a TradeResult object for error messages (unless I'm doing that wrong).

Is this error captured anywhere so we can analyze or at least see what values and bot instances are causing it?

I saw this thread:

https://ctrader.com/forum/cbot-support/13607/

and I understand it could be a rounding issue. But again, I need to be able to log and find out where it's happening as I have lots of places in code where price/position could be updated/modified.

Thank you.


@firemyst
Replies

PanagiotisCharalampous
21 Nov 2024, 08:50

Hi firemyst,

Nor does it seem to be returned when checking a TradeResult object for error messages (unless I'm doing that wrong).

Can you share the code you are using so that we can see what you are doing? The below should work

Print("Error: {0}", TradeResult.Error);

Best regards,

Panagiotgis


@PanagiotisCharalampous