TradeJS strategy plugin providing Dragon.
Dragon detects a rare four-pivot reversal pattern in both directions:
headstarts the directional move;front footends its first impulse;humpretraces 30–50% of the head-to-front-foot height;rear footis 10–15% of that height closer to the head than the front foot;- an entry becomes eligible when price closes through the projected head-to-hump trendline.
The bullish form uses high → low → lower high → higher low and enters long
above a descending trendline. The bearish form is its exact mirror.
The illustrations are schematic. Defaults use wick pivots, a two-bar confirmed fractal, a 100% measured-move target from the confirmed break, and a stop 10% of pattern height beyond the rear foot. Every tolerance is explicit in the strategy config so research can change geometry without changing detector code.
yarn add @tradejs/strategy-dragonRegister the package in tradejs.config.ts:
import { defineConfig } from "@tradejs/core/config";
export default defineConfig({
strategies: ["@tradejs/strategy-dragon"],
});The package exports strategyEntries, the Dragon strategy definition,
manifest, default config, and AI adapter.
yarn install --immutable
yarn checksPublishing is beta-first and delegated to the pinned
TradeJS-Workflows@v1 reusable workflow.
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, or Strategy Kit.