This commit is contained in:
Luis Fernando Molina committed 2020-05-21 13:50:57 +02:00
1 parent b14b69b53e
commit 96fd7e2a1d
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -495,8 +495,8 @@
let record = {
conditionsNames: headers,
strategyIndex: conditionRecord.strategyIndex,
stopLossPhase: conditionRecord.stopLossPhase,
takeProfitPhase: conditionRecord.takeProfitPhase,
variable_current_position_stopLoss_phase: conditionRecord.variable_current_position_stopLoss_phase,
variable_current_position_takeProfit_phase: conditionRecord.variable_current_position_takeProfit_phase,
conditionsValues: conditionRecord.conditions,
formulaErrors: conditionRecord.formulaErrors,
formulaValues: conditionRecord.formulaValues
+2 -2
View File
@@ -533,11 +533,11 @@
let takeProfitPhase = -1;
if (i > 0) {
if (record.variable_current_position_stopLoss_phase !== records[i - 1].stopLossPhase) {
if (record.variable_current_position_stopLoss_phase !== records[i - 1].variable_current_position_stopLoss_phase) {
stopLossPhase = record.variable_current_position_stopLoss_phase;
}
if (record.variable_current_position_takeProfit_phase !== records[i - 1].takeProfitPhase) {
if (record.variable_current_position_takeProfit_phase !== records[i - 1].variable_current_position_takeProfit_phase) {
takeProfitPhase = record.variable_current_position_takeProfit_phase;
}
}