Ok. In but in the original code he specifies DChannel as a series and you say that it is not required to do so and yet it is in that expression that he is defining the length of the channel.

Please could you just post a couple of lines of code of how you would set this indicator up? Thanks.