What does calc_on_every_tick do to a TradingView strategy?
calc_on_every_tick=true makes a strategy recalculate on each new realtime update rather than only at bar close. Historical bars do not contain the same full tick stream, so live and reloaded behavior can diverge.
What this means in practice
calc_on_every_tick=true makes a strategy recalculate on each new realtime update rather than only at bar close. Historical bars do not contain the same full tick stream, so live and reloaded behavior can diverge. This page is specifically about “What does calc_on_every_tick do to a TradingView strategy?”, so each scenario below is explained by its own mechanism instead of sharing one generic diagnosis.
Real-world scenarios
Scenario A — Scalping signal mid-bar
Inspect the mechanism named by “Scenario A — Scalping signal mid-bar” directly. Record its input, the state immediately before it and the first observable output that differs from the intended result. For Scenario A — Scalping signal mid-bar on question 29, use that evidence specifically to answer “What does calc_on_every_tick do to a TradingView strategy?”; keep it separate from the evidence for the other scenarios on this page.
Scenario B — Multiple calls in one bar
Inspect the TradingView alert log during the still-open candle. Realtime recalculation can make the condition true several times; add explicit intrabar state or a per-bar guard if the strategy intends only one logical action. For Scenario B — Multiple calls in one bar on question 29, use that evidence specifically to answer “What does calc_on_every_tick do to a TradingView strategy?”; keep it separate from the evidence for the other scenarios on this page.
Scenario C — Reload changes historical orders
Inspect the mechanism named by “Scenario C — Reload changes historical orders” directly. Record its input, the state immediately before it and the first observable output that differs from the intended result. For Scenario C — Reload changes historical orders on question 29, use that evidence specifically to answer “What does calc_on_every_tick do to a TradingView strategy?”; keep it separate from the evidence for the other scenarios on this page.
What to check
- active server-side TradingView alert instance
- saved symbol, timeframe and inputs
- realtime versus confirmed-bar behavior
- exact message emitted by the active alert
Practical rule
For “What does calc_on_every_tick do to a TradingView strategy?”, change only the first layer whose evidence no longer matches the intended action. Preserve signal identity, timestamps and final cTrader state, and reproduce execution-affecting changes on demo before live use.
Decision summary
Direct answer: calc_on_every_tick=true makes a strategy recalculate on each new realtime update rather than only at bar close. Historical bars do not contain the same full tick stream, so live and reloaded behavior can diverge.
Next action: Match the observed evidence to one scenario above, test that mechanism independently on demo and keep the result traceable with one signal ID.
Primary sources
Need a TradingView → cTrader execution route?
NRUNO routes your TradingView instructions to cTrader. Your strategy and signal logic remain yours.