takePositionNow BUG

This commit is contained in:
Luis Fernando Molina committed 2019-06-05 16:43:00 +02:00
1 parent 41f7bbe33c
commit c9df7ab314
1 file changed
+9
+9
View File
@@ -861,6 +861,10 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
}
}
if (phase === undefined) {
console.log('O AQUI ES')
}
if (phase.formula !== undefined) {
try {
stopLoss = eval(phase.formula.code); // Here is where we apply the formula given for the stop loss.
@@ -969,6 +973,10 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
}
}
if (phase === undefined) {
console.log('AQUI ES')
}
if (phase.formula !== undefined) {
try {
takeProfit = eval(phase.formula.code); // Here is where we apply the formula given for the stop loss.
@@ -987,6 +995,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
if (
takePositionNow === true
) {
takePositionNow = false
marketRate = candle.close;
positionRate = marketRate;