Resources and libraries for programmers from MQL4 EA to PRT
Forums › ProRealTime English forum › ProOrder support › Resources and libraries for programmers from MQL4 EA to PRT
- This topic has 45 replies, 5 voices, and was last updated 7 years ago by
Nicolas.
-
-
09/27/2017 at 9:22 AM #47464
Hi all,
I’m a C++, visual Basic, etc senior programmer. I’m new to ProRealtime, I developed a complex MQL4 EA program and now that I have an IG accont I would like to translate it to Prorealtime.
Where I can find all the resources about the language? Trade functions, array operators, etc..
Thank’s
Piero Petrosillo
09/27/2017 at 9:26 AM #47466Here is a pointer.
https://www.prorealcode.com/prorealtime-documentation/09/27/2017 at 10:00 AM #47467Ok, tank’s. If you know, is there a way to do so that the EA send an email if an event occurs?
The EA that I developed has several security systems to prevent losses and one of which is to communicate with the operator through the mail.
09/27/2017 at 10:04 AM #4746809/27/2017 at 10:07 AM #47469@pieroim you can also submit a request here for @Nicolas (site owner) to assist in the MQL4 conversion.
https://www.prorealcode.com/topic/free-conversion-mt4-indicators-mql4/
Just bear in mind ProOrder does not support arrays or messaging in the same way MT does.
Alternatively, you can share the basic logic of the strategy here and we can help you to code and optimize it for use in PRT.
09/27/2017 at 10:08 AM #4747009/27/2017 at 10:13 AM #47471The code is very complex, is based on ichimoku + some others indicators. It manages the profits/loss of the single trade, of all the active trades, and constantly controls the active account on the broker. will be 1000+ code lines..
09/27/2017 at 10:20 AM #47472You are basically referring to 3 components;
- Money/Trade Management (which we have already done plenty of on this site – so sure we can assist) – But again note that PRT can only manage the individual trades. It cannot access the available equity of the broker account.
- We also have many Ichimoku based strategies, some simple some very advanced. So again we should be able to assist.
09/27/2017 at 10:28 AM #47475ok, I’m working on it from 7 days, the ea is under test, but I already have other ideas to implement. If it is not too much work for you I can insert code parts that I have difficulty in translating and maybe we will improve it further.
09/27/2017 at 10:30 AM #4747609/27/2017 at 10:30 AM #4747709/27/2017 at 10:35 AM #47479Remember it is not necessary to re-invent the wheel.
If you provide the logic to what you want to achieve we can re-use code that we already developed.
For example here is one of my own Ichimoku Strategies (No money management module):
https://www.prorealcode.com/topic/ichimoku-strategies-general-discussion/We also have various pieces of money management code that can be used.
1 user thanked author for this post.
09/27/2017 at 10:36 AM #47480You will see that there are some difference between MQL and PRT. Some of the things you listed will not work 1:1 and you must find another solution (you mention for example arrays and check of account equity, both is not possible in MQL).
Good luck!
1 user thanked author for this post.
09/27/2017 at 10:55 AM #4748409/28/2017 at 10:14 AM #47624Remember it is not necessary to re-invent the wheel. If you provide the logic to what you want to achieve we can re-use code that we already developed. For example here is one of my own Ichimoku Strategies (No money management module): https://www.prorealcode.com/topic/ichimoku-strategies-general-discussion/ We also have various pieces of money management code that can be used.
Today I’m reading your code, I have some questions: is there no way to use sub-routines, global or static variables, an initial menu where to set constants values before the launch of the EA?
-
AuthorPosts
Find exclusive trading pro-tools on