Could you please provide code for the following

Need code for creating a forward shifted moving average.

  1. Period of moving average = 1 (average of the day’s high and low)

  2. MA line shifted forward by 20 period, or 40 period or 80 period (the daily price average line shifted forward by a specified period, such as 20, 40, 80 etc).

  3. Essentially a 1 day MA with a modifiable forward shift.

Regards

Puneet

For the above query check the AFL for   forward moving average

Plot(Close, "close", colorGreen, styleBar);
sma10 = MA(Close,10);
Plot(sma10, "Back MA", colorRed, styleLine, Null, Null, -5);
Plot(sma10, "Forward MA", colorBlue, styleLine, Null, Null, 5);

Thanks a lot.
Could you please help me on how to add this technical indicator to the chart.
Regards