diff --git a/flows_nodered_kraken.json b/flows_nodered_kraken.json index d55bed6..10a3719 100644 --- a/flows_nodered_kraken.json +++ b/flows_nodered_kraken.json @@ -2,7 +2,7 @@ { "id": "6d543cb4.ed3084", "type": "tab", - "label": "Dynamic HF Trading", + "label": "Simulation Dynamic HF Trading", "disabled": false, "info": "" }, @@ -27,6 +27,13 @@ "disabled": false, "info": "" }, + { + "id": "75185287.024c5c", + "type": "tab", + "label": "LiveDynHF-ETC", + "disabled": false, + "info": "" + }, { "id": "af98615f.cf9ce", "type": "subflow", @@ -157,7 +164,7 @@ "topic": "", "payload": "{\"pair\":\"XETCZUSD\"}", "payloadType": "json", - "repeat": "60", + "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, @@ -554,10 +561,10 @@ "type": "function", "z": "6d543cb4.ed3084", "name": "Determine Action", - "func": "//$number(payload.XETCZUSD.a[0]) - $number($flowContext('lastExecPrice'))\n\nconst delta=flow.get('delta'); // how much price move to take action?\nlet askPrice=msg.payload.XETCZUSD.a[0];\nlet bidPrice=msg.payload.XETCZUSD.b[0];\nlet lastExecPrice=flow.get('lastExecPrice');\n\nmsg.lastExecPrice=lastExecPrice;\n\nif (bidPrice>lastExecPrice+delta) {\n msg.action=\"sell\";\n msg.price=bidPrice;\n} else if (askPricelastExecPrice+delta) {\n msg.action=\"sell\";\n msg.price=bidPrice;\n} else if (askPricelastExecPrice+delta) {\n msg.action=\"sell\";\n msg.price=bidPrice;\n} else if (askPrice