Compare commits
No commits in common. "272ba19977ca28632aefc0eafc89dba845fee38c" and "66d33e7cb3f4a9bc630a0013e31a603d5e8f83f7" have entirely different histories.
272ba19977
...
66d33e7cb3
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ export const eventHandlerFuture: EventHandler = {
|
||||||
});
|
});
|
||||||
if (positions.length > 0) {
|
if (positions.length > 0) {
|
||||||
const position = positions[0];
|
const position = positions[0];
|
||||||
if (position.side === "Buy" && analysis.isOverBbUpper && candle.close > candle.open) {
|
if (position.side === "Buy" && analysis.isOverBbUpper) {
|
||||||
const halfSize = (Number(position.size) / 2).toFixed(2);
|
const halfSize = (Number(position.size) / 2).toFixed(2);
|
||||||
await bybitService.submitOrder({
|
await bybitService.submitOrder({
|
||||||
category: "linear",
|
category: "linear",
|
||||||
|
|
@ -91,7 +91,7 @@ export const eventHandlerFuture: EventHandler = {
|
||||||
`Future Căt nửa ${analysis.symbol} ${analysis.interval}M ${analysis.currentBB.upper} ${halfSize}`
|
`Future Căt nửa ${analysis.symbol} ${analysis.interval}M ${analysis.currentBB.upper} ${halfSize}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (position.side === "Sell" && analysis.isUnderBbLower && candle.close < candle.open) {
|
if (position.side === "Sell" && analysis.isUnderBbLower) {
|
||||||
const halfSize = (Number(position.size) / 2).toFixed(2);
|
const halfSize = (Number(position.size) / 2).toFixed(2);
|
||||||
await bybitService.submitOrder({
|
await bybitService.submitOrder({
|
||||||
category: "linear",
|
category: "linear",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue