Skip to content

Commit e28e470

Browse files
committed
tofix rsi, beatify text instgram
1 parent 62f1c27 commit e28e470

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

app.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ setInterval(async _ => {
2424
close,
2525
stratigy
2626
} = listenMyCoins;
27+
const tfx = (val) => parseFloat(val).toFixed(5)
2728
const message = `
28-
${action === "Buy" ? "⤴️" : "⤵️"} action=${action}
29-
symbol=${symbol}
30-
price=${close}
31-
rsi=${rsi}
32-
stochRSI=${stochRSI}
33-
sma=${sma}
34-
ema=${ema}
35-
stratigy=${stratigy}
36-
`
29+
${action === "Buy" ? "⤴️" : "⤵️"} action=${action}
30+
symbol=${symbol}
31+
price=${close}
32+
rsi=${rsi}
33+
stochRSI=${tfx(stochRSI)}
34+
sma=${tfx(sma)}
35+
ema=${tfx(ema)}
36+
stratigy=${stratigy}
37+
`;
3738
denoBot.postMessageTelegram(message)
3839
} catch (error) {
3940
console.error(error)

wino/stratigy/justRsis.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ export const OnlyRsis = (args = []) => {
3131
action = "Buy";
3232
return action;
3333
}
34-
// action = "titti";
35-
return "wait...";
34+
action = false;
35+
return action;
3636
}

0 commit comments

Comments
 (0)