My EA open only 2 position
7 replies
takis
9 years ago #113049
Hi,
I have made an EA with EAWizard and i launch it in 4 or 5 diferent charts on MT4. It’s open only 2 positions. In the chart i can see the rest signals but there are no more positions opens.
If anybody know why is that happen?
Patrick
9 years ago #128171
Hi,
may be its caused by mistake in source code of the strategy…but noone can say till we see it.
Patrick
Mark Fric
9 years ago #128322
if you could post your strategy (.sqw file) here then we can look at it
Mark
StrategyQuant architect
takis
9 years ago #128327
beniko
9 years ago #128389
It has to do with magic numbers.
Create 2 variables like MagicNumber1=1000 and MagicNumber2=2000.
Use these variables as Magic Number when you Enter at Market. So in your case instead of 1000 and 2000 use the variable.
This allows you to change the Magic Numbers when you place the EA on a chart. The EA of every chart has to use UNIQE magic numbers, even if it is a different currency pair or a different EA.
For Example, if you want to use an EA on the EURUSD chart and GBPUSD when you place the EA you have to change from the input tab the MagicNumber1 and MagicNumber2
EURUSD: 1000 2000
GBPUSD: 1001 2001
beniko
9 years ago #128390
Here
takis
9 years ago #128396
beniko
9 years ago #128404
Glad I could help 🙂
Viewing 7 replies - 1 through 7 (of 7 total)