OPEN-SOURCE SCRIPT

Crownmark Allocation Engine [JOAT]

932
Crownmark Allocation Engine [JOAT]

Introduction

Crownmark Allocation Engine is an open-source TradingView strategy that integrates regime classification, adaptive trend corridors, auction-value context, pressure confirmation, divergence suppression, and ATR-based trade management into one non-repainting framework. Its purpose is not to maximize signal count. Its purpose is to require multiple independent layers to agree before risk is deployed.

The problem this strategy solves is overcommitting to one analytical dimension. Trend alone can be late. Pressure alone can be noisy. Divergence alone can fire too early. Auction context alone does not create an entry. Crownmark combines those ideas so that entries occur only when broader regime, local structure, value position, and internal participation are aligned.

스냅샷

Core Concepts

1. Regime Filter First

The strategy begins with a composite regime score built from fast/slow EMA displacement, ADX strength via `ta.dmi()`, efficiency, volatility expansion, and trend slope. If the regime is not sufficiently directional, the strategy does not permit an entry.

2. Adaptive Corridor Pullback Entry

Once regime bias is directional, price must also align with an adaptive KAMA-based corridor. Longs require bullish corridor structure and a pullback that remains constructive relative to the baseline and inner band. Shorts require the mirror condition on the downside.

3. Auction and VWAP Context

Price must be positioned acceptably relative to a rolling value area and rolling VWAP. This is intended to keep entries from triggering in structurally poor locations when the rest of the model is favorable.

4. Pressure Confirmation and Divergence Guard

The strategy uses an effort-versus-result style pressure model to require directional initiative at the moment of entry. It also suppresses entries when recent confirmed divergence argues against the trade direction.

5. Managed Exits

Open positions use ATR-based stop loss and take profit levels, plus a trailing logic anchored to the adaptive baseline. Positions can also be closed by context failure, by opposite signal, or by maximum bar duration in trade.

Features

  • Composite regime filter: Trend, ADX, volatility, slope, and efficiency must support the direction
  • Adaptive corridor entries: Uses a KAMA baseline with hybrid ATR/stdev width
  • Auction location filter: Requires acceptable relation to rolling value area and VWAP
  • Pressure confirmation: Requires directional effort-versus-result support
  • Divergence suppression: Recent opposing divergence can block new entries
  • ATR-based risk management: Stop, target, and trailing logic
  • Context exits: Positions can flatten when regime or pressure collapses
  • Dashboard summary: Regime, corridor, auction, pressure, divergence, exposure, and regime score


Default Strategy Properties

  • Initial Capital: 100000
  • Order Size: 10% of equity
  • Pyramiding: 0
  • Commission: 0.01%
  • Order Processing: on close
  • calc_on_every_tick: false


Input Parameters

Regime Engine:
  • Fast/Slow regime lengths
  • ADX length
  • Volatility length
  • Efficiency length
  • Bull and bear regime thresholds


Trend Corridor:
  • Baseline length
  • KAMA fast and slow parameters
  • Width length
  • Width multiplier
  • Pullback tolerance


Auction Context:
  • Auction lookback
  • Value area width
  • Auction acceptance toggle
  • VWAP alignment toggle


Risk Management:
  • ATR length
  • Stop ATR multiple
  • Target ATR multiple
  • Trail ATR multiple
  • Maximum bars in trade
  • Flatten on opposite signal toggle


How to Use This Strategy

Step 1: Verify the Market Type
If the regime score is near balance, the strategy is intentionally selective. Crownmark is designed for directional conditions more than rotational ones.

Step 2: Let the Entry Layers Stack
An entry requires regime, corridor, auction, pressure, and divergence conditions to agree. If one layer is missing, the strategy waits.

Step 3: Respect the Exit Logic
The strategy uses both price-based and context-based exits. A position can close because the stop or target was reached, but it can also close because the original trade thesis has weakened.

Step 4: Review Results in Context
Do not evaluate the strategy by win rate alone. Regime selectivity, trade duration, average excursion, commission sensitivity, and the instrument being tested all matter.

Strategy Limitations

  • This strategy uses bar-close logic and does not replicate intrabar execution behavior
  • The rolling auction model is a simplified proxy and not a full market profile engine
  • Divergence suppression can skip trades that later work, by design
  • Different assets and timeframes may require threshold tuning to remain realistic


Originality Statement

Crownmark Allocation Engine is original in how it combines regime scoring, corridor structure, auction-value location, pressure confirmation, and divergence suppression into one coordinated execution model. The strategy is not a basic trend-following template with cosmetic additions. Each layer has a distinct analytical role, and entries are only allowed when those layers support one another.

Disclaimer

This strategy is provided for educational and informational purposes only. It is not financial advice and does not imply future performance. Backtest results depend heavily on instrument, timeframe, execution assumptions, and historical conditions. Use realistic expectations, confirm settings carefully, and apply sound risk management.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.