From 7036937586d2aad1d8643ac0f5297a1700f60bae Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 5 Apr 2019 18:03:22 +0200 Subject: [PATCH] Adapting default strategy --- src/templates/strategyTemplate.js | 72 ------------------------------- 1 file changed, 72 deletions(-) diff --git a/src/templates/strategyTemplate.js b/src/templates/strategyTemplate.js index 5f1031b8a..eb84a1325 100644 --- a/src/templates/strategyTemplate.js +++ b/src/templates/strategyTemplate.js @@ -200,7 +200,6 @@ const strategy = { name: 'Candle Close above Lower Band', code: 'candle.close > bollingerBand.movingAverage + bollingerBand.deviation', }, - { name: 'Impossible', code: ' 1 === 2' }, ], }, ], @@ -254,77 +253,6 @@ const strategy = { ], }, }, - { - active: true, - name: 'LRC Strategy', - entryPoint: { - situations: [ - { - name: 'Lines in the right order', - conditions: [ - { name: '60 > 30', code: 'LRC._60 > LRC._30' }, - { name: '30 > 15', code: 'LRC._30 > LRC._15' }, - { name: 'Impossible', code: ' 1 === 2' }, - ], - }, - ], - }, - exitPoint: { - situations: [ - { - name: 'Lines out of order', - conditions: [ - { - name: '60 < 30 or 30 < 15', - code: 'LRC._60 < LRC._30 || LRC._30 < LRC._15 ', - }, - ], - }, - ], - }, - sellPoint: { - situations: [ - { - name: 'All lines going down', - conditions: [ - { name: '60 going down', code: "LRC.direction60 === 'down'" }, - { name: '30 going down', code: "LRC.direction30 === 'down'" }, - { name: '15 going down', code: "LRC.direction15 === 'down'" }, - ], - }, - ], - }, - stopLoss: { - phases: [ - { - name: 'Following Sell Rate', - code: 'newStopLoss = sellRate + sellRate * (stopLossPercentage - stopLossDecay) / 100', - situations: [ - { - name: 'Stop Loss < 60', - conditions: [ - { name: 'Stop Loss < 60', code: 'stopLoss < LRC._60' }, - ], - }, - ], - }, - { - name: 'Following 60', - code: 'newStopLoss = LRC._60', - situations: [], - }, - ], - }, - buyOrder: { - phases: [ - { - name: 'Between Band Moving Average and Lower Band', - code: 'buyOrder = bollingerBand.movingAverage - bollingerBand.standardDeviation * 4', - situations: [], - }, - ], - }, - }, ], };