OPEN-SOURCE SCRIPT
First CoSD Directional Strategy

This strategy is optimized for EURUSD on the 4-hour timeframe.
This strategy captures directional momentum by trading the first confirmed Change of State of Delivery (CoSD) — a structural break above the most recent swing high (bullish) or below the most recent swing low (bearish). Once a CoSD is detected, the strategy enters in that direction and holds the position until an opposing CoSD occurs.
Key features:
✅ Directional bias lock: Only one trade per directional shift. No re-entries until reversal.
✅ Swing-based stop loss: SL is anchored to the most recent structural level — swing low for longs, swing high for shorts.
✅ 2:1 reward-to-risk targeting: TP is calculated as twice the distance between entry and SL.
✅ Clean displacement logic: No indicators, no noise — just price structure and delivery.
This strategy is ideal for traders who want to align with market structure and displacement without overtrading. It’s built for clarity, discipline, and directional conviction.
This strategy captures directional momentum by trading the first confirmed Change of State of Delivery (CoSD) — a structural break above the most recent swing high (bullish) or below the most recent swing low (bearish). Once a CoSD is detected, the strategy enters in that direction and holds the position until an opposing CoSD occurs.
Key features:
✅ Directional bias lock: Only one trade per directional shift. No re-entries until reversal.
✅ Swing-based stop loss: SL is anchored to the most recent structural level — swing low for longs, swing high for shorts.
✅ 2:1 reward-to-risk targeting: TP is calculated as twice the distance between entry and SL.
✅ Clean displacement logic: No indicators, no noise — just price structure and delivery.
This strategy is ideal for traders who want to align with market structure and displacement without overtrading. It’s built for clarity, discipline, and directional conviction.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.