Quote:
when you do not trade, they are flat.So will be their MA (I hope)
An MA will continue changing,irrespective of the MA type. And after MA-length bars with no trades will be equal to Balance.

The correct mechanism requires creating/maintaining a separate array of equity@trade, not equity@bar.
And I thought this might be an enhancement to implement in one of the future versions.