The honest 52-week high is slower than the tempting one
A weekly high or low overlay should avoid using a final weekly value before that week is complete.
Read note →A separate archive of Pine Script edge cases, timing traps and odd chart behaviours I keep coming back to while building TradingView indicators.
A weekly high or low overlay should avoid using a final weekly value before that week is complete.
Read note →A Pine VWAP can be mathematically correct and still disagree with another VWAP because the anchor or source is different.
Read note →Migrating Pine scripts needs a timing review, especially around older `security()` and lookahead behaviour.
Read note →Pine user-defined types and libraries can make large scripts clearer, but cross-library object design needs restraint.
Read note →Pine ticker helpers make session and symbol context explicit, which is safer than assembling ticker strings by hand.
Read note →Reusable Pine code works best when snippets stay small and templates define the whole script structure.
Read note →A Pine indicator can formalize a trading process without turning every decision into automation.
Read note →Pine strategy reports depend on entries, orders, pyramiding, reversals, and the way the script defines a position.
Read note →Pine strategy alerts need separate thinking around order fills, alert messages, replay tests, and live execution.
Read note →Pine session logic should account for timezone, missing ticks, and the difference between a boundary and a script execution.
Read note →Offset and lookahead patterns are useful in Pine, but copied carelessly they can make historical bars see higher-timeframe data too early.
Read note →Lower-timeframe requests in Pine are powerful, but their array results need different handling from ordinary series values.
Read note →Dynamic requests can make Pine scripts more flexible, but the requested expression still runs in another context.
Read note →A reliable Pine debugging pass starts with state, settings, timing, and data context before rewriting the strategy.
Read note →Requested series can appear before the chart has enough local context, so scripts should define their warm-up rules.
Read note →Ticker strings in TradingView can include replay and modifier context, so Pine scripts should avoid naive symbol parsing.
Read note →Renko chart context, ticker construction, and strategy assumptions can change what a Pine script is actually calculating.
Read note →Volume requests on range charts can expose realtime and synthetic-chart assumptions that normal candles hide.
Read note →Pine pivot functions can plot on the pivot bar with an offset, but confirmation happens only after the right-side bars exist.
Read note →Scaling out in Pine strategies is useful, but the performance table needs to be read with order reservations and trade definitions in mind.
Read note →The Strategy Tester can only infer historical order fills from available bar data and broker-emulator rules.
Read note →In Pine, order-block logic becomes more honest when zones, invalidation, and age are explicit.
Read note →Pine scripts get easier to debug when unavailable values, empty arrays, and real zeroes are kept separate.
Read note →A Pine script that reads only the numeric multiplier can misunderstand seconds, minutes, days, weeks, and months.
Read note →Machine-learning ideas can inform an indicator, but Pine is usually the place to display or apply them, not train them.
Read note →Inputs in a Pine indicator can change frequency, confirmation, and exposure, even when they look harmless.
Read note →A Pine dashboard can make ten signals look independent even when they all measure the same underlying move.
Read note →A multi-timeframe Pine script should distinguish completed higher-timeframe data from developing values and impossible history.
Read note →If a Pine script changes after being hidden, reloaded, or reactivated, the issue is often realtime state rather than the visible plot.
Read note →Synthetic candles are useful visually, but strategy fills and signal timing need to respect the prices that could actually trade.
Read note →`request.financial()` and `request.earnings()` have timing, period, and availability rules that can confuse chart logic.
Read note →Pine realtime rollback, drawing objects, and `varip` can produce behaviour that is useful live and impossible to reproduce after reload.
Read note →Readable Pine code matters once a script is shared, maintained, moderated, or reused beyond the first author.
Read note →Strategy intrabar calculation can be useful, but it opens a gap between historical bars and realtime execution.
Read note →TradingView Bar Replay is useful, but it does not turn historical OHLC bars into the realtime stream that originally formed them.
Read note →Before a Pine script can drive a bot or webhook, the signal states and failure cases need to be written down.
Read note →Pine arrays are useful for carrying levels and objects forward, but mutation makes previous-state logic easy to misread.
Read note →Pine scripts need different alert tools depending on whether the message is static, dynamic, visual, or automated.
Read note →A TradingView webhook payload is an interface. If the JSON is loose, the whole automation becomes fragile.
Read note →TradingView alert frequency settings decide what the receiver is allowed to believe about a signal.
Read note →