Next Phase Event Implemented

This commit is contained in:
Luis Fernando Molina committed 2019-05-28 15:27:45 +02:00
1 parent 99f4227d6c
commit 03e628de53
10 files changed
+160 -34

No files matched your search

+5
View File
@@ -234,6 +234,10 @@ function newStrategyPart () {
compatibleType = 'Phase'
compatibleSubType = undefined
break
case 'Next Phase Event':
compatibleType = 'Phase'
compatibleSubType = undefined
break
case 'Situation':
compatibleType = 'Phase' + '.' + 'Take Position Event' + '.' + 'Trigger On Event' + '.' + 'Trigger Off Event'
compatibleSubType = undefined
@@ -271,6 +275,7 @@ function newStrategyPart () {
if (thisObject.payload.node.type === 'Stop' && nearbyNode.stopLoss !== undefined) { continue }
if (thisObject.payload.node.type === 'Take Profit' && nearbyNode.takeProfit !== undefined) { continue }
if (thisObject.payload.node.type === 'Formula' && nearbyNode.formula !== undefined) { continue }
if (thisObject.payload.node.type === 'Next Phase Event' && nearbyNode.nextPhaseEvent !== undefined) { continue }
if (thisObject.payload.node.type === 'Code' && nearbyNode.code !== undefined) { continue }
/* Discard Phases without partent */
if (thisObject.payload.node.type === 'Phase' && nearbyNode.type === 'Phase' && nearbyNode.payload.parentNode === undefined) { continue }