EA based on an indicator which changes based on numbers of bars and window size required

Experts

Specification

I have an 'indicator' which allows two fx pairs to be overlayed. I then measure the separation between the two on the current bar before making a decision to enter a statistical arbitrage. However, this distance between the fx changes according to the size of the window and number of bars in the window. This is fine as I've got to know what is in and out of line before I trade a stat arb. However, I'd like to try to create on EA to backtest but I'm not sure if it's possible to code this situation. Hopefully you can understand what I mean and if so can this be coded ?

If it can I will then go ahead and add the rest of fairly simple instructions for the coder to create the EA. Thanks

Responded

1
Developer 1
Rating
4.6
(128)
Projects
207
41%
Arbitration
84
20% / 40%
Overdue
93
45%
Busy
2
Developer 2
Rating
4.72
(18)
Projects
34
18%
Arbitration
16
25% / 44%
Overdue
11
32%
Busy
3
Developer 3
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Working

Project information

Budget
30+ USD
For the developer
27 USD

Customer

Placed orders1
Arbitrage count0