// После окончания бэктеста сначала вызывается OnTester, затем OnDeinit doubleOnTester( void ) { // Возвращает баланс бэктеста за вычетом положительных проскальзываний лимитных и TP-ордеров в тестере (запущенный инструмент) return(SLIPPAGE::OnTesterBalance()); }
// После окончания бэктеста сначала вызывается OnTester, затем OnDeinit voidOnDeinit( constint Reason ) { // Вычитает из баланса бэктеста величину положительных проскальзываний лимитных и TP-ордеров (запущенный инструмент) SLIPPAGE::CorrectBackTestBalance();
::Print(SLIPPAGE::GetProfitData().ToString());
return; }
Attach the report after changes and the last lines of the backtester log that corresponds to the highlighted Print.
If you can't, I can add it myself if you send me the source.
fxsaber: There could be many nuances. This tester's grail should be given to the developers in the CD to study, so that they can make a more adequate tester.
That's why I decided to ask the knowledgeable. If you don't mind, please list all possible nuances and we will implement them in the code to bring it as close to reality as possible. If possible, point by point.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I don't understand what to show .... Are you saying that TA is to blame for this result ? A slippage of 10pts.
Please speak up if you have any real knowledge.
How much of what the tester shows will correspond to the real trade?
I am only interested in constructive analysis, not chit-chat. You either accept my answer to your request or correct your own request.
You can have a constructive conversation for N posts, or you can chatter for 100N posts. Take your pick.
What is the purpose of your writing this?
I am only interested in constructive analysis, not chatter. You either accept my response to your request or correct your own request.
You can have a constructive conversation for N posts, or you can chatter for 100N posts. Take your pick.
To the extent that I do not understand the question, I am not a programmer.
Put it in a simpler way so that I understand.
To the extent that I don't understand the question, I'm not a programmer.
Please, make it simple to understand.
Forum on trading, automated trading systems and strategy testing
Testing an EA based on ticks
fxsaber, 2016.12.05 19:19
Add this.// После окончания бэктеста сначала вызывается OnTester, затем OnDeinit
double OnTester( void )
{
// Возвращает баланс бэктеста за вычетом положительных проскальзываний лимитных и TP-ордеров в тестере (запущенный инструмент)
return(SLIPPAGE::OnTesterBalance());
}
// После окончания бэктеста сначала вызывается OnTester, затем OnDeinit
void OnDeinit( const int Reason )
{
// Вычитает из баланса бэктеста величину положительных проскальзываний лимитных и TP-ордеров (запущенный инструмент)
SLIPPAGE::CorrectBackTestBalance();
::Print(SLIPPAGE::GetProfitData().ToString());
return;
}
Attach the report after changes and the last lines of the backtester log that corresponds to the highlighted Print.
Add these lines to the source
OK, I'll probably add it tomorrow when I have time. But does the TP have such a dramatic effect on the result? However, there is also SL.
Maybe there is something else besides what you wrote? If there is, tell me.
Is there anything else besides what you wrote? If there is, please tell me.
There may be many nuances. This tester grail should be given to the developers in the SD to study, so that they make a more adequate tester.
then no one will make any money, not even in the tester
)
There could be many nuances. This tester's grail should be given to the developers in the CD to study, so that they can make a more adequate tester.
then no one will make any money, not even in the tester
)
After the suggested fixes. see the test.
I don't particularly believe it myself, but that's the way it works.