strategy-values

Document LivTorgEx strategy value expressions with JSON syntax mappings.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/LivTorgEx/strategy-skill --skill strategy-values
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategy-values
Source: https://github.com/LivTorgEx/strategy-skill/tree/main/skills/strategy-values
Command: npx skills add https://github.com/LivTorgEx/strategy-skill --skill strategy-values

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Strategy builders need a precise, error-free way to craft the JSON “value” expressions used in filters, conditions, and actions, and they often get stuck on which value types exist and what fields and return types they require.

Core Features & Use Cases

  • Comprehensive value type reference: Covers Float/Direction/String/Chart/OrderType return categories and shows the exact JSON shape for each value.
  • Practical building blocks for strategies: Documents how to combine literals, bot state, variables, indicators, positions, orders, arithmetic, and analysis-derived signals.
  • Ready-to-use expression patterns: Includes common constructs like Math, Pick, PriceMeasure, PercentageBetween, and real-time Analysis subtypes with properties.

Quick Start

Ask your AI to “use strategy-values to build valid JSON expressions for Indicator, Global, and Math for a TP/SL formula, returning only the final value JSON ready to paste into a LivTorgEx strategy.”

Frequently Asked Questions about strategy-values

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write JSON value expressions for trading bot strategy filters and conditions?

To build JSON value expressions for trading bot strategy filters, you must map specific value types—such as literals, indicator reads, and bot state globals—using a structured syntax that defines required fields and return types like Float, Direction, or String.

What value types are available when building real-time analysis signals for trading bots?

Available value types for real-time analysis signals include literals, bot state globals, variables, indicator reads, position and order reads, chart-level checks, and computed expressions, each returning specific categories like Float, Direction, or Chart.

How do I construct a TP/SL formula using Math and Indicator values in a strategy?

Constructing a TP/SL formula involves combining Math, Pick, and Indicator value types into a single computed JSON expression, ensuring each nested object specifies its required fields and return types for the strategy engine to parse.

Can I use bot state globals and variables in the same JSON expression for risk management?

Yes, you can combine bot state globals and variables within the same JSON expression for risk management, utilizing computed expressions to evaluate arithmetic and analysis-derived signals while returning valid Float or String data types.

Why do my strategy value expressions fail when optional indicator reads return None?

Strategy value expressions fail when optional indicator reads return None because the JSON schema requires safe usage notes, meaning you must implement guards for optional None results to prevent unexpected processing errors in your filters.

Does strategy-values support chart-level checks and order type reads for automated strategies?

Yes, strategy-values supports chart-level checks and order type reads by providing a complete reference for constructing JSON expressions, specifying the exact JSON shape required to execute these actions within automated trading strategies.