Skip to content

Repository files navigation

@tradejs/strategy-structure-zones

TradeJS strategy plugin providing StructureZones.

Strategy overview

StructureZones derives support and resistance zones from significant pivot swings, waits for acceptance, and trades either reactions or structural transition breakouts. Bias, candle body, zone age and touch, volatility, and reaction-distance rules keep entries causal and replayable.

Logic at a glance

StructureZones strategy logic

Signal on an example chart

A significant swing first becomes an accepted support zone; the later qualified reaction, rather than the original pivot, produces the replayable entry.

StructureZones signal on an illustrative ticker chart

The illustration is schematic, not market data. Exact thresholds, confirmation rules, and risk parameters come from the active TradeJS strategy config.

Install

yarn add @tradejs/strategy-structure-zones

Register the package in tradejs.config.ts:

import { defineConfig } from "@tradejs/core/config";

export default defineConfig({
  strategies: ["@tradejs/strategy-structure-zones"],
});

The package exports strategyEntries for the TradeJS plugin loader together with its strategy definitions, manifests, default configs, and public AI/ML adapters. Strategy implementation changes are released from this repository, independently of the TradeJS engine.

Transition-breakout-only mode

Set STRUCTURE_ZONES_TRANSITION_BREAKOUT_ONLY: true to suppress support and resistance reactions and emit only accepted structural breakouts while the market state is Transition. The default is false, which preserves the existing reaction and configured transition-breakout behavior.

Development

yarn install --immutable
yarn checks

Publishing is beta-first and delegated to the pinned TradeJS-Workflows@v1 reusable workflow. A relevant push publishes a unique prerelease and moves the npm beta tag only after the repository checks pass and the published tarball imports successfully in a clean npm consumer. The current verified beta is promoted to one stable latest release by the weekly automation; production never consumes prereleases.

Keywords: ai, claude, codex.

Runtime host contract

All @tradejs/* runtime packages are peer dependencies. The consuming TradeJS Project owns their exact installed versions and package manifest, so this package never loads a hidden nested engine, types package, indicator package, or Strategy Kit. Repository builds use matching dev dependencies only.

About

StructureZones strategy plugin for TradeJS.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages