Guides / Rule playground
Rule playground · about 8 min
From English to rule
Ask about what is true now in plain English, see the rule Ora compiled it to, and learn when to write the rule yourself.
Ask in English
Eleven questions about TSLA: ten about now, one about next week.
{ "model": "ora-fin1", "state": { "symbol": "TSLA" }, "questions": { "above_200d": { "type": "yes_no", "instructions": "Is it above its 200-day moving average?" }, "rsi_70": { "type": "yes_no", "instructions": "Is RSI above 70?" }, "over_prior_high": { "type": "yes_no", "instructions": "Did it close above yesterday's high?" }, "golden": { "type": "yes_no", "instructions": "Is the 50-day moving average above the 200-day?" }, "off_high": { "type": "yes_no", "instructions": "Is it down more than 10% from its 52-week high?" }, "three_down": { "type": "yes_no", "instructions": "Did it close lower three days in a row?" }, "busy": { "type": "yes_no", "instructions": "Is volume above its 20-day average?" }, "inside": { "type": "yes_no", "instructions": "Is today an inside bar?" }, "engulf": { "type": "yes_no", "instructions": "Is today a bullish engulfing candle?" }, "at_high": { "type": "yes_no", "instructions": "Is it at a 52-week high?" }, "up_week": { "type": "yes_no", "instructions": "Will the stock be higher in a week?" } } }Open this in the PlaygroundSee what each one became
Session of 2026-10-30. A
rulemeans the rule engine answered; none means the forecast model did:Question Rule it ran Belief basis above_200dC > sma(C, 200)0.777 comparison rsi_70rsi(C, 14) > 700.0873 comparison over_prior_highC > H[-1]0.1868 comparison goldensma(C, 50) > sma(C, 200)0.0768 comparison off_highC < 0.9 * max(H, 252)0.9438 pattern three_down(C < C[-1]) and (C[-1] < C[-2]) and (C[-2] < C[-3])0.5667 pattern busyV > 1 * ref(avg(V, 20), -1)0.7212 pattern insideinside_bar()0.0795 pattern engulfengulfing_bull()0.2167 pattern at_highnone: forecast 0.533 forecast up_weeknone: forecast 0.487 forecast Read the basis
comparisonis a compiled comparison (it adds anexplain, heretoday's close > sma200);patternis a compiled shape such as(C < C[-1]) and (C[-1] < C[-2]) and (C[-2] < C[-3]). Compiled rules are ordinary rules: copy one intoaskto pin it.Spot the one that did not compile
"Is it at a 52-week high?" came back as a forecast (0.533), not a fact. When you mean the fact, write it. Three ways to write it are three different questions; on XLE, which trades near its highs:
Question Rule Belief at_highH >= max(H, 252)0.5 near_highC >= 0.98 * max(H, 252)0.8442 new_highH > highest(H, 252)0.6196
Open this in the PlaygroundH >= max(H, 252)can at best tie (0.50); the 2% band and the excluding form say what you mean.Rule of thumb
English for exploring and for forecasts;
askfor anything a decision depends on, so the rule cannot change underneath you. The language: Rule language.
Information, not investment advice. Every number on this page is a real response for the session shown; answers change with each session.