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
Ok, 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.
There is no alert function possible with codes.
@pieroim you can also submit a request here for @Nicolas (site owner) to assist in the MQL4 conversion.
Free Conversion of 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.
ok..
modifying the code.. if I go loss in the trade (is just an example), can I send an email?
The 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..
You 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.
ok, 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.
I personally make use of advanced Ichimoku strategies on a daily basis for trading so you are in good company.
Remember 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):
Ichimoku Strategies (General Discussion)
We also have various pieces of money management code that can be used.
You 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!
Many thank’s
I go to study your EA… this is my favorite way to understand a language.
Then we can exchange ideas if you want.
Remember 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?