- ago
I'm looking at the helpful pairs example to get my head round WL syntax.

I have an existing pairs strategy currently coded in Zorro (essentially in a customised version of C) where everything iterates over each pair in the portfolio (20 pairs) to check for signals.

Trying to figure out the equivalent WL syntax. Is it just a case of defining the pairs in a string vector inside
CODE:
public class PairsTrading : UserStrategyBase{ }
and then iterating over them inside
CODE:
public override void Initialize(BarHistory bars){}
? Thanks in advance for any recommendations.
0
139
Solved
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 13.87% )
- ago
#1
You might consider doing this in PreExecute. PreExecute provides you a list of all BarHistories that are participating in this DateTime "bar." So it's a good place to examine them all and make some decision that's based on the whole group of symbols instead of just the single one.
0
Best Answer
- ago
#2
Many thanks - I'll take a look at the manual for that
0

Reply

Bookmark

Sort