This commit is contained in:
KienVT9 2025-07-14 10:56:47 +07:00
parent bdc18ce39c
commit 9cde60bb9c

View file

@ -231,17 +231,13 @@ export class IndicatorService {
Number.MIN_SAFE_INTEGER Number.MIN_SAFE_INTEGER
); );
let entry = candles[0].close; let entry = candles[0].close;
if (side === "buy") { if (side === "buy" && analysis.currentBB.upper < candles[0].close) {
if (analysis.currentBB.upper < candles[0].close) {
entry = analysis.currentBB.upper; entry = analysis.currentBB.upper;
} }
}
if (side === "sell") { if (side === "sell" && analysis.currentBB.lower > candles[0].close) {
if (analysis.currentBB.lower > candles[0].close) {
entry = analysis.currentBB.lower; entry = analysis.currentBB.lower;
} }
}
const order: Order = { const order: Order = {
symbol: analysis.symbol, symbol: analysis.symbol,