[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ShowMe runs multiple times?



PureBytes Links

Trading Reference Links

>I just noticed something very odd.  I have a ShowMe that works just
>the way I wanted, or so I thought.  While I was checking something,
>I added some debug statements with the date.
>
>I applied the ShowMe to a daily chart that went back to 9/30/97.
>When looked in the Print Log, I discovered the series of dates was
>printed more than once!  E.g. there were dates from 9/30 to 1/6/98,
>then it started over at 10/17/97 and ran to 2/10/98, then 10/23/97
>to 2/13/98, then 10/28/97 to 2/18/98, then 10/31/97 to 2/20/98,
>etc.  All told it cycled through TEN TIMES before it finally got
>past 3/4/98 and went all the way to 5/27!
>
>The ShowMe contains some SwingHighBar and SwingLowBar calls,
>but I wouldn't think that would do that.
>


I have had something similar happen. I think it has to do with the
MaxBarsBack setting. If you set it for "Auto-detect", the default case, it
runs the code over and over until it finds a length that works. Try setting
a value manually and see it runs only one time through.

Bob Fulks