Spaces:
Sleeping
Sleeping
Commit ·
ef47b6d
1
Parent(s): a1564a4
Optimize crypto ATR Stop Loss buffer multiplier to 1.5 to handle spread spacing
Browse files
src/analysis/signalGenerator.js
CHANGED
|
@@ -428,7 +428,8 @@ function buildSignal(
|
|
| 428 |
if (score < 3) return null;
|
| 429 |
|
| 430 |
// --- Entry, SL, TP ---
|
| 431 |
-
const
|
|
|
|
| 432 |
const spread = getSpread(symbol);
|
| 433 |
let entry, sl, tp1, tp2;
|
| 434 |
|
|
|
|
| 428 |
if (score < 3) return null;
|
| 429 |
|
| 430 |
// --- Entry, SL, TP ---
|
| 431 |
+
const atrBufferMultiplier = (symbol === 'BTCUSDT' || symbol === 'ETHUSDT') ? 1.5 : 0.5;
|
| 432 |
+
const atrBuffer = lastATR * atrBufferMultiplier;
|
| 433 |
const spread = getSpread(symbol);
|
| 434 |
let entry, sl, tp1, tp2;
|
| 435 |
|