bug fix
This commit is contained in:
1 parent
c0e0c2e0b6
commit
07e4c0264d
1 file changed
+2
-2
@@ -2933,12 +2933,12 @@
|
||||
currentStrategy.triggerOnSituation, // Trigger On Situation
|
||||
currentTrade.takePositionSituation, // Take Position Situation
|
||||
hitOrFial(), // Result
|
||||
ROI, // ROI
|
||||
lastTradeROI, // ROI
|
||||
simulationRecord.type.replace(/"/g, '') // Exit Type
|
||||
]
|
||||
|
||||
function hitOrFial() {
|
||||
if (ROI > 0) { return 'HIT' } else { return 'FAIL' }
|
||||
if (lastTradeROI > 0) { return 'HIT' } else { return 'FAIL' }
|
||||
}
|
||||
|
||||
triggerOnSnapshot.push(closeValues.concat(lastTriggerOnSnapshot))
|
||||
|
||||
Reference in new issue
Block a user