Day-Trader A language for day trading

Post on 10-Feb-2016

49 views 0 download

Tags:

description

COMS 4115 Programming Language and Translator. Day-Trader A language for day trading. Tsung -Kai Lin(tl2450) Jie Huang(jh3105) Fang Da (fd2263) Ran Wang(rw2409) Shao -Chuan Wang(sw2644). Outline. Introduction ( Tsung -Kai) Language Feature ( Jie ) System Architecture (Fang) - PowerPoint PPT Presentation

Transcript of Day-Trader A language for day trading

Computer Science, Columbia University 1

DAY-TRADERA LANGUAGE FOR DAY

TRADINGCOMS 4115 Programming Language and Translator

Tsung-Kai Lin(tl2450)Jie Huang(jh3105)

Fang Da(fd2263)Ran Wang(rw2409)

Shao-Chuan Wang(sw2644)

Computer Science, Columbia University 2

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 3

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 4

Day Trading Buying and Selling within one day  High frequency and short term trading

Computer Science, Columbia University 5

Predict the Trend  Indicators can help predict the trend of

stocks

 Apply strategy to make money

Computer Science, Columbia University 6

Searching For Potential Stock Market

Subset

Potential Stock

Indicator

Indicator

Action

Portfolio

Subset

Potential Stock

Indicator

Indicator

Buy Sell

Computer Science, Columbia University 7

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 8

Simple

Trend Following

Computer Science, Columbia University 9

Efficient@BUYMA1(10) crossup MA1(15)select “MSFT”, “GOOG”, “DELL”

Computer Science, Columbia University 10

> (0)3 + 2 = 5

Math.round(2)1 + 2 = 3

volume (1)1

Property.getd(2)

0 + 0 + 2 = 2

“MSFT” (0)

0

“volume” (0)

0

Computer Science, Columbia University 11

Efficient

Computer Science, Columbia University 12

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 13Executable

Java Compiler

Architecture Source

Lexeme Stream

Lexer

Syntax Tree

Parser

Annotated Synt. Tree

Semantic Anal.

Code OptimizerCode Generator

StrategyEngineGUI

Run-timeLibrary

Data Source

Computer Science, Columbia University 14

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 15

Software Development Environment Simulation System

Stock market simulationTrading system simulation

Distributed DevelopmentGoogle Code repositoryBug Tracking

○ Bug list○ Sample bug

Meeting LogFeature maintenance

Computer Science, Columbia University 16

Implementation OS Platform Languages and IDE

EclipseMulti-level Makefiles

SVN External Libraries

JFLEXBYACC

Computer Science, Columbia University 17

System Integration Integration within the translator Integration across entire system

Computer Science, Columbia University 18

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 19

Test Plan: Agile Testing Focus on working software

Test script before commit the code Responding to changes

Pair/triple programming weekly Hierarchical test framework:

Unit test/Regression testSystem test

Tools:Junit/Makefile script/Bash script

Computer Science, Columbia University 20

Unit tests/Regression Test Screenshot

Computer Science, Columbia University 21

Snapshots on test case (1/2)

Check if the syntax errors are issued correctly

Also check the line number.

ParserSyntaxErrorTest.java

Computer Science, Columbia University 22

Snapshots on test case (2/2)

Multiple definitions of the same function names

TypeCheckNameConflictionTest.java

Computer Science, Columbia University 23

System Test Screenshot Generate the

compiled java sources codes.

Diff with the “answers”.

Computer Science, Columbia University 24

Outline Introduction (Tsung-Kai) Language Feature (Jie) System Architecture (Fang) Implementation and Integration (Ran) Test Plan (Shao-chuan) Demo

Computer Science, Columbia University 25

Thanks!

Q & A