Click here to Login








Pairs Trading Strategy

by QuantShare, 4909 days ago
Share |


A pair strategy consists of taking one long position in a stock or security against a short position in another stock or security. The goal of such as strategy is to make profits on diverging performance and at the same time reducing risk and exposure to the global market because the strategy is equally invested in long and short positions.

The current trading strategy contains a money management script that allows you to easily backtest pair trades.
The pairs trading strategy is as follow: Buy one stock and sell the other if the spread is 2 standard deviations above or below the spread mean over a specific period (This period can be specified). Sell the pair positions if the spread is inside one standard deviation of the mean. The spread is calculated by dividing the first pair stock by the second pair stock. The lookback period used to calculate the spread mean and the spread standard deviation is the same.

There are two input fields in this strategy. The first one allows you to enter the pairs you want to backtest. Example: A|AA,GOOG|MSFT. The format is: Pair1,Pair2 and each pair's security must be separated by "|".
The second input field let you define the lookback period that is used by the money management pairs trading to calculate the mean and the standard deviation of the pair spread.

The trading system allows you to simulate or backtest several pairs. In the system's number of positions you can define the number of pairs to allow at the same time. A value of two means that only one pair can be traded during the same period.

You can also create an optimizer where each optimization creates a pairs trading strategy for a specific pair of stocks.
To do this, click on "Optimize" under the "Pairs" input field and enter several pairs separated by a semicolon. Example: AA|AACC;A|AA.

Click on "Save Money Management Inputs" then click on "Optimize" at the top of the backtester form to start the optimization process.




You have to log in to bookmark this object
What is this?




Type: Trading System

Object ID: 783


Country:
All

Market: All

Style:
All

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects
Show All
Buy low, Sell High (by suresh, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 118 Notes Report an item
Trading System Based on the CloseHL Percent Rank Oscillator (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 138 Notes Report an item
AGNC Trading System (by Pavel, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 80 Notes Report an item
Optimizable Fibonacci Long and Short Trading System (by SystemTrade, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 112 Notes Report an item
Buy Falling Stocks Strategy (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 314 Notes Report an item
Trading Strategy based on the Sharpe Ratio Metric (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 192 Notes Report an item
Cross Above 200 SMA on Average Volume Strategy (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 89 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Screening with the composite indicators

Synchronize Buy/Sell List of Rules in the Trading System Optimizer

QS Trading Software: Global Script

New Ranking and Percentile Composite Functions

QS Trading Software: Database Optimization

Stock Market Prediction with QuantShare

Stock Market Prediction

Trading Indicators using the Rank and Percentile functions

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.