OPEN-SOURCE SCRIPT

Prism Confluence System

254
Prism Confluence System: Strategy Overview
The Prism Confluence System is a multi-factor trading strategy that combines trend analysis, price action patterns, volume confirmation, and volatility management to generate high-probability signals. Below is a detailed breakdown of its components and customizable inputs:
________________________________________
Core Components
1. Trend Identification
o Dual EMA crossover system (short/long-term EMAs)
o ADX filter to confirm trending markets
2. Price Action Signals
o Engulfing patterns (bullish/bearish)
o Hammer/Inverted Hammer with trend alignment
o Fair Value Gaps (FVGs) with fill detection
3. Volume Validation
o Volume spikes relative to moving average
4. Risk Management
o ATR-based dynamic stop-loss (SL) and take-profit (TP)
o Separate thresholds for strong/weak signals
________________________________________









User-Adjustable Inputs
(Accessible via strategy settings UI)
1. Trend Identification
Parameter Default Description
Short EMA Length 20 Period for fast EMA (trend direction)
Long EMA Length 50 Period for slow EMA (trend confirmation)
ADX Trend Filter Length 14 ADX period to filter non-trending markets
Adjustment Tips:
• Increase EMA lengths for slower trend response
• Lower ADX threshold (default 20) to allow weaker trends
________________________________________
2. Support/Resistance
Parameter Default Description
Support/Resistance Length 14 Lookback for pivot highs/lows
Adjustment Tips:
• Shorter lengths = more reactive S/R levels
• Longer lengths = broader price zones
________________________________________
3. Fair Value Gaps (FVG)
Parameter Default Description
FVG Lookback 10 Bars back to check for gap formation
FVG Fill Window 5 Max bars allowed to fill a gap (hardcoded)
Adjustment Tips:
• Increase lookback for larger timeframes
• Reduce fill window for quicker gap closures
________________________________________

4. Volume Analysis
Parameter Default Description
Volume Spike Multiplier 1.5 Current volume vs MA threshold
Secondary Volume Threshold 1.2 Previous bar volume confirmation
Adjustment Tips:
• Increase multipliers for stricter volume confirmation
• Lower to 1.0-1.1 for active markets
________________________________________
5. Volatility Management
Parameter Default Description
ATR Length 14 Period for Average True Range
ATR Stop-Loss Multiplier 2 SL distance (ATR × multiplier)
ATR Take-Profit Multiplier 3 TP distance (ATR × multiplier)
Adjustment Tips:
• Increase SL multiplier for wider stops in volatile markets
• Adjust TP ratio (default 1:1.5 risk/reward)
________________________________________
6. Signal Priority
(Hardcoded but adjustable via logic)
• Strong Signals: Require FVG + Engulfing + Volume + Trend
• Weak Signals: Require Pattern + Volume + S/R Break
Customization Example:
Pinescript:
// Modify in Signal Logic section
strongBuy = (fvgBull and fvgBullFilled) and (engulfingBull or hammer) // Add more patterns
________________________________________

Visual Customization
(Non-input but code-modifiable)
1. Support/Resistance Style:
o Change plot.style_circles to plot.style_line for solid lines
2. Signal Markers:
o Adjust size.large/size.small values
o Modify RGB colors in color.new(#00FF00, 0)
________________________________________
Optimization Guidelines
1. Gold/XAU-Specific Defaults:
o Works best with 15M-4H timeframes
o Default ATR multipliers calibrated for 10-20 pip volatility
2. Equities/Forex Adaptation:
o Reduce ATR multipliers for lower volatility assets
o Increase volume thresholds for liquid markets
________________________________________
Unique Features
• Anti-Repainting S/R: Uses confirmed historical pivots
• Adaptive FVG Tracking: Gap fills expire after 5 bars
• Tiered Signals: Differentiates conviction levels via size/color
This system allows deep customization while maintaining a structured approach to balancing trend, momentum, and risk. Defaults are optimized for trending commodities but can be adapted to any market via the modular input system.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.