@tradejs/strategy-five-zero
v0.1.2
Published
Bullish and bearish FiveZero harmonic reversal strategy with XABCD geometry for TradeJS.
Maintainers
Readme
@tradejs/strategy-five-zero
TradeJS strategy plugin providing FiveZero.
Strategy overview
FiveZero detects the bullish and bearish forms of the five-pivot XABCD
harmonic reversal pattern. The detector uses confirmed wick pivots and requires
all three geometric relationships at the same time:
AB / XAis between1.13and1.618;BC / ABis between1.618and2.24;CD / BCis near0.50, with a default accepted range of0.45–0.55.
The bullish form is low → high → lower low → higher high → low across
X → A → B → C → D and enters long after D is confirmed. The bearish form
is its exact mirror and enters short. These ratios follow the published
5-0 pattern definition.
Signal geometry
The illustrations are schematic. Defaults use a two-bar confirmed fractal,
target point C, place the stop 10% of CD beyond D, require at least one
ATR of BC pattern height, and reject an entry after the initial reaction has
moved more than 80% of CD. Every tolerance is explicit in the strategy config
so research can change geometry without changing detector code.
Install
yarn add @tradejs/strategy-five-zeroRegister the package in tradejs.config.ts:
import { defineConfig } from "@tradejs/core/config";
export default defineConfig({
strategies: ["@tradejs/strategy-five-zero"],
});The package exports strategyEntries, the FiveZero strategy definition,
manifest, default config, and AI adapter.
Development
yarn install --immutable
yarn checksPublishing is beta-first and delegated to the pinned
TradeJS-Workflows@v1 reusable workflow.
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.
