update
This commit is contained in:
parent
bdc18ce39c
commit
9cde60bb9c
1 changed files with 4 additions and 8 deletions
|
|
@ -231,17 +231,13 @@ export class IndicatorService {
|
|||
Number.MIN_SAFE_INTEGER
|
||||
);
|
||||
let entry = candles[0].close;
|
||||
if (side === "buy") {
|
||||
if (analysis.currentBB.upper < candles[0].close) {
|
||||
if (side === "buy" && analysis.currentBB.upper < candles[0].close) {
|
||||
entry = analysis.currentBB.upper;
|
||||
}
|
||||
}
|
||||
|
||||
if (side === "sell") {
|
||||
if (analysis.currentBB.lower > candles[0].close) {
|
||||
if (side === "sell" && analysis.currentBB.lower > candles[0].close) {
|
||||
entry = analysis.currentBB.lower;
|
||||
}
|
||||
}
|
||||
|
||||
const order: Order = {
|
||||
symbol: analysis.symbol,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue