Skip to content

Releases: madiver/DASTraderScripts

0.3.1

26 Jan 17:42

Choose a tag to compare

0.3.1 (2026-01-26)

Highlights

  • Structured stop modes are fully integrated (validation, gating, and TP/stop distance reuse).
  • New micro ice breaker (MIB) entries for smaller probes.
  • Order routing is now configurable via a global and hotkeys.

Features

  • Add (FIXED/DYNAMIC/STRUCTURED) and explicit mode toggle scripts.
  • Structured stop validation (Chart_1m) with IB/MIB gating and TP/stop integration.
  • Micro ice breaker buy hotkeys (buy_mib_*) sized at 1/20 of base clip.
  • global for limit routes (default ARCAL) + hotkeys to switch ARCAL/FREEL.
  • Structured stop failure popups now show reason text.
  • Default structured stop buffer lowered to .01.
  • Non-blocking toggles/presets now use MsgLog.

Bug Fixes

  • BE stop scripts no longer gate on .

Cleanup / Changes

  • Removed daily loss guard, equity baseline hotkeys, and related UI/docs.

0.3.0

20 Jan 15:38

Choose a tag to compare

0.3.0 - 2026-01-20

Features

  • Track daily loss guard health via DAY_GUARD_OK and surface it in the config display.
  • Auto-unlock the daily loss guard when drawdown drops back below maxDailyLoss.
  • Add rehab mode toggle hotkey bound to Alt+Ctrl+Win+H.
  • Require typed YES confirmation to disable rehab mode.
  • Add rehab-specific take-profit sizing via $takeProfitSizeRehab (applied at trigger time in LIVE and SIM when $applyLiveGuardsToSim = 1).
  • Add live-only hijack protection that triggers GTFO, locks montages, and blocks new buys when position size exceeds max.
  • Add $applyLiveGuardsToSim to apply daily loss, hijack, and rehab guards in SIM.
  • Default $applyLiveGuardsToSim to 1 (guards apply in SIM).
  • Add toggle hotkey for $applyLiveGuardsToSim (Alt+Ctrl+Win+G).
  • Add timer re-arm tracking state (entryWatch, entryLastPos) to globals and config display.
  • Default $timerMode to 1 so timer-triggered hotkeys run in timer context by default.
  • Add single-position guard (default on) to block buys on a different symbol (script-tracked).
  • Add toggle hotkey for the single-position guard (Alt+Ctrl+Win+M).
  • Add $testMode to skip market-dependent checks and order sends for guard testing.
  • Add toggle hotkey for test mode (Alt+Ctrl+Win+T).
  • Add test daily loss guard toggle (Alt+Ctrl+Shift+Win+1).
  • Add test guard toggles for hijack, single-position, pending entry, and max position size (Alt+Ctrl+Shift+Win+2/3/4/5).
  • Restrict test mode and test toggles to SIM when enabling.
  • Set default maxPositionSize to 500 shares.

Bug Fixes

  • Bind session account from SIM/LIVE switch hotkeys to keep daily loss guard aligned with explicit mode switches.
  • Require a set session account for equity baseline scripts (no implicit SIM fallback).
  • Check PnL now resolves the session account and baseline internally instead of assuming pre-set variables.
  • Fix GTFO to read position from Primary_OE before sending the exit.
  • Fix TP executor symbol handoff and pass TP symbol to BE stop scripts.
  • Round BE 1/2 protect sizes to whole shares.
  • Guard position/primary entry utility scripts when windows are missing.
  • Define $tpSymbol and $pegToBid defaults for TP/BE handling.
  • Risk cap now uses net risk to the planned stop (including BE scale on adds) when sizing entries.
  • Block buy_25/buy_50 initial entries when dynamic stop mode is enabled (warns via MsgBox).
  • Cancel timed-out timer-based buy entries instead of leaving them working.
  • Re-arm stop/TP on timer ticks when position size increases after a fill.
  • Gate buy_25/buy_50 scale-ins on dynamic R when dynamicStop = 1 and dynamicStopActive = 1.
  • Cancel existing sell orders before timer-based re-arms on size increases.
  • Cancel pending buy orders when montage symbol changes during timer staging to avoid unprotected fills.
  • Clamp GTFO exit price to a valid tick and non-negative value when quotes are missing or low.
  • Block buys when no session account is set (enforces daily-loss guard setup).
  • Set and clear entryRefPx so stop fallbacks don't anchor to stale values.
  • Keep pending-entry blocking active while allowing the single-position guard to be disabled.
  • Move hijack exit enforcement into a dedicated hotkey (Hijack Exit) called by the timer to avoid timer script size limits and ensure timer-safe order sends.

Cleanup

  • Update README/USERGUIDE to highlight the user guide, hijack protection, and default globals.
  • Expand README/USERGUIDE quick start with constraints and VS Code extension settings.
  • Rename $highJackProtection to $hijackProtection.
  • Centralize global buy guards in Check Global Guards and expose $trade_ok.
  • Move the position window toggle hotkey to Alt+Ctrl+Win+P.
  • Add a key bindings section to USERGUIDE with Stream Deck guidance and unbound script notes.
  • Expand key binding descriptions for clarity and remove confusing wording in SIM/LIVE switch rows.