diff --git a/ConditionsPanel.js b/ConditionsPanel.js index 6302815a0..f77f03173 100644 --- a/ConditionsPanel.js +++ b/ConditionsPanel.js @@ -130,6 +130,28 @@ function newAAMastersPlottersTradingSimulationConditionsConditionsPanel() { let situation = strategy.sellPoint.situations[k]; processSituation(situation); } + + y = y + increment; + opacity = '0.50'; + label = 'Stop Loss Management'; + printLabel(label, X_AXIS + indent * 1, frameTitleHeight + frameBodyHeight * y, opacity, UI_COLOR.DARK); + + for (let p = 0; p < strategy.stopLoss.phases.length; p++) { + + let phase = strategy.stopLoss.phases[p]; + + y = y + increment; + opacity = '0.50'; + label = 'Phase: ' + phase.name; + printLabel(label, X_AXIS + indent * 1, frameTitleHeight + frameBodyHeight * y, opacity, UI_COLOR.DARK); + + for (let k = 0; k < phase.situations.length; k++) { + + let situation = phase.situations[k]; + processSituation(situation); + } + + } } function processSituation(situation) {