From 2952b1c92b8ef345b19cc59d566e38f2b1862144 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 12 Feb 2018 12:01:55 +0100 Subject: [PATCH] Final Adjustments ready --- .vs/AAOlivia/v15/.suo | Bin 29696 -> 30720 bytes Multi-Period-Market/Interval Executor.js | 2 +- Multi-Period-Market/Interval.js | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vs/AAOlivia/v15/.suo b/.vs/AAOlivia/v15/.suo index fad3f7f96d6059fb831001bde2acdca6a3e99b7d..895082a62ecd702b7fe452c9874cf8332f629949 100644 GIT binary patch delta 1865 zcmbW1UrbYX6vywmy{)C?PfI~MD5Vr;ssa`!QU&R4X++eyRWMt?VbLs(0UD4x{y2LP z=Rcf*d$v6ov&^y=qgjyqFtRM}E;D=aVN3R~Ws3{hUiRPvOXOvncIT9K)2Ai-wV#~d z@0{N~_xn4)-~B1SfwBU#{&FGPY=U5?zDPVtrBdt$ykmCUi9H0|XY%CR9)0{^W&S&; z=1>(*m?mHxSH)@Q!SQvIm3zo*GjU81jKpI~l5L#uIZiegvo$tSkOS>$#tP&ANH1 zGU*m4;0ozZfCuA-1RTfJbrrRoEsrMT5LSZ4@nYDnC!0%bAsp<(kmNA(6Rx#2Nl<{p zQjfibg6z&V8;6ZM$(s@60^?;G&1es---Eh-6gn`TpMWr~u1`P+;{_>b#<(p7TQF`< zvb%$*l@|}+IWf_% zt-X?Ti>kL!E8J8M_?4+1{i1|pn=jf1g*xF);UvvmJJ4tw@xx`Da(Cb-u~M83`|M|1 zzWDKOviFzM8x}TS>pyl`;Jq$5L?t^ej0&#{Bf=@64^tx{R8GjKoK#fHUy@82Rcp1B z-T`NhEN}U4z5HVsv$T(HhE8gGDCc1nsp-kqsyZ zU&L>N9;^*HG(EWAfL9|8B>c-r5bPLg3odSpfSK~IpXLpO z!+X#Y_Nsl?a4CEcz1=Q)nFS%}cl#FG6I8pMH~?-gaB00`$u_v#wC6VY|ORtSP%>z}EI2^c-|$Q%Rx_c{can z&SKbyeVx_WY5$B$P><@GenExORzWQMWx$^g(sXS_bO^HeQ-1kwx@@rA9Z&1=BE!ZeZBO=5n2!G zF&X9K)p)hH6kCs;#qh}heiU|UvqKAj;h0~h%f6D5b_9IQCgdmO7loT04HIC*_$NCYXgNT=_{47iG-3x{*x`M&Sm!@bY=M#dMK z4xpzcqrjzU8Jec)jEzJh!K7I*Yt5exuMmQ^Qs=dMZIfT)@2P|Al(-f_be$?x6jI0WtX5(g{WlWIP*nog}ET(^g| zG$gAjwNZ7=c6!Ow`<=$ecT+0qHWpPlrFw0-q|qvtcWlzMm*? zx!|ZQf-mx|9D^G=CZrqSHnM*Vi?l23ZbQpt^x$QhiYEbp5K}1XLo4cZF z77M%T1;}%HjQY^|^hfRhq#vi~N2hM40x}l7=_O4oRbPMMt=+K+bmyf(VtPyvIXUOt=q8 z5ghod{zq8s+J?~Cr+9oO3t8c{STEsqZ!4Z(Y%SZ(NmAOR+gJAR-X1|D?;~VOq$8w(? zx2`%-c-0>}ufsg*Q%ABi31di@XT_iTDJ~*<>;i2blg5xi(im{*s1*T-3W51SAw{%< aHVFn^9<<>@^c7t}qPzvu5kH!*Kl}yj1EW&_ diff --git a/Multi-Period-Market/Interval Executor.js b/Multi-Period-Market/Interval Executor.js index c21c761ff..baf531dcc 100644 --- a/Multi-Period-Market/Interval Executor.js +++ b/Multi-Period-Market/Interval Executor.js @@ -3,7 +3,7 @@ let bot = BOT; const ROOT_DIR = '../'; - const INTERVAL_LAPSE = 10 * 1000; + const INTERVAL_LAPSE = 60 * 60 * 1000; // There is no need for more frecuency since 1 hour files are generated at maximun. const MODULE_NAME = "Interval Executor"; const LOG_INFO = true; diff --git a/Multi-Period-Market/Interval.js b/Multi-Period-Market/Interval.js index c49997f13..208b6e9a2 100644 --- a/Multi-Period-Market/Interval.js +++ b/Multi-Period-Market/Interval.js @@ -329,7 +329,7 @@ Read the candles and volumes from Bruce and produce a single Index File for each let date = new Date(); let currentYear = date.getUTCFullYear(); - let currentMonth = date.getUTCMonth(); + let currentMonth = utilities.pad(date.getUTCMonth() + 1,2); reportFilePath = EXCHANGE_NAME + "/Processes/" + "One-Min-Daily-Candles-Volumes" + "/" + currentYear + "/" + currentMonth; @@ -356,8 +356,8 @@ Read the candles and volumes from Bruce and produce a single Index File for each */ - lastCandleFile = new Date(processDate.valueOf() - ONE_DAY_IN_MILISECONDS); - findLastCandleCloseValue(); + maxCandleFile = new Date(date.valueOf() - ONE_DAY_IN_MILISECONDS); + getThisProcessReport(); } }