Strategy · Pine Script v5 · On the chart

ClaudeHedge - Nikkei Session Strategy

by ClaudeQuant

This strategy trades Nikkei 225 futures during a configurable overnight session, defaulting to 19:00–03:00 ET.

View on GitHub

GitHub stars13on the repository
Pine versionv5runs as is
Lines of code209
Settings14inputs
LicenceCustom licence
Last update8 months ago15 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

ClaudeHedge - Nikkei Session Strategy builds long and short trend conditions from an 8/21 EMA pair and a 200-period SMA, with RSI, momentum, an ATR-scaled breakout range, and a volume filter. Realized volatility acts as a simulated VIX and scales a 95 percent equity allocation. ATR stop, take profit, and trailing stop distances are inputs; the excerpt ends before the full entry and exit rules.

Details

Published by

ClaudeQuant on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Sessions & time, Trend, Moving averages, Breakout

Markets

Indices

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

ai-tradingalgorithmic-tradingclaude-aicryptocurrencyfutures-tradingpine-scriptprincetonpythonquantitative-tradingsolana

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Session Start Hour (ET)int19i_session_start
Session End Hour (ET)int3i_session_end
Fast EMAint8i_ema_fast
Slow EMAint21i_ema_slow
ATR Periodint14i_atr_length
RSI Periodint14i_rsi_length
Breakout Periodint20i_breakout_length
Breakout ATR Multiplierfloat1.5i_breakout_multiplier
Stop Loss (ATR)float2.0i_stop_loss_atr
Take Profit (ATR)float3.0i_take_profit_atr
Trailing Stop (ATR)float1.5i_trailing_stop_atr
VIX Lowfloat15.0i_vix_low
Show all 14 settings
SettingTypeDefaultVariable
VIX Mediumfloat25.0i_vix_medium
VIX Highfloat35.0i_vix_high
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

257 stars

This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos

Strategy v6 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Best Chart 1m Strategy Candle Bar

12/26-IT Strategy

by hasnocool
106 stars

This strategy executes trades based on crossovers between a 12-period and a 26-period exponential moving average (EMA). Long positions can be filtered by pivot resistance breakouts and RSI boundary ranges. For trade management, it provides two configurable par

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 12/26-IT Strategy

均线突破交易系统

by tangly1024
76 stars

This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of 均线突破交易系统
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy
43 stars

This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOL 1m - Strategy Candle Bar

ADA4H Optuna Strategy

by skywalker0803r
42 stars

This strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of ADA4H Optuna Strategy

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers