<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Juni Labs</title>
    <description>The latest articles on DEV Community by Juni Labs (@juni_labs_f866de94df).</description>
    <link>https://dev.to/juni_labs_f866de94df</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260066%2Fbe70ec3e-3af9-4db1-8432-5d24dc46dcff.png</url>
      <title>DEV Community: Juni Labs</title>
      <link>https://dev.to/juni_labs_f866de94df</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/juni_labs_f866de94df"/>
    <language>en</language>
    <item>
      <title>Most trend labels should say nothing</title>
      <dc:creator>Juni Labs</dc:creator>
      <pubDate>Mon, 23 Nov 2026 08:30:12 +0000</pubDate>
      <link>https://dev.to/juni_labs_f866de94df/most-trend-labels-should-say-nothing-3man</link>
      <guid>https://dev.to/juni_labs_f866de94df/most-trend-labels-should-say-nothing-3man</guid>
      <description>&lt;p&gt;Every price page I open has a small arrow next to the ticker, green or red, with a&lt;br&gt;
percentage beside it. The arrow is always sure of itself, even when the chart behind it is&lt;br&gt;
a mess, and the reason is simple enough. It compares two prices, today's and the one from&lt;br&gt;
some weeks back, and the shape in between never enters the maths.&lt;/p&gt;

&lt;p&gt;I wanted a badge that only speaks when the shape earns it. So I built one. It's a small&lt;br&gt;
web component: one script tag on the page, one tag per asset, and it draws the last three&lt;br&gt;
months of prices with a single word on top. Bullish, bearish, or neutral. The word I care&lt;br&gt;
about is the third one.&lt;/p&gt;

&lt;p&gt;It takes 63 daily closes, about three months, and scores the shape of them: how steady the&lt;br&gt;
move was, how straight the path was, how far it wandered on the way, and where the latest&lt;br&gt;
close sits inside its own range. Then it asks the question you'd ask of any measurement.&lt;br&gt;
Is this move bigger than the noise it's sitting in? A move has to be large and steady at&lt;br&gt;
once. Clear one of those and fail the other, and the label stays neutral.&lt;/p&gt;

&lt;p&gt;Most windows come back neutral. That's the design, not a lazy threshold. Three months of a&lt;br&gt;
normal stock is mostly noise, and noise is exactly what the test is built to catch. A&lt;br&gt;
badge that says bullish every time today's price is higher than the price in August tells&lt;br&gt;
you nothing you couldn't read off the chart in two seconds. It just dresses that up as a&lt;br&gt;
judgement, and the shape gets a verdict it didn't earn.&lt;/p&gt;

&lt;p&gt;So a lot of assets get nothing.&lt;/p&gt;

&lt;p&gt;The honest answer, for a great many instruments, is that there's no clear trend to report,&lt;br&gt;
and the card says so in a plain word rather than inventing one.&lt;/p&gt;

&lt;p&gt;Some people will find that useless, and they're not wrong for their own style. If you&lt;br&gt;
trade weekly swings you don't need a three month verdict, and this isn't for you. But if&lt;br&gt;
you run a fund page or a monthly note to clients, a badge that admits when nothing is&lt;br&gt;
happening saves you the awkward job of explaining a green arrow on a chart that plainly&lt;br&gt;
went sideways.&lt;/p&gt;

&lt;p&gt;It isn't a forecast either. It labels prices that already happened. Nothing in it predicts&lt;br&gt;
the next three months. Every card prints a short line saying that, because these cards get&lt;br&gt;
screenshotted out of context and dropped somewhere the surrounding sentence is gone.&lt;/p&gt;

&lt;p&gt;There's no market data inside it either, on purpose. The tag points at prices you already&lt;br&gt;
have, as JSON, CSV, a plain list of numbers, or data you hand it from JavaScript, so you&lt;br&gt;
keep whatever source you already trust and whatever rights you already have to show it.&lt;br&gt;
The file is 42 KB with no dependencies.&lt;/p&gt;

&lt;p&gt;The rest of it is ordinary component work. Light and dark that follows the visitor,&lt;br&gt;
colours and font and corners you can set in CSS, &lt;code&gt;::part()&lt;/code&gt; when you need to reach further,&lt;br&gt;
any currency, a price readout on hover or touch, and an optional refresh that re-reads your&lt;br&gt;
price file on a timer.&lt;/p&gt;

&lt;p&gt;One file was the point. Most charting libraries want a framework and a build step before&lt;br&gt;
you draw anything, and a price card shouldn't cost that. One file plus one tag runs on a&lt;br&gt;
static host with no server at all, which is where a lot of small finance sites actually&lt;br&gt;
live.&lt;/p&gt;

&lt;p&gt;The price is $15.20, once, for unlimited sites of your own and client sites too, as long&lt;br&gt;
as you don't resell the widget itself.&lt;/p&gt;

&lt;p&gt;It's a small thing. But a label that knows when to shut up beats one that's always&lt;br&gt;
talking, and working out when to shut up turned out to be most of the work.&lt;/p&gt;

&lt;p&gt;If you want the version that is already a component rather than a porting job, it is here: &lt;a href="https://juniverse8031.gumroad.com/l/trend-badge?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=trend-badge-v1" rel="noopener noreferrer"&gt;https://juniverse8031.gumroad.com/l/trend-badge?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=trend-badge-v1&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>investing</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
