public class Darvis : Indicator
{
#region Variables
public double boxTop = double.MinValue;
public double boxBottom = double.MaxValue;
--------------------------------------------------------------------------------------------------------------------------------
The values seem to DrawText on my chart ok but when I try to display in the Output Window there is a curious 399.99999999 that seems to be appended to the value..
My Strategy
private double DarvisTBox = double.MinValue;
private double DarvisBBox = double.MaxValue;
DarvisTBox = DarvisIndicator().boxTop;
DarvisBBox = DarvisIndicator().boxBottom;
DrawText("MyText"+ CurrentBar, DarvisTBox.ToString(), 0, DarvisTBox, Color.Blue);
DrawText("MyText2"+ CurrentBar, DarvisBBox.ToString(), 0, DarvisBBox , Color.Red);
Print(Time[0]);
//Print( DarvisBBox);
Print(DarvisIndicator().boxBottom);
Output window
339.999999999989
8/3/2010 10:44:33 AM
762
339.999999999989
8/3/2010 10:46:06 AM
762
339.999999999989
8/3/2010 10:46:40 AM
762
339.999999999989
8/3/2010 10:47:35 AM
1.79769313486232E+308 (looks like this shows up when there is no value)
339.999999999989
8/3/2010 10:48:25 AM
1.79769313486232E+308

Comment