INVITE-ONLY SCRIPT

Ramen & OJ V1

18
Ramen & OJ V1 — Strategy Overview

Ramen & OJ V1 is a mechanical price-action system built around two entry archetypes—Engulfing and Momentum—with trend gates, session controls, risk rails, and optional interval take-profits. It’s designed to behave the same way you’d trade it manually: wait for a qualified impulse, enter with discipline (optionally on a measured retracement), and manage the position with clear, rules-based exits.

Core Idea (What the engine does)

At its heart, the strategy looks for a decisive candle, then trades in alignment with your defined trend gates and flattens when that bias is no longer valid.

Entry Candle Type

Engulfing: The body of the current candle swallows the prior candle’s body (classic momentum shift).

Momentum: A simple directional body (close > open for longs, close < open for shorts).

Body Filter (lookback): Optional guard that requires the current body to be at least as large as the max body from the last N bars. This keeps you from chasing weak signals.

Primary MA (Entry/Exit Role):

Gate (optional): Require price to be above the Primary MA for longs / below for shorts.

Exit (always): Base exit occurs when price closes back across the Primary MA against your position.

Longs: qualifying bullish candle + pass all enabled filters.
Shorts: mirror logic.

Entries (Impulse vs. Pullback)

You choose how aggressive to be:

Market/Bars-Close Entry: Fire on the bar that confirms the signal (respecting filters and sessions).

Retracement Entry (optional): Instead of chasing the close, place a limit around a configurable % of the signal candle’s range (e.g., 50%). This buys the dip/sells the pop with structure, often improving average entry and risk.

Flip logic is handled: when an opposite, fully-qualified signal appears while in a position, the strategy closes first and then opens the new direction per rules.

Exits & Trade Management

Primary Exit: Price closing back across the Primary MA against your position.

Interval Take-Profit (optional):

Pre-Placed (native): Automatically lays out laddered limit targets every X ticks with OCO behavior. Each rung can carry its own stop (per-rung risk). Clean, broker-like behavior in backtests.

Manual (legacy): Closes slices as price steps through the ladder levels intrabar. Useful for platforms/brokers that need incremental closes rather than bracketed OCOs.

Per-Trade Stop: Choose ticks or dollars, and whether the $ stop is per position or per contract. When pre-placed TP is on, each rung uses a coordinated OCO stop; otherwise a single hard stop is attached.

Risk Rails (Session P&L Controls)

Session Soft Lock: When a session profit target or loss limit is hit, the strategy stops taking new trades but does not force-close open positions.

Session Hard Lock: On reaching your session P&L limit, all orders are canceled and the strategy flattens immediately. No new orders until the next session.

These rails help keep good days good and bad days survivable.

Filters & How They Work Together
1) Trend & Bias

Primary MA Gate (optional): Only long above / only short below. This keeps signals aligned with your primary bias.

Primary MA Slope Filter (optional): Require a minimum up/down slope (in degrees over a defined bar span). It’s a simple way to force impulse alignment—green light only when the MA is actually moving up for longs (or down for shorts).

Secondary MA Filter (optional): An additional trend gate (SMA/EMA, often a 200). Price must be on the correct side of this higher-timeframe proxy to trade. Great for avoiding countertrend picks.

How to combine:
Use Secondary MA as the “big picture” bias, Primary MA gate as your local regime check, and Slope to ensure momentum in that regime. That three-layer stack cuts a lot of chop.

2) Volatility/Exhaustion

CCI Dead Zone Filter (optional): Trades only when CCI is inside a specified band (default ±200). This avoids entries when price is extremely stretched; think of it as a no-chase rule.

TTM Squeeze Filter (optional): When enabled, the strategy avoids entries during a squeeze (Bollinger Bands inside Keltner Channels). You’re effectively waiting for the release, not the compression itself. This plays nicely with momentum entries and the slope gate.

How to combine:
If you want only the clean breaks, enable Slope + Squeeze; if you want structure but fewer chases, add CCI Dead Zone. You’ll filter out a lot of low-quality “wiggle” trades.

3) Time & Market Calendar

Sessions: Up to two session windows (America/Chicago by default), with background highlights.

Good-Till-Close (GTC): When ON, trades can close outside the session window; when OFF, all positions are flattened at session end and pending orders canceled.

Market-Day Filters: Skip US listed holidays and known non-full Globex days (e.g., Black Friday, certain eves). Cleaner logs and fewer backtest artifacts.

How to combine:
Run your A-setup window (e.g., cash open hour) with GTC ON if you want exits to obey system rules even after the window, or GTC OFF if you want the book flat at the bell, no exceptions.

Practical Profiles (mix-and-match presets)

Trend Rider: Primary MA gate ON, Slope filter ON, Secondary MA ON, Retracement ON (50%).
Goal: Only take momentum that’s already moving, buy the dip/sell the pop back into trend.

Structure-First Pullback: Primary MA gate ON, Secondary MA ON, CCI Dead Zone ON, Retracement 38–62%.
Goal: Filter extremes, use measured pullbacks for better R:R.

Break-Only Mode: Slope ON + Squeeze filter ON (avoid compression), Body filter ON with short lookback.
Goal: Only catch clean post-compression impulses.

Session Scalper: Tight session window, GTC OFF, Interval TP ON (small slices, short rungs), per-trade tick stop.
Goal: Quick hits in a well-defined window, always flat after.

Automation Notes

The system is built with intrabar awareness (calc_on_every_tick=true) and supports bracket-style behavior via pre-placed interval TP rungs. For webhook automation (e.g., TradersPost), keep chart(s) open and ensure alerts are tied to your order events or signal conditions as implemented in your alert templates. Always validate live routing with a small-size shakedown before scaling.

Tips, Caveats & Good Hygiene

Intrabar vs. Close: Backtests can fill intrabar where your broker might not. The pre-placed mode helps emulate OCO behavior but still depends on feed granularity.

Slippage & Fees: Set realistic slippage/commission in Strategy Properties to avoid fantasy equity curves.

Session Consistency: Use the correct timezone and verify that your broker’s session aligns with your chart session settings.

Don’t Over-stack Filters: More filters ≠ better performance. Start with trend gates, then add one volatility filter if needed.

Disclosure

This script is for educational purposes only and is not financial advice. Markets carry risk; only trade capital you can afford to lose. Test thoroughly on replay and paper before using any automated routing.

TL;DR

Identify a decisive candle → pass trend/vol filters → (optionally) pull back to a measured limit → scale out on pre-planned rungs → exit on Primary MA break or session rule. Clear, mechanical, repeatable.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.