Skip to content

Commit

Permalink
update lstm models
Browse files Browse the repository at this point in the history
  • Loading branch information
MislavSag committed Jul 17, 2020
1 parent ceab2e6 commit 167f92f
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 701 deletions.
233 changes: 147 additions & 86 deletions data/min_d_SPY.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,236 +7,288 @@ volume;0.0
DEMA5;0.26666666666666666
DEMA30;0.26666666666666666
DEMA60;0.26666666666666666
DEMA150;0.2
DEMA300;0.2
DEMA480;0.2
DEMA960;0.2
DEMA2400;0.2
DEMA4800;0.26666666666666666
EMA5;0.26666666666666666
EMA30;0.26666666666666666
EMA60;0.2
EMA150;0.2
EMA300;0.26666666666666666
EMA480;0.26666666666666666
EMA960;0.26666666666666666
EMA2400;0.26666666666666666
EMA12000;0.4666666666666667
EMA4800;0.3333333333333333
EMA9600;0.4
MIDPRICE5;0.26666666666666666
MIDPRICE30;0.26666666666666666
MIDPRICE60;0.2
MIDPRICE150;0.2
MIDPRICE300;0.2
MIDPRICE60;0.26666666666666666
MIDPRICE480;0.2
MIDPRICE960;0.2
MIDPRICE2400;0.2
MIDPRICE12000;0.26666666666666666
MIDPRICE4800;0.26666666666666666
MIDPRICE9600;0.26666666666666666
SMA5;0.26666666666666666
SMA30;0.2
SMA60;0.2
SMA150;0.2
SMA300;0.2
SMA480;0.2
SMA960;0.2
SMA2400;0.2
SMA12000;0.4
SMA4800;0.26666666666666666
SMA9600;0.3333333333333333
T35;0.26666666666666666
T330;0.2
T360;0.2
T3150;0.2
T3300;0.2
T3480;0.2
T3960;0.2
TEMA5;0.26666666666666666
TEMA30;0.26666666666666666
TEMA60;0.26666666666666666
TEMA150;0.2
TEMA300;0.2
TEMA480;0.2
TEMA960;0.2
TEMA2400;0.2
TRIMA5;0.26666666666666666
TRIMA30;0.2
TRIMA60;0.2
TRIMA150;0.2
TRIMA300;0.2
TRIMA480;0.2
TRIMA960;0.26666666666666666
TRIMA2400;0.2
TRIMA12000;0.13333333333333333
TRIMA4800;0.2
TRIMA9600;0.13333333333333333
WMA5;0.26666666666666666
WMA30;0.26666666666666666
WMA60;0.2
WMA150;0.2
WMA300;0.2
WMA480;0.2
WMA960;0.2
WMA2400;0.26666666666666666
WMA12000;0.3333333333333333
WMA4800;0.26666666666666666
WMA9600;0.3333333333333333
ADX5;0.0
ADX30;0.0
ADX60;0.0
ADX150;0.0
ADX300;0.0
ADX480;0.0
ADX960;0.0
ADX2400;0.0
ADX4800;0.0
ADXR5;0.0
ADXR30;0.0
ADXR60;0.0
ADXR150;0.0
ADXR300;0.0
ADXR480;0.0
ADXR960;0.0
ADXR2400;0.0
AROONOSC5;0.0
AROONOSC30;0.0
AROONOSC60;0.0
AROONOSC150;0.0
AROONOSC300;0.0
AROONOSC480;0.0
AROONOSC960;0.0
AROONOSC2400;0.0
AROONOSC12000;0.0
AROONOSC4800;0.0
AROONOSC9600;0.0
BOP5;0.0
BOP30;0.0
BOP60;0.0
BOP150;0.0
BOP300;0.0
BOP480;0.0
BOP960;0.0
BOP2400;0.0
BOP12000;0.0
BOP4800;0.0
BOP9600;0.0
CMO5;0.0
CMO30;0.0
CMO60;0.0
CMO150;0.0
CMO300;0.0
CMO480;0.0
CMO960;0.0
CMO2400;0.0
CMO12000;0.0
CMO4800;0.0
CMO9600;0.0
DX5;0.0
DX30;0.0
DX60;0.0
DX150;0.0
DX300;0.0
DX480;0.0
DX960;0.0
DX2400;0.0
DX12000;0.0
DX4800;0.0
DX9600;0.0
MFI5;0.0
MFI30;0.0
MFI60;0.0
MFI150;0.0
MFI300;0.0
MFI480;0.0
MFI960;0.0
MFI2400;0.0
MFI12000;0.0
MFI4800;0.0
MFI9600;0.0
MINUS_DM5;0.0
MINUS_DM30;0.0
MINUS_DM60;0.0
MINUS_DM150;0.0
MINUS_DM300;0.0
MINUS_DM480;0.0
MINUS_DM960;0.0
MINUS_DM2400;0.0
MINUS_DM12000;0.13333333333333333
MINUS_DM4800;0.0
MINUS_DM9600;0.06666666666666667
MOM5;0.0
MOM30;0.0
MOM60;0.0
MOM150;0.0
MOM300;0.0
MOM480;0.0
MOM960;0.0
MOM2400;0.0
MOM12000;0.0
MOM4800;0.0
MOM9600;0.0
ROC5;0.0
ROC30;0.0
ROC60;0.0
ROC150;0.0
ROC300;0.0
ROC480;0.0
ROC960;0.0
ROC2400;0.0
ROC12000;0.0
ROC4800;0.0
ROC9600;0.0
RSI5;0.0
RSI30;0.0
RSI60;0.0
RSI150;0.0
RSI300;0.0
RSI480;0.0
RSI960;0.0
RSI2400;0.0
RSI12000;0.0
RSI4800;0.0
RSI9600;0.0
TRIX5;0.0
TRIX30;0.0
TRIX60;0.0
TRIX150;0.0
TRIX300;0.0
TRIX480;0.0
TRIX960;0.0
TRIX2400;0.0
WILLR5;0.0
WILLR30;0.0
WILLR60;0.0
WILLR150;0.0
WILLR300;0.0
WILLR480;0.0
WILLR960;0.0
WILLR2400;0.0
WILLR12000;0.0
WILLR4800;0.0
WILLR9600;0.0
ATR5;0.0
ATR30;0.0
ATR60;0.0
ATR150;0.0
ATR300;0.0
ATR480;0.0
ATR960;0.0
ATR2400;0.0
ATR12000;0.06666666666666667
ATR4800;0.0
ATR9600;0.0
NATR5;0.0
NATR30;0.0
NATR60;0.0
NATR150;0.0
NATR300;0.0
NATR480;0.0
NATR960;0.0
NATR2400;0.0
NATR12000;0.06666666666666667
NATR4800;0.0
NATR9600;0.0
BETA5;0.0
BETA30;0.0
BETA60;0.0
BETA480;0.0
BETA960;0.0
BETA2400;0.0
BETA4800;0.0
BETA9600;0.0
CORREL5;0.0
CORREL30;0.0
CORREL60;0.0
CORREL480;0.0
CORREL960;0.0
CORREL2400;0.0
CORREL4800;0.0
CORREL9600;0.0
LINEARREG5;0.26666666666666666
LINEARREG30;0.26666666666666666
LINEARREG60;0.26666666666666666
LINEARREG480;0.2
LINEARREG960;0.2
LINEARREG2400;0.2
LINEARREG4800;0.26666666666666666
LINEARREG9600;0.3333333333333333
LINEARREG_ANGLE5;0.0
LINEARREG_ANGLE30;0.0
LINEARREG_ANGLE60;0.0
LINEARREG_ANGLE480;0.0
LINEARREG_ANGLE960;0.0
LINEARREG_ANGLE2400;0.0
LINEARREG_ANGLE4800;0.0
LINEARREG_ANGLE9600;0.0
LINEARREG_INTERCEPT5;0.26666666666666666
LINEARREG_INTERCEPT30;0.2
LINEARREG_INTERCEPT60;0.2
LINEARREG_INTERCEPT480;0.2
LINEARREG_INTERCEPT960;0.2
LINEARREG_INTERCEPT2400;0.26666666666666666
LINEARREG_INTERCEPT4800;0.26666666666666666
LINEARREG_INTERCEPT9600;0.3333333333333333
LINEARREG_SLOPE5;0.0
LINEARREG_SLOPE30;0.0
LINEARREG_SLOPE60;0.0
LINEARREG_SLOPE480;0.0
LINEARREG_SLOPE960;0.0
LINEARREG_SLOPE2400;0.0
LINEARREG_SLOPE4800;0.0
LINEARREG_SLOPE9600;0.0
TSF5;0.26666666666666666
TSF30;0.26666666666666666
TSF60;0.26666666666666666
TSF480;0.2
TSF960;0.2
TSF2400;0.2
TSF4800;0.26666666666666666
TSF9600;0.3333333333333333
BBANDS_5_upperband;0.26666666666666666
BBANDS_5_middleband;0.26666666666666666
BBANDS_5_lowerband;0.26666666666666666
BBANDS_30_upperband;0.26666666666666666
BBANDS_30_middleband;0.2
BBANDS_30_lowerband;0.2
BBANDS_60_upperband;0.2
BBANDS_60_upperband;0.26666666666666666
BBANDS_60_middleband;0.2
BBANDS_60_lowerband;0.2
BBANDS_150_upperband;0.26666666666666666
BBANDS_150_middleband;0.2
BBANDS_150_lowerband;0.2
BBANDS_300_upperband;0.26666666666666666
BBANDS_300_middleband;0.2
BBANDS_300_lowerband;0.2
BBANDS_480_upperband;0.26666666666666666
BBANDS_480_middleband;0.2
BBANDS_480_lowerband;0.2
BBANDS_960_upperband;0.26666666666666666
BBANDS_960_middleband;0.2
BBANDS_960_lowerband;0.2
BBANDS_2400_upperband;0.26666666666666666
BBANDS_2400_middleband;0.2
BBANDS_2400_lowerband;0.2
BBANDS_12000_upperband;0.3333333333333333
BBANDS_12000_middleband;0.4
BBANDS_12000_lowerband;0.26666666666666666
BBANDS_4800_upperband;0.26666666666666666
BBANDS_4800_middleband;0.26666666666666666
BBANDS_4800_lowerband;0.2
BBANDS_9600_upperband;0.3333333333333333
BBANDS_9600_middleband;0.3333333333333333
BBANDS_9600_lowerband;0.26666666666666666
AROON_5_aroondown;0.0
AROON_5_aroonup;0.0
AROON_30_aroondown;0.0
AROON_30_aroonup;0.0
AROON_60_aroondown;0.0
AROON_60_aroonup;0.0
AROON_150_aroondown;0.0
AROON_150_aroonup;0.0
AROON_300_aroondown;0.0
AROON_300_aroonup;0.0
AROON_480_aroondown;0.0
AROON_480_aroonup;0.0
AROON_960_aroondown;0.0
AROON_960_aroonup;0.0
AROON_2400_aroondown;0.0
AROON_2400_aroonup;0.0
AROON_12000_aroondown;0.0
AROON_12000_aroonup;0.0
AROON_4800_aroondown;0.0
AROON_4800_aroonup;0.0
AROON_9600_aroondown;0.0
AROON_9600_aroonup;0.0
STOCHRSI_5_fastk;0.0
STOCHRSI_5_fastd;0.0
STOCHRSI_30_fastk;0.0
STOCHRSI_30_fastd;0.0
STOCHRSI_60_fastk;0.0
STOCHRSI_60_fastd;0.0
STOCHRSI_150_fastk;0.0
STOCHRSI_150_fastd;0.0
STOCHRSI_300_fastk;0.0
STOCHRSI_300_fastd;0.0
STOCHRSI_480_fastk;0.0
STOCHRSI_480_fastd;0.0
STOCHRSI_960_fastk;0.0
STOCHRSI_960_fastd;0.0
STOCHRSI_2400_fastk;0.0
STOCHRSI_2400_fastd;0.0
STOCHRSI_12000_fastk;0.0
STOCHRSI_12000_fastd;0.0
STOCHRSI_4800_fastk;0.0
STOCHRSI_4800_fastd;0.0
STOCHRSI_9600_fastk;0.0
STOCHRSI_9600_fastd;0.0
HT_TRENDLINE;0.2
AD;0.4
OBV;0.26666666666666666
Expand Down Expand Up @@ -269,6 +321,15 @@ ADOSC;0.0
MACD;0.0
MACDSIGNAL;0.0
MACDHIST;0.0
MACD_24;0.0
MACDSIGNAL_24;0.0
MACDHIST_24;0.0
MACD_48;0.0
MACDSIGNAL_48;0.0
MACDHIST_48;0.0
MACD_200;0.0
MACDSIGNAL_200;0.0
MACDHIST_200;0.0
inphase;0.0
quadrature;0.0
sine;0.0
Expand Down
2 changes: 1 addition & 1 deletion trademl/modeling/Output_Model.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "LSTM", "config": {"name": "lstm", "trainable": true, "batch_input_shape": [null, null, 257], "dtype": "float32", "return_sequences": true, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 258, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.0, "recurrent_dropout": 0.0, "implementation": 2}}, {"class_name": "LSTM", "config": {"name": "lstm_1", "trainable": true, "dtype": "float32", "return_sequences": true, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 124, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.2, "recurrent_dropout": 0.2, "implementation": 1}}, {"class_name": "LSTM", "config": {"name": "lstm_2", "trainable": true, "dtype": "float32", "return_sequences": false, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 32, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.2, "recurrent_dropout": 0.2, "implementation": 1}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}], "build_input_shape": [null, null, 257]}, "keras_version": "2.3.0-tf", "backend": "tensorflow"}
{"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "LSTM", "config": {"name": "lstm", "trainable": true, "batch_input_shape": [null, null, 252], "dtype": "float32", "return_sequences": true, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 258, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.0, "recurrent_dropout": 0.0, "implementation": 2}}, {"class_name": "LSTM", "config": {"name": "lstm_1", "trainable": true, "dtype": "float32", "return_sequences": true, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 124, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.2, "recurrent_dropout": 0.2, "implementation": 1}}, {"class_name": "LSTM", "config": {"name": "lstm_2", "trainable": true, "dtype": "float32", "return_sequences": false, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 32, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.2, "recurrent_dropout": 0.2, "implementation": 1}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}], "build_input_shape": [null, null, 252]}, "keras_version": "2.3.0-tf", "backend": "tensorflow"}
2 changes: 1 addition & 1 deletion trademl/modeling/Output_Weights.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trademl/modeling/Output_Weights.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 167f92f

Please sign in to comment.