From 051da60caef9411079de8f9f268b6d1591c1d670 Mon Sep 17 00:00:00 2001 From: djkazic Date: Fri, 17 Nov 2023 13:08:07 -0500 Subject: [PATCH] Remove tick decision making and revert previous deltas --- main.mjs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main.mjs b/main.mjs index a2d6823..2e022e9 100644 --- a/main.mjs +++ b/main.mjs @@ -350,12 +350,12 @@ async function loadModules() { logger("finance", `RSI_movAvg: ${movingAverageRSI}`); logger( "finance", - `RSI_mBuy: ${movingAverageRSI - 4}, RSI_mSell: ${ + `RSI_mBuy: ${movingAverageRSI - 3}, RSI_mSell: ${ movingAverageRSI + 12 }` ); adjustedSellRsiThreshold = movingAverageRSI + 12; - adjustedBuyRsiThreshold = movingAverageRSI - 4; + adjustedBuyRsiThreshold = movingAverageRSI - 3; } else { return; } @@ -377,8 +377,7 @@ async function loadModules() { // Check for sell conditions if ( rsi.value >= adjustedSellRsiThreshold && - lastPrice > sellPriceThreshold && - (lastTickDirection === "PlusTick" || lastTickDirection === "ZeroPlusTick") + lastPrice > sellPriceThreshold ) { action = "sell"; logger( @@ -394,8 +393,7 @@ async function loadModules() { sendTelegramMessage(`Shorted on LNM at ${lastPrice}`); } else if ( rsi.value <= adjustedBuyRsiThreshold && - lastPrice < buyPriceThreshold && - (lastTickDirection === "MinusTick" || lastTickDirection === "ZeroMinusTick") + lastPrice < buyPriceThreshold ) { action = "buy"; logger(