By Shivgan Joshi Qcfinance.in

Slides:



Advertisements
Similar presentations
The INFILE Statement Reading files into SAS from an outside source: A Very Useful Tool!
Advertisements

Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Outlook Contacts Export Guideline Powered by DonorCommunity TM DonorCommunity eLearning Series v1.2, September 2012 Outlook Contacts Export Guideline Outlook.
Excel Objects, User Interface, and Data Entry. ◦ Application Window  Title Bar  Menu Bar  Toolbars  Status Bar  Worksheet Window  Worksheet Input.
Lecture 7 Debugging Code & Data Import/Export © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
EGR 106 – Truss Design Project (cont.) Truss design programs Graphical interface tools in Matlab Saving and loading data Formatted output Project Assignment.
General Computer Science for Engineers CISC 106 Lecture 04 Roger Craig Computer and Information Sciences 9/11/2009.
Add a File with X, Y coordinates to MapWindow
M-files While commands can be entered directly to the command window, MATLAB also allows you to put commands in text files called M- files. M-files are.
§IV 3:30 - 4:30PM: Data - The various sources, qualities, and metrics: What do you need to know before you can take it to the model? Copyright 2014 Institute.
First Screen : First window form will always remain open, for the user to select menu options. 1.
Hands-on Introduction to R. Outline R : A powerful Platform for Statistical Analysis Why bother learning R ? Data, data, data, I cannot make bricks without.
Programming in R Getting data into R. Importing data into R In this session we will learn: Some basic R commands How to enter data directly into R How.
Compiled Matlab on Condor: a recipe 30 th October 2007 Clare Giacomantonio.
A Brief Introduction to Matlab Laila Guessous Dept. of Mechanical Engineering Oakland University.
Introduction to File I/O High-Level Functions 1.Data files 2."High level" File I/O 3.dlmread() 4.xlsread() 1.
Using R 4/10/2012 Geoff Black Matthew Goglia. What is R? R is a free program for statistical analysis and graphical display of data. R uses code; these.
Bringing Data into SAS From Menu: –File –Import Data –Spreadsheet example first Pick file by browsing Select Library and Member (we will talk about this.
WMS in a nutshell A “quick & easy” guide to using WMS.
CMPS 1371 Introduction to Computing for Engineers FILE Input / Output.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
R packages/libraries Data input/output Rachel Carroll Department of Public Health Sciences, MUSC Computing for Research I, Spring 2014.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
Class Opener:. Identifying Matrices Student Check:
ENG College of Engineering Engineering Education Innovation Center 1 Array Accessing and Strings in MATLAB Topics Covered: 1.Array addressing. 2.
COMP 116: Introduction to Scientific Programming Lecture 29: File I/O.
Files: By the end of this class you should be able to: Prepare for EXAM 1. create an ASCII file describe the nature of an ASCII text Use and describe string.
MATLAB for Engineers, by Holly Moore. ISBN © 2007 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is.
Matlab Basic. MATLAB Product Family 2 3 Entering & Quitting MATLAB To enter MATLAB double click on the MATLAB icon. To Leave MATLAB Simply type quit.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Early File I/O To help you get started with your final project 1. Definition of “high level” 2. Is using a High Level function appropriate? 3. xlsread()
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
EGR 115 Introduction to Computing for Engineers Loops and Vectorization – Part 3 Friday 17 Oct 2014 EGR 115 Introduction to Computing for Engineers.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
การใช้งานโปรแกรม MATLAB ดร. อำนาจ ขาวเน. BASIC ELEMENTS OF MATLAB MATLAB Desktop MATLAB Editor Help System MATLAB (MATrix LABoratory)
Beginning Programming for Engineers Animation. Special matrix functions >> clear >> ones(2,3) >> zeros(3,5) >> ones(2) >> zeros(3) >> eye(4) >> magic(4)
Awk 2 – more awk. AWK INVOCATION AND OPERATION the "-F" option allows changing Awk's "field separator" character. Awk regards each line of input data.
HCAI Information for ACtion 2010
Working with files Saving and loading Matlab variables to and from .mat files does not require any special file handling, just use save() and load() However,
Do-more Technical Training
EEE 161 Applied Electromagnetics
DATA MANAGEMENT MODULE: Getting Data Into and Out of R
Lecture: MATLAB Chapter 1 Introduction
MATLAB Fuzzy Logic Toolbox
Chapter 6 Filters.
Select Your Meeting Export Your Contacts From Outlook How to create a csv contact file from Outlook to import into Select Your Meeting
Other Kinds of Arrays Chapter 11
Introduction to WRDS data platform
CQG XData Walkthrough.
Functions (subprograms)
Outline Matlab tutorial How to start and exit Matlab Matlab basics.
DATA MANAGEMENT MODULE: Getting Data Into and Out of R
Advanced Data Import & Export Jeff Henrikson
Vendor Portal Upload Process
Lecture 2 Introduction to MATLAB
Spss 11.5 Tutorial.
Statistics 540 Computing in Statistics
Communication and Coding Theory Lab(CS491)
funCTIONs and Data Import/Export
CSCI N317 Computation for Scientific Applications Unit R
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
244-2: MATLAB/Simulink FUNDAMENTALS
DATA MANIPULATION Wendy Harrison Mari Morgan Dafydd Williams
Exporting Data from the Analog Discovery to Excel
WinSLAMM Batch Editor Module 23
Importing Excel Data & Exporting Data to Excel
ME 123 Computer Applications I Lecture 4: Vectors and Matrices 3/14/03
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
Presentation transcript:

By Shivgan Joshi Qcfinance.in Technical Analysis using MATLAB using Financial Time Series Focus on Moving average and Bollinger Bands By Shivgan Joshi Qcfinance.in

Caution MATLAB is case sensitive

Difference formats to get data in the FTS Object From CSV From file directly From the .dat file Using ascii2fints carefully by specifying the right parameters

Input CSV – Method 1 filename = 'csvlist.dat'; M = csvread(filename) Make sure it is numeric format Then create fts object from matrices http://in.mathworks.com/help/matlab/ref/csvr ead.html

Inputting Data .dat are tab delimited data which can be saved using excel txt save myinc = ascii2fts('input.dat'); An alternative is the load command to bring all variables from a file into the current variables ASCII2FTS is an important conversion function http://in.mathworks.com/help/finance/ascii2fts.ht ml http://in.mathworks.com/help/finance/technical- analysis-examples.html

Code Part 1 Use GUI to import the FTS Things work with the close price so all other prices don’t matter macd_input = macd(input);

Code for Moving average of the data subplot(2, 1, 1); plot(macd_input); title('MACD of Input Close Stock Prices, 10/01/95-12/31/95'); datetick('x', 'mm/dd/yy'); subplot(2, 1, 2); highlow(part_input); title('IBM Stock Prices, 10/01/95-12/31/95'); datetick('x', 'mm/dd/yy')

Bollinger Band on the Data [input_Mid,input_Uppr,input_Lowr]= bollinger(myinc); input_CloseBolling = [input_Mid.CLOSE, input_Uppr.CLOSE,... input_Lowr.CLOSE]; plot(input_CloseBolling) title('Bollinger Bands for inputney Closing Prices')

Cleaning and Exporting Data Count rows and columns of matrix [rows columns] = size(input) for a = 1:rows Input(a,2) end if input(2,a)>100 disp('Value within specified range.') csvwrite('csvlist.dat',input)

Saving output http://in.mathworks.com/help/matlab/ref/csvw rite.html

Playing with matrix Logic including count, for and if to extract the data

[input_Mid,input_Uppr,input_Lowr]= bollinger(candle); tsmat = fts2mat(tsobj)