__The best way is to create some Constants (you can see Constants on the right side) and use them inside blocks. These are basically "extern" MQL4 variables. See here: http://fxdreema.com/documentation/proje ... 0variables
Magic number is attribute of every trade/order, and the idea is that different EAs can share the same pool with trades and orders without interfere each other.
Every EA created with fxdreema has at least one input parameter called MagicStart, which is magic basically number. More here: http://fxdreema.com/documentation/proje ... d%20groups
Very nice view of the question by the way :)[/quote:4bh9eof8]
Hi,
Is this understanding correct:
-
Group# , separates the different orders/blocks within the EA. Or even between different EA's if unique/not duplicated values are used in each EA ?
-
Magic Start , separate the different EA's from each other, even if they all use the same Group# numbers. It is unique to the project, provided not deliberately duplicated in other EA ?
My question is:
Can I set the project Magic Start number to be a constant, referring to your reply ? This way I can give each EA a unique Magic Start number from Metatrader (asuming the 'Constant's' values can be set/changed from Metatrader) ?
Few more unrelated questions:
-
On Fx Dreema Desktop version, in which folder is the EA saved ? Can I decide/set the folder where the EA file will be saved ? I cant find the EA and I only get the message "Check if Metatrader 4 directory is correctly set". Where is the EA file ending up ?
-
How do I export my project as MT5 file ? I can only see export as .mq4 and .ex4 on the top left corner ? Or is it enough to selct MQL5 as code language, and where can I change again/back to MQL4/MQL5 file type ?
-
Is it possible/available to use Virtual Stop in MT5 ?
-
For the block "Chart Screenshot", which folder/where will the screenshots be saved ? Is it possible to send the screenshots to my email (for every opened and closed trade) ?
-
How can I make the EA trade only in the period one hour after the market opens and close all open trades one hour before the market closes ? (starts Sunday 6 pm EST (11:00 pm GMT), closes on Friday 6 pm EST (21:00 pm GMT) and only trades during this time ? Like here http://fxdreema.com/forum/viewtopic.php?f=2&t=1873. But how do I setup and input these blocks ??
-
How do I close all open trades at the end of the bar ? So that all open trades are closed when a new bar begins/start/form ?
-
Once an X-Pip profitable sell/buy trade[s] has occurred/accumulated, I would like to disable new/further sell/buy trades until a new bar starts. How do I set this up with?
-
When it comes to protecting the EA code (in case of the theft of my computer, or the EA is stolen from my PC by an hacker, or to protect the EA from my broker if using the brokers VPS service), do you have any measures to protect the EA code/ prevent EA decompiling ?
Thank you for your wonderful help, and the wonderful EA creator.