PROTECTED SOURCE SCRIPT
Zaktualizowano Ramen & OJ

Ramen & OJ — Session-Aware Intraday Futures Strategy
Ramen & OJ targets clean, rules-based intraday entries with disciplined risk management. It supports pre-placed (native) take-profit rungs with OCO stops, optional $-based stops (per position or per contract), and robust market-day filters (US holidays & non-full Globex days). It’s designed to be automation-friendly (TradersPost-ready) while remaining transparent for discretionary oversight.
Automation: Works great with TradersPost — use TradingView alert “Order fills only”.
Referral: traderspost.io/?via=thesawce23
How the core system works
Signal candle
Engulfing (default)
Bullish: current close > prior open and current open < prior close.
Bearish: current open > prior close and current close < prior open.
Optional body filter: current body ≥ the largest body in the last N bars.
Momentum
Bullish: close > open (green body).
Bearish: close < open (red body).
Body filter applies the same way if enabled.
Entry style
Market-on-signal, or Retracement limit at a % of the signal candle’s range.
Retrace limits can post intrabar in real-time and also next-bar as fallback.
Exit & management
Primary MA exit: longs close on a close below the MA; shorts close on a close above it.
Interval partial exits (optional): pre-place up to N take-profit “rungs” every K ticks.
Pre-placed (native): each rung includes its own OCO stop.
Manual (legacy): rungs execute at bar close without native orders.
Per-trade stop: either a fixed tick distance or a $ stop, auto-converted to ticks for order routing.
In Pre-placed mode, the stop attaches per rung (slice-sized OCO).
Otherwise a single full-size stop attaches to the live entry.
Filters (and how they can improve performance)
Primary MA — Use in Entries
When ON, longs only if price is above the MA and shorts only if below.
Why: keeps entries aligned with prevailing drift; reduces counter-trend fades.
(Note: The Primary MA always governs exits, even if this entry gate is off.)
MA Slope Filter
Require the MA’s slope ≥ Slope Up for longs or ≤ Slope Down for shorts.
Why: avoids flat regimes; favors momentum continuation.
Secondary MA (Trend Gate) — “Secondary MA”
When ON, longs only if close > Secondary MA; shorts only if close < it.
Why: higher-timeframe bias gate; pairs well with the Primary MA gate.
CCI Dead Zone
Blocks trades when CCI > Upper or CCI < Lower (default ±200).
Why: avoids entries into overextended thrusts where reversals or chop are common.
TTM Squeeze Filter
Optional “no-trade during squeeze” check (BB inside KC).
Why: if your edge relies on expansion, this can avoid tight compression phases.
Retracement Entries
Use a limit at a selected % retrace of the signal candle.
Why: improves average entry prices and can raise average R multiples.
Session Windows (up to 2) + End-of-Session Flatten
Time-box trading to your preferred intraday windows (default America/Chicago, auto-DST).
Why: focus on historically favorable times; flatten avoids overnight drift.
Session P&L Stops — Soft/Hard
Soft: when session target or loss limit is hit, block new entries.
Hard: flatten & cancel immediately, and block new entries for the session.
Why: protect daily gains and cap session drawdowns.
Market-Day Filters (2 simple toggles)
Skip Listed US Holidays (observed).
Skip Non-Full Globex Days (Black Friday, Christmas Eve, weekday July 3).
Why: avoid thin or irregular sessions that can distort fills & behavior.
Order handling & risk (automation-friendly)
Pre-placed rungs with OCO stops (loss in ticks, from either tick or $ input).
$ Stops: choose Per Position or Per Contract; strategy converts $→ticks with pointvalue × ticksize.
Pyramiding = 1: flips always close before opening the opposite side.
Alerts: choose TradingView “Order fills only” (no custom alert() calls required).
TradersPost: Connect your TradingView alerts to your broker via TradersPost.
Referral: traderspost.io/?via=thesawce23
Quick start
Pick Engulfing or Momentum setup.
Decide on market vs retrace entries.
If you want native brackets, enable Interval partial exits → Pre-placed (native), set slice size & ticks.
Choose Tick or $ Stop (per position/contract).
Turn on Primary MA for Entries and optionally Secondary MA / CCI Dead Zone.
Define 1–2 Sessions, enable Session Soft/Hard stop if desired.
Create an alert → “Order fills only” → connect to TradersPost.
Advanced notes
Intrabar posting: Retrace limits post intrabar only in real-time (barstate.isrealtime); backtests rely on next-bar fallback.
Re-seating: Changing rung settings mid-trade cancels & re-seats brackets to keep orders consistent.
Timezones: Sessions default to America/Chicago (auto-DST) to match CME Globex and market-day filters.
Release Notes
Added market-day filters: Listed US Holidays (observed) and non-full Globex days (Black Friday, Christmas Eve, weekday July 3).
Added Secondary MA trend gate (hidden when disabled).
Added CCI Dead Zone (blocks overextended conditions).
Added $-based Stop with Per Position / Per Contract basis (auto-converted to ticks).
Pre-placed (native) TP rungs now include per-rung OCO stops using the effective tick loss.
Session P&L Soft/Hard: soft locks new entries; hard flattens & blocks for the session.
Cleaned up plots, removed duplicate MA plot, and improved intrabar posting logic.
Publishing defaults and tooltips revised for clarity; alerts: use “Order fills only.”
Disclosure
This script is for educational purposes only and is not financial advice. Futures and leveraged products involve substantial risk and are not suitable for all investors. Backtests and paper trading do not guarantee future results; slippage, commissions, liquidity, and partial/holiday sessions can materially impact live performance. You are responsible for your own trading decisions.
Questions, bugs, suggestions?
I’d love feedback. DM me here on TradingView with any questions, bug reports, or ideas to improve the strategy.
Ramen & OJ targets clean, rules-based intraday entries with disciplined risk management. It supports pre-placed (native) take-profit rungs with OCO stops, optional $-based stops (per position or per contract), and robust market-day filters (US holidays & non-full Globex days). It’s designed to be automation-friendly (TradersPost-ready) while remaining transparent for discretionary oversight.
Automation: Works great with TradersPost — use TradingView alert “Order fills only”.
Referral: traderspost.io/?via=thesawce23
How the core system works
Signal candle
Engulfing (default)
Bullish: current close > prior open and current open < prior close.
Bearish: current open > prior close and current close < prior open.
Optional body filter: current body ≥ the largest body in the last N bars.
Momentum
Bullish: close > open (green body).
Bearish: close < open (red body).
Body filter applies the same way if enabled.
Entry style
Market-on-signal, or Retracement limit at a % of the signal candle’s range.
Retrace limits can post intrabar in real-time and also next-bar as fallback.
Exit & management
Primary MA exit: longs close on a close below the MA; shorts close on a close above it.
Interval partial exits (optional): pre-place up to N take-profit “rungs” every K ticks.
Pre-placed (native): each rung includes its own OCO stop.
Manual (legacy): rungs execute at bar close without native orders.
Per-trade stop: either a fixed tick distance or a $ stop, auto-converted to ticks for order routing.
In Pre-placed mode, the stop attaches per rung (slice-sized OCO).
Otherwise a single full-size stop attaches to the live entry.
Filters (and how they can improve performance)
Primary MA — Use in Entries
When ON, longs only if price is above the MA and shorts only if below.
Why: keeps entries aligned with prevailing drift; reduces counter-trend fades.
(Note: The Primary MA always governs exits, even if this entry gate is off.)
MA Slope Filter
Require the MA’s slope ≥ Slope Up for longs or ≤ Slope Down for shorts.
Why: avoids flat regimes; favors momentum continuation.
Secondary MA (Trend Gate) — “Secondary MA”
When ON, longs only if close > Secondary MA; shorts only if close < it.
Why: higher-timeframe bias gate; pairs well with the Primary MA gate.
CCI Dead Zone
Blocks trades when CCI > Upper or CCI < Lower (default ±200).
Why: avoids entries into overextended thrusts where reversals or chop are common.
TTM Squeeze Filter
Optional “no-trade during squeeze” check (BB inside KC).
Why: if your edge relies on expansion, this can avoid tight compression phases.
Retracement Entries
Use a limit at a selected % retrace of the signal candle.
Why: improves average entry prices and can raise average R multiples.
Session Windows (up to 2) + End-of-Session Flatten
Time-box trading to your preferred intraday windows (default America/Chicago, auto-DST).
Why: focus on historically favorable times; flatten avoids overnight drift.
Session P&L Stops — Soft/Hard
Soft: when session target or loss limit is hit, block new entries.
Hard: flatten & cancel immediately, and block new entries for the session.
Why: protect daily gains and cap session drawdowns.
Market-Day Filters (2 simple toggles)
Skip Listed US Holidays (observed).
Skip Non-Full Globex Days (Black Friday, Christmas Eve, weekday July 3).
Why: avoid thin or irregular sessions that can distort fills & behavior.
Order handling & risk (automation-friendly)
Pre-placed rungs with OCO stops (loss in ticks, from either tick or $ input).
$ Stops: choose Per Position or Per Contract; strategy converts $→ticks with pointvalue × ticksize.
Pyramiding = 1: flips always close before opening the opposite side.
Alerts: choose TradingView “Order fills only” (no custom alert() calls required).
TradersPost: Connect your TradingView alerts to your broker via TradersPost.
Referral: traderspost.io/?via=thesawce23
Quick start
Pick Engulfing or Momentum setup.
Decide on market vs retrace entries.
If you want native brackets, enable Interval partial exits → Pre-placed (native), set slice size & ticks.
Choose Tick or $ Stop (per position/contract).
Turn on Primary MA for Entries and optionally Secondary MA / CCI Dead Zone.
Define 1–2 Sessions, enable Session Soft/Hard stop if desired.
Create an alert → “Order fills only” → connect to TradersPost.
Advanced notes
Intrabar posting: Retrace limits post intrabar only in real-time (barstate.isrealtime); backtests rely on next-bar fallback.
Re-seating: Changing rung settings mid-trade cancels & re-seats brackets to keep orders consistent.
Timezones: Sessions default to America/Chicago (auto-DST) to match CME Globex and market-day filters.
Release Notes
Added market-day filters: Listed US Holidays (observed) and non-full Globex days (Black Friday, Christmas Eve, weekday July 3).
Added Secondary MA trend gate (hidden when disabled).
Added CCI Dead Zone (blocks overextended conditions).
Added $-based Stop with Per Position / Per Contract basis (auto-converted to ticks).
Pre-placed (native) TP rungs now include per-rung OCO stops using the effective tick loss.
Session P&L Soft/Hard: soft locks new entries; hard flattens & blocks for the session.
Cleaned up plots, removed duplicate MA plot, and improved intrabar posting logic.
Publishing defaults and tooltips revised for clarity; alerts: use “Order fills only.”
Disclosure
This script is for educational purposes only and is not financial advice. Futures and leveraged products involve substantial risk and are not suitable for all investors. Backtests and paper trading do not guarantee future results; slippage, commissions, liquidity, and partial/holiday sessions can materially impact live performance. You are responsible for your own trading decisions.
Questions, bugs, suggestions?
I’d love feedback. DM me here on TradingView with any questions, bug reports, or ideas to improve the strategy.
Informacje o Wersji
🥢🍊 Ramen & OJ — Session-Aware Intraday Futures StrategyRamen & OJ targets clean, rules-based intraday entries with disciplined risk management. It supports pre-placed (native) take-profit rungs with OCO stops, optional $-based stops (per position or per contract), and robust market-day filters (US holidays & non-full Globex days). It’s designed to be automation-friendly (TradersPost-ready) while remaining transparent for discretionary oversight.
Automation: Works great with TradersPost — use TradingView alert “Order fills only.”
Referral: traderspost.io/?via=thesawce23
🧠 How the core system works
Signal candle
Engulfing (default)
Bullish: current close > prior open and current open < prior close.
Bearish: current open > prior close and current close < prior open.
Optional body filter: current body ≥ the largest body in the last N bars.
Momentum
Bullish: close > open (green body).
Bearish: close < open (red body).
Body filter applies the same way if enabled.
Entry style
Market-on-signal, or Retracement limit at a % of the signal candle’s range.
Retrace limits can post intrabar in real time and next-bar as fallback.
Exit & management
Primary MA exit: longs close on a close below the MA; shorts close on a close above it.
Interval partial exits (optional): pre-place up to N take-profit “rungs” every K ticks.
Pre-placed (native): each rung includes its own OCO stop.
Manual (legacy): rungs execute at bar close without native orders.
Per-trade stop: fixed ticks or a $ stop, auto-converted to ticks for order routing.
In Pre-placed mode, the stop attaches per rung (slice-sized OCO).
Otherwise a single full-size stop attaches to the live entry.
🧰 Filters (and how they can improve performance)
📈 Primary MA — Use in Entries
When ON, longs only if price is above the MA and shorts only if below.
Why: aligns entries with prevailing drift; reduces counter-trend fades.
(Note: The Primary MA always governs exits, even if this entry gate is off.)
📐 MA Slope Filter
Require the MA’s slope ≥ Slope Up for longs or ≤ Slope Down for shorts.
Why: avoids flat regimes; favors momentum continuation.
🟠 Secondary MA (Trend Gate) — “Secondary MA”
When ON, longs only if close > Secondary MA; shorts only if close < it.
Why: higher-timeframe bias gate; pairs well with the Primary MA gate.
📊 CCI Dead Zone
Blocks trades when CCI > Upper or CCI < Lower (default ±200).
Why: avoids entries into overextended thrusts where reversals or chop are common.
🧨 TTM Squeeze Filter (computed only)
Optional “no-trade during squeeze” check (BB inside KC).
Why: if your edge relies on expansion, this can avoid tight compression phases.
🔁 Retracement Entries
Use a limit at a selected % retrace of the signal candle.
Why: can improve average entry prices and raise average R multiples.
🕒 Session Windows (up to 2) + End-of-Session Flatten
Time-box trading to your preferred intraday windows (default America/Chicago, auto-DST).
Why: focus on historically favorable times; flatten avoids overnight drift.
🛑 Session P&L Stops — Soft/Hard
Soft: when session target or loss limit is hit, block new entries.
Hard: flatten & cancel immediately, and block new entries for the session.
Why: protect gains and cap session drawdowns.
📅 Market-Day Filters (2 simple toggles)
Skip Listed US Holidays (observed).
Skip Non-Full Globex Days (Black Friday, Christmas Eve, weekday July 3).
Why: avoid thin or irregular sessions that can distort fills & behavior.
🤖 Order handling & risk (automation-friendly)
Pre-placed rungs with OCO stops (loss in ticks, derived from tick or $ input).
$ Stops: choose Per Position or Per Contract; strategy converts $→ticks with pointvalue × ticksize.
Pyramiding = 1: flips always close before opening the opposite side.
Alerts: choose TradingView “Order fills only.” (no custom alert() calls required).
TradersPost: Connect alerts → broker automation via TradersPost.
Referral: traderspost.io/?via=thesawce23
🚀 Quick start
Pick Engulfing or Momentum.
Choose market vs retrace entries.
For native brackets, enable Interval partial exits → Pre-placed (native), set slice size & ticks.
Choose Tick or $ Stop (per position/contract).
Turn on Primary MA for Entries, optionally Secondary MA / CCI Dead Zone.
Define 1–2 Sessions, enable Session Soft/Hard stop if desired.
Create an alert → “Order fills only.” → connect to TradersPost.
🧩 Advanced notes
Intrabar posting: Retrace limits post intrabar only in real time (barstate.isrealtime); backtests rely on next-bar fallback.
Re-seating: Changing rung settings mid-trade cancels & re-seats brackets to keep orders consistent.
Timezones: Sessions default to America/Chicago (auto-DST) to match CME Globex & market-day filters.
📝 Release Notes
Added market-day filters: Listed US Holidays (observed) and non-full Globex days (Black Friday, Christmas Eve, weekday July 3).
Added Secondary MA trend gate (hidden when disabled).
Added CCI Dead Zone (blocks overextended conditions).
Added $-based Stop with Per Position / Per Contract basis (auto-converted to ticks).
Pre-placed (native) TP rungs now include per-rung OCO stops using the effective tick loss.
Session P&L Soft/Hard: soft locks new entries; hard flattens & blocks for the session.
Cleaned up plots, removed duplicate MA plot, improved intrabar posting logic.
Publishing tips clarified; alerts: use “Order fills only.”
⚠️ Disclosure
This script is for educational purposes only and is not financial advice. Futures and leveraged products involve substantial risk and are not suitable for all investors. Backtests and paper trading do not guarantee future results; slippage, commissions, liquidity, and partial/holiday sessions can materially impact live performance. You are responsible for your own trading decisions.
💬 Questions, bugs, suggestions?
I’d love feedback. DM me here on TradingView with any questions, bug reports, or ideas to improve the strategy.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.