Errors, bugs, questions - page 463

 

Running a contest in mt5 for 1 month, I had full access to the contestants. After OS re-installation only MT4 accounts remained and from the fifth all were deleted.

There are three possible options.

1 I did not access terminal with contestants accounts for half a month. - Is the demo account given for N time?

2 After reinstallation of OS - all accounts from demo account disappear?

3. i had reinstalled one of the few terminals mt5, i have installed about 5 terminals, one of them i reinstalled and all the other terminals lost their accounts. is it possible?

What could be the reason for auto-delete accounts? I haven't been written to yet but I'm afraid the contestants have lost their accounts as well.

I just did everything on the same day, that's why I can't figure out the "hole"

 
Zeleniy:

Running a contest in mt5 for 1 month, I had full access to the contestants. After re-installing the OS only MT4 accounts remained and all were deleted from mt5.

2 After OS change all accounts from dem account disappear? The operating system was changed to another drive, but MT4 was not affected.

Yes, with MetaTrader 5 terminal after OS change passwords are definitely overwritten for the sake of account security. This is a consequence of terminal environment change.

Never rely on auto-saved passwords - you have to save them in a separate location.

 
Renat:

Yes, the Metatrader 5 terminal definitely has its passwords overwritten for the sake of account security after a change of operating system. This is a consequence of changing the environment of the terminal.

You can never rely on autosaved passwords - they should definitely be saved in a separate location.

Thanks for the quick reply. The passwords were left on the forum when sent to the contestants. It's a good thing it happened for me.

Thanks, we'll keep that in mind next time.

 

Hello!

Why couldn't you make the "Profit" section of the "Trading" section with checkboxes not for one of the positions of choice, but with the ability to select (checkboxes) for two options simultaneously, i.e. "in currency" and "in pips"? It expands and does not burden the capabilities of the program

Files:
ewblpk6e08.JPG  15 kb
 
How can I get time series information and add my own data display columns to the optimisation output table in maths mode ?
 

Hello!


When opening an order, stop-loss and take-profit are not set. What may be the problem?


double Point = 0.00001;

MqlTradeRequest mrequest; // To be used to send a trade request
MqlTradeResult mresult;// To be used for receiving results of trade requests execution
double Ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK); // best bid
double Bid = SymbolInfoDouble(_Symbol,SYMBOL_BID); // best sell offer

mrequest.action = TRADE_ACTION_DEAL; // immediate execution
mrequest.price = NormalizeDouble(Ask,_Digits); // last ask price
mrequest.sl = Ask - StopLoss * Point; // Stop Loss
mrequest.tp = Bid + TakeProfit * Point; // Take Profit
mrequest.symbol = _Symbol; // symbol
mrequest.volume = GetLots(); // number of lots to trade
mrequest.magic = 0; // Magic Number
mrequest.type = ORDER_TYPE_BUY; // buy order
mrequest.type_filling = ORDER_FILLING_AON; // order type - all or nothing
mrequest.deviation = 5;// slippage from the current price

OrderSend(mrequest,mresult); // send the order

Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
  • www.mql5.com
Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте - Документация по MQL5
 
Angel777:

Hello!


When opening an order, stop-loss and take-profit are not set. What could it be?


Probably the same problem as here.
 

Is it possible to call a destructor without deleting an object?

 
220Volt:

Is it possible to call a destructor without deleting an object?

Why? Class deinitialisation can be done with specialised methods if necessary...
 
_____Life_Line:
How can I get the time series information and add my columns to the optimization output table in math calculations mode?

Information about timeseries can be obtained in several ways, you can copy individual timeseries with CopyXXXX() or the whole structure at once with CopyRates().

The columns in the optimization results are added automatically when adding/removing input parameters, the OnTester() function is used to output the user information.

Unfortunately, the output can be used only for the target function, and only one such double.

Other information can be output to a file only, and only if you optimize your code on the local agents. Otherwise, the recording into the file will be made on the machine where the agent is installed, which is not convenient when using remote agents, because they are anonymous or you just have to ask the owner (if you know the person on whose agent you optimize).

Reason: