OPEN-SOURCE SCRIPT

Hilly's 0010110 Reversal Scalping Strategy - 5 Min Candles

39
Key Features and Rationale:

Timeframe: Restricted to 5-minute candles as requested.
Pattern Integration: Includes single (Hammer, Shooting Star, Doji), two (Engulfing, Harami), and three-plus (Morning Star, Evening Star) candlestick patterns, plus reversal patterns based on RSI extremes.
VWAP Cross: Incorporates bullish (price crosses above VWAP) and bearish (price crosses below VWAP) signals, enhanced by trend context.
Volume Analysis: Uses a volume spike threshold to filter noise, with a simple day-start volume comparison for financial environment context.
Financial Environment: Approximates the day's sentiment using early-hour volume compared to current volume, adjusted by trend.
Aggregation: Scores each condition (e.g., 1 for basic patterns, 2 for strong patterns like Engulfing, 3 for three-candle patterns) and decides based on weighted consensus, with trendStrength as a tunable threshold.
Risky Approach: Minimal filtering and a low trendStrength (default 0.5) allow frequent signals, aligning with your $100-to-$200 goal, but expect higher risk.

Suggested Inputs:

EMA Length: 10 (short enough for 5-minute sensitivity).
VWAP Lookback: 1 (uses current session VWAP).
Volume Threshold Multiplier: 1.2 (moderate spike requirement).
RSI Length: 14 (standard, adjustable to 7 for more sensitivity).
Trend Strength Threshold: 0.5 (balance between signals; lower to 0.4 for more trades, raise to 0.6 for fewer).

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.