Skip to content

Commit

Permalink
Params update
Browse files Browse the repository at this point in the history
  • Loading branch information
djkazic committed Nov 20, 2023
1 parent 8cb832d commit 0759a8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async function loadModules() {
runningPositions.forEach((position) => {
if (position.side === "s") {
totalSellExposure += position.quantity;
if (position.pl > 20) {
if (position.pl > 30) {
logger(
"finance-profit",
`CLOSING SHORT POSITION ${JSON.stringify(position)}`
Expand All @@ -278,7 +278,7 @@ async function loadModules() {
}
} else if (position.side === "b") {
totalBuyExposure += position.quantity;
if (position.pl > 20) {
if (position.pl > 30) {
logger(
"finance-profit",
`CLOSING LONG POSITION ${JSON.stringify(position)}`
Expand Down Expand Up @@ -365,10 +365,10 @@ async function loadModules() {
logger(
"finance",
`RSI_movAvg: ${movingAverageRSI}, RSI_mBuy: ${movingAverageRSI}, RSI_mSell: ${
movingAverageRSI + 4
movingAverageRSI + 2
}`
);
adjustedSellRsiThreshold = movingAverageRSI + 4;
adjustedSellRsiThreshold = movingAverageRSI + 2;
adjustedBuyRsiThreshold = movingAverageRSI;
} else {
return;
Expand Down

0 comments on commit 0759a8a

Please sign in to comment.