Possible Bug | net profit values only output to ~10.

Created at 30 Aug 2020, 22:20
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!
NE

NenJiDaPassiv

Joined 21.04.2020

Possible Bug | net profit values only output to ~10.
30 Aug 2020, 22:20


Hey Folks,

Is it just me or do UnrealizedNetProfit, NetProfit, Account.Equity all not show positive values after a certain point?  Is this something that just occurs in back testing?  I simply want to stop the cBot once a threshold is reached, shouldn't be that difficult.

if (Account.Balance - Account.Equity >= someThreshold)

{

    CloseAllPositions();

}

This all looks straight forward but when I print any of the above variables the positive profit per trade reaches about ~10 but then stops outputting above that value.  IE so +100 profit just doesn't output at all.

Any ideas good people of the internet?

Thanks in advance.


@NenJiDaPassiv
Replies

PanagiotisCharalampous
31 Aug 2020, 09:01

Hi NenJiDaPassiv,

We will need more information to be able to assist you. You need to provide us with the complete cBot code and instructions to reproduce such behavior on backtesting i.e. broker, symbol, dates and cBot parameters.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous