Pairs trading algorithm problem

2 views (last 30 days)
dandon
dandon on 23 Nov 2015
Edited: dandon on 23 Nov 2015
Hello everyone. I have to implement an algorithm on matlab, but I have no idea how to do this. It's just the first step, but to realize how to move on it's enough. Can someone help me?
Long primary and short secondary asset
Enter a long position in the primary asset and a short position in the secondary asset at a market opening, when z-score of the daily differences falls below -1.5 at the previous market close. Hold both positions as long as the z-score remains below -0.5 and close both positions at the end of the signaled trading day.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!