plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | bryantaylor1979/stock-shock-source-master | Investigations.m | .m | stock-shock-source-master/Schedular/Investigations.m | 1,167 | utf_8 | fb56da724caadde91163d554e97e6a6e | %%
get(job,'State')
%% find jobs
findJob(sched)
%%
obj.DispSchedularTasks
%%
obj.RemoveAllCompletedTasks()
%%
fetchOutputs(job)
... |
github | bryantaylor1979/stock-shock-source-master | CurveAnalysis.m | .m | stock-shock-source-master/Trade Viewer/CurveAnalysis.m | 11,455 | utf_8 | ac6d045c6f2a181c42750c0792ab73e6 | function varargout = CurveAnalysis(varargin)
% Graph viewer for local database
% CURVEANALYSIS, by itself, creates a new CURVEANALYSIS or raises the existing
% singleton*.
%
% H = CURVEANALYSIS returns the handle to a new CURVEANALYSIS or the handle to
% the existing singleton*.
%
% CUR... |
github | bryantaylor1979/stock-shock-source-master | LogInDetails.m | .m | stock-shock-source-master/Trade Viewer/SharedFiles/LogInDetails.m | 5,639 | utf_8 | 703ef1031b6ef1f4cb0a995613f33e98 | function varargout = LogInDetails(varargin)
% LOGINDETAILS M-file for LogInDetails.fig
% LOGINDETAILS, by itself, creates a new LOGINDETAILS or raises the existing
% singleton*.
%
% H = LOGINDETAILS returns the handle to a new LOGINDETAILS or the handle to
% the existing singleton*.
%
% ... |
github | bryantaylor1979/stock-shock-source-master | StockQuote.m | .m | stock-shock-source-master/Trade Viewer/SharedFiles/StockQuote.m | 5,153 | utf_8 | 3c55693767066f8222f204a4963afb2e | function [varargout] = StockQuote(varargin)
%STOCKQUOTE
% This is similiar to stockquotequery but in gets data from local
% database
%
%INPUTS
% Conn - Connection Object
% symbol- symbol of data required.
% {'datenum';'close';'open';'high';'low'} or
% 'close'
% fieldname- field... |
github | bryantaylor1979/stock-shock-source-master | getYahooQuery.m | .m | stock-shock-source-master/day_live_quote/getYahooQuery.m | 8,772 | utf_8 | d75b77f0218fc28bbf9723784d8a4b09 | function DATASET = getYahooQuery(Symbols,Fields)
% a: Ask
% y: Dividend Yield
% b: Bid
% d: Dividend per Share
% b2: Ask (Realtime)
% r1: Dividend Pay Date
% b3: Bid (Realtime)
% q: Ex-Dividend Date
% p: Previous Close
% o: Open
% c1: Change
% d1: Last Trade Date
% c: Change & Percent Change
% d2: Trade... |
github | bryantaylor1979/stock-shock-source-master | getStoxSymbolList.m | .m | stock-shock-source-master/day_live_quote/getStoxSymbolList.m | 1,867 | utf_8 | 13763ca5bf11c20d989e14ec8cb9b49c | function [Symbols] = getStoxSymbolList(varargin)
% url = ['http://uk.stoxline.com/symbols.php?fl=',Symbol];
%%
tic
args.InstallPath = fileparts(which('getStoxSymbolList'));
args.ResultsDir = fullfile(args.InstallPath,'Results');
args.SaveAsArray = true;
args.SaveAsStruct = true;
... |
github | bryantaylor1979/stock-shock-source-master | getStox.m | .m | stock-shock-source-master/day_live_quote/getStox.m | 5,193 | utf_8 | 57fd8de353b9f5c9eab27f499daa5a50 | function struct = getStox(Symbol)
n = findstr(Symbol,'.');
if not(isempty(n))
Symbol = Symbol(1:n-1);
end
url = ['http://uk.stoxline.com/q_uk.php?s=',Symbol];
[s,Error] = download(url);
struct = DecodeStr(s);
end
function struct = DecodeStr(s)
TABLE1 = decodeTable(s,'nr_tab... |
github | bryantaylor1979/stock-shock-source-master | getYahooFinance.m | .m | stock-shock-source-master/day_live_quote/getYahooFinance.m | 4,593 | utf_8 | 7f0e2c6b2685db02efc6d077f7a78b2b | function struct = getYahooFinance(Symbol)
% Download URL
url = ['http://finance.yahoo.com/q/ks?s=',Symbol];
nr_table = 7;
[s,Error] = download(url);
subHeading = [];
% Decode URL
Headings = { 'Valuation Measures'; ...
'Financial Highlights'; ...
'... |
github | bryantaylor1979/stock-shock-source-master | getBritishbullsHistory.m | .m | stock-shock-source-master/day_live_quote/getBritishbullsHistory.m | 6,539 | utf_8 | b22eedbb95c734203e7f12853977f262 | function DATASET = getBritishbullsHistory(varargin)
% compulsory inputs
Symbol = varargin{1};
% default varaible inputs
args.includesymbol = true
varargin = varargin(2:end);
x = size(varargin,2);
for i = 1:2:x
args.(varargin{i}) = varargin{i+1};
end
ur... |
github | bryantaylor1979/stock-shock-source-master | getSymbolList.m | .m | stock-shock-source-master/day_live_quote/getSymbolList.m | 886 | utf_8 | 3c24941de41901c9e6ac454906eefa77 | %% NOT SURE IF THIS IS WORKING
function Symbols = getSymbolList(exchange)
%TODO: I can extract more information from this.
%exchange : nyse or nasdaq or AMEX
% http://www.nasdaq.com/screening/companies-by-name.aspx?letter=0&exchange=nasdaq
string = urlread(['http://www.nasdaq.com/screening/companies-by-na... |
github | bryantaylor1979/stock-shock-source-master | SearchAndAddSymbols.m | .m | stock-shock-source-master/TickerScout/SearchAndAddSymbols.m | 2,523 | utf_8 | c0b211f114ffd936266fd4c586f92863 | function [] = SearchAndAddSymbols(method)
%Search for available symbols
%Please ensure the database is intialised:
%i.e IntialiseDatabase;
%
%INPUTS:
% 'method' all:- Search all possible combinations.
% null:- Search only combinations that have not yet been
% searche... |
github | bryantaylor1979/stock-shock-source-master | TickerScout.m | .m | stock-shock-source-master/TickerScout/TickerScout.m | 3,124 | utf_8 | 95fbe2871e031aa6e375a427195e8c52 | function [] = TickerScout()
%Written by: Bryan Taylor
%Date Created: 28th January 2008
%Date Modified: 28th January 2008
global DatabaseStats h
load DatabaseStats DatabaseStats
[h.figure] = CreateFigure;
[h.tree] = CreateTree(h.figure);
h = uipanel();
[h.startbutton] = CreateStartButton;
[h.stopbutton... |
github | bryantaylor1979/stock-shock-source-master | StockQuoteQuery.m | .m | stock-shock-source-master/TickerScout/StockQuoteQuery.m | 8,933 | utf_8 | ccd9d7fe09257f0fe6022fc6bd4638f4 | function [date, close, open, low, high, volume, closeadj] = StockQuoteQuery(symbol, start_date, end_date, frequency, varargin)
%Fetch historical stock prices for a given ticker symbol
% from the YAHOO web serve using the MATLAB Java URL interface.
% See SQQ for a function that calls STOCKQUOTEQUERY and all... |
github | bryantaylor1979/stock-shock-source-master | decodeTable.m | .m | stock-shock-source-master/download_url/decodeTable.m | 10,659 | utf_8 | 46610ed0606cd3899f7bf4626f7c786d | function out_table = decodeTable(varargin)
% Compulsory Inputs
s = varargin{1};
% Set Defaults
args.nr_table = 1;
% Set Optional Inputs
varargin = varargin(2:end);
x = size(varargin,2);
for i = 1:2:x
args.(varargin{i}) = varargin{i+1};
end
out_table = getTa... |
github | bryantaylor1979/stock-shock-source-master | download_wq.m | .m | stock-shock-source-master/download_url/download_wq.m | 805 | utf_8 | 3415e76505bfadfd1f22d5ee8d047244 | function raw = download_wq(url)
InstallDir = '';
temp_filename = [InstallDir,'DL.iqy'];
raw = ReadWebQuery(url,temp_filename);
end
function raw = ReadWebQuery(url,temp_filename)
WriteWebQuery(url,temp_filename);
[~,~,raw] = xlsread(temp_filename);
delete(temp_filename)
end
function WriteWebQue... |
github | bryantaylor1979/stock-shock-source-master | json2struct2.m | .m | stock-shock-source-master/download_url/json2struct2.m | 5,969 | utf_8 | e90fe1b46654faf08a951c6f101d8516 | function data = json2struct2(json)
%
% Example: Reading the json file from file
% json = fileread('example_md.json')
% data = json2struct2(json)
[data json] = parse_json(json);
end
function [data json] = parse_json(json)
% [DATA JSON] = PARSE_JSON(json)
% This function parses a JSON string and returns a... |
github | bryantaylor1979/stock-shock-source-master | DownloadALL.m | .m | stock-shock-source-master/download_url/DownloadALL.m | 4,580 | utf_8 | 60178c624ab4d381c195def8657bc21d | function URL_Download(varargin)
% Examples:
% close all
% clear classes
%
% URL_Download('Macro','Stox','WaitbarEnable',true);
% URL_Download('Macro','BritishBulls_HIST','WaitbarEnable',true);
% obj = URL_Download('Macro','BritishBulls_HIST','RunOnInt',false);
% Set compulsory inputs
Mode = varargin{... |
github | bryantaylor1979/stock-shock-source-master | download_url2.m | .m | stock-shock-source-master/download_url/download_url2.m | 14,030 | utf_8 | 212468809ce3cf3c0a80e1f9d040b992 | function [output,extras] = download_url2(urlChar,method,body,headersIn,varargin)
%urlread2 Makes HTTP requests and processes response
%
% [output,extras] = urlread2(urlChar, *method, *body, *headersIn, varargin)
%
% * indicates optional inputs that must be entered in place
%
% UNDOCUMENTED MATLAB VERSION
... |
github | bryantaylor1979/stock-shock-source-master | download.m | .m | stock-shock-source-master/download_url/download.m | 3,036 | utf_8 | 794a89c923a4c12fe422cc0229e90e47 | function [s,Error] = download(varargin)
% Download URL
% Method
% xml - this can be a wen page that is in xml format
% url - this is the inbuilt url query function.
% url2 - this is from the mathworks exchange.
% wq - web query.
%
% Example:
% [s,Error] = Downlo... |
github | bryantaylor1979/stock-shock-source-master | struct2json2.m | .m | stock-shock-source-master/download_url/struct2json2.m | 20,699 | utf_8 | ea7c98b361dee34c8268b12ec9254f07 | function json = struct2json2(data)
NAMES = fieldnames(data{1});
x = max(size(NAMES));
json = ['{'];
for i = 1:x
if isempty(data{1}.(NAMES{i}))
json_new=['"',NAMES{i},'": {}'];
else
json_new=savejson(NAMES{i},data{1}.(NAMES{i}));
n = findstr(json_new,'}');
... |
github | bryantaylor1979/stock-shock-source-master | download_xml.m | .m | stock-shock-source-master/download_url/download_xml.m | 2,073 | utf_8 | 81e61c8f9b711a4d8d0b732f35225db5 | function theStruct = download_xml(filename)
% PARSEXML Convert XML file to a MATLAB structure.
try
tree = xmlread(filename);
catch
error('Failed to read XML file %s.',filename);
end
% Recurse over child nodes. This could run into problems
% with very deeply nested trees.
try
theStruct = parseChild... |
github | bryantaylor1979/stock-shock-source-master | decodeTable2.m | .m | stock-shock-source-master/download_url/decodeTable2.m | 3,503 | utf_8 | dced9fd451e88c5e209ba4ae9d5f08c0 | function Table = decodeTable2(varargin)
%% compulsory inputs
s = varargin{1};
% defaults
args.RemoveFormatting = true;
args.tableNum = 6;
args.TableStart = '<table';
args.TableEnd = '</table>';
args.RemoveFirstRow = true;
args.RowStart = '<td';
args.RowEnd = '</tr>';
arg... |
github | bryantaylor1979/stock-shock-source-master | tradeguides.m | .m | stock-shock-source-master/stock_analysis/tradeguides.m | 5,456 | utf_8 | 39fe9612cd003d7604ccc2859cf76034 | function [buy,sell,tradesignal,changemarker,pP,P]=tradeguides(C,O,L,H)
%Gives Buy and Sell signals for maximum practical profit.
%Ignores small trend changes or flat days and follow biggest local trends.Profitable spikes are included.
%Tradeguide signal offers practical trading benchmark trainin... |
github | bryantaylor1979/stock-shock-source-master | candleplot.m | .m | stock-shock-source-master/stock_visualisations/candleplot.m | 7,804 | utf_8 | 274ab306c68458bca1823f8f2e4231f7 | function handle = candleplot(varargin)
% Description: Similar to candle.m but can support update and has some additonal
% formating.
% it also display last price and price mean.
%
% Optional inputs:
% candlecolor: default [1,0,0]
% title: title of graph (defaults as empty)
%
% Ex1 - New plot but giving the functi... |
github | bryantaylor1979/stock-shock-source-master | ReadInstruments.m | .m | stock-shock-source-master/Trade Guide 1.0/ReadInstruments.m | 3,591 | utf_8 | fb09b1ab7ce094f6b8563f3a6225cb2b | function [Symbols,Category,Type] = ReadInstruments(varargin);
%Read Instruments for saxo text file.
%
%A list of CFD's symbols names
%
%Example:- All symbols
% [symbols] = ReadInstruments('All');
%
%Example:- Contracts for Difference Symbols from American Stock Exchange
% [symbols] = ReadInstruments('Cont... |
github | bryantaylor1979/stock-shock-source-master | GetDaySymbolSet.m | .m | stock-shock-source-master/Trade Guide 1.0/GetDaySymbolSet.m | 2,115 | utf_8 | 46b02ca0d9a9716f23a93377448f15f2 | function [symbolset] = GetDaySymbolSet(datenumber,type)
%GETDAYSYMBOLSET List of available symbols on specified day
% This function looks at the local database and get all avaliable symbols
% which have valid data on the specified day.
%
%INPUTS:
% DateNumber This can be one number or an array off number... |
github | bryantaylor1979/stock-shock-source-master | StatusBar.m | .m | stock-shock-source-master/Trade Guide 1.0/StatusBar.m | 906 | utf_8 | 4258e796fb79108dc3c743f698b35b32 | %% Status Bar
function [h] = StatusBar(varargin);
[x] = size(varargin,2);
if x == 1
number = varargin{1};
[bar] = ImageGen(number);
h.image = imshow(bar);
h.axes =gca;
set(h.axes,'Position',[0.68,0.02,0.3,0.22]);
x = 1;
h.text1 = text(97,8,1,'0%');
set(h.text1,'HorizontalAli... |
github | bryantaylor1979/stock-shock-source-master | Options.m | .m | stock-shock-source-master/Trade Guide 1.0/Options.m | 5,397 | utf_8 | d2cef6277922d4871f51e23dce0096c0 | function [] = Options();
global handles DatabaseNames
f = figure;
set(f,'Resize','off');
set(f,'Name','Preferences');
set(f,'NumberTitle','off');
iconpath = [matlabroot, '/toolbox/matlab/icons/expand.gif'];
root = uitreenode('options', 'options', '', false);
% set(root,'root','on')
% root(2) = uitreenode('de... |
github | bryantaylor1979/stock-shock-source-master | DownloadData.m | .m | stock-shock-source-master/Trade Guide 1.0/DownloadData.m | 1,637 | utf_8 | 5c88418100c9451e47214bb595b3aa25 | function [DataStore,Info,ErrorCode] = DownloadData(symbol,DateRange)
%Download Data
%Error code: 0 - Download ok
% -1 - Error occured.
% -2 - Symbol Name Exception
%% Variables
mode = 'sqq'; %yahoo-fetch or sqq
%% Daterange
if ischar(DateRange)
Range = 365*200; %Last 200 years
... |
github | bryantaylor1979/stock-shock-source-master | LoadStruct.m | .m | stock-shock-source-master/Trade Guide 1.0/LoadStruct.m | 1,096 | utf_8 | 09a992d424716ed814914914576fdcca | %% functions
function [] = LoadStruct(h,TradeStructure)
% set(h.button,'Enable','off');
drawnow;
vs = version;
[NoOfEntries] = size(TradeStructure,2);
Names = fieldnames(TradeStructure);
NoOfAttributes = size(Names,1);
if strcmpi(vs,'7.6.0.324 (R2008a)')
set(h.table,'ColumnName',Names);
else
set(h.... |
github | bryantaylor1979/stock-shock-source-master | Descion.m | .m | stock-shock-source-master/Trade Guide 1.0/Descion.m | 4,970 | utf_8 | af572acfded9298d53981644ae6c2149 | function [CurrentDate,TradeStructure,Complete] = Descion(varargin);
%Descion - Buy and sell stocks
%
%Inputs: - None: Will work out buy and sell stocks
% 'Verfication', Will verfiy ouput stucture
%
%StartDate (Class: datenum, Default:- Whole database)
%EndDate (Class: datenum, Default:- Whole database)
... |
github | bryantaylor1979/stock-shock-source-master | SymbolInformation.m | .m | stock-shock-source-master/Trade Guide 1.0/SymbolInformation.m | 2,590 | utf_8 | 564c522686829c34258cc044e113faac | function [OutPutArray] = SymbolInformation(varargin)
%Similar to StockDateRange but for the whole database
%
%Example:
%[OutPutArray] = SymbolInformation()
%
%Written by: Bryan Taylor
%Date Created: 29th July 2007
%Date Modified: 29th July 2007
global h savecriteria
[log,handles] = parseinputs(varargin);
... |
github | bryantaylor1979/stock-shock-source-master | BuySellGuide.m | .m | stock-shock-source-master/Trade Guide 1.0/BuySellGuide.m | 11,690 | utf_8 | 66815f8f1149e2dd024737e1d96030b2 | function [] = BuySellGuide(SaveDataPath)
%
%Written by: Bryan Taylor
%Date Created: 23rd March 2008
%Date Modified: 24th March 2008
SaveDataPath = 'E:\StocksDatabase\';
lookfordatasource = false;
if lookfordatasource == true
datasources = getdatasources;
if isempty(datasources) %Empty datasource... |
github | bryantaylor1979/stock-shock-source-master | StockQuote.m | .m | stock-shock-source-master/Trade Guide 1.0/StockQuote.m | 4,432 | utf_8 | efec7a4e6655cb6aeca935569d81402e | function [varargout] = StockQuote(varargin)
%STOCKQUOTE
% This is similiar to stockquotequery but in gets data from local
% database
%
%INPUTS
% Conn - Connection Object
% symbol- symbol of data required.
% {'datenum';'close';'open';'high';'low'} or
% 'close'
% fieldname- field... |
github | bryantaylor1979/stock-shock-source-master | LogInDetails.m | .m | stock-shock-source-master/Trade Guide 1.0/Stock Calculator/LogInDetails.m | 5,639 | utf_8 | 703ef1031b6ef1f4cb0a995613f33e98 | function varargout = LogInDetails(varargin)
% LOGINDETAILS M-file for LogInDetails.fig
% LOGINDETAILS, by itself, creates a new LOGINDETAILS or raises the existing
% singleton*.
%
% H = LOGINDETAILS returns the handle to a new LOGINDETAILS or the handle to
% the existing singleton*.
%
% ... |
github | bryantaylor1979/stock-shock-source-master | TradeGuide.m | .m | stock-shock-source-master/Trade Guide 1.0/Stock Calculator/TradeGuide.m | 4,595 | utf_8 | 5d5507ec70f0c813c0034eb447f083f2 | function [buy,sell,tradesignal,changemarker,pP]=tradeguide(varargin)
%Gives Buy and Sell signals for maximum practical profit.
%Ignores small trend changes or flat days and follow biggest local trends.Profitable spikes are included.
%Tradeguide signal offers practical trading benchmark training set for Neural Networ... |
github | bryantaylor1979/stock-shock-source-master | CalculationSelection.m | .m | stock-shock-source-master/Trade Guide 1.0/Stock Calculator/CalculationSelection.m | 2,480 | utf_8 | 8d8753b976c0d27da8f158f6a4e0bc6e | function [] = CalculationSelection();
%Written by: Bryan Taylor
%Date Created: 4th March 2008
global h
[h.figure] = CreateFigure();
Border.Bottom = 50;
Border.Top = 10;
Border.Sides = 10;
ListBoxWidth = 180;
ListBoxHeight = 400;
ListboxSpacing = 100;
CompleteList = CalculationDeclartion;
load Ca... |
github | bryantaylor1979/stock-shock-source-master | ValidDateRangeFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/ValidDateRangeFcn.m | 8,369 | utf_8 | 7f7d93782da2dbeba52f7097c318319f | function [output] = ValidDateRangeFcn(varargin)
%Similar to StockDateRange but for the whole database
%
%Example:
%[OutPutArray] = SymbolInformation()
%
%Written by: Bryan Taylor
%Date Created: 29th July 2007
%Date Modified: 29th July 2007
%% Column Names Declarations
try
if strcmpi(varargin{1},'ColumnName... |
github | bryantaylor1979/stock-shock-source-master | DatabaseViewerFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DatabaseViewerFcn.m | 1,737 | utf_8 | 1db74872efcf233c295cebb95532ad96 | function [Output] = DatabaseViewerFcn(varargin)
%Calculate Parameters
%
%Written by: Bryan Taylor
%Date Created: 12th August 2008
%Date Modified: 12th August 2008
Mode = 'fastupdate'; %or update
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
load CalcSetting CalcSetting
... |
github | bryantaylor1979/stock-shock-source-master | DateRange_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DateRange_MatFcn.m | 3,129 | utf_8 | cf399250223051f3be9aab9347ae702f | function [output] = DateRangeFcn(varargin)
%Similar to StockDateRange but for the whole database
%
%Example:
%[OutPutArray] = SymbolInformation()
%
%Written by: Bryan Taylor
%Date Created: 29th July 2007
%Date Modified: 29th July 2007
%% Column Names Declarations
try
if strcmpi(varargin{1},'ColumnNames')
... |
github | bryantaylor1979/stock-shock-source-master | DateRangeFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DateRangeFcn.m | 3,376 | utf_8 | e7e3175d2b5c50a62ac2afd9e3e3a538 | function [output] = DateRangeFcn(varargin)
%Similar to StockDateRange but for the whole database
%
%Example:
%[OutPutArray] = SymbolInformation()
%
%Written by: Bryan Taylor
%Date Created: 29th July 2007
%Date Modified: 29th July 2007
%% Column Names Declarations
try
if strcmpi(varargin{1},'ColumnNames')
... |
github | bryantaylor1979/stock-shock-source-master | DatabaseViewer_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DatabaseViewer_MatFcn.m | 1,673 | utf_8 | 15e6edb14a12488688f9441811055045 | function [Output] = DatabaseViewer_MatFcn(varargin)
%Calculate Parameters
%
%Written by: Bryan Taylor
%Date Created: 12th August 2008
%Date Modified: 12th August 2008
Mode = 'fastupdate'; %or update
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
load CalcSetting CalcSetting
... |
github | bryantaylor1979/stock-shock-source-master | DescionFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DescionFcn.m | 5,131 | utf_8 | b0e95b72fed868a83649487cd62d87c2 | function [Status] = DescionFcn(varargin);
%Descion - Buy and sell stocks
%
%Inputs: - None: Will work out buy and sell stocks
% 'Verfication', Will verfiy ouput stucture
%
%StartDate (Class: datenum, Default:- Whole database)
%EndDate (Class: datenum, Default:- Whole database)
%
%Optional Inputs:
%==... |
github | bryantaylor1979/stock-shock-source-master | CreateDatabaseFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/CreateDatabaseFcn.m | 4,363 | utf_8 | 3538876989f9996737bd3bcd513fbe7d | function [Output] = CalculateProfitFcn(varargin)
%
%Written by: Bryan Taylor
%Date Created: 25th August 2008
%Date Modified: 25th August 2008
Mode = 'fastupdate'; %or update/fastupdate
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
Output = {'Symbol'; ...
'Org_S... |
github | bryantaylor1979/stock-shock-source-master | CalculateParameters_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/CalculateParameters_MatFcn.m | 2,310 | utf_8 | 73e5283e2a71a1652dc74f8160509d62 | function [Output] = CalculateParametersFcn(varargin)
%Calculate Parameters
%
%Written by: Bryan Taylor
%Date Created: 21st July 2008
%Date Modified: 21st July 2008
Mode = 'fastupdate'; %or update/fastupdate
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
Output = { 'Symbol'; ... |
github | bryantaylor1979/stock-shock-source-master | ImportInstrumentsFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/ImportInstrumentsFcn.m | 2,665 | utf_8 | 97c32768962456481b1881faa13a1b83 | function [Output] = ImportInstrumentsFcn(varargin)
%
%Written by: Bryan Taylor
%Date Created: 13th June 2008
%Date Modified 13th June 2008
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
Output = { 'SaxoSymbol'; ...
'SaxoCategory'; ...
'SaxoType... |
github | bryantaylor1979/stock-shock-source-master | DistributedComputing_Download_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DistributedComputing_Download_MatFcn.m | 4,855 | utf_8 | c4b72d4f27666cb1e751533d44873259 | function [Output] = Download_MatFcn(varargin)
%
%Written by: Bryan Taylor
%Date Created: 3rd January 2008
%Date Modified: 3rd January 2008
global h
%% Column Names Declarations
try
if strcmpi(varargin{1},'ColumnNames')
Output = { 'LocalBase Symbol'; ...
'Yahoo Symbol'; ...
... |
github | bryantaylor1979/stock-shock-source-master | HistoricalDayBestInvestments_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/HistoricalDayBestInvestments_MatFcn.m | 2,999 | utf_8 | 74a32b58183ccb5d2aa64c98497fa70f | function [Output] = HistoricalDayBestInvestments_Mat(varargin)
%
%Written by: Bryan Taylor
%Date Created: 25th August 2008
%Date Modified: 25th August 2008
Mode = 'fastupdate'; %or update/fastupdate
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
Output = {'Date'; ...
... |
github | bryantaylor1979/stock-shock-source-master | DayBestInvestments_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/DayBestInvestments_MatFcn.m | 1,840 | utf_8 | 902ccb9177f3f614390cd7c6bf897257 | function [Status] = DayBestInvestments_MatFcn(varargin);
%The Days Investment Recommendation's
%
%Written by: Bryan Taylor
%Date Created: 28th October 2007
%Date Modified: 27th December 2007
%% Column Names Declarations
try
if strcmpi(varargin{1},'ColumnNames')
Status = { 'Symbol'; ...
... |
github | bryantaylor1979/stock-shock-source-master | Buy_Sell_SequenceFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/Buy_Sell_SequenceFcn.m | 3,948 | utf_8 | bb1b1fc49366aaf6a1865b73653e389e | function [Output] = Buy_Sell_SequenceFcn(varargin)
%
%Written by: Bryan Taylor
%Date Created: 3rd January 2008
%Date Modified: 3rd January 2008
global h
%% Column Names Declarations
try
if strcmpi(varargin{1},'ColumnNames')
Output = { 'Date'; ...
'Symbol'; ...
'Action... |
github | bryantaylor1979/stock-shock-source-master | Descion_MatFcn.m | .m | stock-shock-source-master/Trade Guide 1.0/Analysis/Descion_MatFcn.m | 5,139 | utf_8 | b8b9b8eee762a7c5b40f612a75a46967 | function [Status] = DescionFcn(varargin);
%Descion - Buy and sell stocks
%
%Inputs: - None: Will work out buy and sell stocks
% 'Verfication', Will verfiy ouput stucture
%
%StartDate (Class: datenum, Default:- Whole database)
%EndDate (Class: datenum, Default:- Whole database)
%
%Optional Inputs:
%==... |
github | bryantaylor1979/stock-shock-source-master | LoadStruct.m | .m | stock-shock-source-master/Trade Guide 1.0/Table/LoadStruct.m | 424 | utf_8 | 6bc4211ecd00ad7c7fc4f60d9b87ad66 | %% functions
function [] = LoadStruct(h,TradeStructure)
% set(h.button,'Enable','off');
drawnow;
[NoOfEntries] = size(TradeStructure,2);
Names = fieldnames(TradeStructure);
NoOfAttributes = size(Names,1);
set(h.table,'ColumnName',Names);
Data = struct2cell(TradeStructure);
Data2 = rot90(reshape(Data(:,1,... |
github | bryantaylor1979/stock-shock-source-master | LogInDetails.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/LogInDetails.m | 5,639 | utf_8 | 703ef1031b6ef1f4cb0a995613f33e98 | function varargout = LogInDetails(varargin)
% LOGINDETAILS M-file for LogInDetails.fig
% LOGINDETAILS, by itself, creates a new LOGINDETAILS or raises the existing
% singleton*.
%
% H = LOGINDETAILS returns the handle to a new LOGINDETAILS or the handle to
% the existing singleton*.
%
% ... |
github | bryantaylor1979/stock-shock-source-master | TradeGuide.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/TradeGuide.m | 4,595 | utf_8 | 5d5507ec70f0c813c0034eb447f083f2 | function [buy,sell,tradesignal,changemarker,pP]=tradeguide(varargin)
%Gives Buy and Sell signals for maximum practical profit.
%Ignores small trend changes or flat days and follow biggest local trends.Profitable spikes are included.
%Tradeguide signal offers practical trading benchmark training set for Neural Networ... |
github | bryantaylor1979/stock-shock-source-master | CalculationSelection.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/CalculationSelection.m | 2,480 | utf_8 | 8d8753b976c0d27da8f158f6a4e0bc6e | function [] = CalculationSelection();
%Written by: Bryan Taylor
%Date Created: 4th March 2008
global h
[h.figure] = CreateFigure();
Border.Bottom = 50;
Border.Top = 10;
Border.Sides = 10;
ListBoxWidth = 180;
ListBoxHeight = 400;
ListboxSpacing = 100;
CompleteList = CalculationDeclartion;
load Ca... |
github | bryantaylor1979/stock-shock-source-master | GetDaySymbolSet.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/Database/GetDaySymbolSet.m | 2,186 | utf_8 | 22e18f87bd3d48cef7cc53bbdeadb492 | function [symbolset] = GetDaySymbolSet(datenumber,type)
%GETDAYSYMBOLSET List of available symbols on specified day
% This function looks at the local database and get all avaliable symbols
% which have valid data on the specified day.
%
%INPUTS:
% DateNumber This can be one number or an array off number... |
github | bryantaylor1979/stock-shock-source-master | SymbolInformation.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/Database/SymbolInformation.m | 2,156 | utf_8 | 56d58f13571a7712572ef1d93b3e21d5 | function [OutPutArray] = SymbolInformation(varargin)
%Similar to StockDateRange but for the whole database
%
%Example:
%[OutPutArray] = SymbolInformation(conn)
[conn,log] = parseinputs(varargin);
conn = database('SaxoTrader','','');
%list all stocks in database
[tablelist] = GetAllTableNames(conn);
[x]... |
github | bryantaylor1979/stock-shock-source-master | StockQuoteQuery.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/Database/StockQuoteQuery.m | 8,953 | utf_8 | 6b380f691d57d100e5644b0acdebcef2 | function [date, close, open, low, high, volume, closeadj] = StockQuoteQuery(symbol, start_date, end_date, frequency, varargin)
% STOCKQUOTEQUERY -- Fetch historical stock prices for a given ticker symbol
% from the YAHOO web serve using the MATLAB Java URL interface.
% See SQQ for a function that calls STO... |
github | bryantaylor1979/stock-shock-source-master | StockQuote.m | .m | stock-shock-source-master/Trade Guide 1.0/SharedFiles/Database/StockQuote.m | 5,153 | utf_8 | 3c55693767066f8222f204a4963afb2e | function [varargout] = StockQuote(varargin)
%STOCKQUOTE
% This is similiar to stockquotequery but in gets data from local
% database
%
%INPUTS
% Conn - Connection Object
% symbol- symbol of data required.
% {'datenum';'close';'open';'high';'low'} or
% 'close'
% fieldname- field... |
github | bryantaylor1979/stock-shock-source-master | CalcMovingAv.m | .m | stock-shock-source-master/Trade Guide 1.0/Calculations/CalcMovingAv.m | 3,451 | utf_8 | 56a900a996ed0becdfe3b1cd0a928946 | function [Out] = CalcMovingAv(symbols,NumberOfDays)
%Calculate stock price moving average
% Detailed explanation goes here
%
%Example:
%Calculate a month moving average
%[MovingAv] = CalcMovingAv('AA',30);
%
%Example:
%Calculate all the moving averages for the whole database.
%
%Copyright 2007, CoLogic, Inc... |
github | bryantaylor1979/stock-shock-source-master | parseXML.m | .m | stock-shock-source-master/NewAlerts/parseXML.m | 2,069 | utf_8 | 4ad06f32ed11823becbe9e052ab90a83 | function theStruct = parseXML(filename)
% PARSEXML Convert XML file to a MATLAB structure.
try
tree = xmlread(filename);
catch
error('Failed to read XML file %s.',filename);
end
% Recurse over child nodes. This could run into problems
% with very deeply nested trees.
try
theStruct = parseChildNode... |
github | bryantaylor1979/stock-shock-source-master | RealTimeParameter.m | .m | stock-shock-source-master/Stock Quote Syncroniser/RealTimeParameter.m | 1,535 | utf_8 | 6c7f144ececdf88f4fe2b481048ee5d7 | function [varargout] = RealTimeParameter(varargin)
[x] = size(varargin,2);
if x == 1 %intialise
%read values
Struct = varargin{1};
names = fieldnames(Struct);
[x] = size(names,1);
handles.figure = figure;
for i = 1:x
[h(i)] = intplot(Struct,names{i});
colour =... |
github | bryantaylor1979/stock-shock-source-master | DownloadUpdate.m | .m | stock-shock-source-master/Stock Quote Syncroniser/DownloadUpdate.m | 2,241 | utf_8 | 714819783c41d5b3daccd3bca7f52f89 | function [] = DownloadUpdate();
CurrentDirectory = pwd;
Summary.Updated = 10;
diary log.txt
Count = 1;
MaxThreshold = 7; %days
p = 1;
while 0 == 0
cd(CurrentDirectory)
tic;
AddText(['Attempt: ',num2str(Count)]);
%% only force database analysis once a day.
%% This is require... |
github | bryantaylor1979/stock-shock-source-master | LogInDetails.m | .m | stock-shock-source-master/Stock Quote Syncroniser/SharedFiles/LogInDetails.m | 5,639 | utf_8 | 703ef1031b6ef1f4cb0a995613f33e98 | function varargout = LogInDetails(varargin)
% LOGINDETAILS M-file for LogInDetails.fig
% LOGINDETAILS, by itself, creates a new LOGINDETAILS or raises the existing
% singleton*.
%
% H = LOGINDETAILS returns the handle to a new LOGINDETAILS or the handle to
% the existing singleton*.
%
% ... |
github | bryantaylor1979/stock-shock-source-master | StockQuoteQuery.m | .m | stock-shock-source-master/Stock Quote Syncroniser/SharedFiles/SQQ/StockQuoteQuery.m | 8,953 | utf_8 | 6b380f691d57d100e5644b0acdebcef2 | function [date, close, open, low, high, volume, closeadj] = StockQuoteQuery(symbol, start_date, end_date, frequency, varargin)
% STOCKQUOTEQUERY -- Fetch historical stock prices for a given ticker symbol
% from the YAHOO web serve using the MATLAB Java URL interface.
% See SQQ for a function that calls STO... |
github | bryantaylor1979/stock-shock-source-master | TP_Value.m | .m | stock-shock-source-master/BestInvestments/TP_Value.m | 2,072 | utf_8 | 2b25cbc40f6a59702405eb2855d6ed93 | function TP_DATASET = TP_Value(TP_DataSet,IntialInvestment,NoOfInvestments,TradingCost)
TotalMoneyPot = IntialInvestment;
Bank = TotalMoneyPot;
[x] = size(TP_DataSet,1);
Money_Invested = 0;
for i = 1:x
Trade = TP_DataSet(i,:);
Actions = Trade.Signal;
Action = Actions{1};
... |
github | bryantaylor1979/stock-shock-source-master | TP_TradeProfit.m | .m | stock-shock-source-master/BestInvestments/TP_TradeProfit.m | 1,463 | utf_8 | 7c5346e021902a4f5b00217ecb2f27f9 | function TP_DATASET = TP_TradeProfit(TT_DataSet,TP_DataSet)
%% Trade Plan Info Extraction
TP_DateOfEvent = TP_DataSet.DateNum;
TP_Symbols = TP_DataSet.Symbol;
Action = TP_DataSet.Signal;
[x] = size(Action,1);
for i = 1:x
if or(strcmpi(Action{i},'Sell'),strcmpi(Action{i},'Sh... |
github | bryantaylor1979/stock-shock-source-master | RemoveInvestedSymbols.m | .m | stock-shock-source-master/BestInvestments/RemoveInvestedSymbols.m | 847 | utf_8 | 33b76d641b25c2ae1810c82e24cee696 | function [DATASET, Status] = RemoveInvestedSymbols(DATASET,InvestedSymbols)
%%
[x] = size(InvestedSymbols,1);
if isempty(DATASET)
DATASET = [];
Status = -1;
return
end
for i = 1:x
try
[Symbols] = obj.GetColumn(DATASET,'BB_HIST_Ticker');... |
github | bryantaylor1979/stock-shock-source-master | PlotMoneyVsProfit.m | .m | stock-shock-source-master/BestInvestments/PlotMoneyVsProfit.m | 3,915 | utf_8 | 348de512724b45c6d4946d6185df0b8a | function h = PlotMoneyVsProfit(TP_DATASET,BinSize)
DATASET2 = HistogramProfits(TP_DATASET,'ProfitPer',BinSize)
NumberOfTradesInBin = DATASET2.NumberOfTradesInBin;
Profit = DATASET2.ProfitAv;
BB_CE_Money = DATASET2.MoneyMid;
h = figure;
bar(BB_CE_Money,Profit)
ax1 = gca;
xlabel('Money')
... |
github | bryantaylor1979/stock-shock-source-master | RemoveUnSupportedSymbols.m | .m | stock-shock-source-master/BestInvestments/RemoveUnSupportedSymbols.m | 1,252 | utf_8 | da9b20876708ddf972ce0bef1cc8bd03 | function [DATASET] = RemoveUnSupportedSymbols(DataSet,Date)
%Remove symbols that you won't beable to get a quote on yahoo
%from.
Symbol = DataSet.Symbol;
x = size(DataSet,1);
for i = 1:x
Found(i) = GetSymbolQuote(Symbol{i},Date+1);
end
n = find(Found==true);
DATASET = DataSet(n,:... |
github | bryantaylor1979/stock-shock-source-master | TT_NoOfDaysInvested.m | .m | stock-shock-source-master/BestInvestments/TT_NoOfDaysInvested.m | 1,790 | utf_8 | 7a08d853795f1af57535fdd233d6fd83 | function DATASET = TT_NoOfDaysInvested(DataSet)
%Input MUST be a trade table format
BuyDateNum = DataSet.BuyDate;
SellDateNum = DataSet.SellDate;
NoOfDaysInvested = SellDateNum - BuyDateNum;
[x] = size(NoOfDaysInvested,1);
for i = 1:x
NoOfWorkingDaysInvested(i,1) = NoOfWorkingDaysBetwe... |
github | bryantaylor1979/stock-shock-source-master | TT_StatsCalc.m | .m | stock-shock-source-master/BestInvestments/TT_StatsCalc.m | 2,258 | utf_8 | b2eb564e1e8e40bf8aac93e9248c5b79 | function Stats = TT_StatsCalc(TT_DataSet,InvestmentSize,TradingCost)
x = size(TT_DataSet,1);
NoOfWorkingDaysInvested = TT_DataSet.NoOfWorkingDaysInvested;
AccumProfit = 1
AccumNoOfDays = 0
for i = 1:x
Trade = TT_DataSet(i,:);
Profit = Trade.Profit;
MoneyAfterTrade = (Investm... |
github | bryantaylor1979/stock-shock-source-master | TT_Profit.m | .m | stock-shock-source-master/BestInvestments/TT_Profit.m | 411 | utf_8 | 3e63370f0b5e0c86b9a5a4cef7ae3972 | function DATASET = TT_Profit(DataSet)
BuyPrice = DataSet.BuyPrice;
SellPrice = DataSet.SellPrice;
Profit = SellPrice./BuyPrice;
DATASET = [DataSet,dataset(Profit)];
end
function Example()
%%
DATASET = getBritishbullsHistory('BARC.L');
TT_DATASET = TradePlan2TradeTable(DATASET);
DATASET... |
github | bryantaylor1979/stock-shock-source-master | DaySummary2TradePlan.m | .m | stock-shock-source-master/BestInvestments/DaySummary2TradePlan.m | 5,225 | utf_8 | 47739fdb4f803345b3ac73df9611fdcd | function TRADES2 = DaySummary2TradePlan(BuyQueryName,SellQueryName,NoOfInvestments)
%%
args.BuySellPriceMode = 'Spread'; % Spread, OpenPrice
Mode = args.BuySellPriceMode; % Spread, OpenPrice
ResultsDir = '/home/imagequality/stock-shock-source/BestInvestments/Results';
[Max,Min] = Query_... |
github | bryantaylor1979/stock-shock-source-master | WeekNum.m | .m | stock-shock-source-master/BestInvestments/WeekNum.m | 579 | utf_8 | 1de2969e375a58052ccaf393ad813c66 | function WeekNumber = WeekNum(DateNum)
datestr(DateNum,'ddd dd.mm.yyyy');
% First Day Of The Year
FirstDayOfYear = datenum(datestr(DateNum,'yyyy'),'yyyy');
% Start Of Week One
Day = datestr(FirstDayOfYear,'ddd');
if obj.DayNum(Day) == 1
Num = 0;
else
Num = 8 - obj.DayNum(Da... |
github | bryantaylor1979/stock-shock-source-master | TradePlan2TradeTable.m | .m | stock-shock-source-master/BestInvestments/TradePlan2TradeTable.m | 2,174 | utf_8 | 2c0c22390a0aeb793623d3ff6446f64f | function DATASET = TradePlan2TradeTable(varargin)
% compulsory inputs
DataSet = varargin{1};
% default optional inputs
args.SortBy = 'BuyDate';
% optional input overwrites
varargin = varargin(2:end);
x = size(varargin,2);
for i = 1:2:x
args.(varargin{i}) = varargin{i+1}... |
github | bryantaylor1979/stock-shock-source-master | LogInDetails.m | .m | stock-shock-source-master/Trade Guide/Stock Calculator/LogInDetails.m | 5,639 | utf_8 | 703ef1031b6ef1f4cb0a995613f33e98 | function varargout = LogInDetails(varargin)
% LOGINDETAILS M-file for LogInDetails.fig
% LOGINDETAILS, by itself, creates a new LOGINDETAILS or raises the existing
% singleton*.
%
% H = LOGINDETAILS returns the handle to a new LOGINDETAILS or the handle to
% the existing singleton*.
%
% ... |
github | bryantaylor1979/stock-shock-source-master | TradeGuide.m | .m | stock-shock-source-master/Trade Guide/Stock Calculator/TradeGuide.m | 4,595 | utf_8 | 5d5507ec70f0c813c0034eb447f083f2 | function [buy,sell,tradesignal,changemarker,pP]=tradeguide(varargin)
%Gives Buy and Sell signals for maximum practical profit.
%Ignores small trend changes or flat days and follow biggest local trends.Profitable spikes are included.
%Tradeguide signal offers practical trading benchmark training set for Neural Networ... |
github | bryantaylor1979/stock-shock-source-master | CalculationSelection.m | .m | stock-shock-source-master/Trade Guide/Stock Calculator/CalculationSelection.m | 2,480 | utf_8 | 8d8753b976c0d27da8f158f6a4e0bc6e | function [] = CalculationSelection();
%Written by: Bryan Taylor
%Date Created: 4th March 2008
global h
[h.figure] = CreateFigure();
Border.Bottom = 50;
Border.Top = 10;
Border.Sides = 10;
ListBoxWidth = 180;
ListBoxHeight = 400;
ListboxSpacing = 100;
CompleteList = CalculationDeclartion;
load Ca... |
github | bryantaylor1979/stock-shock-source-master | ReadInstruments.m | .m | stock-shock-source-master/Trade Guide/Analysis/ReadInstruments.m | 3,591 | utf_8 | fb09b1ab7ce094f6b8563f3a6225cb2b | function [Symbols,Category,Type] = ReadInstruments(varargin);
%Read Instruments for saxo text file.
%
%A list of CFD's symbols names
%
%Example:- All symbols
% [symbols] = ReadInstruments('All');
%
%Example:- Contracts for Difference Symbols from American Stock Exchange
% [symbols] = ReadInstruments('Cont... |
github | bryantaylor1979/stock-shock-source-master | GetDaySymbolSet.m | .m | stock-shock-source-master/Trade Guide/Analysis/GetDaySymbolSet.m | 2,115 | utf_8 | 46b02ca0d9a9716f23a93377448f15f2 | function [symbolset] = GetDaySymbolSet(datenumber,type)
%GETDAYSYMBOLSET List of available symbols on specified day
% This function looks at the local database and get all avaliable symbols
% which have valid data on the specified day.
%
%INPUTS:
% DateNumber This can be one number or an array off number... |
github | bryantaylor1979/stock-shock-source-master | ImportInstrumentsFcn.m | .m | stock-shock-source-master/Trade Guide/Analysis/ImportInstrumentsFcn.m | 2,665 | utf_8 | 97c32768962456481b1881faa13a1b83 | function [Output] = ImportInstrumentsFcn(varargin)
%
%Written by: Bryan Taylor
%Date Created: 13th June 2008
%Date Modified 13th June 2008
%% Column Name Declaration
try
if strcmpi(varargin{1},'ColumnNames')
Output = { 'SaxoSymbol'; ...
'SaxoCategory'; ...
'SaxoType... |
github | bryantaylor1979/stock-shock-source-master | LogInDetails.m | .m | stock-shock-source-master/Trade Guide/SharedFiles/LogInDetails.m | 5,639 | utf_8 | 703ef1031b6ef1f4cb0a995613f33e98 | function varargout = LogInDetails(varargin)
% LOGINDETAILS M-file for LogInDetails.fig
% LOGINDETAILS, by itself, creates a new LOGINDETAILS or raises the existing
% singleton*.
%
% H = LOGINDETAILS returns the handle to a new LOGINDETAILS or the handle to
% the existing singleton*.
%
% ... |
github | bryantaylor1979/stock-shock-source-master | CalculationSelection.m | .m | stock-shock-source-master/Trade Guide/SharedFiles/CalculationSelection.m | 2,480 | utf_8 | 8d8753b976c0d27da8f158f6a4e0bc6e | function [] = CalculationSelection();
%Written by: Bryan Taylor
%Date Created: 4th March 2008
global h
[h.figure] = CreateFigure();
Border.Bottom = 50;
Border.Top = 10;
Border.Sides = 10;
ListBoxWidth = 180;
ListBoxHeight = 400;
ListboxSpacing = 100;
CompleteList = CalculationDeclartion;
load Ca... |
github | bryantaylor1979/stock-shock-source-master | GetDaySymbolSet.m | .m | stock-shock-source-master/Trade Guide/SharedFiles/Database/GetDaySymbolSet.m | 2,186 | utf_8 | 22e18f87bd3d48cef7cc53bbdeadb492 | function [symbolset] = GetDaySymbolSet(datenumber,type)
%GETDAYSYMBOLSET List of available symbols on specified day
% This function looks at the local database and get all avaliable symbols
% which have valid data on the specified day.
%
%INPUTS:
% DateNumber This can be one number or an array off number... |
github | bryantaylor1979/stock-shock-source-master | SymbolInformation.m | .m | stock-shock-source-master/Trade Guide/SharedFiles/Database/SymbolInformation.m | 2,156 | utf_8 | 56d58f13571a7712572ef1d93b3e21d5 | function [OutPutArray] = SymbolInformation(varargin)
%Similar to StockDateRange but for the whole database
%
%Example:
%[OutPutArray] = SymbolInformation(conn)
[conn,log] = parseinputs(varargin);
conn = database('SaxoTrader','','');
%list all stocks in database
[tablelist] = GetAllTableNames(conn);
[x]... |
github | bryantaylor1979/stock-shock-source-master | StockQuoteQuery.m | .m | stock-shock-source-master/Trade Guide/SharedFiles/Database/StockQuoteQuery.m | 8,953 | utf_8 | 6b380f691d57d100e5644b0acdebcef2 | function [date, close, open, low, high, volume, closeadj] = StockQuoteQuery(symbol, start_date, end_date, frequency, varargin)
% STOCKQUOTEQUERY -- Fetch historical stock prices for a given ticker symbol
% from the YAHOO web serve using the MATLAB Java URL interface.
% See SQQ for a function that calls STO... |
github | bryantaylor1979/stock-shock-source-master | StockQuote.m | .m | stock-shock-source-master/Trade Guide/SharedFiles/Database/StockQuote.m | 5,153 | utf_8 | 3c55693767066f8222f204a4963afb2e | function [varargout] = StockQuote(varargin)
%STOCKQUOTE
% This is similiar to stockquotequery but in gets data from local
% database
%
%INPUTS
% Conn - Connection Object
% symbol- symbol of data required.
% {'datenum';'close';'open';'high';'low'} or
% 'close'
% fieldname- field... |
github | braton/fadapt-master | BEFAP_FARLS.m | .m | fadapt-master/misc/BEFAP_FARLS.m | 3,876 | utf_8 | 98afdf744d5774c9dae9e53f4f0b11c6 | function [y] = BEFAP_FARLS( u,d,s,e,p,L,N )
% BEFAP_FARLS - Block Exact Fast Affine Projection Algorithm
% with Fast Array Recursive Least Squares prediction
%
% [y] = BEFAP_FARLS( u,d,m,e,p,L,N )
%
% u - Input signal;
% d - desired signal;
% m - stepsize;
% e - re... |
github | braton/fadapt-master | SWIQRRLS.m | .m | fadapt-master/ls/swrls/SWIQRRLS.m | 1,986 | utf_8 | 855a69c37b1fa6c826afa31d6bd5b19e | function [w,y] = SWIQRRLS( u,d,e,L,N )
% SWIQRRLS - Sliding Window Inverse QR Recursive Least Squares
%
% [w,y] = SWIQRRLS( u,d,e,L,N )
%
% u - Input signal;
% d - desired signal;
% e - regularization factor;
% L - memory length;
% N - number of taps.
%
% w - A... |
github | braton/fadapt-master | SWFARLS.m | .m | fadapt-master/ls/swrls/SWFARLS.m | 2,386 | utf_8 | 4c53608bb28a3fd02a4f0c54d6bcf9df | function [w,y] = SWFARLS( u,d,e,L,N )
% SWFARLS - Sliding Window Fast Array Recursive Least Squares
%
% [w,y] = SWFARLS( u,d,e,L,N )
%
% u - Input signal;
% d - desired signal;
% e - regularization factor;
% L - block length;
% N - number of taps.
%
% w - Adapt... |
github | braton/fadapt-master | SWQRRLS.m | .m | fadapt-master/ls/swrls/SWQRRLS.m | 1,925 | utf_8 | 854b5794f735946faebce4c3e5670e7b | function [w,y] = SWQRRLS( u,d,e,L,N )
% SWQRRLS - Sliding Window QR Recursive Least Squares
%
% [w,y] = SWQRRLS( u,d,e,L,N )
%
% u - Input signal;
% d - desired signal;
% e - regularization factor;
% L - memory length;
% N - number of taps.
%
% w - Adapted (or ... |
github | braton/fadapt-master | FARLS.m | .m | fadapt-master/ls/rls/FARLS.m | 1,727 | utf_8 | 501640a53870852c992aa577b408f280 | function [w,y] = FARLS( u,d,a,e,N )
% FARLS - Fast Array Recursive Least Squares
%
% [w,y] = FARLS( u,d,a,e,N )
%
% u - Input signal;
% d - desired signal;
% a - forgetting factor;
% e - regularization factor;
% N - number of taps.
%
% w - Adapted (or not) taps... |
github | scottclowe/matlab-schemer-master | schemer_import.m | .m | matlab-schemer-master/schemer_import.m | 35,244 | utf_8 | 19132d98b7daf9b4cc8ca92dafff70f7 | %SCHEMER_IMPORT Import a MATLAB color scheme
% SCHEMER_IMPORT() with no input will prompt the user to locate the
% color theme source file via the GUI.
%
% SCHEMER_IMPORT(FILENAME) imports the color scheme options given in
% the file FILENAME.
%
% SCHEMER_IMPORT(FILENAME, INCLUDEBOOLS) can control whether boo... |
github | scottclowe/matlab-schemer-master | schemer_export.m | .m | matlab-schemer-master/schemer_export.m | 31,125 | utf_8 | 418edbebed97797ebd8d015a516e715e | %SCHEMER_EXPORT Export current MATLAB color scheme to text file
% If this is your first time using SCHEMER_EXPORT, please ensure you
% read the IMPORTANT NOTE at the bottom of the help section before using
% this function.
%
% SCHEMER_EXPORT() with no input will prompt the user to locate a
% destination file ... |
github | scottclowe/matlab-schemer-master | RGBint2hex.m | .m | matlab-schemer-master/develop/RGBint2hex.m | 1,945 | utf_8 | 75a6ce79368e5bb739c81c7997c516e8 | %RGBINT2HEX Convert RGB integer into hexadecimal colour
% HEX = RGBINT2HEX(INT) given an RGB integer, convert it into a
% hexadecimal string.
%
% This is a helper function which you can use when manually creating your
% own MATLAB colour schemes. It is the inverse of COLOR2JAVARGBINT.
%
% See also COLOR... |
github | scottclowe/matlab-schemer-master | color2javaRGBint.m | .m | matlab-schemer-master/develop/color2javaRGBint.m | 4,485 | utf_8 | c538e0337c315230599d7c9c7de755fb | %COLOR2JAVARGBINT Converts a 256-bit color into a corresponding Java int
% INT = COLOR2JAVARGBINT(HEX) converts the hexadecimal string HEX into a
% negative integer INT which is used by Java as an RGB value equivalent
% to the hexadecimal HEX. HEX should be a triple of 256-bit values,
% possibly prepended by a ... |
github | scottclowe/matlab-schemer-master | sample.m | .m | matlab-schemer-master/develop/sample.m | 498 | utf_8 | bef431437220991b845d959a7b041db7 | function sample()
% Create an output file with sys command
!touch test_file.txt
fid = fopen('test_file.txt', 'w');
for i=1:20
fprintf(fid, '%d unterminated\n, i);
end
fclose(fid);
end
function unusedFunc(passedInput)
persistent global_value;
global_value = global_value + 1;
%% Title of cell
printed_var = subFunc(g... |
github | farhi/idl2matlab-master | nb_prem.m | .m | idl2matlab-master/demo/nb_prem.m | 1,331 | utf_8 | 9347ad359f90f6250829e7352af125bf | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% File generated by IDL2Matlab V2.0. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [varargout] = nb_prem(varargin)
%%Initialization of parameters
I2Mkwn=char('I2M_a1', 'I2M_pos');
I2Mkwv={'lim', 'I2M_pos'};
lim=[]; I2M_pos=[];
I2M_lst={... |
github | farhi/idl2matlab-master | traductionsimple.m | .m | idl2matlab-master/demo/traductionsimple.m | 1,797 | utf_8 | 4ee17f084fd56ca63e7682c42d91843c | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% File generated by IDL2Matlab V2.0. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [varargout] = traductionsimple(varargin)
%%Initialization of parameters
I2Mkwn=char('I2M_a1', 'I2M_a2', 'I2M_pos');
I2Mkwv={'x', 'y', 'I2M_pos'};
x=[]; y=[]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.