Forum on trading, automated trading systems and testing trading strategies
Sergey Golubev, 2020.04.22 15:20
OpenCL
The forum
- Taking Neural Networks to the next level
- SQLite in MQL5: New Features and Performance Testing - the announcement
- OpenCL and GPUs in to Agent tester
- How to modify the code with Opencl?
CodeBase
- OpenCL Test - script for MetaTrader 5
The articles
- OpenCL: The Bridge to Parallel Worlds
- Understand and efficiently use OpenCL API by recreating built-in support as DLL on Linux (Part 1): Motivation and validation
- Using OpenCL to test candlestick patterns
- How to Install and Use OpenCL for Calculations
- OpenCL: From Naive Towards More Insightful Programming
- Library for easy and quick development of MetaTrader programs (part XIX): Class of library messages
- MetaTrader 5 - More Than You Can Imagine!
- Deep Neural Networks (Part VII). Ensemble of neural networks: stacking
The blogs
The documentation
- DatabaseOpen
- Databaseclose
- DatabaseTableExists
- DatabaseExecute
- DatabasePrepare
- DatabaseRead
- DatabaseFinalize
- DatabaseTransactionBegin
- DatabaseTransactionCommit
- DatabaseTransactionRollback
- DatabaseColumnsCount
- DatabaseColumnName
- DatabaseColumnType
- DatabaseColumnSize
- DatabaseColumnText
- DatabaseColumnInteger
- DatabaseColumnLong
- DatabaseColumnDouble
- DatabaseColumnBlob
- CLGetInfoString
- CLProgramCreate
- Working with OpenCL
- CLGetInfoInteger
- CLGetDeviceInfo
- many in search here
The market
- many in search here
Just use the search (top right) and you'll find a lot: https://www.mql5.com/de/search#!keyword=opencl
OpenCL (Open Computing Language) is framework that allows users to write programs to execute across CPU (Central Processing Unit), GPU (Graphics Processing Unit), or dedicated accelerator device with benefit that it can speed up heavy computation required as per problem domain.
MetaTrader 5 supports OpenCL version 1.2. It has several built-in functions that users can take benefit in using of out-of-box.
Understand and efficiently use OpenCL API by recreating built-in support as DLL on Linux (Part 1): Motivation and validation
- www.mql5.com
Bulit-in OpenCL support in MetaTrader 5 still has a major problem especially the one about device selection error 5114 resulting from unable to create an OpenCL context using CL_USE_GPU_ONLY, or CL_USE_GPU_DOUBLE_ONLY although it properly detects GPU. It works fine with directly using of ordinal number of GPU device we found in Journal tab, but that's still considered a bug, and users should not hard-code a device. We will solve it by recreating an OpenCL support as DLL with C++ on Linux. Along the journey, we will get to know OpenCL from concept to best practices in its API usage just enough for us to put into great use later when we deal with DLL implementation in C++ and consume it with MQL5.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello community!
Some cool guy could please share an example of OpenCl code?
Very basic EA, using some indicator buffer, just to understand it better. Thanks!
Edit:
I just forgot to say something:
I've seen all these topics and links, that's why I opened this topic.
There's no complete example, with stop loss and gain, Copybuffers, buy, sell, OnInit, OnTick functions for example.
Pick the topic "How to modify the code with Opencl?". Where is the answer to that question? There's just an indicator code from the autor.