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
|
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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue