Automated Trading Championship 2007: common mistakes in experts - page 5

 
komposter:
Kadak:
But will the organisers allow such an EA to enter the competition. Using this design, the 5 minute multi-currency "overuse resources" test passes the EA without any problems.
This design is a good tone of Expert Advisor programming.
I haven't heard of organisers disqualifying competent EA writers ;)

I don't think so either. I would like to hear back from the ORGANISERS.
 
Kadak:

I think so too. I would like to hear back from the ORGANISERS.
A run at the competition will show it all. If it doesn't take up too much resources, it's fine(as long as the rest of the rules are followed).
 
Renat:
Martes:

Dear organisers!

May I ask for the exact definition of the multi-currency Expert Advisor? I did a search on the website for the words "multi-currency expert". As a result, nothing was found in the documentation, and the rest of the pages (mostly from the championship forum) did not provide a definition either. I'm roughly guessing what a multi-currency expert is, but I need a precise definition as well.

A multi-currency Expert Advisor is someone who opens trading positions in other instruments, not including the symbol to which he is attached. Any Expert Advisor can refer to charts and parameters of other symbols for information, but because of this it is not considered multicurrency.

I.e., a non-multicurrency Expert Advisor can take information on different currency pairs from different timeframes to make decisions on the orders of the currency pair of the current chart?

In that case, can I use the code below to test my multicurrency Expert Advisor in the single currency pair mode. Is it possible to get information on other currency pairs during testing?

==========================================================================


if ((mono==1)&&(f==0) ) ////=== mono - sign of order opening on one currency pair, f - sign of the currency pair of the current chart
{
ticket=OrderSend(Symbol(), OP_BUY, LotsOptimized, Ask, 5,Bid-StopLoss*Point, Ask+TakeProfit*Point, Commenta,f,0, Green);
if(ticket>0)
{
if(OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES)) {}
else Print("Error opening BUY order: ", GetLastError());
}

}
else
{
double bid =MarketInfo(Symbol_array[f], MODE_BID);
double ask =MarketInfo(Symbol_array[f], MODE_ASK);
double point =MarketInfo(Symbol_array[f], MODE_POINT);
ticket=OrderSend(Symbol_array[f], OP_BUY, LotsOptimized, ask, 5,bid-StopLoss*point, ask+TakeProfit*point,Commenta,f,0, Green);
if(ticket>0)
{
if(OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES)) {}
else Print("Error opening BUY order : ", GetLastError());
}


}

======================================================================================

 
Please advise how to get rid of "error 4108 when closing order no...". How critical is it, as the Expert Advisor is working properly.
 
Tihon_RUS:
Please advise how to get rid of "error 4108 when closing order no...". And how critical is it, as the Expert Advisor is working properly.
You have to specify the correct ticket to close it. You cannot say anything without the code.
 
maybe there is an error here somewhere?







while (OrdersTotal()>0)
{
if (!OrderSelect(0, SELECT_BY_POS)) break;
if (OrderType()>OP_SELL)
{
if (!OrderDelete(OrderTicket()))
{
Print("Error ", GetLastError()," when deleting a pending order ",
OrderTicket());
break;
}
}
{
double price;
if (OrderType()==OP_SELL)
price = MarketInfo(OrderSymbol(), MODE_ASK);
else
price = MarketInfo(OrderSymbol(), MODE_BID);

if (!OrderClose(OrderTicket(), OrderLots(), price, 3))
{
Print("Error ", GetLastError()," when closing the position ", OrderTicket());
break;
}
}
}
Sleep(10000);
 
...
if ((OrderType()>OP_SELL) && (OrderCloseTime() == 0))
...

Add a close time check. No need to delete orders that have already been deleted.

 

Could you please tell me what's wrong?

I do not understand what is wrong!

Trawl starts working at 50 pips

in this case at first the position is lead to lossless +5 points from the order opening at achievement 35 points

and then when it reaches 50 pips a trawl starts working

when testing on my machine at this time and at other periods i do not get error 130

---

this is what the machine that is testing the advisor gives out - i do not get an error when testing :-(

i wonder if a transfer to Breakeven of 35p and next trall of 50p could give me errors?

on the other hand if i emulate a strong requote on strong movements - how do i avoid the problem?

2007.09.06 19:30 loading
yz_t4 on EURUSD:240
19:30:18 2007.01.03 16:06  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:06  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:06  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:06  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:08  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:08  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:08  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:09  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:10  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:10  yz_t4 EURUSD,H4: OrderModify error 1
19:30:18 2007.01.03 16:10  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 16:24  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 16:25  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 16:25  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 16:30  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 16:30  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 16:30  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 17:12  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 17:12  yz_t4 EURUSD,H4: OrderModify error 1
19:30:19 2007.01.03 17:13  yz_t4 EURUSD,H4: OrderModify error 1
1 min 34 seconds
Errors: 20
  
Код тралла достаточно сложный и все же я приведу его! 
Files:
yz_trall.mq4  10 kb
 

Dear Renat and Rosh!

1. When sending an Expert Advisor, should the author specify the testing conditions of the Expert Advisor (currency pairs, TFs)? This is of course a stupid question, but if you choose your own conditions, it may be difficult to fit them in :)

2. If the conditions of a multi-currency EA are several open charts of foreign pairs with certain TFs, will they be observed when launching the EA in the Championship and where to formulate them?

 
goldtrader:

Dear Renat and Rosh!

1. When sending an Expert Advisor, should the author specify the Expert Advisor testing conditions (currency pairs, TFs)? This is of course a stupid question, but if you choose your own conditions, it may be difficult to fit them in :)

2. If the conditions of a multi-currency EA are several open charts of foreign pairs with certain TFs, will they be obeyed when launching the EA in the Championship and where can they be stated?


1. We test EAs on the symbol/period that is specified in the participant's profile in the "Files" tab. However, we can test the Expert Advisor on any data just to detect errors. If the Expert Advisor is written correctly and error handling is provided in it, then it will behave decently on any data, it will not overload the trade server with erroneous requests, and will not produce huge logs.

2. In the description of the Expert Advisor, you need to specify which charts should be open. If you do not specify the periods of the charts, the corresponding charts will be opened with the period, which is specified for the main symbol.