I've been working on a NT7 Strategy to trade pairs/spreads and have reached the limits of my current coding ability. Attached please find Strategy NinjaPairsv1.00. It works for daily bars in backtesting, but seems to have issues if you try minute bars.
I would not suggest you use this in any way for live trading.
The "alpha" logic behind it is is to long/short a pair when the spread diverges more than two standard deviations from the mean. To measure that I created an indicator called SpreadZScore, which is also in the zip file.
I am posting this here in the hopes that this code can be made better.
I'll walk through what I've done in the next post.

Comment