How to reset deposit in EA Tester?

[Deleted]  

I am writing a EA and test it on history date.

I test EA many times and the AccountFreeMargin() function always return negative number now.

How can I reset deposit to make AccountFreeMargin() function return initial deposit value?

Thanks!

 
normally it sets this value automatically to initial value.
[Deleted]  

If its the Strategy Tester you are taking about then you can set it in the properties to whatever you wish before each test and it will always start at that amount.

Assuming, however, you are referring to a demo account, in that case you cannot usually lodge more funds and will have to open a new demo account. Not difficult.


CB

[Deleted]  
cloudbreaker wrote >>

If its the Strategy Tester you are taking about then you can set it in the properties to whatever you wish before each test and it will always start at that amount.

Assuming, however, you are referring to a demo account, in that case you cannot usually lodge more funds and will have to open a new demo account. Not difficult.

CB

Thanks for your answer.

I am using a demo account to test my EA(Expert Advisors) in Strategy Tester window.

I set the "Use Date" field to test EA in history database.

I don't know why AccountFreeMargin() function return negative number, like -109.7245.