Test of an EA based on ticks - page 2

 
Ibragim Dzhanaev:
I don't understand what to show .... Are you saying that TA is to blame for this result ? A slippage of 10pts.
What is the purpose of your writing this?
Ibragim Dzhanaev:

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.

 
fxsaber:
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.

 
Ibragim Dzhanaev:

To the extent that I don't understand the question, I'm not a programmer.

Please, make it simple to understand.

Add these lines to the source

Forum on trading, automated trading systems and strategy testing

Testing an EA based on ticks

fxsaber, 2016.12.05 19:19

Add this.
#include <SlipPage.mqh> // https://www.mql5.com/ru/code/16134

// После окончания бэктеста сначала вызывается 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.
If you can't, I can add it myself if you send me the source.
 
fxsaber:
Add these lines to the source
If you can't, I can add it myself if you send me 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.

 
I look at the demo and there is no TA influence. It's only on the news I guess...
 
Yes, after the proposed changes. the report will be.
 
Ibragim Dzhanaev:

Is there anything else besides what you wrote? If there is, please tell me.

There may be many nuances. This tester's grail should be given to the developers in the SD to study, so that they could make a more adequate tester.
 
fxsaber:
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

)

 
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.
 
Renat Akhtyamov:

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.