Ok i can see it now on forming candle
Before
After
Ok i changed this code and it looks like it works .
Disabled Aggressive Throttling (lines ~2537-2545): I commented out the code block that was completely skipping calculations on ticks when the HUD timer was enabled. This allows OnCalculate to run on every tick, ensuring the candle updates in real-time.
cpp
/* v3.12 FIX: Removed aggressive throttling to allow candle updates
if(InpEnableTimerHUDThrottle && prev_calculated > 0 && !isNewBar) {
// ... (code that skips calculations)
return(rates_total);
}
*/
Forced RSI Update for Current Candle (line ~2763): I added the condition || i == rates_total - 1 to ensure RSI (and consequently the ternary logic) is recalculated for the current bar on every tick, not just when a new bar appears.
cpp
// Old line:
// if(gRSITernaryActive && gHandleRSI.IsValid() && (isNewBar || prev_calculated == 0)) {
// New line:
if(gRSITernaryActive && gHandleRSI.IsValid() && (isNewBar || prev_calculated == 0 || i == rates_total - 1)) {
// ...
}
These changes ensure the indicator reacts to current price changes (candle color, signals) instantly instead of waiting for the candle to close, while maintaining optimization for historical data.