PROTECTED SOURCE SCRIPT

Ahmed Order Block

29
Ahmed Order Block
//
// ANTI-REPAINTING FEATURES:
// - Only processes order blocks on confirmed/closed bars (barstate.isconfirmed)
// - Uses historical bar references with explicit offsets
// - Mitigation checks only on confirmed bars
// - Pivot points are inherently confirmed by ta.pivothigh/pivotlow with lookback
//
// NEW FEATURES:
// - Session detection (London, NY, Asian)
// - Order block age tracking (in bars/candles)
// - Customizable info labels inside order blocks

// Session time ranges (in UTC/GMT)
// Asian Session: 00:00 - 09:00 UTC
// London Session: 08:00 - 17:00 UTC
// NY Session: 13:00 - 22:00 UTC

// These pivots are already confirmed - they look swing_length bars left and right
// The pivot value returned is from swing_length bars ago

// CRITICAL FIX: Only detect order blocks on confirmed bars
// This prevents OBs from appearing and disappearing during real-time bar formation

// Find bullish OB (last bearish candle before bullish move)
// The swing_low detected now actually occurred swing_length bars ago

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。