Experiments with MetaTrader 5 at Discovery - page 17

 
FinEngineer:

1. a) About glued futures... not really understood, but in my opinion the tester does not work with them (not a single trade, I tried to test standard EAs that are in the terminal).

b) In mt5 from bx there are already glued futures of major blue chips, do not lag behind.

c) It would be great to be able to set spreads manually in the tester, it would be much easier to optimize strategies.

I've seen this problem too. I think the reason is that on the glued futures the step price is 0.
 

Here's an example of the tester not working correctly when testing a simple 2 moving average crossing system.

The incorrectness lies exactly in determining (calculating) the spread when making a trade.

Only last 4 BUY trades are not correct, they are executed at Ask prices. The first one has a spread of about 20000 points, the rest have a spread of about 5000 points, of course it is not good.

My suggestion to developers:

For exchange symbols in the tester we should allow manual setting of the following parameters:

1. Spread

2. Slippage (slippage is inevitable when trading large volumes)

3. Amount of commission (total broker and exchange) (in the tester, I understand that only the exchange commission is taken into account, and for scalpers, the amount of commission is very important)

 
FateevVV:

My suggestion to the developers:

For exchange instruments in the tester, allow the following parameters to be set manually:

1. Spread

2. Slippage (slippage is inevitable when trading large volumes)

3. The value of the commission (the total broker and the exchange) (in the tester, I understand that only the commission of the exchange is taken into account, and for scalpers, the commission value is very important)

+1, yes, manually set it!!!
 
FateevVV:

Here is an example of the tester's incorrect operation when testing a simple 2 moving average crossing system.

The incorrectness lies precisely in determining (calculating) the spread when making a trade.

Only last 4 BUY trades are not correct, they are executed at Ask prices. The first one has a spread of about 20000 points, the rest have a spread of about 5000 points, of course it is not good.

My suggestion to developers:

For exchange symbols in the tester we should allow manual setting of the following parameters:

1. Spread

2. Slippage (slippage is inevitable when trading large volumes)

3. Amount of commission (total broker and exchange) (in the tester, I understand that only the exchange commission is taken into account, and for scalpers, the amount of commission is very important)

Sorry, do you have a demo? I have the same thing only on a demo account. I don't have to worry about it.
 
sanderz:
Sorry, do you have a demo account? I only had this stuff on my demo account. And everything is fine on my real account.
No, real account, broker "Otkrytie". This spread appears at 10:00 and at 19:00, right after clearing (at least the last 4 trades in this example).
 
FinEngineer:

But to add to the resulting structure MqlTick (in the form of SymbolInfoTick(_Symbol,latest_price)) another parameter about how the deal was made at bid or ask - I think it's necessary, or as a separate request for market information,this information is sent by exchange and it is required for many robots, including mine.

There are some doubts.
Сторона сделки в T&S. - Клуб алготрейдеров - Форумы StockSharp
Сторона сделки в T&S. - Клуб алготрейдеров - Форумы StockSharp
  • stocksharp.ru
Получается, что биржа делит участников на два лагеря: активные и пассивные. Кого конкретно кем считать - не имеет значение. Суть разделения - придать разные знаки. Хотелось бы тогда понять, как разделение происходит, если лимитник бьется лимитником (например, лимитник по цене хуже текущей - эмуляция маркета с ограничением по проскальзыванию). А...
 
hrenfx:
There are some doubts.
Exchange gives information on deals, whether each deal was a buy or sell, how the exchange keeps this record with all the details and how useful this information is - this is another question we are discussing in this thread, not of interest... this information is official and I want to receive it, I can request it in QuickBooks and use it to create an automatic trading algorithm... what doubts do you have?
 

Without a clear understanding of the meaning of splitting deals in T&S, using it (splitting) is questionable.

 

I would like to clarify. When trading on the exchange (MMWb/TS on Forts) if I use the standard library to send an Expert Advisor to open a trade at the market for a low-liquid instrument (optional) and setDeviationInPoints to a certain value, it may guarantee that the market execution will not take me too far in the pick window.

For example, I have current liquidity at one price and an empty glass for some tens of points. I set slippage in 10 points and send a buy request. I have read the ENUM_OR_OR policies and I have not yet read the order.

I read about policies ENUM_ORDER_TYPE_FILLING.


But I have not found my particular variant. Or maybe the help does not inform me about it.


For example, slippage from EA is ignored at market execution in MT4.

Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров
  • www.mql5.com
Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров - Документация по MQL5
 
With market execution, slippage is not taken into account by the very principle (buy at market without specifying the price) of execution.
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
  • www.mql5.com
Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте - Документация по MQL5
Reason: