How to Utilize GPU for Strategy Tester in MetaTrader 5?

 

I am looking for guidance on how to use my GPU for the Strategy Tester in MetaTrader 5. 

Could someone please provide a detailed explanation or point me to relevant resources? My GPU is GTX 1050ti 4GB, and I have already ensured that the drivers are up to date.

Thank you in advance for your help!

 
Jefferson Judge Metha:

I am looking for guidance on how to use my GPU for the Strategy Tester in MetaTrader 5. 

Could someone please provide a detailed explanation or point me to relevant resources? My GPU is GTX 1050ti 4GB, and I have already ensured that the drivers are up to date.

Thank you in advance for your help!

What is the GPUs compute score ? 

You might be able to squeeze some juice off on pytorch .

They call it compute capability in cuda
 
MT5 does not directly support GPU acceleration for the built-in Strategy Tester. The Strategy Tester in MT5 relies mainly on CPU cores, and it performs best when using multi-core processors or a local network of agents.

to utilize your GPU, you have to write your strategy in Python (using MT5 Python Integration) then you can use TensorFlow, PyTorch, or NumPy (w/ CuPy) to accelerate calculations on GPU

Another way, you can Write a DLL (C++ or Rust) that handles GPU-accelerated calculations. Load it into MT5 using "import" functions in MQL5.

MT5 does have OpenCL support in its Strategy Tester. OpenCL allows heavy mathematical calculations to run on your GPU but It doesn’t automatically accelerate your strategy. You must explicitly write OpenCL code in MQL5 or call it from your strategy. There are many articles you can find and make your strategy compatible with OpenCL to utilize some part of calculations using GPU. Here

Articles

Using OpenCL to test candlestick patterns

Serhii Shevchuk, 2019.01.18 13:21

The article describes the algorithm for implementing the OpenCL candlestick patterns tester in the "1 minute OHLC" mode. We will also compare its speed with the built-in strategy tester launched in the fast and slow optimization modes.

is one example.
 

That's not something MetaTrader supports (keep in mind MT4 is from 2005 and MT5 is from 2010, MT4 doesn't even support multiple CPU cores).

And if we are being honest here, a 1050ti with 4gb VRAM wasn't going to do much anyway.

You'd be far better off running a local network of agents if you got extra PC's (or a friend willing to run the software) or use the MQL5 Cloud.