Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1447

 
Aleksandr Slavskii #:

How about this:

Or like this:

Thank you, indeed in On Calculate - it works.

XX[rates_total-1]=high[rates_total-1];

But what if the same point, but it should be implemented in a separate function?

I.e..

void funkc_()

{

XX[rates_total-1]=high[rates_total-1];

Here there is no access to RATES_TOTAL and HIGH ? And what to do in this situation ?

}

In general, MQL5 is really more complicated and incomprehensible than MQL4, of course "for me"

 

Hello, Vyacheslav Pronenko

In the function you just need to pass what you need in the parameters:

void funkc_(double &XX[], double &high[], int rates_total) {
        XX[rates_total-1]=high[rates_total-1];
        // ...

}

int OnCalculate(...) {
        // ...
        funkc_(XX, high, rates_total);
        // ...
}
 
Yuriy Bykov #:

Hello, Vyacheslav Pronenko

In the function you just need to pass what you need in the parameters:

Thank you all very much for the explanations )) I got the result I needed.

globally:

double XX[];

then function:

void funkc_(int rates_total, const double &high[])

{

XX[rates_total-1]=high[rates_total-1];

}

then in On Calculate

funkc_(rates_total,high );

Everything worked ! Thank you very much again, especially for the explanation of how to pass data to the function. Good luck to all !

 
Good afternoon, can you tell me somewhere I can find information on the topic: not ☺️
  1. How much does it cost to review a strategy code (submission)
  2. How much MetaTrader takes its commission in the end per sales round?
Or is this classified information?
 

Hello Olga MAL

You were probably looking for information from this article. If I understood your questions correctly, the short answers are as follows:

  1. Not at all
  2. 20%
Как опубликовать свой продукт в сервисе Маркет
Как опубликовать свой продукт в сервисе Маркет
  • www.mql5.com
Предложите свои разработки миллионам пользователей MetaTrader по всему миру — опубликуйте их в Маркете. Сервис предлагает готовую инфраструктуру для продаж: доступ к аудитории, механизмы лицензирования, предоставления пробных версий, доставки обновлений и приема платежей. От вас требуется лишь пройти быструю процедуру регистрации и публикации продукта. Начинайте зарабатывать на своих разработках, все технические детали сервис возьмет на себя.
 
Yuriy Bykov #:

Hello, Olga MAL.

You were probably looking for information from this article. If I understood your questions correctly, the short answers are as follows:

  1. Not at all
  2. 20%
thank you!!!
 

Good day!

I bought an Expert Advisor and I have 5 activations.

Can I, using two activations, install this Expert Advisor on two computers at the same time?

Or will it work only on one computer?

Sincerely, Alexander

 
klycko #:

Good afternoon!

I bought an expert and I have 5 activations.

Can I use two activations to install this Expert Advisor on two computers at the same time?

Or will it only work on one computer?

Sincerely, Alexander

Having 5 activations, you can install on 5 computers.

 
Alexey Viktorov #:

With 5 activations, you can install on up to 5 computers.

The description says that it will not work on another computer (see attached picture).

That is why I have a question about the possibility of simultaneous work on two computers (using two activations).

Files:
r9_5amfck.png  17 kb
 
"With 5 activations, you can install on 5 computers." Maybe it's sequential, going from one computer to another when upgrading hardware. But I want to know about the possibility of simultaneous operation.