Check a Candle Order
check_candle_orderBefore the next order. Required: the trader's levelPrice, invalidationPrice and targetPrice (aliases level, stop, target). Do not invent a missing price from P10, P90 or any band. One search, then which of those prices printed first on similar candles: the closest touched day, counts for target first, invalidation first, both in one bar and neither, and a chart permalink. The median of priced round trips appears only at 10 or more touches, after a 0.1 percent fee per side. Under 10 touches the sample is too small. NO_TRADE. Not a win rate. Not a side. Direction after similar windows is a coin flip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| f | No | Forward horizon in bars from the anchor: 5, 10, 30 or 50. Default 10 | |
| q | No | Pattern length: 3, 5, 8 or 12. Default 5 | |
| symbol | No | BTCUSDT, ETHUSDT or SOLUSDT. Default BTCUSDT | BTCUSDT |
| anchorTs | No | Optional historical snapshot time in Unix milliseconds | |
| interval | No | Chart timeframe. Default 1h. Alias: timeframe | 1h |
| levelPrice | Yes | The trader's entry level. Required. Alias: level. Do not take this from a band. | |
| targetPrice | Yes | The trader's target. Required. Aliases: target, targetLevel. Do not take this from a band. | |
| invalidationPrice | Yes | The trader's invalidation. Required. Aliases: stop, stopPrice, invalidation. Do not take this from a band. |