Indicators (KPI) and AI formula writing
This reference lists the calculator names accepted by the strategy editor, their meaning, units and missing-data behavior. These trading indicators (KPI) describe market observations or a Plan position; they are not forecasts. The table and the AI clipboard guide are built from the same current catalog as the Strategies page.
Ask AI to write your strategy
- Click Copy for AI below. Paste the complete catalog and formula guide into your preferred AI chat.
- Describe what you want: the asset class, BUY/SELL or CONVERT, trading horizon, entry conditions, profit protection and acceptable loss. Ask for separate BUY, SELL and STOPLOSS formulas using only catalog names and supported operators. Specify what should happen in bull, sideways and bear markets.
- Paste the returned formulas into Strategies, in the corresponding fields. Use the formula validator and review the explanations. LOT size, cooldown, capital allocation and the policy enabling StopLoss are separate Plan settings.
- Backtest the rules over several market conditions before enabling LIVE execution. A syntactically valid formula is not proof of profitability.
Example request: “Create an intraday BUY/SELL strategy that requires upward price confirmation, uses VolumeScore and TradesScore as participation filters, treats missing activity data as neutral, uses AI-NewsScore only as optional confirmation, and protects gains after a pullback. Explain every condition and distinguish bull, sideways and bear regimes. Use only the supplied catalog and operators.”
Get help in Telegram
Visit CoinRobot.AI on Telegram and describe the strategy you would like. The AI assistant can help turn your requirements into formulas. You can also start a private conversation with the group's AI assistant to discuss the details; say that you want help writing a CoinRobot strategy and include the copied catalog.
Read the values correctly
1m-10 = 0.20means a +0.20% change over ten minutes, not +20%. ATR uses price units; NATR uses percent.5m-VolumeScoreand5m-TradesScore: 5 is baseline activity and 10 is at least double under default settings. More activity can accompany selling; combine it with price direction. TradesScore counts exchange executions, not this Plan's trades;TradeCountis the Plan counter.AI-NewsScoreis signed: negative values are adverse, positive values supportive, and 0 is neutral or no usable news. News effects fade and expire.- A measured zero is different from missing
null. To skip only an unavailable activity filter, use(5m-VolumeScore = null OR 5m-VolumeScore >= 5), and the equivalent for TradesScore, together with the other entry conditions. - Position-state values such as
LastBuyPrice,ProfitSinceBuyPctandDrawdownFromHighPctdepend on the Plan's actual position. A strategy-only preview has no real purchase price. Group mixed AND/OR conditions with parentheses.
Full indicator catalog
CoinRobot.AI - Available calculators and formula writing guide
CoinRobot.AI - Available calculators and formula writing guide Paste this text into an AI assistant (for example ChatGPT) so it can help write BUY, SELL, and STOPLOSS formulas for the CoinRobot.AI robot from your own trading rules. Formula rules: - Use the calculator names from the Short name column below exactly as written in formulas. - Allowed logical, comparison, and mathematical operators: AND, OR, &&, ||, <, >, <=, >=, =, ==, !=, *, /, +, (, ). - Each BUY, SELL, and STOPLOSS formula must return a TRUE/FALSE logical result. - BUY opens a position, SELL closes a position, and STOPLOSS triggers protective loss-closing when its formula is true. Example formula: BUY: 1m-RSI < 30 AND CurrentPrice > 1d-SMA-200 SELL: 1m-RSI > 70 OR CurrentPrice < 1d-SMA-200 STOPLOSS: CurrentPrice <= LastBuyPrice * 0.97 Suggested AI request: Using the rules above and the calculator table below, please write a CoinRobot.AI BUY, SELL, and STOPLOSS formula for me. My goal is: [describe your strategy, risk tolerance, timeframe, and entry/exit conditions here]. Use only the calculator short names and operators listed below, then briefly explain the formulas. Calculator table:
| Short name | Category | Description | Value set | Calculation | Research semantics |
|---|---|---|---|---|---|
| 5m-VolumeScore | Volume | Universal activity confirmation, 0..10, with optional measured taker adjustment. | 0..10 (normal activity: 5 by default) | Relative measured base/share volume with optional measured taker correction. | 5m · score · [0, 10] · Last closed 5m base/share volume / mean of the preceding 20 closed trading bars. Declared session closures may be crossed; intraday gaps remain unavailable. Multiply this ratio by 10/2; optionally multiply by 1 + 0.2*(2*taker-buy share-1), then clamp to 0..10. Missing taker data is neutral; missing volume or a zero baseline is unavailable. At default settings normal activity scores 5, double activity 10. This is not a directional price forecast; exchange/feed coverage can differ. Missing volume stays null. An explicit (5m-VolumeScore = null OR (volume conditions)) can skip only the volume filter; measured zero is not null. Latest values have no wall-clock expiry; historical values are selected at the requested time. · Missing volume remains null. Use (5m-VolumeScore = null OR (volume conditions)) to decide from other indicators when unavailable. Measured zero follows numeric thresholds. No fabricated five or wall-clock expiry. |
| 5m-TradesScore | Volume | Exchange execution-count participation, independent of VolumeScore and the Plan TradeCount. | 0..10 (5 = normal execution-count activity; 10 = at least double by default) | Relative measured exchange execution count; no volume or taker adjustment. | 5m · score · [0, 10] · Last fully closed 5m exchange trade_count / mean trade_count of the previous 20 closed 5m trading candles (100 trading minutes), multiplied by 10/2, clamped to 0..10. Default 5 means the baseline average, 10 at least double. No taker/volume correction. Counts executions, not unique traders or the Plan own trades. Binance supplies shared crypto counts; Alpaca supplies its own feed counts. Requires integer counts, positive baseline and consistent feed/session continuity. Missing counts stay null; measured zero stays zero. No wall-clock expiry; latest/history selection works like RSI/EMA. A high score means above-baseline activity, not necessarily growth versus the immediately preceding bar or upward price direction. · Missing execution counts stay null. Use (5m-TradesScore = null OR (conditions)) on BUY and SELL to skip only the count threshold when unavailable. The other conditions still apply; measured zero is not null and must pass numeric thresholds. No invented neutral score. |
| AI-NewsScore | News | Optional signed news confirmation: -10 adverse, 0 no usable net confirmation, +10 strongly supportive. | -10..10 (0 = no usable net confirmation) | Confidence- and freshness-weighted direction minus event risk. | score · [-10, 10] · Average nonzero confidence-bearing event direction * confidence * publication-age decay, clamp direction to -100..100, multiply by 1, subtract the largest confidence-weighted event risk * 1, divide by 10 and clamp to -10..10. Half-life is 0.5 of the event horizon; unresolved high-risk incidents retain their penalty and cap the score at that negative penalty. Missing, expired or unassessed news defaults to 0 so trading may continue. Zero is no usable net confirmation, not evidence of safety. Use as an entry-quality modifier, not a mandatory positive signal. · Unavailable news defaults to neutral zero; it does not disable the technical entry path. Zero is not evidence of safety. |
| BuyHoldBenchmark | Position-state | Plan return minus the return of the run-scoped equal-weight buy-and-hold basket. Positive values mean the Plan outperformed HODL. | percent or null until all selected symbols have valid prices | PlanReturnPct - EqualWeightSelectedBasketReturnPct. | raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-2 | Momentum | Relative change versus the open price 2 minutes ago using 1-minute data. | percent change | (current - open_2m) / open_2m * 100 | 1m · percent · (CurrentPrice / open price N minutes ago - 1)*100, using 1-minute candles. For example 0.20 means +0.20%, not +20%. It measures past momentum, not a forecast. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-10 | Momentum | Relative change versus the open price 10 minutes ago using 1-minute data. | percent change | (current - open_10m) / open_10m * 100 | 1m · percent · (CurrentPrice / open price N minutes ago - 1)*100, using 1-minute candles. For example 0.20 means +0.20%, not +20%. It measures past momentum, not a forecast. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-20 | Momentum | Relative change versus the open price 20 minutes ago using 1-minute data. | percent change | (current - open_20m) / open_20m * 100 | 1m · percent · (CurrentPrice / open price N minutes ago - 1)*100, using 1-minute candles. For example 0.20 means +0.20%, not +20%. It measures past momentum, not a forecast. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| action | Market | Action signal derived from the last 2/10/20 minute changes. | BUY / SELL / WAIT | Rules based on 2m/10m/20m relative change thresholds. | state · [buy, sell, wait] · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-RSI | Momentum | 20-period Wilder RSI calculated on 1-minute closes. | 0-100 | Wilder RSI(20) using smoothed average gains/losses over 1-minute close prices. | 1m · index · [0, 100] · 20-period Wilder RSI, 0..100. RSI is the level; RSI-trend is the direction. Low RSI can be rising and high RSI can be falling. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-RSI-trend | Trend | Direction of RSI, independent of its absolute level. Lookback and minimum change are in the shared definition. | buy / sell / neutral | Net RSI change over the configured lookback, with confirmation by the latest RSI step; small or conflicting moves are neutral. | 1m · state · Direction of Wilder RSI(20) over 3 intervals: buy for a net rise of at least 1 RSI points and a positive latest step; sell for a net fall of at least 1 points and a negative latest step; otherwise neutral. Requires lookback+1 RSI observations. Independent of absolute RSI level; insufficient data is unavailable. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-RSI | Momentum | 20-period Wilder RSI calculated on 5-minute closes. | 0-100 | Wilder RSI(20) using smoothed average gains/losses over 5-minute close prices. | 5m · index · [0, 100] · 20-period Wilder RSI, 0..100. RSI is the level; RSI-trend is the direction. Low RSI can be rising and high RSI can be falling. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-RSI-trend | Trend | Direction of RSI, independent of its absolute level. Lookback and minimum change are in the shared definition. | buy / sell / neutral | Net RSI change over the configured lookback, with confirmation by the latest RSI step; small or conflicting moves are neutral. | 5m · state · Direction of Wilder RSI(20) over 3 intervals: buy for a net rise of at least 1 RSI points and a positive latest step; sell for a net fall of at least 1 points and a negative latest step; otherwise neutral. Requires lookback+1 RSI observations. Independent of absolute RSI level; insufficient data is unavailable. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-RSI | Momentum | 20-period Wilder RSI calculated on 1-day closes. | 0-100 | Wilder RSI(20) using smoothed average gains/losses over 1-day close prices. | 1d · index · [0, 100] · 20-period Wilder RSI, 0..100. RSI is the level; RSI-trend is the direction. Low RSI can be rising and high RSI can be falling. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-RSI-trend | Trend | Direction of RSI, independent of its absolute level. Lookback and minimum change are in the shared definition. | buy / sell / neutral | Net RSI change over the configured lookback, with confirmation by the latest RSI step; small or conflicting moves are neutral. | 1d · state · Direction of Wilder RSI(20) over 3 intervals: buy for a net rise of at least 1 RSI points and a positive latest step; sell for a net fall of at least 1 points and a negative latest step; otherwise neutral. Requires lookback+1 RSI observations. Independent of absolute RSI level; insufficient data is unavailable. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-ATR-EMA-14 | Volatility | 14-period Average True Range (EMA) on 1-minute candles. | price range | EMA(14) of True Range using high/low and previous close on 1-minute candles. | 1m · price · Average True Range with the named timeframe/smoothing, in quote-price units. This is not a percentage; NATR is its normalized counterpart. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-ATR-EMA-14 | Volatility | 14-period Average True Range (EMA) on 5-minute candles. | price range | EMA(14) of True Range using high/low and previous close on 5-minute candles. | 5m · price · Average True Range with the named timeframe/smoothing, in quote-price units. This is not a percentage; NATR is its normalized counterpart. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-NATR-EMA-14 | Volatility | 14-period normalized ATR on 1-minute candles (ATR / current price * 100). | percent | 1m-ATR-EMA-14 / CurrentPrice * 100. | 1m · percent · ATR of the named smoothing method/timeframe divided by current price *100. Wilder and EMA smoothings differ. Ratios compare volatility, not direction. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-ATR-Wilder-14 | Volatility | 14-period ATR using Wilder smoothing on 1-minute candles. | price range | Wilder ATR(14) of True Range on 1-minute candles. | 1m · price · Average True Range with the named timeframe/smoothing, in quote-price units. This is not a percentage; NATR is its normalized counterpart. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-ATR-Wilder-14 | Volatility | 14-period ATR using Wilder smoothing on 5-minute candles. | price range | Wilder ATR(14) of True Range on 5-minute candles. | 5m · price · Average True Range with the named timeframe/smoothing, in quote-price units. This is not a percentage; NATR is its normalized counterpart. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-ATR-EMA-14 | Volatility | 14-period ATR using EMA smoothing on 1-day candles. | price range | EMA ATR(14) of True Range on 1-day candles. | 1d · price · Average True Range with the named timeframe/smoothing, in quote-price units. This is not a percentage; NATR is its normalized counterpart. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-ATR-Wilder-14 | Volatility | 14-period ATR using Wilder smoothing on 1-day candles. | price range | Wilder ATR(14) of True Range on 1-day candles. | 1d · price · Average True Range with the named timeframe/smoothing, in quote-price units. This is not a percentage; NATR is its normalized counterpart. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-NATR-Wilder-14 | Volatility | Normalized Wilder ATR(14) on 1-minute candles. | percent | 1m-ATR-Wilder-14 / CurrentPrice * 100. | 1m · percent · ATR of the named smoothing method/timeframe divided by current price *100. Wilder and EMA smoothings differ. Ratios compare volatility, not direction. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-NATR-EMA-14 | Volatility | Normalized EMA ATR(14) on 5-minute candles. | percent | 5m-ATR-EMA-14 / CurrentPrice * 100. | 5m · percent · ATR of the named smoothing method/timeframe divided by current price *100. Wilder and EMA smoothings differ. Ratios compare volatility, not direction. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-NATR-Wilder-14 | Volatility | Normalized Wilder ATR(14) on 5-minute candles. | percent | 5m-ATR-Wilder-14 / CurrentPrice * 100. | 5m · percent · ATR of the named smoothing method/timeframe divided by current price *100. Wilder and EMA smoothings differ. Ratios compare volatility, not direction. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-NATR-EMA-14 | Volatility | Normalized EMA ATR(14) on 1-day candles. | percent | 1d-ATR-EMA-14 / CurrentPrice * 100. | 1d · percent · ATR of the named smoothing method/timeframe divided by current price *100. Wilder and EMA smoothings differ. Ratios compare volatility, not direction. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-NATR-Wilder-14 | Volatility | Normalized Wilder ATR(14) on 1-day candles. | percent | 1d-ATR-Wilder-14 / CurrentPrice * 100. | 1d · percent · ATR of the named smoothing method/timeframe divided by current price *100. Wilder and EMA smoothings differ. Ratios compare volatility, not direction. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| TradeCount | Position-state | Number of executed trades for the symbol since plan start. | integer (0+) | Starts at 0 and increments by 1 after each successful BUY or SELL execution. | raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| TimeSinceLastBuyMin | Position-state | Minutes elapsed since the last executed BUY. | minutes or null | floor((now - last BUY timestamp) / 60), null if no BUY yet. | raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| BarsSinceLastBuy-1m | Position-state | Elapsed 1-minute bars since the last BUY. | bars or null | Whole minutes since last BUY, null if no BUY yet. | raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| TimeSinceLastSellMin | Position-state | Minutes elapsed since the last executed SELL. | minutes or null | floor((now - last SELL timestamp) / 60), null if no SELL yet. | raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| BarsSinceLastSell-1m | Position-state | Elapsed 1-minute bars since the last SELL. | bars or null | Whole minutes since last SELL, null if no SELL yet. | raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-MACD | Trend | MACD line on 1-minute closes (12/26). | oscillator | EMA(12) - EMA(26) over 1-minute close prices. | 1m · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-MACD-signal | Trend | MACD signal line on 1-minute closes (9). | oscillator | EMA(9) of the 1-minute MACD line. | 1m · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-MACD-hist | Trend | MACD histogram on 1-minute closes. | oscillator | MACD line minus signal line on 1-minute closes. | 1m · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-MACD | Trend | MACD line on 5-minute closes (12/26). | oscillator | EMA(12) - EMA(26) over 5-minute close prices. | 5m · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-MACD-signal | Trend | MACD signal line on 5-minute closes (9). | oscillator | EMA(9) of the 5-minute MACD line. | 5m · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-MACD-hist | Trend | MACD histogram on 5-minute closes. | oscillator | MACD line minus signal line on 5-minute closes. | 5m · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-BB-upper | Volatility | Upper Bollinger Band on 1-minute closes (20, 2σ). | price | SMA(20) + 2 * standard deviation over 1-minute closes. | 1m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-BB-lower | Volatility | Lower Bollinger Band on 1-minute closes (20, 2σ). | price | SMA(20) - 2 * standard deviation over 1-minute closes. | 1m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-BB-width | Volatility | Bollinger Band width on 1-minute closes (20, 2σ). | price range | Upper band minus lower band on 1-minute closes. | 1m · price · Upper minus lower Bollinger Band, in quote-price units. Unlike daily/weekly BB-width this is not normalized percent. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-BB-upper | Volatility | Upper Bollinger Band on 5-minute closes (20, 2σ). | price | SMA(20) + 2 * standard deviation over 5-minute closes. | 5m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-BB-lower | Volatility | Lower Bollinger Band on 5-minute closes (20, 2σ). | price | SMA(20) - 2 * standard deviation over 5-minute closes. | 5m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-BB-width | Volatility | Bollinger Band width on 5-minute closes (20, 2σ). | price range | Upper band minus lower band on 5-minute closes. | 5m · price · Upper minus lower Bollinger Band, in quote-price units. Unlike daily/weekly BB-width this is not normalized percent. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-TrendEfficiency-24 | Trend | Directionality of the last 24 five-minute closes; high values indicate a persistent trend, while low values indicate choppy sideways movement. | 0 to 100 (higher means more directional) | Absolute net price change divided by the sum of all absolute close-to-close changes over 24 five-minute periods, multiplied by 100. | 5m · raw · 100 * abs(last close - first close) / sum(abs(consecutive close changes)), using 24 five-minute intervals. Range 0..100; no travel gives 0. Measures directionality in either direction, not bullishness; combine with directional confirmation. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-EMA-20 | Trend | 20-period EMA calculated on 1-minute closes. | price | EMA(20) over 1-minute close prices. | 1m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-EMA-50 | Trend | 50-period EMA calculated on 1-minute closes. | price | EMA(50) over 1-minute close prices. | 1m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-EMA-100 | Trend | 100-period EMA calculated on 1-minute closes. | price | EMA(100) over 1-minute close prices. | 1m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1m-EMA-200 | Trend | 200-period EMA calculated on 1-minute closes. | price | EMA(200) over 1-minute close prices. | 1m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-EMA-20 | Trend | 20-period EMA calculated on 5-minute closes. | price | EMA(20) over 5-minute close prices. | 5m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-EMA-50 | Trend | 50-period EMA calculated on 5-minute closes. | price | EMA(50) over 5-minute close prices. | 5m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-EMA-100 | Trend | 100-period EMA calculated on 5-minute closes. | price | EMA(100) over 5-minute close prices. | 5m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 5m-EMA-200 | Trend | 200-period EMA calculated on 5-minute closes. | price | EMA(200) over 5-minute close prices. | 5m · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-EMA-20 | Trend | 20-period EMA calculated on 1-day closes. | price | EMA(20) over 1-day close prices. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-EMA-50 | Trend | 50-period EMA calculated on 1-day closes. | price | EMA(50) over 1-day close prices. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-EMA-100 | Trend | 100-period EMA calculated on 1-day closes. | price | EMA(100) over 1-day close prices. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-EMA-200 | Trend | 200-period EMA calculated on 1-day closes. | price | EMA(200) over 1-day close prices. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1w-EMA-20 | Trend | 20-period EMA calculated on 1-week closes. | price | EMA(20) over weekly close prices using the standard exponential smoothing factor. | 1w · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1w-EMA-50 | Trend | 50-period EMA calculated on 1-week closes. | price | EMA(50) over weekly close prices using the standard exponential smoothing factor. | 1w · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-MACD | Trend | MACD line on 1-day candles (EMA12 - EMA26). | MACD value | Difference between EMA(12) and EMA(26) on daily close prices. | 1d · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-MACD-signal | Trend | Signal line for the daily MACD. | signal value | EMA(9) of the daily MACD line. | 1d · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-MACD-hist | Trend | Histogram value for the daily MACD setup. | histogram value | Daily MACD line minus daily signal line. | 1d · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1w-MACD | Trend | MACD line on 1-week candles (EMA12 - EMA26). | MACD value | Difference between EMA(12) and EMA(26) on weekly close prices. | 1w · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1w-MACD-signal | Trend | Signal line for the weekly MACD. | signal value | EMA(9) of the weekly MACD line. | 1w · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1w-MACD-hist | Trend | Histogram value for the weekly MACD setup. | histogram value | Weekly MACD line minus weekly signal line. | 1w · raw · Compare the value with its history and with the thresholds used by the strategy formula. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-BB-upper | Volatility | Upper Bollinger Band on 1-day candles. | price | Daily SMA(20) plus 2 standard deviations. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-BB-lower | Volatility | Lower Bollinger Band on 1-day candles. | price | Daily SMA(20) minus 2 standard deviations. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-BB-middle | Volatility | Middle Bollinger Band on 1-day candles. | price | Daily SMA(20) of close prices. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-BB-width | Volatility | Bollinger Band width on 1-day candles. | percent | (Upper band - Lower band) / Middle band * 100 on daily data. | 1d · percent · (Upper band - lower band) / middle band * 100 on the named timeframe. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-BB-width-Percentile-70 | Volatility | 70th percentile threshold of daily Bollinger Band width. | percent threshold | Rolling 70th percentile of daily Bollinger Band width values. | 1d · percent · A relative percentage measure comparable across assets and price levels. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1w-BB-width | Volatility | Bollinger Band width on 1-week candles. | percent | (Upper band - Lower band) / Middle band * 100 on weekly data. | 1w · percent · (Upper band - lower band) / middle band * 100 on the named timeframe. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 1d-SMA-200 | Trend | 200-period simple moving average on 1-day closes. | price | Average of the last 200 daily close prices. | 1d · price · A price-level measure; its distance and ordering relative to current price describes trend or envelope position. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| MarketRegime-1d | Trend | Daily price direction with volatility-normalized reversal detection. | bull / sideways / bear | Recent ATR-sized directional move first, otherwise longer-window net move and path efficiency; not EMA/MACD agreement. | 1d · regime · Daily price-path regime, independent of EMA/MACD agreement. First, a 3-interval net move of at least 0.75 daily ATR(14), with efficiency >= 60/100 and an agreeing latest step, determines bull/bear. Otherwise use the direction of a 10-interval move of at least 1 ATR with efficiency >= 30/100. Otherwise sideways; invalid/insufficient data is unavailable. Threshold equality qualifies. Zero ATR means sideways only on a flat path. The current daily candle may still be forming. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| TrendStrength-1d | Trend | Daily trend-strength score from 0 to 100. | 0-100 | EMA structure + MACD momentum + NATR volatility scoring. | 1d · index · [0, 100] · Daily bullish alignment, not direction-independent trend strength: +20 if EMA20 > EMA50, +30 if EMA50 > EMA200, +30 if MACD histogram > 0, and +20 if NATR-Wilder-14 < 6 (otherwise max(0,20-int(NATR))). Clamp to 0..100. Independent of the price-path regime: bear does not imply a score <=40. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 10m-StopLoss | Position-state | StopLoss drop magnitude over the last 10 minutes. | 0 or percent drop | Returns abs(drop) in percent points when the window is down; formula thresholds decide the trigger. | 10m · state · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 20m-StopLoss | Position-state | StopLoss drop magnitude over the last 20 minutes. | 0 or percent drop | Returns abs(drop) in percent points when the window is down; formula thresholds decide the trigger. | 20m · state · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| 30m-StopLoss | Position-state | StopLoss drop magnitude over the last 30 minutes. | 0 or percent drop | Returns abs(drop) in percent points when the window is down; formula thresholds decide the trigger. | 30m · state · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| composit-StopLoss | Position-state | Composite StopLoss flag based on 10m/20m/30m percent thresholds. | true / false | True when all stoploss thresholds are exceeded. | state · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| market-action | Market | Market-level action signal aggregated across symbols. | BUY / SELL / NEUTRAL | BUY/SELL if at least 70% of symbols agree; otherwise NEUTRAL. | state · [buy, sell, neutral] · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| market-RSI-trend | Market | Market-level RSI trend aggregated across symbols. | BUY / SELL / NEUTRAL | BUY/SELL if at least 70% of RSI trends agree; otherwise NEUTRAL. | index · [buy, sell, neutral] · Higher values indicate stronger positive momentum or trend; extremes can also mark exhaustion. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| market-StopLoss | Market | Market-level StopLoss average across symbols. | average percent drop | Average of per-symbol StopLoss values. | state · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| market-composit-StopLoss | Market | Market-level composite StopLoss flag. | YES / NEUTRAL | YES when at least 40% of symbols are in composite StopLoss. | state · An execution or risk state; interpret together with volatility and post-trigger recovery evidence. · Treat missing or stale values as unavailable evidence; never coerce them to zero. |
| CurrentPrice | Market | Current price from the latest market data. | price | Loaded from the latest ticker snapshot. | |
| LastBuyPrice | Position-state | Quantity-weighted average entry price of the current open position. | price | Sum of each open BUY lot quantity multiplied by its fill price, divided by the total open quantity. | |
| LastSellPrice | Position-state | Last executed sell price. | price | Filled from the latest recorded sell trade. | |
| HighestSinceBuy | Position-state | Highest price observed since the current buy position was opened. | price or null | Updated on each tick while quantity is open; initialized at BUY. | |
| HighestSinceSell | Position-state | Highest price observed since the latest SELL. | price or null | Initialized at SELL, then updated on subsequent ticks. | |
| LowestSinceBuy | Position-state | Lowest price observed since the current buy position was opened. | price or null | Updated on each tick while quantity is open; initialized at BUY. | |
| LowestSinceSell | Position-state | Lowest price observed since the latest SELL. | price or null | Initialized at SELL, then updated on subsequent ticks. | |
| DrawdownFromHighPct | Position-state | Pullback percentage from HighestSinceBuy to CurrentPrice. | percent or null | (HighestSinceBuy - CurrentPrice) / HighestSinceBuy * 100. | |
| ProfitSinceBuyPct | Position-state | Profit percentage of the current open position from its quantity-weighted LastBuyPrice to CurrentPrice. | percent or null | (CurrentPrice - weighted LastBuyPrice) / weighted LastBuyPrice * 100. |
