charting
Use when adding or reviewing custom charts in a QuantConnect/LEAN algorithm (self.plot, self.plot_indicator, Chart/Series, CandlestickSeries). Covers SeriesType selection, series index for overlay vs subchart, and three silent-failure rules: (1) don't reuse reserved chart names (Assets Sales Volume, Exposure, Portfolio Margin) or reserved series names inside default charts (Equity, Return, Equity Drawdown, Benchmark, Portfolio Turnover, Strategy Capacity); (2) count every series against the tier cap before adding (10 on Free/QR, 25 on Team/Trading Firm, including built-ins); (3) stay under the per-series data-points cap — `plot_indicator` is preferred at daily/hourly resolution, but on minute/second/tick switch to `plot` from `on_end_of_day`. Also covers `CandlestickSeries` needing OHLC/TradeBar, mixing `Indicator` vs `TradeBarIndicator` in `PlotIndicators`, and when to route bulk data to the Object Store instead.
Repository SourceNeeds Review
logging
Use when adding or reviewing logging statements in a QuantConnect/LEAN algorithm. Covers the four channels (log/debug/error/quit), per-tier log quotas, `log`'s duplicate suppression, the 1/sec + 200-char limits on `debug`/`error`, why `quit()` needs a following `return`, the live-only `safe_log` wrapper, preferring order `tag=` over a trailing `log`, and Object Store for structured backtest diagnostics.
Repository SourceNeeds Review
scheduled-events
Use when adding or reviewing Scheduled Events in a QuantConnect/LEAN algorithm (portfolio rebalancing, periodic signal checks, anything scheduled via self.schedule.on). Ensures the time rule does not fire inside a data bar's time period, covers the 8AM convention for dynamic US Equity universes on daily data, and notes that string tickers work in date/time rules.
Repository SourceNeeds Review
tcm-constitution-recognition-analysis
Determines nine TCM constitution types including Yin deficiency, Yang deficiency, Qi deficiency, phlegm-dampness, and blood stasis through facial features and physical signs, and provides personalized health preservation and conditioning suggestions. | 中医体质识别分析技能,通过面部特征与体征判别阴虚、阳虚、气虚、痰湿、血瘀等九种中医体质类型,给出个性化养生调理建议
Archived SourceRecently Updated