alphaspec:
Would it be easier to make one EA run on a single chart and manage all the other pairs from there meaning I'd have to code it to do so.
Or code each EA to cross talk with the others so they act as one. If the second option then what would you suggest for coding the communication between EAs? Writing out and reading files? Or is there some functions for that?
- Single chart:
- Do not trade multiple currencies, you can't use any predefined variables, can't use the tester, must poll (not OnTick,) and usually other problems.
- Code it to trade the chart pair only. Look at the others if you must.
- Then put it on other charts to trade the other pairs. Done.
- Depends on how much data you need to communicate. Global Variables of the Client Terminal - MQL4 Documentation
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
Hey all, Newer coder here. I'm looking for advice on a trade manager I am writing. Currently it handles everything I do. I have one button on the chart to place an order. The EA does the rest. It determines if I want a buy or sell based on my strategy, it adjusts stops, closes out orders as needed, etc.
It all works well but now I am trying to add a bunch of reporting to it so I get emails about how my trading is going and such. However if I have it running on many charts I have to make sure I don't get the same email a bunch of times. (one for each instance of the EA). As I build it out this will cause more issues I'm sure so my question is this:
Would it be easier to make one EA run on a single chart and manage all the other pairs from there meaning I'd have to code it to do so. Or code each EA to cross talk with the others so they act as one. If the second option then what would you suggest for coding the communication between EAs? Writing out and reading files? Or is there some functions for that?