Hi people,
this is my first post and I'm starting right away with questions.
I've done some EAs with the help of YT and, documentation and chat AIs, but nowhere can I find an answer to the question of how I should create working code so that my EA can run on the same Timeframe and Symbol at the same time, without conflicting with the same EA that will run on the same Timeframe and the same Symbol. Optimization Backtests have generated some cool results for me that I'd like to test live, but I already have my stable settings that I know.
I can't get past this, I'm sure I'm doing something wrong.
When both EAs are open, one is becoming native and not opening positions. Each EA has different Magic, each EA has different settings. Sometimes I wonder if saving the other EA under a different name will help something.
The EA gives the position magicnumber when opening the position, by the Global variable. It seems to me that filtering in the trailing stop by magicnumber via PositionTotal and loop is properly written. But I can't check this because the second EA doesn't open positions.
I'm slowly getting the hang of it already, I'm trying, but I don't think I have enough free time to study.
I would appreciate some hints, below is the code of the EA that I want to change. It is a simple MA crossing. If I can do it in one EA later I will be able to implement it to others.
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
- www.mql5.com
To obtain the current market information there are several functions: SymbolInfoInteger() , SymbolInfoDouble() and SymbolInfoString() . The first...
Files:
DynamicMACross02MN.mq5
20 kb
- Generating the MagicNumber
- Running more than one EA at a time
- Open Simultaneous Orders with different Magic Number on same EA
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