pairs trading matlab - Matlab, R project and Python | futures io social day trading
futures io futures trading

pairs trading matlab
Updated: Views / Replies:1,223 / 1
Created: by alecase Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

pairs trading matlab

  #1 (permalink)
ottawa canada
Posts: 4 since Oct 2014
Thanks: 0 given, 0 received

pairs trading matlab

Good morning everyone
I saw a pairs trading webinar on the topic and found this code.
I can not understand these two pieces of code, anyone is kind enough to explain

% The strategy:
******** % 1 Compute residuals over next N days
******** res = series2 (i: i + N-1, 1) ...
************ - (Reg1.coeff (1) + reg1.coeff (2). * Series2 (i: i + N-1, 2));

% 2 If the residuals are large and positive, then the first series
******** % Is Likely to decline vs. the second series. Short the first
******** % Series by a scaled number of shares and long the second series by
******** 1% share. If the residuals are large and negative, do the
******** % Opposite.

******** indicated (i: i + N-1) = res / reg1.RMSE;
******** s (i: i + N-1, 2) = (res / reg1.RMSE> spread) ...
************ - (Res / reg1.RMSE <-spread);
******** s (i: i + N-1, 1) = -reg1.coeff (2). * s (i: i + N-1, 2);
**** end

Thank you very much for your cooperation
ps do you know where I can find some code on the pairs trading?

Last edited by alecase; October 7th, 2014 at 11:27 AM.
Reply With Quote
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


futures io > > > > pairs trading matlab

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now

The Best of Both Worlds: Automated & Discretionary Trading w/SharkIndicators

Jan 23

Similar Threads
Thread Thread Starter Forum Replies Last Post
Algorithmic pairs trading sysot1t Elite Automated Trading 64 April 8th, 2015 07:52 PM
Pairs trading issue bogdan ThinkOrSwim Programming 1 July 25th, 2014 11:00 AM
Anyone Do Stock Pairs Trading? MedianVelocity Stocks and ETFs Trading 3 February 28th, 2014 06:18 AM
Spread / Pairs trading indicators Mehul Stocks and ETFs Trading 3 November 13th, 2011 04:54 PM

All times are GMT -4. The time now is 03:40 AM. (this page content is cached, log in for real-time version)

Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts