Skip to content

Build1 publisher2 min readPublished

A crypto risk engine answers a 20 percent win rate by scaling the trade to 0.7

A dev.to post publishes the decision payload for a 90-score NEARUSDT short that passes with position_scale 0.7 and a 10 percent tighter stop, while a log line from the same system shows the entry threshold sliding from 80 to 70.

The Engineer · Build desk

What happened

  • A dev.to post walks through a quantitative crypto engine that scored a NEARUSDT short at 90 out of 100 and sent it to the risk module for a ruling.
  • The risk module found two same-direction stop-outs on NEAR inside 48 hours and a sub-account win rate of 20 percent, one win in the last five trades.
  • The engine returned position_scale 0.7 and stop_tighten_pct 10, a position 30 percent smaller with the stop-loss tightened by 10 percent.
  • The same published payload records an advisor_score_delta of -3, a confidence of 0.65, and a final_ruling of PROCEED.
  • A log line dated 2026-09-18 shows the scoring engine dropping its elastic threshold from 80 to 70 after a counter named consecutive_veto reached 58.

Compiled by The EngineerSomething wrong?How this is made

Why it matters

  • cost Every gray-scale pass gives up 30 percent of the size on a signal the model rated 90, and that cost falls hardest on the trades the signal got right.
  • constraint Scaling substitutes for a veto only where exposure is continuous and loss is proportional to size; a gate in front of a schema migration or a physical interlock has no 0.7 setting.
  • capability The ruling carries its reasoning and its scale in the same record, so a review can ask why the discount was 0.7 and not 0.5.

Cutting size to 0.7 shrinks wins and losses in equal measure. Tightening the stop by 10 percent only shrinks the loss. Multiply the two and the worst case lands at 0.63 of what the full-size trade with the original stop would have lost, while 0.70 of the upside stays on the book [16]. A binary gate would have taken both to zero [3].

For 0.63 to be the real number, the tighter stop has to be hit no more often than the loose one. A stop 10 percent closer to entry is easier to reach, and the post itself describes crypto markets as "highly noisy and non-stationary" [10]. Anyone copying the 0.7 would need stop-out rates at both distances, measured on their own fills, before the 63 percent transfers.

The score does not pass through untouched. An advisor_score_delta of -3 takes the 90 to 87 [17]. If the entry threshold in the logs is the same 80, the penalty does not move the signal to the other side of it [18].

What makes the discount defensible here is what the gate was measuring. It fired on two stop-outs and one win in five, an outcome count over five trades [2]. The post's position is that such a run "might just be short-term volatility, liquidity hunts, or minor market regime shifts" and not a breakdown of core alpha [13].

One line of the published log records original=80 and floor=60 alongside the drop [9]. I would keep that floor. A threshold that decays every time a signal is blocked and has no lower bound reaches zero. Two controls in this system now loosen in the same direction: risk converts a veto into a smaller position [5], and scoring lowers the bar a signal has to clear before risk ever sees it [9]. The post presents one sanitized payload and two log lines, with no backtest, so the joint effect of the two is unmeasured [15]. The authors' own framing is that they are open-sourcing a thought process [14].

A risk module that records why it let a trade through leaves better notes than most deploy gates. The post's translation of the reason field reads, in part, "proceeding with 'position reduction + slight stop-loss tightening', not vetoing high-score system signal due to single trade results, nor is there a better SWITCH target" [8]. The alternatives array is empty [7].

What to watch

  • A backtest comparing the veto path and the gray-scale path over the same signal set would test the expected-value claim the post asserts.
  • Whether the floor of 60 holds under a longer veto streak, or whether the floor itself becomes adaptive.
  • Whether code accompanies the thought process the authors say they are open-sourcing, including the scaling function and the rule that increments consecutive_veto.
Loading claim ledger
Loading source directory links
Loading share composer
Loading topic controls
Loading related stories