How to paint past signals when chart loads

 
Hey everyone.   Could someone direct me to the function or snipet that draws past buffer signals when the indicator is first loaded onto a chart? Think how Bill Williams fractals paint all previous fractals quite a ways back. I have looked at other indicator code that does paint old signals but I can't see the line that does this. Thanks much in advance. 
 
It is normally done in a loop, so look for the loop in the codes.
 
Keith Watford:
It is normally done in a loop, so look for the loop in the codes.
Thanks much. I am new to coding and have avoided for loops as long as I can it seems :) I guess it's time to decipher those things haha. Thanks again :)