need a small change in afl ,
i want to keep ma same for 12 bars(hourly) in staircase forme
// Example 20-bar Moving average shifted 10 bars into the future past the last bar:
Plot(Close,"Close",colorBlack,styleCandle);
//Plot(MA(Close,20), "Shifted MA", colorRed, styleStaircase, Null, Null, 20);
Plot(MA(Close,20), "Shifted MA", colorRed, styleStaircase,0,0, 10
);
// Note that shift occurs during plotting AND does NOT affect source array
i want to keep ma same for 12 bars(hourly) in staircase forme
// Example 20-bar Moving average shifted 10 bars into the future past the last bar:
Plot(Close,"Close",colorBlack,styleCandle);
//Plot(MA(Close,20), "Shifted MA", colorRed, styleStaircase, Null, Null, 20);
Plot(MA(Close,20), "Shifted MA", colorRed, styleStaircase,0,0, 10
);
// Note that shift occurs during plotting AND does NOT affect source array