Strategy · Pine Script v5 · On the chart

ClaudeHedge - DAX Session Strategy

by ClaudeQuant

This strategy overlays the price chart to trade DAX futures during European market hours.

View on GitHub

GitHub stars13on the repository
Pine versionv5runs as is
Lines of code234
Settings13inputs
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 - DAX Session Strategy calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time filters, moving average alignment, and momentum conditions align. Position sizing scales dynamically according to volatility tiers determined by the simulated VIX. Key inputs configure session hours, indicator periods, RSI thresholds, and target risk percentages. Although input fields provide stop loss and take profit percentages, the strategy operates without an active stop loss by default.

Details

Published by

ClaudeQuant on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Sessions & time, Oscillators & momentum, Volatility & bands, Mean reversion

Markets

Indices

Timeframes

M15-H1

Risk Notes

  • The strategy enters trades without a stop loss

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)int3i_session_start
Session End Hour (ET)int11i_session_end
Momentum Periodint20i_momentum_length
Volatility Periodint14i_volatility_length
RSI Periodint14i_rsi_length
RSI Oversoldint30i_rsi_oversold
RSI Overboughtint70i_rsi_overbought
Stop Loss %float3.0i_stop_loss_pct
Take Profit %float5.0i_take_profit_pct
Max Daily Loss %float5.0i_max_daily_loss
VIX Low Thresholdfloat15.0i_vix_low
VIX Medium Thresholdfloat25.0i_vix_medium
Show all 13 settings
SettingTypeDefaultVariable
VIX High Thresholdfloat35.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

330 stars

Alert BB + RSI [Alorse] is a multi-symbol mean-reversion strategy designed for cryptocurrency trading. It evaluates Bollinger Bands and the Relative Strength Index (RSI) across up to 20 user-defined ticker symbols simultaneously. The strategy enters long posit

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Alert BB + RSI [Alorse]
106 stars

A multi-timeframe Dollar Cost Averaging (DCA) trading strategy that combines signals from three RSI indicators, three CCI indicators, and Bollinger Bands. It places up to five weighted scale-in safety orders to lower the average entry price. The script offers

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of 3RSI 3CCI BB 5orders DCA Strategy+
104 stars

This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at

Strategy v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · MIT GitHub repository of Bollinger Bands and RSI Strategy

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter

Greeffer RSI Strategy

by SammyEnigma
18 stars

Greeffer RSI Strategy is a trading strategy that generates buy and sell entries based on Bollinger Bands and RSI levels. It places stop orders at upper and lower Bollinger Bands on band crossovers, and adds positions when RSI reaches extreme levels. Users can

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Greeffer RSI Strategy

Calculates a combination of the Relative Strength Index, MACD histogram, and Bollinger Bands contraction to identify long trade entries. The strategy signals a long position on a bullish bar when the MACD histogram turns upward while negative, RSI remains belo

Strategy v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + MACD + BB Long Strategy (Not Good)

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