Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Now have 3 modes - GUI (only Matlab), Pseuod-GUI(Octave + Matlab) and Command Line Interface (Octave + Matlab) 2. Implemented Configuration Menu - now easier to add/remove algorithms/data.
- Loading branch information
1 parent
eb1fbce
commit d30fd11
Showing
17 changed files
with
1,626 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% This file is part of OLPS: http://OLPS.stevenhoi.org/ | ||
% Original authors: Doyen Sahoo | ||
% Contributors: Bin LI, Steven C.H. Hoi | ||
% Change log: | ||
% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
function [ ] = removeData( dataId, configFile ) | ||
% Delete a dataset from a specified configuration file | ||
load(configFile); | ||
dataList(dataId) = []; | ||
dataFrequency(dataId) = []; | ||
dataName(dataId) = []; | ||
save(configFile, 'algorithmList', 'algorithmName', 'algorithmParameters', 'dataFrequency', 'dataList', 'dataName', 'defaultParameters', 'windowRisk'); | ||
disp('Dataset removed from config. Set it as the active configuration and restart the toolbox.'); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% This file is part of OLPS: http://OLPS.stevenhoi.org/ | ||
% Original authors: Doyen Sahoo | ||
% Contributors: Bin LI, Steven C.H. Hoi | ||
% Change log: | ||
% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
function [ ] = removeStrategy( strategyId, configFile ) | ||
% Delete a dataset from a specified configuration file | ||
load(configFile); | ||
algorithmList(strategyId) = []; | ||
algorithmName(strategyId) = []; | ||
algorithmParameters(strategyId,:) = []; | ||
defaultParameters(strategyId,:) = []; | ||
save(configFile, 'algorithmList', 'algorithmName', 'algorithmParameters', 'dataFrequency', 'dataList', 'dataName', 'defaultParameters', 'windowRisk'); | ||
disp('Strategy removed from config. Set it as the active configuration and restart the toolbox.'); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
function OLPS_pgui | ||
% OLPS_cli: run OLPS toolbox in CLI (available in both Matlab and Octave) | ||
% this program demos different strategies of on-line portfolio selection | ||
% in the mode of command-line interface (CLI) | ||
% | ||
% OLPS_cli(dataset) | ||
% | ||
% dataset: one can choose any of the following data sets | ||
% - 'djia': (default) DJIA (US) perioid 01/14/2001 - 01/14/2003 | ||
% - 'msci': MSCI (global) peroid 04/01/2006 - 03/31/2010 | ||
% - 'nyse-n': NYSE (US) peroid 01/01/1985 - 06/30/2010 | ||
% - 'nyse-o': NYSE (US) peroid 07/03/1962 - 12/31/1984 | ||
% - 'sp500': S&P500(US) period 01/02/1998 - 01/31/2003 | ||
% - 'tse': TSE (CA) peroid 01/04/1994 - 12/31/1998 | ||
|
||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% This file is part of OLPS: http://OLPS.stevenhoi.org/ | ||
% Original authors: Bin LI, Doyen Sahoo, Steven C.H. Hoi | ||
% Contributors: | ||
% Change log: | ||
% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
cd PGUI; | ||
homeMenu; |
Oops, something went wrong.