The simplest way how to do it is to change value of Bars.CurrentBar to bar i need to recalculate and then run my calculation again. Something like this:
var aBarsCurrentBar = Bars.CurrentBar; try { Bars.CurrentBar = bar_I_need_to_recalculate; Call my calculation engine here } finally { //restoring current bar Bars.CurrentBar = aBarsCurrentBar; }
Comment