From 8115a21bf9a624d7f49b4dc52294bca8c44020bb Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 18 Feb 2018 16:22:54 +0100 Subject: [PATCH] Tests Passed --- .vs/AAOlivia/v15/.suo | Bin 37376 -> 37376 bytes Multi-Period-Daily/Interval.js | 43 ++++++++++++++++----------------- this.bot.config.json | 21 ++++++++++++++++ 3 files changed, 42 insertions(+), 22 deletions(-) diff --git a/.vs/AAOlivia/v15/.suo b/.vs/AAOlivia/v15/.suo index ba82208a3f1ddc2694be6bc4895382b7f35a257d..d8f6b9432297af669bf0bd176d0d9ab7fb806edd 100644 GIT binary patch delta 636 zcma)(O=uHQ5XUo6-!ILOn>p}3~!E-OI^J;qY;J}ZWH}ju)k9qAbw!64h zMu^fWwDq-UXKq_Q#PNQmo(aix>v6B5Fy_(@fQ&X8J1?6FF*TR{fJ3awFRS zaTI7rZZ zt@}TtL?tYm;MYq39wC-cEXB!NyiJX#F7?(8dfeJ1|B-8bdj9*_XUDdj?<-?F`T8rm Uv%E$AlPa}WuE^KR3#M4ZKPGy#EdT%j delta 1209 zcmaKqUrbw77{Kp$dOL1ecUKB@upu24N3Bpsr^wK3y|gpMLD*tKHocOz+DTnygI);h zHs~bAhcQ>~=fl)V%$0{ds3AQMnk4HUk$mUqD4RcjFdx~N~d{pH<*hE?#u~sgZYiO+^NG%InNDtXE zv5#<7V#42w$CW2RL9p*}I4b@p@FV5$j_1iziGzejS>F0S(jr8ZI6}NcII+dCx)4{) z>UfR#*T>}hgt$(8%CA&sVIkgBbjFx0{)$7Res~in)meBAAJX?#oZNZYtcxn*?At3D z+^Cxev&YAM;a{K_h%g@6`z@GiOzzmqXqX55eL9Hyn45&)?qctrt8D7IGeyv6`m#n#4|)YA*u$6PGUbH@chlt>eNsYYkkZdPG^*B z_M7j+{|>3ZS@)XFY&Gm%RB;*4wf+NbIQi79UG$IfM_mra*`c-V){D#CrE6MUNE|U_%%P!B?ogdj&7| z`!vyMkuPY_BuyHUGIY5qB0*1;C2Q<|gV-=UtUyHSm2`T${NN#88VJ&TN=X-_WxFKRQiw@k(*b9;4JIZ|rwqJ*GGywv;BntJ?IM$+k9)Cm zM1|vcb)*YBUsr24O6dJ#MrvXzkqN$?-HL6NeY6r`Nl&E{V%jA1CYv#rY*tP@ zs9sOQ&yp>uq<2~4%ryLsz$%+7i%1d!R*RakVj0Yuc3P8wR|iKiKiAC{b3QOH=Fm6u zKEHkbFz_2Q*8mIW73@z0c<7P}7(Az-Qs}|vSwDvJC0k0$(x~jg9~OEsYP^h@nE>8e OQ1HTZhKD~W+5QFUZ(#@k diff --git a/Multi-Period-Daily/Interval.js b/Multi-Period-Daily/Interval.js index ead80db00..248159bfc 100644 --- a/Multi-Period-Daily/Interval.js +++ b/Multi-Period-Daily/Interval.js @@ -107,13 +107,9 @@ Read the candles and volumes from Bruce and produce a single Index File for each let periods = '[' + - '[' + 55 * 60 * 1000 + ',' + '"55-min"' + ']' + ',' + - '[' + 50 * 60 * 1000 + ',' + '"50-min"' + ']' + ',' + '[' + 45 * 60 * 1000 + ',' + '"45-min"' + ']' + ',' + '[' + 40 * 60 * 1000 + ',' + '"40-min"' + ']' + ',' + - '[' + 35 * 60 * 1000 + ',' + '"35-min"' + ']' + ',' + '[' + 30 * 60 * 1000 + ',' + '"30-min"' + ']' + ',' + - '[' + 25 * 60 * 1000 + ',' + '"25-min"' + ']' + ',' + '[' + 20 * 60 * 1000 + ',' + '"20-min"' + ']' + ',' + '[' + 15 * 60 * 1000 + ',' + '"15-min"' + ']' + ',' + '[' + 10 * 60 * 1000 + ',' + '"10-min"' + ']' + ',' + @@ -391,24 +387,8 @@ Read the candles and volumes from Bruce and produce a single Index File for each try { - /* - - Firstly we prepere the arrays that will accumulate all the information for each output file. - - */ - - let outputCandles = []; - let outputVolumes = []; - - for (n = 0; n < outputPeriods.length; n++) { - - const emptyArray1 = []; - const emptyArray2 = []; - - outputCandles.push(emptyArray1); - outputVolumes.push(emptyArray2); - - } + let outputCandles; + let outputVolumes; advanceTime(); @@ -435,6 +415,25 @@ Read the candles and volumes from Bruce and produce a single Index File for each } + /* + + We prepere the arrays that will accumulate all the information for each output file. + + */ + + outputCandles = []; + outputVolumes = []; + + for (n = 0; n < outputPeriods.length; n++) { + + const emptyArray1 = []; + const emptyArray2 = []; + + outputCandles.push(emptyArray1); + outputVolumes.push(emptyArray2); + + } + periodsLoop(); } diff --git a/this.bot.config.json b/this.bot.config.json index 48c155288..0244a5323 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -26,6 +26,27 @@ }, "intervalLapse": 3600000, "intervalMaxLoops": -1 + }, + { + "name": "Multi-Period-Daily", + "description": "Produces different files with multi-period candles and volumes on a daily format.", + "startMode": { + "allMonths": { + "run": "false", + "minYear": "", + "maxYear": "" + }, + "oneMonth": { + "run": "false", + "year": "", + "month": "" + }, + "noTime": { + "run": "true" + } + }, + "intervalLapse": 3600000, + "intervalMaxLoops": -1 } ] }