Akif Mushtaq:
No.
or will the EAs get confused? Should i label my variables differently in each EA?
As Marco said, if you're talking about indicator/EA/script scope global variables then no, each will operate independently within their own thread even if they're named the same. You will only get problems if you are using Terminal scope Global variables. Then each instances of the EA will overwrite the variable
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
I understand the concept of global variables. What I wanted to know is, if I have 2 different EAs running at the same time, and both of them have a variable defined as "TargetProfit", will this variable function independently for each EA? or will the EAs get confused? Should i label my variables differently in each EA? eg, 'TargetProfit1' and 'TargetProfit2'?