Stop Loss at simulation logic
This commit is contained in:
1 parent
dd0364f3ff
commit
979cf88368
1 file changed
+22
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user