AkaEdie genetic algorithm, tick all parameters in the parameters, but in the optimisation window not all parameters are visible from the marked ones.... and also, what period you usually choose for full optimisation, it is simply unrealistic to test on one computer at home since 70s, it will optimise for a hundred years.
which parameters are visible in the optimisation window can be specified in the settings of the optimisation window.
About the period of optimisation, there is no unambiguous answer.
It is selected by the scientific method based on the optimisation goals.
void SendSell()
{
//--- declare and initialize the trade request and result of trade requestMqlTradeRequest request={};
MqlTradeResult result={};
//--- parameters of request
request.action =TRADE_ACTION_DEAL; // type of trade operation
request.symbol =Symbol(); // symbol
request.volume =LotSizeEA; // volume of 0.2 lot
request.type =ORDER_TYPE_SELL; // order typedouble price = SymbolInfoDouble(Symbol(), SYMBOL_BID); // Получение текущей ценыdouble roundedPrice = NormalizeDouble(price, 5); // Округление цены до 5 знаков после запятой
request.price = roundedPrice; // Установка округленной цены в запросе
request.deviation=OrderDeviation; // allowed deviation from the price
request.magic =EXPERT_MAGIC; // MagicNumber of the order//--- send the requestif(!OrderSend(request,result))
PrintFormat("OrderSend error %d",GetLastError()); // if unable to send the request, output the error code//--- information about the operationPrintFormat("retcode=%u deal=%I64u order=%I64u",result.retcode,result.deal,result.order);
}
//+------------------------------------------------------------------+
It is logical to select a position not by symbol, but in a loop through all positions. We received a ticket of the next position, checked the magik and made a decision
which parameters are visible in the optimisation window can be specified in the settings of the optimisation window.
About the period of optimisation, there is no unambiguous answer.
It is selected by the scientific method based on the optimisation goals.
Now the question is why I get an error in the file where I included the code from this file
unresolved extern variable 'BuyButton' BuySellInterface.mqh 6 16
Now the question is, why do I get an error in the file where I included the code from this file?
unresolved extern variable 'BuyButton' BuySellInterface.mqh 6 16
ok i have sorted it out, but another question, my sevetnik does not make a transaction on the button in the log.
here is the code
of course there are funds on the account
OK, I've sorted it out, but another question, my sevetnick does not make transactions on the button in the log.
Here's the code.
Of course there are funds in the account.
10027
TRADE_RETCODE_CLIENT_DISABLES_AT
Autotrading is prohibited by client terminal
ERR_TRADE_DISABLED
4752
Trading for Expert Advisor is prohibited
https://www.mql5.com/ru/docs/constants/errorswarnings
10027
TRADE_RETCODE_CLIENT_DISABLES_AT
Autotrading is prohibited by the client terminal
ERR_TRADE_DISABLED
4752
Trading for Expert Advisor is prohibited
https://www.mql5.com/ru/docs/constants/errorswarnings
thank you
It is logical to select a position not by symbol, but in a loop through all positions. We received a ticket of the next position, checked the magik and made a decision
How about this?
Got it. Still in the loop. Thank you. Did I write that right?How about this?
Got it. Still in the loop. Thank you. Did I write that right?No.
You should select the position not by symbol, but by ticket using the PositionGetTicket(i) function and then check the magick and symbol.
Comrades hint, profit in the strategy tester in the optimisation tab is written in dollars?
and the result also what does red and dark green mean?
I understand the drawdown as a percentage of the total deposit, right?
and the result also what does red and dark green mean?
I understand the drawdown as a percentage of the total deposit, right?
Profit/loss is ALWAYS in the currency of the deposit...
Red-green is not for me.