Sequence operator-mavg
E.g. Trade.mavg = security.price->sortedBy(marketDate)->mavg(30)
If Trade.mavg is a Decimal attribute, marketDate a Date attribute, and security.price refers to a collection of Decimal attributes, Sequence rule operator mavg returns a Decimal value that is the moving average of the first 30 instances of sequence security.price.