Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 340

 
max020780:

As soon as I removed the pending order on gbpusd and removed the EA from it, the euro order was modified immediately

Use Magicky to filter the orders. And there is no check for repeated modification of stops (which causes Modify Error 1).
 

Hi all. Folks, can you tell me if this testing of an EA over 5 years can be considered successful. Or is the profitability small and the drawdown large. I would like to hear my opinion, is the tester data very much different from the real account (I tested it in Alpari terminal)? I am showing the results:

Period amount profitability drawdown transaction amount
01.06.2012-30.05.2013 1490.63 1.7 37.08% (389.71)
213
01.06.2011-30.05.2012
1242.23 1.48 25.82% (448.34) 231
01.06.2010-30.05.2011 1677.66 1.62 53.26% (880.57)
213
01.06.2009-30.05.2010 1664.33 1.68 32.16% (560.68) 208
01.06.2008-30.05.2009 1817.72 1.48 43.73% (472.15) 233
 
alexey1979621:

Hi all. Folks, can you tell me if this testing of an EA over 5 years can be considered successful. Or is the profitability small and the drawdown large. I would like to hear my opinion, is the tester data very much different from the real account (I tested it in Alpari terminal)? I am showing the results:

Period amount profitability drawdown transaction amount
01.06.2012-30.05.2013 1490.63 1.7 37.08% (389.71)
213
01.06.2011-30.05.2012
1242.23 1.48 25.82% (448.34) 231
01.06.2010-30.05.2011 1677.66 1.62 53.26% (880.57)
213
01.06.2009-30.05.2010 1664.33 1.68 32.16% (560.68) 208
01.06.2008-30.05.2009 1817.72 1.48 43.73% (472.15) 233

This is a huge drawdown, and profitability is not enough... How much is the drawdown on the funds?

Or it could be:

Abs. drawdown: 2. 40 USD
Maximum: 9. 08 USD

Relative: 0. 78%)

Max Money: 97.81% )))

 
evillive:

It's a big drawdown, and the profitability is a bit low... How much is the drawdown on the funds?

It may be so:

Abs. drawdown: 2.40 USD.
Maximum: 9.08 USD

Relative: 0.78%

Max. of funds: 97.81% )))

Relative drawdown is indicated. The absolute drawdown is about the same in percentages and money. Does the tester data differ much from the real account? So what should I do with the Expert Advisor - should I place it on the real account (it seems to work fine for 3 weeks on the demo account) or put it on the shelf till there are new ideas for its improvement?
 
Let him work on the demo for at least half a year. The tester does not show the drawdown by means, but you can see it on the real time. What I have shown - work without stops, over-simmering drawdowns. The lifetime of previous accounts - 2-3 months, this one is alive since August, I'll see how long it will last )))
 
If you have experience, what parameters should you use as a starting point - minimum profitability and drawdown? If profitability is less than 1.5% and drawdown is more than 50% in 5 years, then my Expert Advisor should be put on the shelf until better times.
 
Forexman77:

I am using my own indicator in the EA, I see visually during testing that it is growing and according to the conditions it should open buy, but it does not happen.

I see following errors in the log (I have two types. I am showing them one by one):

TestGenerator: unmatched data error (volume limit 372 at 2013.12.11 21:00 exceeded)

TestGenerator: unmatched data error (low value 1.33097 at 2013.09.12 19:45 is not reached from the lowest timeframe, low price 1.33105 mismatches)

Maybe there are some peculiarities with the operation of custom indicators? I have been messing around with this EA for two months and I am putting it off indefinitely.

Download the entire history for the symbol being tested. It is not the EA that is causing the error, it is the "crooked" history.
 
Forexman77:

Errors 129,138 occur from time to time on one EA. The problem is solved only after restarting the terminal.

I want to add Market Info function to update bid and ask and then check.

Is it possible to artificially call the errors 129,138?

Error 129 - wrong price

Error 138 - new prices (requote)

Before sending a trade request, obtain the latest prices either by refreshing the trading environment using RefreshRates(), or directly from MarketInfo()

Do not forget that:

Expert Advisors and scripts work with their own copy of historical data. The copy of data on the current symbol is created at first launch of the Expert Advisor or script.

Each time the Expert Advisor or script is next run, the initially created copy is updated. While the Expert Advisor or script is running, one or more new ticks may arrive, so the data may become outdated.

 
artmedia70:

Error 129 - incorrect price

Error 138 - new prices (requote)

Before sending a trade request, obtain the latest prices either by updating the trading environment using RefreshRates(), or directly from MarketInfo()

Do not forget that:

Expert Advisors and scripts work with their own copy of historical data. The copy of data on the current symbol is created at first launch of the Expert Advisor or script.

Each time the Expert Advisor or script is next run, the initially created copy is updated. While the Expert Advisor or script is running, one or more new ticks may arrive, so the data may become outdated.


Thank you very much!

Now I know what the problem is.

I used it for buying:

if  (iClose(Symbol(),Period(),0) <= MA_6_t) 
          {                                          
          Opn_B=true;                    
          }

As far as I know, buying is on ask, but iClose(Symbol(),Period(),0) takes prices from bid. This may be the reason for error.

Now I use the following combination:

double pa=MarketInfo(Symbol(),MODE_ASK);
if  (pa <= MA_6_t) 
          {                                          
          Opn_B=true;                    
          }
But, then the question arises, because the EA is not a Pips, the price was in the buy zone for a long time and updated with every tick.

Why does not the trade open? It turns out that the EA hangs on the error and does not see further price movement?

I took the template for my Expert Advisor from https://c.mql5.com/mql4/book/mq4/experts/tradingexpert.mq4

In your opinion, should I add to the error handling function in this EA a check for 129 and 138 errors?

If yes, how to do it?
 

Folks, please help. I want to write a function so that each next open order opens with a lot 2 times bigger than the previous one. This function is giving out wrong values... What is wrong with it? Thanks in advance!



extern double LotBuy = 0.01;


double GetLotBuy()

{

for(int n = 1; n<=CountBuy(); n++)
{
LotBuy=LotBuy*2;
}
return (LotBuy);
}

Reason: