Can someone add a "shift" feature to this indie?

 

Hello,


I'm no expert in MQL4, so I need help.

I have this indicator Price Channel, that I find interesting in some situations, but I would like to shift it, like we can do to the MA's on the MT4 terminal.

I believe this is not complicated for an experienced programmer.

Can someone help, please?


Thanks

MD

Files:
 

Try


//---- input parameters
extern int ChannelPeriod=14;
extern int shift = 0;

and...

SetIndexDrawBegin(0,ChannelPeriod);
SetIndexDrawBegin(1,ChannelPeriod);
SetIndexDrawBegin(2,ChannelPeriod);

SetIndexShift(0, shift);
SetIndexShift(1, shift);
SetIndexShift(2, shift);