Error message in Top Stop
Author: tradercn
Creation Date: 12/23/2011 1:01 PM
profile picture

tradercn

#1
Top Stop exit strategy works very well so far. However it showed some adhoc error information on specified different symbols. The error information are showed almost the same as below:
Runtime error: Bar number outside bounds of the chart: 2616(it is the last bar number of the current symbol)
At WealthLab.Strategies.TopStop dipBuyer.Execute()
At WealthLab.WealthScript.DrawPolygon(ChartPane pane. Colorcolor.Color fillColor. LineStyle style. Int32 width. Boolean behindBars. Double[] coords)
At WealthLab.WealthScript.a(Int32A 0)
This runtime error showed on specified different symbols. Sometimes the printdebug window is poped up. There is no such error for other symbols.
What's wrong with it please? Thanks.
profile picture

Eugene

#2
Please discuss uploaded strategies in their own forums - available by finding them in "Strategies & Trading" and following the "N Discussions" link.

Looking forward to your heads-up about a new thread in the appropriate location
and I'll reply there.
profile picture

tradercn

#3
I can not be there. It showed "Server Error in '/' Application."
profile picture

Eugene

#4
Sad but true. Let's continue here then.

The error message, referenced as "Bar number outside bounds of the chart" (lost in translation?), actually must be "Index out of range" with high degree of certainty. As the place to find knowledge about the various Strategy error messages is the Wealth-Lab Wiki, I'd suggest starting right there:

Errors | Strategy > Index was out of range

Since I just have the error message it's the only suggestion. More ideas can be sparked by more information: which modifications you made to the code, on which symbols and data loading ranges the error can be reproduced etc.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).