Skip to content

calesthio/OptionsCanvas

v0.1.6 Bugfix

This release fixes issues for SREs watching stability and regressions.

Published 8d Self-Hosted
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

0dte algorithmic-trading alpaca charting day-trading fintech
+9 more
flask lightweight-charts local-first options options-trading python self-hosted trading-platform vanilla-js

Summary

AI summary

Fixed dragging stop‑loss and take‑profit lines on open positions to update levels.

Changes in this release

Bugfix Medium

Enables DragHandles so trailing-stop SL/TP lines on open positions are draggable and functional.

Enables DragHandles so trailing-stop SL/TP lines on open positions are draggable and functional.

Source: llm_adapter@2026-05-29

Confidence: low

Full changelog

Fixes a regression where the SL/TP price lines on the chart for open positions were visually present but read-only — you couldn't trail your stops without closing and re-entering.

What's fixed

DragHandles (the chart layer that listens for clicks on horizontal price lines and drives the trailing-stop drag UX) was instantiated in main.js but never had .enable() called on it. A comment in the code explained the intent: the chart's order-panel pills had taken over SL/TP setup for new orders, so DragHandles was meant to be "kept available for existing-position management but disabled by default." The disabled-by-default part shipped; the re-enable for open positions did not.

Now DragHandles.enable() is called immediately after construction. The two systems coexist cleanly because DragHandles already scopes its pointerdown handler to ignore clicks inside .order-panel-on-chart (the pill container).

How trailing works now

  1. Open a position via the pill or hotkey
  2. Solid red SL line + solid green TP line appear on the chart at your levels
  3. Grab the solid line itself (not the pill) and drag to a new price
  4. A "Set Stop Loss: $X?" popup appears with Confirm / Cancel buttons
  5. Click Confirm within 10 seconds → backend updates, positions.stop_loss_price (or take_profit_price) in SQLite reflects the new level
  6. The check_stop_loss() / check_take_profit() loops use the new level on the very next poll

Server-side stop guarantee still holds — the trailed level lives in our local DB, the broker order book never sees it until breach.

How to upgrade

git pull
# refresh the browser tab — pure frontend change, no platform restart needed

Verified

  • window.DragHandles.enabled flips to true after refresh
  • Dragging the SL line on an open TSLA PUT shows the confirm popup → click Confirm → DB stop_loss_price reflects the new value
  • TP works identically (drag the green line)
  • New-order pill drag for SL/TP setup unchanged

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track calesthio/OptionsCanvas

Get notified when new releases ship.

Sign up free

About calesthio/OptionsCanvas

All releases →

Related context

Related tools

Earlier breaking changes

  • v0.1.1 External scripts must read and include the CSRF token in X-CSRF-Token header for POST/PUT/PATCH/DELETE calls.

Beta — feedback welcome: [email protected]