When I am being lazy, and do not really want to think of what is happening, I would just say that as the Close has not changed, neither should the plot, hence:
difference.Set((Close[0] - Close[1])*1000000);
volume.Set(Volume[0]);
double weak = Close[0] != Close[1] ? volume[0]/difference[0] : Value[1];
Value.Set(weak);

Comment