Forum

How to read MA value of different bar

Hi Guys, Need some light here, could anybody clarify or code for me value of Moving average for the current bar, previous bar, and last 2 or 3 bars. It does not matter method of moving average. regards...sufian