[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 156

 
yosuf:
Thank you very much, I was able to log in from Microsoft Internet Explorer and after clearing the cache you mentioned, I also got Opera working from where I couldn't log in.
All knowledge spreads through the chain. I was once advised by Vinin.
 

Why does MetaTrader classify zero trades closed at Breakeven as Profitable?

Of course they are not losing trades, but they are not profitable ones either. This is incorrect and this is the reason why the tester generates erroneous statistics.

Breakeven trades should be placed in a separate category.

A simple example: SL=30 pips, TP=90 pips.

Three trades, one profitable, two closed on Breakeven.

The Tester will tell you that the average profit = 30 pips, when in fact the average profit = 90 pips.

Similarly for the percentage of profitable trades - the data is completely wrong.

 
chief2000:

Why does MetaTrader classify zero trades closed at Breakeven as Profitable?

Of course they are not losing trades, but they are not profitable ones either. This is incorrect and this is the reason why the tester generates erroneous statistics.

Breakeven trades should be placed in a separate category.

A simple example: SL=30 pips, TP=90 pips.

Three trades, one profitable, two closed on Breakeven.

The Tester will tell you that the average profit = 30 pips, when in fact the average profit = 90 pips.

Similarly for the percentage of profitable trades - the data is completely wrong.

If it's so important to you, it's not a problem to calculate it yourself. Really?
 
MaxZ:
If it's so important to you, it's not a problem to calculate everything yourself. Really?

Is it "no problem" for everyone?

 
chief2000:

Is everyone 'no problem'?

A minority. And the majority found a robot on the internet and went to the strategy tester to test it. Let that be their punishment...


And there is even a solution, which does not require programming.

Run the Expert Advisor twice:

1). Set Breakeven in OrderOpenPrice(), get the correct number of losing trades and all other information;

2). Breakeven is set one pip higher/lower, to obtain the minimum loss and get the correct number of profitable trades and all other information.

But programmatically it is easier of course. Once and for all. Once again, if it is so important for you.

:))))

 
MaxZ:

A minority. And the majority found a robot on the internet and went to the strategy tester to test it. Let that be their punishment...


And there is even a solution, which does not require programming.

Run the Expert Advisor twice:

1). Make Make no-loss orderOpenPrice(), and you will get the correct number of losing trades and all other information;

2). Breakeven set one pip higher/lower, so as to get the minimum loss and get the correct number of profitable trades and all the other information.

But it is easier to do it programmatically, of course. Once and for all. Once again, if it is so important for you.

:))))

Why all the hassle? :)

It shouldn't be a problem for MQ to correct the flaw.

 
chief2000:

It should not be a problem for MQ to correct the flaw.

Where is the flaw?
 
Hi all! Tried a search - couldn't find it! How to break a long line of code into several shorter ones?
 
TheXpert:
Where is the flaw?
It's all described above.
 
chief2000:
It's all described above.
So the MCs have to go through the whole terminal because you can't count the zeros?
Reason: