forked from CorticalComputer/DXNN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forex_db.hrl
137 lines (128 loc) · 1.87 KB
/
forex_db.hrl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
%% This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch.COM
%%
%Copyright (C) 2009 by Gene Sher, DXNN Research Group, CorticalComputer@gmail.com
%All rights reserved.
%
%This code is licensed under the version 3 of the GNU General Public License. Please see the LICENSE file that accompanies this project for the terms of use.
-define(TL,forex_db:tot_ftf()).
-define(CFTAGS,[{1,{TableName,ElemPosition}} || TableName <- [fx15], ElemPosition <-lists:seq(5,5)]).
-define(CTTAGS,[{1,{TableName,ElemPosition}}||TableName <- [fx15], ElemPosition<-lists:seq(2,5*?TL)--lists:seq(1,5*?TL,?TL)]).
-define(STD_TABLES,[
map,
metadata,
test]).
-define(FX_TABLES,[
forex_metadata,
fx1,
fx5,
fx15,
fx30,
fx60,
fx240,
fx1440]).
-define(ALL_TABLES,[
map,
metadata,
test,
forex_metadata,
fx1,
fx5,
fx15,
fx30,
fx60,
fx240,
fx1440]).
-define(METADATA,[
key, %%%key = tablename,
size,
last_updated,
start,
stop
]).
-define(TEST,[
key, %%%key= Index
q,
a
]).
-define(FOREX_METADATA,[
key, %%%key = {TableName,cpair,feature}
first,
last,
avg,
dev,
stdev,
quantile25,
quantile50,
quantile75,
max,
min,
operators_applied
]).
-define(FOREX_TECHNICAL,[
key, %%%key={Year,Month,Day,Hour,Minute,Second}
open,
high,
low,
close,
volume,
diff,
ema6,
ema14,
ema26,
ema50
]).
-define(FOREX_TECHNICAL1,[
key, %%%key={Year,Month,Day,Hour,Minute,Second}
open,
high,
low,
close,
volume,
diff,
up_diff,
down_diff,
ud_ema27,
dd_ema27,
ema2,
ema3,
ema6,
ema9,
ema14,
ema26,
ema50,
ema100,
sma2,
sma3,
sma6,
sma9,
sma14,
sma26,
sma50,
sma100,
rsi,
macd,
macd_signal,
adi,
sts_kfast,
sts_dfast,
sts_dslow,
sts_dfull,
bix9,
trix9
]).
-define(TIMEFRAMES,[
1,
5,
15,
30,
240,
1440]).
-define(CPAIRS,["EURUSD"]).
%-define(CPAIRS,[
% "EURUSD",
% "USDJPY",
% "GBPUSD",
% "USDCHF",
% "USDCAD",
% "USDAUD",
% "USDNZD"]).