diff --git a/LowFrequencyTrading/Snapshots.js b/LowFrequencyTrading/Snapshots.js index 6904dc2e4..85c7329ed 100644 --- a/LowFrequencyTrading/Snapshots.js +++ b/LowFrequencyTrading/Snapshots.js @@ -1,5 +1,7 @@ exports.newSnapshots = function newSnapshots(bot, logger) { - + /* + This module encapsulates the snapshots functionality. + */ const MODULE_NAME = 'Snapshots' let thisObject = { diff --git a/LowFrequencyTrading/TradingEngine.js b/LowFrequencyTrading/TradingEngine.js index 3e231918a..c122735f5 100644 --- a/LowFrequencyTrading/TradingEngine.js +++ b/LowFrequencyTrading/TradingEngine.js @@ -1,4 +1,8 @@ exports.newTradingEngine = function newTradingEngine(bot, logger) { + /* + We call the Trading Engine to the data structure that is needed in order to exevute the + trading protocol with the specific rules defined at the Trading System. + */ const MODULE_NAME = 'Trading Engine' let thisObject = { setCurrentCandle: setCurrentCandle, diff --git a/LowFrequencyTrading/TradingExecution.js b/LowFrequencyTrading/TradingExecution.js index 1016cb64b..edf84a9d0 100644 --- a/LowFrequencyTrading/TradingExecution.js +++ b/LowFrequencyTrading/TradingExecution.js @@ -1,5 +1,7 @@ exports.newTradingExecution = function newTradingExecution(bot, logger) { - + /* + The Trading Execution modules manages the execution of orders against the exchanges. + */ const MODULE_NAME = 'Trading Execution' let thisObject = { diff --git a/LowFrequencyTrading/TradingOutput.js b/LowFrequencyTrading/TradingOutput.js index 59ada325b..5c99087ff 100644 --- a/LowFrequencyTrading/TradingOutput.js +++ b/LowFrequencyTrading/TradingOutput.js @@ -1,4 +1,8 @@ exports.newTradingOutput = function newTradingOutput(bot, logger, UTILITIES, FILE_STORAGE) { + /* + This module will load if necesary all the data outputs so that they can be appended with new + records if needed. After running the simulation, it will save all the data outputs. + */ const FULL_LOG = true const MODULE_NAME = 'Trading Bot' diff --git a/LowFrequencyTrading/TradingProcess.js b/LowFrequencyTrading/TradingProcess.js index b9a1c10f0..33eede41a 100644 --- a/LowFrequencyTrading/TradingProcess.js +++ b/LowFrequencyTrading/TradingProcess.js @@ -1,7 +1,6 @@ exports.newTradingProcess = function newTradingProcess(bot, logger, UTILITIES, TRADING_OUTPUT_MODULE, USER_BOT_COMMONS) { - /* - This Module will load all the process data dependencies from files and send them to the Trading Bot. + This Module will load all the process data dependencies from files and send them downstream. After execution, will save the time range and status report of the process. */ const FULL_LOG = true; diff --git a/LowFrequencyTrading/TradingRecords.js b/LowFrequencyTrading/TradingRecords.js index 2ff28155a..0dd78993b 100644 --- a/LowFrequencyTrading/TradingRecords.js +++ b/LowFrequencyTrading/TradingRecords.js @@ -1,5 +1,7 @@ exports.newTradingRecords = function newTradingRecords(bot, logger) { - + /* + This module facilitates the appending of records to the output of the process. + */ const MODULE_NAME = 'Trading Records' let thisObject = { diff --git a/LowFrequencyTrading/TradingSimulation.js b/LowFrequencyTrading/TradingSimulation.js index 7060f0a9f..36797dfa7 100644 --- a/LowFrequencyTrading/TradingSimulation.js +++ b/LowFrequencyTrading/TradingSimulation.js @@ -1,4 +1,8 @@ exports.newTradingSimulation = function newTradingSimulation(bot, logger, UTILITIES) { + /* + This Module represents the trading simulacion. Escentially a loop through a set of candles and + the execution at each loop cycle of the Trading System Protocol. + */ const FULL_LOG = true const MODULE_NAME = 'Trading Simulation -> ' + bot.SESSION.name diff --git a/LowFrequencyTrading/TradingSystem.js b/LowFrequencyTrading/TradingSystem.js index aa50c7ad5..401eab5c0 100644 --- a/LowFrequencyTrading/TradingSystem.js +++ b/LowFrequencyTrading/TradingSystem.js @@ -1,4 +1,8 @@ exports.newTradingSystem = function newTradingSystem(bot, logger) { + /* + The Trading System is the user defined set of rules compliant with the Trading Protocol that + defines the trading logic to be applied during each cycle of the Simulation. + */ const MODULE_NAME = 'Trading System' let thisObject = { reset: reset,