docs: Update n8n MCP token + Add comprehensive workflow documentation
- Updated MCP Bearer token in copilot-instructions.md (new token ending ...SQbRcoBo) - Created docs/N8N_WORKFLOW_DOCUMENTATION.md with complete Money Machine workflow docs - Smart Entry bypass for v11.2+ signals with indicatorScore >= 90 - Money_Machine.json formatting cleanup Files changed: - .github/copilot-instructions.md: MCP token update - docs/N8N_WORKFLOW_DOCUMENTATION.md: NEW comprehensive n8n docs - app/api/trading/execute/route.ts: Smart Entry bypass for high-quality signals - workflows/trading/Money_Machine.json: Telegram message formatting fixes
This commit is contained in:
@@ -539,8 +539,17 @@ export async function POST(request: NextRequest): Promise<NextResponse<ExecuteTr
|
||||
console.log(` Total position: $${positionSizeUSD}`)
|
||||
|
||||
// 🎯 SMART ENTRY TIMING - Check if we should wait for better entry (Phase 2 - Nov 27, 2025)
|
||||
// BYPASS (Dec 27, 2025): Skip Smart Entry for v11.2+ signals with high indicator scores
|
||||
// Rationale: v11.2 indicator already filters to profitable setups (2.617 PF backtest)
|
||||
// Smart Entry queue adds delay without improving already-high-quality signals
|
||||
const skipSmartEntry = typeof body.indicatorScore === 'number' && body.indicatorScore >= 90
|
||||
|
||||
if (skipSmartEntry) {
|
||||
console.log(`🚀 SMART ENTRY BYPASS: indicatorScore ${body.indicatorScore} >= 90, executing immediately`)
|
||||
}
|
||||
|
||||
const smartEntryTimer = getSmartEntryTimer()
|
||||
if (smartEntryTimer.isEnabled() && body.signalPrice) {
|
||||
if (smartEntryTimer.isEnabled() && body.signalPrice && !skipSmartEntry) {
|
||||
console.log(`🎯 Smart Entry: Evaluating entry timing...`)
|
||||
|
||||
// CRITICAL FIX (Dec 3, 2025): Use current market price, not body.signalPrice
|
||||
|
||||
Reference in New Issue
Block a user