Questions on MQL5 Wizard and standard library of trading classes - page 4

 
uncleVic:

Already realised that YES.

Found a little "spit". Take the file.

It's gone!

 
Erm955:

It's gone!

OK
 

Wizard has generated an EA.

When tested on usdjpy, the EA opens an order with TP and SL not set to zero,

and on eurusd it opens orders without TP and SL. If I change the Price level to execute a deal from 0.0 to 2, the advisor starts placing limit orders with TP and SL on eurusd. What is the difference and what does the parameter Price level to execute a deal mean?

How does the Expiration of pending orders (in bars) work? I change the number of bars nothing changes.

Мастер MQL5: Создание эксперта без программирования
Мастер MQL5: Создание эксперта без программирования
  • 2010.12.15
  • MetaQuotes Software Corp.
  • www.mql5.com
Вы хотите быстро проверить торговую идею, не тратя времени на программирование? Выберите в "Мастере MQL5" нужный тип торговых сигналов, подключите модули сопровождения позиций и управления капиталом - на этом вся работа закончена. Создайте свои реализации модулей или закажите их через сервис "Работа" - и комбинируйте новые модули с уже существующими.
 
solo:

Wizard has generated an EA.

When tested on usdjpy, the EA opens an order with TP and SL not set to zero,

and on eurusd it opens orders without TP and SL. If I change the Price level to execute a deal from 0.0 to 2, the advisor starts placing limit orders with TP and SL on eurusd. What is the difference and what does the parameter Price level to execute a deal mean?

How does the Expiration of pending orders (in bars) work? When I change the number of bars nothing changes.

The parameter "Price level to execute a deal". The level of market entry price indent from the reference price (usually the current market price is taken as the reference).

There are three options:

=0 - entry at the current price;

>0 - entry by limit order (better than the market);

<0 - entry by stop order (worse than the market).

Expiration of pending orders (in bars) parameter. Expiration time of the pending order. Makes sense only if the "Price level to execute a deal" parameter is different from zero.

 

Thank you for your comprehensive reply.

Why does the same EA on yen open orders with SL and TP, but on euros empty orders.

2011.07.11 00:58:00 CTrade::PositionOpen: market sell 1.00 EURUSD sl: 1.42308 tp: 1.41908 [done at 0.00000]
2011.07.11 00:58:00 order sell 1.00 at 1.42108 [#2 sell 1.00 EURUSD at 1.42108]
2011.07.11 00:58:00 deal performed [#2 sell 1.00 EURUSD at 1.42108]
2011.07.11 00:58:00 deal performed.11 00:58:00 deal #2 sell 1.00 EURUSD at 1.42108 done (based on order #2)
2011.07.11 00:58:00 market sell 1.00 EURUSD (1.42108 / 1.42162 / 1.42108)

2011.07.11 04:30:00 CTrade::PositionOpen: instant sell 2.00 USDJPY at 80.707 sl: 80.907 tp: 80.507 [done at 0.000]
2011.07.11 04:30:00 order performed sell 2.00 at 80.707 [#3 sell 2.00 USDJPY at 80.707]
11 04:30:00 deal performed [#3 sell 2.00 USDJPY at 80.707]
2011.07.11 04:30:00 deal #3 sell 2.00 USDJPY at 80.707 done (based on order #3)
2011.07.11 04:30:00 instant sell 2.00 USDJPY at 80.707 sl: 80.907 tp: 80.507 (80.707 / 80.715 / 80.707)

 

solo:

Why the same Expert Advisor opens orders with SL and TP on Yen, but on EUR the orders are empty.


I am not sure what exactly you are not satisfied with. Judging by the fragment of the log, the protective orders are placed in both cases.

2011.07.11 00:58:00 CTrade::PositionOpen: market sell 1.00 EURUSD sl: 1.42308 tp: 1.41908 [done at 0.00000]

2011.07.11 04:30:00 CTrade::PositionOpen: instant sell 2.00 USDJPY at 80.707 sl: 80.907 tp: 80.507 [done at 0.000]

Or you are confused by an empty space in this line?

2011.07.11 00:58:00 market sell 1.00 EURUSD (1.42108 / 1.42162 / 1.42108)

Or the protective orders you see in the log are not in the positions?

Be more specific in your question. The telepathic team is on holiday.

 

uncleVic:

I am not sure what exactly it is that you do not like. Judging by the above log, protective orders are placed in both cases.

Or are you confused by the empty space in this line?

Or are the protective orders shown in the log missing from the positions?

Be more specific in your question. The team of telepaths is on holiday.

Protective orders are only placed on usdjpy, other currency pairs go without stop and profit levels, all other things being equal.

 
solo:

Protective orders are only placed on usdjpy, the other currency pairs go without stop and profit levels, all other things being equal.


Please attach the code of the Expert Advisor. It is not secret, is it?
 
uncleVic:
Could you attach the expert code, please? It is not secret, is it?
I have a feeling that this is not the first time the question why stops are not placed, and the probable cause is difficult to calculate for a dummy.
Files:
test01.mq5  9 kb
 
solo:
For example on the MetaTrader 5 platform we should place a request for a stopper that will not work properly.

It's strange... It's going fine for me.

Let's just decide the following:

1. What server are you connected to.

2. The values of testing parameters.