--- name: marketpilot-entry description: "Check whether a specified long setup threshold has triggered on a completed, sufficiently fresh market bar." --- # MarketPilot AI Entry Timer ## Workflow 1. Require a user-selected symbol and an explicit trigger rule/price. Do not choose an asset or invent a trigger. 2. Obtain the latest OHLCV bars and identify the bar interval, exchange timezone, timestamp, and provider. 3. Check that the trigger candle is complete and quote age is within the user's limit. Run `marketpilot entry --close --trigger --bar-closed --data-age-seconds `. 4. Return `TRIGGERED` only when the completed close is above the specified long trigger and the data is fresh; otherwise return `WAIT` with the exact reason. 5. Explain that the CLI evaluates a mechanical condition. Ask the user to review spread, liquidity, news, session context, and the separate exit/risk checks. ## Guardrails - Do not use an in-progress candle as confirmation. - Do not turn “triggered” into an instruction to buy. - Never route an order or change a pending order. - If data is stale, missing, delayed, or inconsistent, return `WAIT` rather than filling gaps with estimates.