I write a RSI with ema indicator, but it alway show some redundant bars. i need to refresh it to delete is. Could you please give me some advices. {image}
Ignored
You need to either upload the indicator source or describe the issue further. If you have to refresh it to address an issue, then perhaps the chart has updated it's chart history, and the drawn buffers at every candle index haven't been re-calculated with the new updated chart history. If this is the case, then the value of prev_calculated in the oncalc() section will be set to 0, which you can use to decide how many bars to calculate indicator values on.