Errors, bugs, questions - page 2699

 
Andrey Khatimlianskii:

In MT4, the commission was taken for both sides when opening a trade and was displayed in the list of trades.

In MT5 it is often charged separately for opening and closing. But why not display at least the first one in the list of positions? New Ideology.

In MetaTrader 4 order system everything is piled up - there are only orders.

In MetaTrader 5 order system everything is separate - orders, trades, positions.

It is therefore logical that commissions are in the lists where they should be displayed.

 
Andrey Khatimlianskii:

In MT4, the commission was taken for both sides when opening a trade and was displayed in the list of trades.

In MT5 it is often charged separately for opening and closing. But why not display at least the first one in the list of positions? New ideology.

Because in Netting accounts a position can consist of several trades and each trade has its own commission. Then when the position is closed, the commission will be charged and again if in installments. It is not difficult to write a script that will go through all the positions and print or Comment, for each position or all of them together.

 
Alexey Viktorov:

Because in Netting accounts a position can consist of several trades and each trade has its own commission. Then the commission will be charged when the position is closed and again if in installments. It is not difficult to write a script that will go through all the positions and print or Comment, for each position or all of them.

yeah, absolutely right! and also, so it would be no problem for the developers to show the total commission per position/each next to the PnL in MT5. so, the problem is not the accounting of mt5 as opposed to mt4?

the only problem with displaying current commission (independent of MT4/5) is charging at the end of the accounting period, day, month, etc., but that's not what we're talking about now, is it.

 
Andrey Dik:

aha, absolutely right! and also, so it would be no problem for developers to show total commission by position/each next to PnL in MT5. hence, the problem is not the accounting of MT5 as opposed to MT4?

the only problem with displaying current commission (independent of MT4/5) is charging at the end of an accounting period, day, month, etc., but that's not the question now, is it.

The question was about something else: how to display commissions in the Trade tab.

It doesn't.

And then there's a lot of off-topic talk. It's like "if grandma had... had geese".

Настройки платформы - Начало работы - Справка по MetaTrader 5
Настройки платформы - Начало работы - Справка по MetaTrader 5
  • www.metatrader5.com
Торговая платформа обладает множеством настроек, что позволяет организовать работу в ней так, как это удобно именно вам. Выполните команду " Настройки" меню "Сервис" или нажмите "Ctrl+O". Графики — общая настройка отображения ценовых графиков, а также настройка параметров управления объектами: выделение объектов после их создания, немедленная...
 
Artyom Trishkin:

The question was different: how to display the commissions in the Trade tab.

You can't.

In order to become a market maker, we need to know how to become an expert. had geese".

Well, no requests - there will be no development of the platform).

The answer to the "how" question is to write a script or Expert Advisor and calculate the commission for positions using MQL, this is the only way so far, but hopefully it will be as convenient someday as in MT4.

 

There are GUI add-ons that (on Hedge) show commissions, slippage, etc.

TradePanel_Csharp
TradePanel_Csharp
  • www.mql5.com
Торговая панель, которая работает и в Визуализаторе Тестера.Таблица текущих ордеров/позиций.Таблица истории торгов (корректно работает на Хедж-счетах). Использование Ручная торговля в Тестере или вмешивание в работу советника (например, с целью проверки устойчивости ко внешним факторам).Ручная торговля в Терминале на демо/реальных...
 

I ask developers(@Ilyas) to pay attention to discovered bug.
Bug MT5 (build 2377) when selecting suitable overloaded function for argument of pointer type, the function with type conversion to pointer toparent class instead of base class becomes higher priority.
Also no compile time error when pointer to base class is assigned to pointer to parent class.

Probably, there is a bug related to this bug:https://www.mql5.com/ru/forum/1111/page2682#comment_15591437


class A{};
class B : public A{};
class C : public B{};


struct T{
   static void test(A*){
      printf("A*");
   }
   static void test(C*){
      printf("C*");
   }
};

struct TT{
   static void test(B*){
      printf("B*");
   }
};

void OnStart(){
   B b;
   T::test(&b);            // Runtime Error: Incorrect casting of pointers.  Expected result: printf("A*");
   
   A a;
   TT::test(&a);           // Runtime Error: Incorrect casting of pointers.  Expected result: Compilation Error
   B* ptr = &a;            // Runtime Error: Incorrect casting of pointers.  Expected result: Compilation Error
}
 

Non-critical but annoying bug with Market Watch.

It opens and closes on the icon perfectly, but when you close on "X" it either doesn't close at all or hangs for a few seconds and then closes. This phenomenon has occurred about a month, but I have not got used to close by its icon. In general, I would like to request the developers to pay attention to this issue. Build 2361.

 
Hi all, I don't know if I'm in the right place or not. Here's the problem. The signal has gone into the archive due to a long period of inactivity. Can't get it back up again. What to do? Thanks in advance!
 
Sergey Dzyublik:
MT5 bug (build 2368) Incorrect parenthesis counting in for and do-while loops, successful compilation with erroneous code.

Thanks for the post, fixed

Reason: