Add timeframe-aware signal quality scoring for 5min charts
- Lower ADX/ATR thresholds for 5min timeframe (ADX 12-22, ATR 0.2-0.7%) - Add anti-chop filter: -20 points for extreme sideways (ADX<10, ATR<0.25, Vol<0.9) - Pass timeframe parameter through check-risk and execute endpoints - Fixes flip-flop losses from overly strict 5min filters - Higher timeframes unchanged (still use ADX 18+, ATR 0.4+) 5min scoring now: - ADX 12-15: moderate trend (+5) - ADX 22+: strong trend (+15) - ATR 0.2-0.35: acceptable (+5) - ATR 0.35+: healthy (+10) - Extreme chop penalty prevents whipsaw trades
This commit is contained in:
@@ -322,6 +322,7 @@ export async function POST(request: NextRequest): Promise<NextResponse<ExecuteTr
|
||||
volumeRatio: body.volumeRatio || 0,
|
||||
pricePosition: body.pricePosition || 0,
|
||||
direction: body.direction,
|
||||
timeframe: body.timeframe,
|
||||
})
|
||||
|
||||
await createTrade({
|
||||
@@ -550,6 +551,7 @@ export async function POST(request: NextRequest): Promise<NextResponse<ExecuteTr
|
||||
volumeRatio: body.volumeRatio || 0,
|
||||
pricePosition: body.pricePosition || 0,
|
||||
direction: body.direction,
|
||||
timeframe: body.timeframe,
|
||||
})
|
||||
|
||||
await createTrade({
|
||||
|
||||
Reference in New Issue
Block a user