How to find a bug that happened in live trading ?

 

Hey,

Let's imagine tomorrow I have a bug with an EA on 1 account. (for exemple incorrect lot size)

How can I identify the bug ? With the log ? 


Thank you ! 

 
Hugo webflow: Hey, Let's imagine tomorrow I have a bug with an EA on 1 account. (for exemple incorrect lot size) How can I identify the bug ? With the log ? 

By placing checks and verifications in your EA to output such problems to the "Experts" log. There will also be output to the "Journal" log by the terminal as well. So analyse both logs.

 
Insert print() function in your code to output value a try to find where the problem accur 

Then Do a backtest for the specified period. 

Correct your code if find the problem. 

Then do an other backtest just to see if everything work fine