diff --git a/.vs/AAMariam-Trading-Bot/v15/.suo b/.vs/AAMariam-Trading-Bot/v15/.suo index 3015c78d8..ea8a2ea0a 100644 Binary files a/.vs/AAMariam-Trading-Bot/v15/.suo and b/.vs/AAMariam-Trading-Bot/v15/.suo differ diff --git a/Trading-Process/User.Bot.js b/Trading-Process/User.Bot.js index d18c81e8c..c72bf9840 100644 --- a/Trading-Process/User.Bot.js +++ b/Trading-Process/User.Bot.js @@ -7,6 +7,7 @@ const MODULE_NAME = "This.Bot"; const LOG_INFO = true; + const logger = DEBUG_MODULE.newDebugLog(); logger.fileName = MODULE_NAME; logger.bot = bot; @@ -52,7 +53,7 @@ return thisObject; - function initialize(pProcessDatetime, pPlatform, callBackFunction) { + function initialize(pPlatform, callBackFunction) { try { @@ -96,6 +97,7 @@ switch (err.result) { case global.DEFAULT_OK_RESPONSE.result: { + logger.write("[INFO] start -> onDone -> Execution finished well. :-)"); callBackFunction(global.DEFAULT_OK_RESPONSE); return; } @@ -168,7 +170,7 @@ any reason stops being updated. */ - if (candle.begin < platform.processDatetime.valueOf() - 5 * 60 * 1000) { + if (candle.begin < global.processDatetime.valueOf() - 5 * 60 * 1000) { logger.write("[WARN] start -> businessLogic -> Last one min candle more than 5 minutes old. Bot cannot operate with this delay. Retrying later."); callBack('Retry Later'); @@ -198,7 +200,7 @@ AmountA = AmountB * rate; - platform.assistant.putPositionAtExchange("sell", rate, AmountA, AmountB, writeStatusAndContext, callBack); + platform.assistant.putPositionAtExchange("sell", rate, AmountA, AmountB, callBack); } } catch (err) { @@ -283,7 +285,7 @@ /* Finally we move the order position to where we have just estimated is a better place. */ - platform.assistant.movePositionAtExchange(pPosition, targetRate, writeStatusAndContext, callBack); + platform.assistant.movePositionAtExchange(pPosition, targetRate, callBack); } catch (err) { logger.write("[ERROR] start -> decideAboutSellPosition -> err = " + err.message); diff --git a/bin/Microsoft.NodejsTools.WebRole.dll b/bin/Microsoft.NodejsTools.WebRole.dll index e0d0ccfca..03b93f4a1 100644 Binary files a/bin/Microsoft.NodejsTools.WebRole.dll and b/bin/Microsoft.NodejsTools.WebRole.dll differ diff --git a/obj/Debug/Project.njsproj.FileListAbsolute.txt b/obj/Debug/Project.njsproj.FileListAbsolute.txt new file mode 100644 index 000000000..2e3d60bef --- /dev/null +++ b/obj/Debug/Project.njsproj.FileListAbsolute.txt @@ -0,0 +1,3 @@ +C:\Users\Luis\source\repos\Bots\AAMasters\AAMariam-Trading-Bot\obj\Debug\Project.njsprojResolveAssemblyReference.cache +C:\Users\Luis\source\repos\Bots\AAMasters\AAMariam-Trading-Bot\obj\Debug\Project.njsproj.CoreCompileInputs.cache +C:\Users\Luis\source\repos\Bots\AAMasters\AAMariam-Trading-Bot\bin\Microsoft.NodejsTools.WebRole.dll