PulseHub
PINE LIBRARY

SMCNexusScoringCoreV2

25
SMCNexusScoringCoreV2 is an open-source, non-visual Pine Script library that calculates a deterministic Smart Money Concepts evidence score from market facts supplied by an importing indicator.

The library does not independently read chart state, request other timeframes, generate trading signals, place orders or draw chart objects. Its purpose is to separate the scoring calculation from detection and presentation code, making every component reusable and independently auditable.

ORIGINAL CONCEPT AND PURPOSE

The library combines twelve bounded Smart Money Concepts evidence components into one normalized 0–100 result while retaining each individual component in the returned ScoreResult record.

It also provides optional event-age decay for selected structural evidence. This prevents an old BOS, CHoCH, MSS or liquidity sweep from retaining the same influence indefinitely.

The importing indicator is responsible for detecting and confirming market events. This library receives those facts through typed parameters and performs deterministic calculations only. It does not infer missing events or substitute unknown data.

CALCULATION METHOD

The twelve components are:

1. Market Structure Shift
2. Break of Structure
3. Change of Character
4. Fair Value Gap
5. Order Block
6. Liquidity context
7. Liquidity sweep
8. Premium or Discount location
9. Volume state
10. Momentum state
11. Local Smart Money context
12. Primary trend

Each component contributes a bounded value based on the supplied state. The component total is divided by twelve and normalized to a value from 0 to 100.

The resulting descriptive classes are:

• VERY WEAK
• WEAK
• NEUTRAL
• STRONG
• ELITE

These classes describe the supplied analytical evidence. They are not trading recommendations and do not predict future performance.

AGE DECAY

When age decay is enabled, the selected structural and sweep components use a linear age factor.

The factor:

• remains at 1.0 until the configured full-strength age,
• decreases linearly between the full-strength and zero-strength ages,
• reaches 0.0 at or beyond the configured zero-strength age.

If the supplied age window is invalid, the calculation fails safely to full strength instead of producing a negative or undefined weight.

PUBLIC API

ScoreResult

The returned record contains:

• all twelve effective components,
• effective MSS age factor,
• effective BOS/CHoCH age factor,
• effective sweep age factor,
• component total,
• normalized score,
• descriptive class,
• compact text representation.

calculate(...)

This function accepts typed, confirmed market facts and returns one ScoreResult record.

INTENDED USE

An importing indicator should:

1. Detect and confirm its own market-structure events.
2. Determine its current FVG, Order Block, liquidity, volume, momentum and trend states.
3. Pass those facts to calculate().
4. Read the normalized result or inspect the individual returned components for a complete breakdown.

Conceptual example:

```pine
import AreXoN_/SMCNexusScoringCoreV2/1 as scoring

scoring.ScoreResult result = scoring.calculate(
scoringEnabled,
ageDecayEnabled,
bar_index,
lastMssBar,
lastBreakBar,
lastSweepBar,
structureFullStrengthBars,
structureZeroStrengthBars,
sweepFullStrengthBars,
sweepZeroStrengthBars,
mssDirection,
breakType,
breakDirection,
fvgType,
fvgMitigated,
obType,
obMitigated,
liquidityContext,
sweepType,
premiumDiscountZone,
volumeState,
momentumState,
smartMoneyState,
primaryTrendState)
```

The example import path should be replaced with the exact path assigned by PulseWire after publication.

WHY THE CHART IS CLEAN

This is a non-visual calculation library. It intentionally creates no plots, labels, tables, lines or boxes. Visual output is the responsibility of an importing indicator.

The publication chart is therefore intentionally clean and contains no additional indicators or unexplained drawings.

LIMITATIONS

• Output quality depends on the facts supplied by the importing indicator.
• The library does not independently verify market events.
• It does not provide native bid/ask order flow or broker execution data.
• It does not account for spread, slippage or broker restrictions.
• It does not place, modify or close orders.
• It produces no chart output by itself.
• A score or class is not a guarantee of future market behavior.

This library is an analytical and software-development component. It is not investment advice or an automated trading system.

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 PulseWire. Read more in the Terms of Use.