Trabalho concluído
Termos de Referência
Hello experts!
I want run 2 EAs in only 1 EA without calling another, because the 2 EAs are 99% same coding and loading same indicators.
I have already coded both strategies in 1 EA, but they cannot run together. First it was, because when first strategy closes "all positions" than it closes also all positions from the seconed strategy.
Now i coded Magic number for each one and run each one once per tick.
Someting inside the both methods affect each other or the indicators loaded befor these methods is infulenced when both are running.
If I comment line where first method (strategy) is called, than i have expected result and everything is fine. Also if I comment seconed method, than first runs as it should be.
I aspect following result:
For example, when the first method opens/closes 1000 positions and make 5% win and the seconed one opens/closes 500 positions with 2%, than they should do exactly the same, when running on one system. Hence 1500 positions have to be opended/closed at the same price and win should be also nearly the same.
In this case the risk is not important for me.
the 2 methods return folowing values in order to trade:
1=open long
-1=open short
99=close all
I need a solution how to run these 2 methods without affect the positions of the other method.
My main demands:
1.) Be able to backtest WHOLE system (including both EAs) to see what would they do running both on 1 account.
2.) Keep performance as good as possible.
If i have to run nearly the same EA only 1 method is different, than all the indicators will be calcualted 2 times. And i have some "heavy" indicators.
Hence, as for me, the best solution would be to run all in 1 EA. I am sure to have in future more such methods/EAs and if i would make for each one a new EA, it would not run performant.
Perhaps its possible to run all in one EA and each method calls a "light-stupid" EA which only open/close positions?
Please suggest solution and price. Thank you.