I have never studied programming, but I want to write an EA - page 7

 

please advise how to correctly fill in (declare and fill in) the array requesrt\result, in order to send a request to the server to open an order

 
Sergey Lobzankin:

please advise how to correctly fill in (declare and fill in) the array requesrt\result, in order to send a request to the server to open an order

There are all examples in the documentation.

Документация по MQL5: Стандартные константы, перечисления и структуры / Структуры данных / Структура торгового запроса
Документация по MQL5: Стандартные константы, перечисления и структуры / Структуры данных / Структура торгового запроса
  • www.mql5.com
Взаимодействие клиентского терминала и торгового сервера для проведения операций постановки ордеров производится посредством торговых запросов. Запрос представлен специальной предопределенной структурой MqlTradeRequest, которая содержит все поля, необходимые для заключения торговых сделок. Результат обработки запроса представлен структурой...
 
Alexey Viktorov:

There are all examples in the documentation, after all.

it frowns like this
this is what it says.

help tells you about a pointer to a structure.
what can be a pointer?
I've tried everything.

 
Sergey Lobzankin:

swears like this
it says this

the help talks about a pointer to a structure.
what can be a pointer?
I've tried everything.

You have not filled in the structure.

Take a closer look at the examples in the help:

//--- готовим запрос
   MqlTradeRequest request={0};
   request.action=TRADE_ACTION_PENDING;         // установка отложенного ордера
   request.magic=magic_number;                  // ORDER_MAGIC
   request.symbol=_Symbol;                      // инструмент
and so on all the fields.
 
Sergey Lobzankin:

Thank you for the textbook.
I started reading it, and it looks like a normal person wrote it)))
I downloaded a self-study book, 3000 pages, and it's all like a dry reference.

Good day, Sergei. Have you created something worthwhile yourself, study the programming material. I am a bit of programmer in the past, and I even tried to do something. I would be grateful for a reply, and maybe even help in organizing autotrading. I've been trying to catch up with the market on 5-minute or 1-minute trades for 10 years now, but in vain. More often than not missed it and didn't risk entering later. I would be grateful for a great advisor, created, if not by you, then ready to come to the rescue and overcome any good trend - beat the machine - forex or BO - this machine working against us.
 
entin:
Good day Sergey. Have you created something worthwhile yourself? In the past I am a bit of a programmer too, and even tried to do something. I would be grateful for a reply, and maybe even help in organizing autotrading. I've been trying to catch up with the market on 5-minute or 1-minute trades for 10 years now, but in vain. More often than not missed it and didn't risk entering later. I would be grateful for a great advisor, created, if not by you, then ready to come to the rescue and overcome any good trend - beat the machine - forex or BO - this machine working against us.

It is easier and more constructive to assume that the market or forex is indifferent to us. In this case, there is no need to win anything).

 
Yuriy Asaulenko:

It is easier and more constructive to assume that the market or forex is indifferent to us. In this case, there is no need to win anything).

)))) just like the weather. are we beating the weather? )))

 
Alexey Volchanskiy:

)))) so is the weather. beat the weather? )))

There's a Doll sitting all over the place. Washed the car - it made it rain, put in a buy - the price fell out)))
 
Texnolog:
It's got its own Doll sitting all over the place. Washed the car - the rain made it rain, put the bye - the price fell out)))

A car is considered perfectly clean if the number plates are legible from 20m.

 
entin:
Good afternoon Sergei. Have you created something worthwhile yourself by studying the programming material. I am a bit of a programmer in the past too, and even tried to do something. I would be grateful for a reply, and maybe even help in organizing auto-trading. I've been trying to catch up with the market on 5-minute or 1-minute trades for 10 years now, but in vain. More often than not missed it and didn't risk entering later. I would appreciate a great Expert Advisor, that if not created by you, then ready to help and defeat any good trend - to beat the machine - forex or BO - this machine that works against us.

I'm not sure what you want.
I have already finished my Expert Advisor in MQL4. To finally come to profit, my Expert Advisor should be optimized.
My friend advised me to rewrite it in MQL5.