inputs: Price( Close ), Length( 9 ); variables: SMA( 0 ); SMA = Average( Price, Length ); Plot1( SMA, "SMA" );