Dear FerruFx, Thanks for your reply. I have gone into the code and modified it to:SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,Yellow); Now the indicator is drawing continuous lines as shown below. It ought to draw lines only when the logic holds true. ...