Discussion of article "Parallel Calculations in MetaTrader 5" - page 2

 
Do I understand correctly that multithreading will not work using this method in the tester (without optimisation enabled)? When I start the test, judging by the log, it stops after all indicators are created, apparently it goes into an infinite loop because one of the CPU cores remains loaded.
 
papaklass:

How do you apply your method to the championship? Rules: One expert and one graph. Will the organisers allow spies on other charts?

You are misinterpreting the rules.

III. Expert Advisors (Expert Advisors) for MetaTrader 5

...

3. Each Expert Advisor is launched on a separate terminal from one account and only on one chart selected by the Participant. 3.

4. Multicurrency Expert Advisors can use any currency pair from the 12 available currency pairs.

...

This means that the Expert Advisor will be attached to one chart, specifically to the one whose symbol and period the Participant specifies in his profile.

But nobody forbids trading and getting information from any chart, as well as automatically opening the necessary number of charts for your needs.

You are alone on the terminal and do not disturb anyone.

 
papaklass:

How do you apply your method to the championship? Rules: One expert and one graph. Will the organisers allow to run spies on other charts?

We can. Urain has already answered. In addition: instead of the OnTickMarketWatch multicurrency tick handler, use this OnTick(string symbol) multicurrency event handler or something similar. There will be no problems.
 
MetaQuotes:

New article Parallel Calculations in MetaTrader 5 is published:

Author: Andrew

Win 7 has DirectX11 and GPUs can be used for paralle calculation, how can we use it for ea testing? Thanks 
 
thnx
 
Thanks, great article!
 

A single pass by the Expert Advisor starts from the 0th bar.

      FindPrognoze(_Symbol,CurPattern,0,HistoryLen,ExistsPrognozeLen,
                   Prognoze,MaxRating,HistPatternBarStart);

and assignments are given to indicators not from 0, but from PatternLen, i.e. 24 hours ago on a minute TF

int handle=iCustom(s,_Period,path+"i-Thread",
GlobalVarPrefix,t,_Symbol,PatternLen,
PatternLen+t*HistPartLen,HistPartLenPlus);

The solutions end up being different.

 
Does MT4 support that?
 

hi every one.

i am trying to develop a backtest platform using python .(an integration between python and meta5) . 

in one of its steps , i need to know more about that how cores(workers) in optimization phase complete a process and what is the exact flow of the contribution between cores. 

is there any useful doc about this? c

thanks! c

 

Thanks for the cool article, and especially for the mini lesson on linking EA and indicator via global variables.

My EA-indicator link requires transferring a decent amount of data to the EA, I used to do it through indicator buffers, but your method is more universal and simple, and also less load the processor with polling of indicator buffers.

I just did it, everything works perfectly.

Also, the Expert Advisor is multi-currency and your article helped me to understand how to distribute the computational load.

Усреднение ценовых рядов без дополнительных буферов для промежуточных расчетов
Усреднение ценовых рядов без дополнительных буферов для промежуточных расчетов
  • www.mql5.com
В своей статье  я сделал достаточно убедительные тесты, доказывающие тот факт, что далеко не каждый вызов пользовательского или даже технического индикатора в коде - это самый оптимальный вариант для обработки им промежуточных расчетов в разрабатываемом индикаторе. Итоговый результат по скорости своего исполнения может оказаться значительно...
This website uses cookies. Learn more about our Cookies Policy.