Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.324.277 Times

Backtesting Code for Algorithmic Trading Strategy 1.0

  Date Added: June 17, 2013  |  Visits: 505

Backtesting Code for Algorithmic Trading Strategy

Report Broken Link
Printer Friendly Version


Product Homepage
Download (49 downloads)



%Author: Moeti Ncube%This is code that can be used to backtest a trading strategy. The example strategy used was partially used in the development of a medium-frequency algorithmic trading strategy; this is a some of the backtesting coding we use to analyze tick data.This code can be used to backtest a trading strategy for a time series that has the price vector in the first column and trading indicator insecond column. I will be using NG futures contracts for trading and will track pnl in terms of ticks (NG trades in ticks, so .001 ticks on ICE would be about $70/contract, $10/contract on NYMEX)Over 17 days this strategy on this dataset would make about $1060 on NYMEX, or $7427 on ICE.Data is stored in the first column and a (proprietery) indicator, that basically tracks the speed of market, is stored in second column.%This code can be adjusted to incorporate another dataset/indicator as long as it assumes the basic strategy outline I will describe here. This is actually a simplification of my real strategy. For example, my real Buy/Sell indicator updates to be vt=max(v1,....vt-1) whereas here I make it static.%Buy/Sell Indicator:Whenever the indicator is less than value "v1", you buy one contract at the current price in market. Whenever indicater is greater than value "v1' you sell one contract atcurrent price in market.%Profit Target:%If the weighted average long/short position is "pt" ticks in the money you close out your position, make "pt" and strategy starts over from current price/ind.%Stop Loss:If the weighted average long/short position is "st" ticks out of the money, your strategy depends on you double down indicator "dd", If dd=0, you take the loss the first time this happens and strategy starts over. If dd=1, you add 1 contract to your long/short postion and obtain a new weighted average long/short price. Now, If your new long/short position becomes "pt" ticks in the money you double your profit to "2*pt", however if it becomes "st" ticks out of the money, you double your losses to "2*st"; Unless dd=2, in which once again you would buy another contract for potential "3*pt" gain or "3*st" loss.%val(d,:) (matrix)Here I use intraday data from 17 days in the market, val provides output from each day of the [pnl,percent profitability, sharpe ratio, number of trades]%dtrades{d}Here I track the profit or loss realized on each trade on a given day 'd'

Requirements: No special requirements
Platforms: Matlab
Keyword: Close Dd3d1 Depends Double Money Postion Priceind Quotstquot Starts
Users rating: 0/10

License: Shareware Size: 399.36 KB
USER REVIEWS
More Reviews or Write Review


BACKTESTING CODE FOR ALGORITHMIC TRADING STRATEGY RELATED
Network & Internet  -  Tab Utilities Lite for Linux 1.0.6
Tab Utilities Lite is a lite version of Tab Utilities. Supported locales: en-US, zh-CN. More locales are available at Tab Utilities Locales. Features include: 1. Open Bookmarks/History/Homepage/URL/Search in new tabs...
20.48 KB  
Finance  -  Office Tab Standard (x64) 3.0.24
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
5.11 MB  
Finance  -  Office Tabs for Project (x64) 2.1.36
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.92 MB  
Finance  -  Office Tabs for Word (x64) 2.1.36
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.92 MB  
Finance  -  Office Tab Ultimate (x64) 3.0.24
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
7.87 MB  
Finance  -  Office Tabs for PowerPoint (x64) 2.1.36
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.92 MB  
Finance  -  Office Tabs for Excel (x64) 2.1.36
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.93 MB  
Finance  -  Office Tab for Word (x64) 3.0.24
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.92 MB  
Finance  -  Office Tab Standard 3.0.24
Office Tabs Toolkit adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.71 MB  
Finance  -  Office Tab for PowerPoint (x64) 3.0.24
Office Tabs Ultimate adds a tab control into Microsoft Office serial products such as Microsoft Word, Microsoft Excel and so on. All opened documents will be displayed as tab sheet. The control is similar with some tabbed web browser such as...
2.92 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB