MT4 Files

Check-in [3b9b6b68f5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Changed the type of price from numeric to double
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3b9b6b68f50b043f4a2e29d4b9874875299f3e45
User & Date: onagano 2011-04-22 04:26:59
Context
2011-04-22
04:28
Added new EA CounterADD2 presented by MetaTraderWeb check-in: 24dfd25bc6 user: onagano tags: trunk
04:26
Changed the type of price from numeric to double check-in: 3b9b6b68f5 user: onagano tags: trunk
2011-04-20
12:14
Improved the closing condition of MOB_insertData.mq4 check-in: 3fa003f942 user: onagano tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to experts/MOB_insertData.mq4.

193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
   return (rc);
}

string barTableSQL(string tableName) {
   string sql;
   sql = "create table " + tableName + " ("
      + "  time timestamp"
      + ", open numeric(8, 5)"
      + ", high numeric(8, 5)"
      + ", low numeric(8, 5)"
      + ", close numeric(8, 5)"
      + ", volume double precision"
      + ", primary key (time)"
      + ")";
   return (sql);
}

string tickTableSQL(string tableName) {
   string sql;
   sql = "create table " + tableName + " ("
      + "  time timestamp"
      + ", fraction integer"
      + ", ask numeric(8, 5)"
      + ", bid numeric(8, 5)"
      + ", primary key (time, fraction)"
      + ")";
   return (sql);
}

string insertSQL(string tableName, bool isBar = true) {
   string sql;







|
|
|
|











|
|







193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
   return (rc);
}

string barTableSQL(string tableName) {
   string sql;
   sql = "create table " + tableName + " ("
      + "  time timestamp"
      + ", open double precision"
      + ", high double precision"
      + ", low double precision"
      + ", close double precision"
      + ", volume double precision"
      + ", primary key (time)"
      + ")";
   return (sql);
}

string tickTableSQL(string tableName) {
   string sql;
   sql = "create table " + tableName + " ("
      + "  time timestamp"
      + ", fraction integer"
      + ", ask double precision"
      + ", bid double precision"
      + ", primary key (time, fraction)"
      + ")";
   return (sql);
}

string insertSQL(string tableName, bool isBar = true) {
   string sql;